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; }
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)); }