Esempio n. 1
0
         $power = 2;
     } else {
         $power = 0;
     }
 }
 if ($power == 0) {
     die("ÄãÎÞȨ²Ù×÷");
 }
 if ($step == 2) {
     if ($action == "delete") {
         do_work($id, $action);
         //¾²Ì¬Ò³´¦Àí
         make_article_html("list.php?fid={$rs['fid']}", 'del', $rs);
         refreshto("list.php?fid={$rs['fid']}", "ɾ³ý³É¹¦", 1);
     } elseif ($power == 2) {
         do_work($id, $action);
         //¾²Ì¬Ò³´¦Àí
         if ($action != "com" && $action != "uncom") {
             make_article_html("list.php?fid={$rs['fid']}", '', $rs);
         }
         refreshto("{$FROMURL}", "²Ù×÷³É¹¦", 1);
     }
 } else {
     $rs = $db->get_one("SELECT * FROM {$pre}article{$erp} WHERE aid='{$id}'");
     echo "<A HREF=\"{$webdb['www_url']}/member/post.php?job=postnew&fid={$fid}\">з¢±í</A><br><A HREF=\"{$webdb['www_url']}/member/index.php?main=post.php?job=manage&aid={$id}\">ÐÞ¸Ä</A><br><A HREF=\"{$webdb['www_url']}/do/job.php?job={$job}&act={$act}&step=2&action=delete&id={$id}\" onclick=\"return confirm('ÄãÈ·ÈÏҪɾ³ýÂð?');\">ɾ³ý</A><br>";
     if ($rs[levels] && $power == 2) {
         echo "(ÒÑÍƼö)<A HREF=\"{$webdb['www_url']}/do/job.php?job={$job}&act={$act}&step=2&action=uncom&levels=0&id={$id}\">È¡ÏûÍƼö</A><br>";
     } elseif ($power == 2) {
         echo "(δÍƼö)<A HREF=\"{$webdb['www_url']}/do/job.php?job={$job}&act={$act}&step=2&action=com&levels=1&id={$id}\">ÍƼö</A><br>";
     }
     if ($rs[yz] && $power == 2) {
    global $debris, $stations_counterpart, $stations_cache, $direction, $raw_stations;
    $station_no = (int) $debris[$i];
    $station_title = $debris[$i + 1];
    if (array_key_exists($station_title, $stations_cache)) {
        $stations_counterpart[$stations_cache[$station_title]] = $station_no;
    } else {
        $stations_cache[$station_title] = $station_no;
    }
    $direction[$j][] = $station_no;
    $raw_stations[] = $station_no;
}
$init_line = 0;
while (!ctype_digit(substr($debris[++$init_line], 0, 1)) || strlen($debris[$init_line]) > 5) {
}
$quota = 0;
for ($i = $init_line; $i < $len && $quota < $total[0]; $i += 8) {
    do_work($i, 0);
    ++$quota;
}
$quota = 0;
for ($i = $init_line + 4; $i < $len && $quota < $total[1]; $i += 8) {
    do_work($i, 1);
    ++$quota;
}
$json = ["type" => $line_type, "id" => $line_no, "stations" => $direction];
fwrite($out_main, json_encode($json, JSON_PRETTY_PRINT));
fclose($out_main);
fwrite($out_counterparts, json_encode($stations_counterpart, JSON_PRETTY_PRINT));
fclose($out_counterparts);
fwrite($out_stationdep, implode("\n", $raw_stations) . "\n");
fclose($out_stationdep);
Esempio n. 3
0
 }
 $url = $fromurl ? $fromurl : $FROMURL;
 if (!is_array($listdb) && $aid) {
     $listdb[$aid] = $aid;
 }
 //if($jobs=='delete'){
 //	make_more_article_html("$webdb[admin_url]/index.php?lfj=artic&job=listartic","del_0",$listdb);
 //}
 foreach ($listdb as $key => $value) {
     if ($webdb[NewsMakeHtml] == 1 && $jobs == 'delete') {
         //删除信息后,就读不到内容了
         $erp = get_id_table($value);
         $rs = $db->get_one("SELECT fid FROM {$pre}article{$erp} WHERE aid='{$value}'");
         $fid_str .= "&bfid_array[]={$rs['fid']}";
     }
     do_work($value, $jobs, 0);
     if ($webdb[NewsMakeHtml] == 1 && $jobs != 'delete') {
         //移动栏目后,要以移动后的为标准
         $erp = get_id_table($value);
         $rs = $db->get_one("SELECT fid FROM {$pre}article{$erp} WHERE aid='{$value}'");
         $fid_str .= "&bfid_array[]={$rs['fid']}";
     }
 }
 //if($jobs=='delete'){
 //	make_more_article_html("$webdb[admin_url]/index.php?lfj=artic&job=listartic","del_1",$listdb);
 //}else{
 //	make_more_article_html("$webdb[admin_url]/index.php?lfj=artic&job=listartic",$jobs,$listdb);
 //}
 if ($webdb[NewsMakeHtml] == 1) {
     jump("操作成功<div style='display:none;'><iframe src='{$webdb['www_url']}/do/job.php?job=article_html{$fid_str}' width=0 height=0></iframe></div>", $url, 3);
 }
