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

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

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

        if(is_writable($keywords)) {

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

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

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

        $keywords_content = file_get_contents($keywords);

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

?>
Return current item: WH Social