ob_flush(); flush(); } $rc = true; $n++; } unset($rs); $pagego = empty($no) ? 3 : 4; } if (!empty($upids)) { $sql = 'update {pre}' . $tab . ' set ' . $pre . '_maketime=' . time() . ' where ' . $pre . '_id in (' . $upids . ')'; $db->query($sql); } //echo $pagego;exit; if (!empty($vid)) { jump(getReferer(), $MAC['app']['maketime']); } elseif ($pagego == 1 || $pagego == 2) { if ($datacount == 0 && !empty($ac2) && empty($ids)) { showMsg('内容页面生成完毕!', '?m=make-option'); } else { jump('?m=make-info-ids-' . $ids . '-num-' . ($num + 1) . '-tab-' . $tab . '-ac2-' . $ac2 . '-no-' . $no . '-pg-0-min-' . $min . '-jump-' . $jump, $MAC['app']['maketime']); } } elseif ($pagego == 3) { jump('?m=make-info-ids-' . $ids . '-num-' . $num . '-tab-' . $tab . '-ac2-' . $ac2 . '-no-' . $no . '-pg-' . ($page + 1) . '-min-' . $min . '-jump-' . $jump, $MAC['app']['maketime']); } elseif ($pagego == 4) { jump(getReferer()); } echo '' . getRunTime() . ''; } else { showErr('System', '未找到指定系统模块'); }
} ob_flush(); flush(); echo '</textarea></div><center>' . getRunTime() . '</center>'; jump('?m=admin-update3cache', 2); } elseif ($method == 'update3cache') { headAdmin2('在线更新'); echo "<div class='Update'><h1>在线升级进行中第三步【更新缓存】,请稍后......</h1><textarea rows=\"25\" readonly>"; ob_flush(); flush(); sleep(1); echo "更新数据缓存文件..." . updateCacheFile() . "\n"; echo "升级完毕..."; ob_flush(); flush(); echo '</textarea></div><center>' . getRunTime() . '</center>'; } elseif ($method == 'updateone') { $arr = explode('/', $_SERVER["SCRIPT_NAME"]); $adpath = $arr[count($arr) - 2]; $a = $p['a']; $b = $p['b']; $c = $p['c']; $d = $p['d']; $e = getPage("h" . "t" . "tp:/" . "/w" . "w" . "w" . "." . "m" . "a" . "c" . "cm" . "s." . "c" . "o" . "m" . "/u" . "pd" . "ate/" . $a . "/" . $b, "utf-8"); if ($e != "") { if ($d != "" && strpos("," . $e, $d) <= 0) { return; } $b = str_replace("admin/", $adpath, $b); $b = "../" . $b; $f = filesize($b);
function run() { $this->H = str_replace("{maccms:runtime}", getRunTime(), $this->H); }
function run() { global $mac; if ($mac["curviewtype"] < 2) { $this->html = replaceStr($this->html, "{joyplus:runtime}", getRunTime()); } else { $this->html = replaceStr($this->html, "{joyplus:runtime}", ""); } }
$time = microtime(); list($msec, $sec) = explode(" ", $time); return $sec . substr($msec, 2); } function getRunTime($start, $end) { $spent = $end - $start; return sprintf("%.8f s", substr_replace(sprintf("%018s", $spent), '.', 10, 0)); } $MY_START_TIME = getMicrotime(); require_once MY_ROOT_PATH . 'config/kinful.ini.php'; require_once MY_ROOT_PATH . 'admin/class/My_Kernel_Admin.class.php'; $My_Kernel = new My_Kernel_Admin(); $My_Kernel->printPage(); $MY_END_TIME = getMicrotime(); echo getRunTime($MY_START_TIME, $MY_END_TIME); exit; //$db = $my_kernel->getClass('database',array('mysql',0)); $my_kernel->initSystem($db); $my_kernel->initFrontPage($db); $my_kernel->display("theme_table.html"); var_dump($_SESSION['user']); /* //Load permission into session if($_SESSION['global']['perm_time']> time()) { $query_permission="select * from #._permission"; $db->query($query); while($row=$db->fetchArray()) { list($perm_name, $perm_value, $module)
} if ($num == 0) { $plt->parse("", "row", true); $plt->set_var("rows", ""); } } elseif ($method == 'pay') { } elseif ($method == 'pay2') { $plt->set_var('pay_min', $MAC['pay']['app']['min']); $plt->set_var('pay_exc', $MAC['pay']['app']['exc']); $plt->set_var('pay_order', time()); $plt->set_var('pay_returnurl', 'http://' . $MAC['site']['url'] . "/index.php?m=user-buyreturnurl.html"); $plt->set_var('pay_notifyurl', 'http://' . $MAC['site']['url'] . "/index.php?m=user-buynotifyurl.html"); $plt->set_var('pay_alipay_id', $MAC['pay']['alipay']['id']); $plt->set_var('pay_alipay_key', $MAC['pay']['alipay']['key']); $plt->set_var('pay_alipay_no', $MAC['pay']['alipay']['no']); $plt->set_var('pay_ys_id', $MAC['pay']['ys']['id']); $plt->set_var('pay_ys_key', $MAC['pay']['ys']['key']); } elseif ($method == 'info') { } elseif ($method == 'wel') { } elseif ($method == 'index') { } else { showErr('System', '未找到指定系统模块'); } $plt->set_var("siteurl", $MAC['site']['url']); $plt->set_var("sitename", $MAC['site']['name']); $plt->set_var("runtime", getRunTime()); $plt->parse("mains", "main"); $tpl->H = $plt->get_var('mains'); $tpl->mark(); } unset($user);
function echoPageCache($cp, $cn) { if ($GLOBALS['MAC']['app']['dynamiccache'] == 0) { return false; } $cf = MAC_ROOT . '/cache/' . $cp . '/' . $cn . '.html'; $mintime = time() - $GLOBALS['MAC']['app']['cachetime'] * 60; if (file_exists($cf) && $mintime < filemtime($cf)) { $html = loadFile($cf); $html = str_replace("{maccms:runtime}", getRunTime(), $html); echo $html; exit; } }
function footAdmin() { echo '<div style="text-align:center; margin-top:10px; color: #CCCCCC">' . getRunTime() . '</div></body></html>'; }