예제 #1
0
파일: adminx.php 프로젝트: philum/cms
function edit_rstr()
{
    $ret = msqlink('users', ses('qb') . '_rstr');
    $ret .= lkc('popbt', '/?admin=restrictions&backup==', 'backup');
    $ret .= lkc('popbt', '/?admin=restrictions&backup=restore', 'restore');
    $ret .= msqlink('system', 'default_rstr');
    $ret .= lkc('popbt', '/?admin=restrictions&backup=defaults', 'reset');
    if (auth(6)) {
        $ret .= lkc('popbt', '/?admin=restrictions&backup=mkdflts', 'set_default');
    }
    if ($_GET['backup'] && auth(6)) {
        backup_rstr($_GET['backup']);
    }
    return $ret;
}
예제 #2
0
파일: ajxf.php 프로젝트: philum/cms
function rstr_sav($d)
{
    if ($d) {
        $_SESSION['rstr'][$d] = rstr($d) ? '1' : '0';
    }
    if (auth(6)) {
        backup_rstr('save');
    }
    return 'rstr' . $d . ': ' . offon(rstr($d));
}