Location: PHPKode > scripts > WH Social > wh_social/admin/handler/meta/robots.php
<?php

        $robots = '../framework//meta/robots.php';

        if(isset($_POST['robots']) && !empty($_POST['robots'])) {

        if(is_writable($robots)) {

        if(!$handle = fopen($robots, "w+")) {

            echo '<p class="false">' . $lang['meta_not_opened'] . '</p>';
            }

        if(!fwrite($handle, $_POST['robots_content'])) {

            echo '<p class="false">' . $lang['meta_failed'] . '</p>';
            }

        echo '<p class="success">' . $lang['meta_succes'] . '</p>';

        fclose($handle);

            }else{

            echo '<p class="false">' . $lang['no_wr_permissions'] . '</p>';
            }

        }else{

        $robots_content = file_get_contents($robots);

        echo '<form method="post" action="" name="meta">
        <p><input type="text" name="robots_content" class="tagfields" required size="40" value="' . $robots_content . '" maxlength="90"> Robots</p>
        <p><input type="submit" name="robots" id="robots" value="' . $lang['metaact_11s'] . '" class="buttons"></p>';
        }

?>
Return current item: WH Social