Example #1
0
     searchCategory();
     break;
 case 'module':
     $PMS = PMCLibrary::getPMSInstance();
     $loadModule = isset($_GET['load']) ? $_GET['load'] : '';
     if ($PMS->onlyLoad($loadModule)) {
         $PMS->moduleInstance[$loadModule]->ModulePage();
     } else {
         echo '404 Not Found';
     }
     break;
 case 'moduleloaded':
     listModules();
     break;
 case 'usrdel':
     usrdel();
 case 'remake':
     updatelog();
     header('HTTP/1.1 302 Moved Temporarily');
     header('Location: ' . fullURL() . PHP_SELF2 . '?' . time());
     break;
 default:
     header('Content-Type: text/html; charset=utf-8');
     $res = isset($_GET['res']) ? $_GET['res'] : 0;
     // 欲回應編號
     if ($res) {
         // 回應模式輸出
         $page = isset($_GET['page_num']) ? $_GET['page_num'] : 'RE_PAGE_MAX';
         if (!($page == 'all' || $page == 'RE_PAGE_MAX')) {
             $page = intval($_GET['page_num']);
         }
Example #2
0
    $del = new DeletePost();
    $del->userDel($no, $pwd, $onlyimgdel);
}
/*-----------Main-------------*/
switch ($mode) {
    case 'regist':
        require_once CORE_DIR . "/regist/regist.php";
        // $name, $email, $sub, $com, $url, $pwd, $resto
        break;
    case 'report':
        require_once CORE_DIR . "/admin/report.php";
        $report = new Report();
        $report->reportProcess();
        break;
    case 'catalog':
        require_once CORE_DIR . "/catalog/catalog.php";
        $catalog = new Catalog();
        echo $catalog->formatPage();
        break;
    case 'usrdel':
        usrdel($no, $pwd, $onlyimgdel);
    default:
        if ($res) {
            require_once CORE_DIR . "/general/resredir.php";
            echo "<META HTTP-EQUIV='refresh' content='10;URL=" . PHP_SELF2_ABS . "'>";
        } else {
            echo "Updating index...\n";
            $my_log->update();
            echo "<META HTTP-EQUIV='refresh' content='0;URL=" . PHP_SELF2_ABS . "'>";
        }
}
Example #3
0
foreach ($iniv as $iniva) {
    if (!isset(${$iniva})) {
        ${$iniva} = "";
    }
}
switch ($mode) {
    case 'regist':
        regist($name, $email, $sub, $com, '', $pwd, $upfile, $upfile_name, $resto);
        break;
    case 'admin':
        valid($pass);
        if ($admin == "del") {
            admindel($pass);
        }
        if ($admin == "post") {
            echo "</form>";
            form($post, $res, 1);
            echo $post;
            die("</body></html>");
        }
        break;
    case 'usrdel':
        usrdel($no, $pwd);
    default:
        if ($res) {
            updatelog($res);
        } else {
            updatelog();
            echo "<META HTTP-EQUIV=\"refresh\" content=\"0;URL=" . PHP_SELF2 . "\">";
        }
}