Esempio n. 4
0
    $RELATIVE_PATH = '';
}
@chdir($FILE_BASE);
if (!is_file($FILE_BASE . '/sources/global.php')) {
    exit('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' . chr(10) . '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="EN" lang="EN"><head><title>Critical startup error</title></head><body><h1>ocPortal startup error</h1><p>The second most basic ocPortal startup file, sources/global.php, could not be located. This is almost always due to an incomplete upload of the ocPortal system, so please check all files are uploaded correctly.</p><p>Once all ocPortal files are in place, ocPortal must actually be installed by running the installer. You must be seeing this message either because your system has become corrupt since installation, or because you have uploaded some but not all files from our manual installer package: the quick installer is easier, so you might consider using that instead.</p><p>ocProducts maintains full documentation for all procedures and tools, especially those for installation. These may be found on the <a href="http://ocportal.com">ocPortal website</a>. If you are unable to easily solve this problem, we may be contacted from our website and can help resolve it for you.</p><hr /><p style="font-size: 0.8em">ocPortal is a website engine created by ocProducts.</p></body></html>');
}
require $FILE_BASE . '/sources/global.php';
set_time_limit(0);
@ini_set('ocproducts.xss_detect', '0');
@header('Content-type: text/plain');
disable_php_memory_limit();
if (function_exists('gc_enable')) {
    gc_enable();
}
$GLOBALS['NO_QUERY_LIMIT'] = true;
do_work();
function do_work()
{
    $num_wanted = 100000;
    require_code('config2');
    set_option('post_history_days', '0');
    // Needed for a little sanity in recent post retrieval
    set_value('disable_sunk', '1');
    // members (remember to test the username autocompleter, and birthdays)
    // authors (remember to check author autocompleter and popup author list)
    // lots of people getting notifications on a forum
    // lots of people getting notifications on a topic
    require_code('authors');
    require_code('ocf_members_action');
    require_code('notifications');
    for ($i = $GLOBALS['FORUM_DB']->query_value('f_members', 'COUNT(*)'); $i < $num_wanted; $i++) {
Esempio n. 5
0
         $levels = 1;
         $Type = 'com';
     }
 }
 //if($Type=='delete'){
 //	make_more_article_html("$FROMURL","del_0",$aidDB);
 //}
 $fid_str = '';
 foreach ($aidDB as $key => $value) {
     if ($webdb[NewsMakeHtml] == 1 && $Type == 'delete') {
         //删除信息后,就读不到内容了
         $erp = get_id_table($value);
         $rs = $db->get_one("SELECT fid FROM {$pre}article{$erp} WHERE aid='{$value}'");
         $fid_str .= "&bfid_array[]={$rs['fid']}";
     }
     do_work($value, $Type, 1);
     if ($webdb[NewsMakeHtml] == 1 && $Type != 'delete') {
         //移动栏目后,要以移动后的为标准
         $erp = get_id_table($value);
         $rs = $db->get_one("SELECT fid FROM {$pre}article{$erp} WHERE aid='{$value}'");
         $fid_str .= "&bfid_array[]={$rs['fid']}";
     }
 }
 //if($Type=='delete'){
 //	make_more_article_html("$FROMURL","del_1",$aidDB);
 //}else{
 //	make_more_article_html("$FROMURL",$Type,$aidDB);
 //}
 if ($webdb[NewsMakeHtml] == 1) {
     refreshto("{$FROMURL}", "操作成功<div style='display:none;'><iframe src='{$webdb['www_url']}/do/job.php?job=article_html{$fid_str}' width=0 height=0></iframe></div>", 3);
 }