Example #1
0
$action = $_GET['action'];
switch ($action) {
    case 'saveform':
        saveform();
        break;
    case 'addform':
        addform($action);
        break;
    case 'modify':
        addform($action);
        break;
    case 'update_qp':
        update_qp(intval($_GET['site_id']));
        break;
    case 'update_all_qp':
        update_all_qp();
        break;
    case 'links_to_sites':
        links_to_sites();
        break;
    case 'options':
        options(intval($_GET['site_id']));
        break;
    case 'dell_links':
        dell_links(HtmlReplace($_GET['url']));
        break;
    case 'update_all_site_id':
        update_all_site_id();
        break;
    case 'del':
        $site_id = intval($_GET['site_id']);
Example #2
0
        break;
    case "update_all_qp":
        echo "正在处理中...<br>";
        print str_repeat(" ", 4096);
        ob_flush();
        flush();
        //sleep(1);
        update_all_qp($_GET["url"]);
        break;
    case "update_not_qp":
        echo "正在处理中...<br>";
        print str_repeat(" ", 4096);
        ob_flush();
        flush();
        //sleep(1);
        update_all_qp($_GET["url"], 0);
        break;
}
?>
</body>
</html>
<?php 
function auto_update()
{
    echo "<b>全部--内容更新中...</b>起始时间:";
    $oldtime1 = time();
    echo date("Y年m月d日 H:i:s", $oldtime1);
    echo "<br>";
    print str_repeat(" ", 4096);
    ob_flush();
    flush();