Exemplo n.º 1
0
$this->wf->cp->add_script("../modules/admin/scripts/options.js");
$this->wf->cp->add_script("../modules/admin/scripts/default.js");
if (isset($_REQUEST['clearcache'])) {
    wra_cacheflow::clearcache();
}
if (isset($_POST['googleanalytics'])) {
    wra_options::updatevalue("googleanal", WRA::getpost('googleanalytics'));
}
if (isset($_POST['yandexmetrics'])) {
    wra_options::updatevalue("yandexmetrics", WRA::getpost('yandexmetrics'));
}
if (isset($_POST['facebook'])) {
    wra_options::updatevalue("facebook", WRA::getpost('facebook'));
}
if (isset($_POST['vkontakte'])) {
    wra_options::updatevalue("vkontakte", WRA::getpost('vkontakte'));
}
function flushpage($currentlink, $cap)
{
    ?>
<div><h1>Администрирование сайта. Общие настройки</h1></br></div>
<div class="content_edit">
    <div class="input_edit">
        <table id="" width="100%" class="adminedittbl table_edit" cellpadding="0" cellspacing="0">
            <tbody>
                <tr><td>&nbsp;</td></tr>
                <tr>
                    <td colspan="2"><b>Общие настройки</b></td>
                </tr>
                <tr >
                    <td style="width:120px"><?php