$t = $t ? $t : $id; $s = $va ? $va : 640; $ret = build_mod_r($id); break; case "ajxlnk": req('pop,spe,art,tri,mod'); $_SESSION[$va] = $id; if ($id != 'close') { $ret = build_mod_r($id); } break; case "ajxlnk2": req('pop,spe,art,tri,mod,boot'); if ($id == 'art') { deductions_from_read($va, $cache); define_condition(); } if ($id == 'one') { $ret = build_mod_r($va); } else { $ret = build_modules('content', ''); } break; case "rssart": req('pop,tri,spe'); $t = $id; $s = 640; $ret = rss_art($id, $va, 1); break; case "archives": req('spe');
function reboot() { require 'params/_connectx.php'; req('art,spe,pop'); master_params('params/_' . $db, $qd, $aqb, $subd); $_SESSION['dayx'] = time(); define_hubs(); define_qb(); define_config(); eye_iq(); log_mods(); define_auth(); //if($_SESSION['rstr'][22])block_crawls(); time_system('ok'); cache_arts(); define_cats_rqt(); define_condition(); define_clr(); }
function backup_console() { //(421) $base = 'msql/users/'; $nod = $_SESSION['modsnod']; $f = $base . $nod . '_sav.php'; $goto = '/?admin=console'; if ($d = $_GET["newfrom_mods"]) { newmodfrom($d); select_mods($d); } if ($_GET["adopt_mods"]) { foreach ($_SESSION['prmb'] as $k => $v) { $vaue .= $v . '#'; } update("qdu", "config", $vaue, "name", ses('qb')); } if ($_GET["backup_mods"]) { copy($base . $nod . '.php', $f); } if ($_GET["mk_default"]) { msq_copy('users', $nod, 'system', 'default_mods'); msq_copy('users', $nod, 'users', 'public_mods_1'); alert('system/default_mods;public_mods_1'); } if ($_GET["restore_mods"]) { copy($f, $base . $nod . '.php'); define_mods(''); define_condition(); } if ($_GET["refresh_mods"]) { define_mods(''); define_condition(); } if ($_GET["make_copy"]) { msq_copy('users', ses('qb') . '_mods_' . ses('prmb1'), 'users', $nod); define_mods(''); define_condition(); } if ($_GET["default_mods"]) { msq_copy('system', 'default_mods', 'users', $nod); define_mods(''); define_condition(); } $rt = array('backup' => 'save', 'restore' => 'left', 'refresh' => 'reload', 'copy' => 'copy', 'default' => 'file', 'mkdef' => 'export'); foreach ($rt as $k => $v) { $rt[$k] = picto($v); } $ret = lkc('txtx" title="' . nms(94), $goto . '&backup_mods==', $rt['backup']); if (is_file($f)) { $ret .= lkc('txtx" title="' . nms(95), $goto . '&restore_mods==', $rt['restore']); } $ret .= lkc('txtx" title="' . nms(97), $goto . '&refresh_mods==', $rt['refresh']); if ($p1 = ses('prmb1')) { $ret .= lkc('txtx" title="' . nms(132) . ':' . $p1, $goto . '&make_copy==', $rt['copy']); } $ret .= lkc('txtx" title="' . nms(96), $goto . '&default_mods==', $rt['default']); if (auth(6)) { $ret .= lkc('txtx" title="' . nms(113), $goto . '&mk_default==', $rt['mkdef']) . ' '; } $ret .= hlpbt('console') . ' '; $ret .= msqlink('', ses('qb') . '_mods_' . prmb(1)); $ret .= msqlink('system', 'admin_modules'); return $ret . br(); }
function select_mods($d = '') { if ($d) { $_SESSION['prmb1'] = prmb(1); $_SESSION['prmb'][1] = $d; } elseif ($_SESSION['prmb1']) { $_SESSION['prmb'][1] = $_SESSION['prmb1']; } reset_mjx(); $_SESSION['modsnod'] = $_SESSION['qb'] . '_mods_' . prmb(1); define_mods(''); define_condition(); }