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

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

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

        if(is_writable($description)) {

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

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

        if(!fwrite($handle, $_POST['description_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{

        $description_content = file_get_contents($description);

        echo '<form method="post" action="" name="meta">
        <p><input type="text" name="description_content" class="tagfields" required size="80" value="' . $description_content . '" maxlength="90"> ' . $lang['blank_description'] . '</p>
        <p><input type="submit" name="description" id="description" value="' . $lang['metaact_1d'] . '" class="buttons"></p>';
        }

?>
Return current item: WH Social