cache.func.php
找复制内容到剪贴板
代码:
define('DISCUZ_KERNEL_RELEASE', '20070324');替换为成复制内容到剪贴板
代码:
define('DISCUZ_KERNEL_RELEASE', '20070724');找复制内容到剪贴板
代码:
function arrayeval($array, $level = 0) {下面添加复制内容到剪贴板
代码:
if(is_array($array) && function_exists('var_export')) {
return var_export($array, true);
}找复制内容到剪贴板
代码:
writetocache($script, $cachenames);替换为成复制内容到剪贴板
代码:
$cachedata = '';
if($cachename && !is_array($cachename) && $script <> $cachename) {
$_DCACHE = array();
@include(DISCUZ_ROOT.'./forumdata/cache/cache_'.$script.'.php');
if($_DCACHE && isset($_DCACHE[$cachename])) {
foreach ($_DCACHE as $key => $val) {
$cachedata .= ($key == $cachename) ? getcachearray($cachename, $script) : getcachevars(array("_DCACHE['$key']" => $val));
}
}
}
writetocache($script, $cachenames, $cachedata);找复制内容到剪贴板
代码:
$query = $db->query("SELECT * FROM {$tablepre}stylevars");替换为成复制内容到剪贴板
代码:
$defaultstyleid = $_DCACHE['settings']['styleid'] ? $_DCACHE['settings']['styleid'] : $GLOBALS['styleid'];
$query = $db->query("SELECT sv.* FROM {$tablepre}stylevars sv LEFT JOIN {$tablepre}styles s ON s.styleid = sv.styleid AND (s.available=1 OR s.styleid='$defaultstyleid')");找复制内容到剪贴板
代码:
$query = $db->query("SELECT s.*, t.directory AS tpldir FROM {$tablepre}styles s LEFT JOIN {$tablepre}templates t ON s.templateid=t.templateid");替换为成复制内容到剪贴板
代码:
$query = $db->query("SELECT s.*, t.directory AS tpldir FROM {$tablepre}styles s LEFT JOIN {$tablepre}templates t ON s.templateid=t.templateid WHERE s.available=1 OR s.styleid='$defaultstyleid'");找复制内容到剪贴板
代码:
} elseif($setting['variable'] == 'attachdir') {下面添加复制内容到剪贴板
代码:
$setting['value'] = preg_replace("/\.asp|\\0/i", '0', $setting['value']);找复制内容到剪贴板
代码:
if(!isset($data['supe']['attachurl']) && isset($supe['tablepre'])) {替换为复制内容到剪贴板
代码:
if((!isset($data['supe']['attachurl']) || !isset($data['supe']['tpldir'])) && isset($supe['tablepre'])) {找复制内容到剪贴板
代码:
$query = $supe['db']->query("SELECT * FROM {$supe[tablepre]}settings WHERE variable IN ('attachmentdir', 'attachmenturl')");替换为复制内容到剪贴板
代码:
$query = $supe['db']->query("SELECT * FROM {$supe[tablepre]}settings WHERE variable IN ('attachmentdir', 'attachmenturl', 'template')");找复制内容到剪贴板
代码:
$data['supe']['attachurl'] = $supe_settings['attachmenturl'];下面添加复制内容到剪贴板
代码:
$data['supe']['tpldir'] = $supe_settings['template'];找复制内容到剪贴板
代码:
if(!$data['supe']['dbmode']) {
unset($data['supe']['dbhost'], $data['supe']['dbuser'], $data['supe']['dbpw'], $data['supe']['dbname']);
}下面添加复制内容到剪贴板
代码:
if($data['supe']['siteurl']{strlen($data['supe']['siteurl'])-1} != '/') {
$data['supe']['siteurl'] .= '/';
}找复制内容到剪贴板
代码:
$data['redirectadvs'] = $globaladvs['redirect'] ? $globaladvs['redirect'] : array();下面添加复制内容到剪贴板
代码:
if($data['qihoo_relatedthreads'] = unserialize($data['qihoo_relatedthreads'])) {
$data['qihoo_relate_bbsnum'] = intval($data['qihoo_relatedthreads']['bbsnum']);
if($data['qihoo_relatedthreads']['webnum']) {
$data['qihoo_relate_webnum'] = intval($data['qihoo_relatedthreads']['webnum']);
$data['qihoo_relate_banurl'] = $data['qihoo_relatedthreads']['banurl'] ? '/('.str_replace("\r\n", '|', $data['qihoo_relatedthreads']['banurl']).')/i' : '';
if(is_array($data['qihoo_relatedthreads']['type'])) {
$data['qihoo_relate_type'] = implode('|', $data['qihoo_relatedthreads']['type']);
}
}
$data['qihoo_relate_position'] = intval($data['qihoo_relatedthreads']['position']);
$data['qihoo_relate_order'] = intval($data['qihoo_relatedthreads']['order']);
$data['qihoo_relate_validity'] = intval($data['qihoo_relatedthreads']['validity']);
}
unset($data['qihoo_relatedthreads']);找复制内容到剪贴板
代码:
$replace = '\''.str_replace('{RANDOM}', '_\'.random(6).\'', str_replace('{MD5}', '_\'.md5("\\1").\'', $bbcode['replacement'])).'\'';替换为复制内容到剪贴板
代码:
$replace = '\''.str_replace('{RANDOM}', '_\'.random(6).\'', str_replace('{MD5}', '_\'.md5(\'\\1\').\'', $bbcode['replacement'])).'\'';common.inc.php
找复制内容到剪贴板
代码:
define('SYS_DEBUG', FALSE);删除掉!
找复制内容到剪贴板
代码:
require_once DISCUZ_ROOT.'./include/global.func.php';上面添加复制内容到剪贴板
代码:
if (isset($_REQUEST['GLOBALS']) OR isset($_FILES['GLOBALS'])) {
exit('Request tainting attempted.');
}找复制内容到剪贴板
代码:
isset($_REQUEST['GLOBALS']) && exit('Access Error');删除掉!
找复制内容到剪贴板
代码:
$charset = $dbcharset = $forumfounders = $metakeywords = $extrahead = '';
$plugins = $hooks = $admincp = array();替换为复制内容到剪贴板
代码:
$charset = $dbcharset = $forumfounders = $metakeywords = $extrahead = $seodescription = '';
$plugins = $hooks = $admincp = $jsmenu = $forum = $thread = $language = $actioncode = $modactioncode = $lang = array();找复制内容到剪贴板
代码:
unset($prelength, $_request, $_key, $_value);替换为复制内容到剪贴板
代码:
unset($prelength, $_request, $_key, $_value, $_request, $protected);
$inajax = !empty($inajax);找复制内容到剪贴板
代码:
$boardurl = 'http://'.$_SERVER['HTTP_HOST'].preg_replace("/\/+(api|archiver|wap)?\/*$/i", '', substr($PHP_SELF, 0, strrpos($PHP_SELF, '/'))).'/';替换为复制内容到剪贴板
代码:
$boardurl = htmlspecialchars('http://'.$_SERVER['HTTP_HOST'].preg_replace("/\/+(api|archiver|wap)?\/*$/i", '', substr($PHP_SELF, 0, strrpos($PHP_SELF, '/'))).'/');找复制内容到剪贴板
代码:
$dbhost = $dbuser = $dbpw = $dbname = $pconnect = NULL;替换为复制内容到剪贴板
代码:
$dbuser = $dbpw = $dbname = $pconnect = NULL;找复制内容到剪贴板
代码:
$statstatus && require_once DISCUZ_ROOT.'./include/counter.inc.php';替换为复制内容到剪贴板
代码:
$statstatus && !$inajax && require_once DISCUZ_ROOT.'./include/counter.inc.php';找复制内容到剪贴板
代码:
$extra = isset($extra) && @preg_match("/^[&=;a-z0-9]+$/i", $extra) ? $extra : '';下面添加复制内容到剪贴板
代码:
$tpp = intval(empty($_DSESSION['tpp']) ? $topicperpage : $_DSESSION['tpp']);
$ppp = intval(empty($_DSESSION['ppp']) ? $postperpage : $_DSESSION['ppp']);找复制内容到剪贴板
代码:
if(!in_array($adminid, array(1, 2, 3))) {上面添加复制内容到剪贴板
代码:
$tpp = intval(empty($_DSESSION['tpp']) ? $topicperpage : $_DSESSION['tpp']);
$ppp = intval(empty($_DSESSION['ppp']) ? $postperpage : $_DSESSION['ppp']);cron.func.php
找复制内容到剪贴板
代码:
$query = $db->query("SELECT * FROM {$tablepre}crons WHERE ".($cronid ? "cronid='$cronid'" : "available>'0' AND nextrun<='$timestamp'")." LIMIT 1");替换为复制内容到剪贴板
代码:
$query = $db->query("SELECT * FROM {$tablepre}crons WHERE ".($cronid ? "cronid='$cronid'" : "available>'0' AND nextrun<='$timestamp'")." ORDER BY nextrun LIMIT 1");找复制内容到剪贴板
代码:
$lockfile = DISCUZ_ROOT.'./forumdata/runcron_'.$cron['cronid'].'.lock';下面添加复制内容到剪贴板
代码:
$cron['filename'] = str_replace(array('..', '/', '\\'), '', $cron['filename']);
$cronfile = DISCUZ_ROOT.'./include/crons/'.$cron['filename'];找复制内容到剪贴板
代码:
@set_time_limit(1000);
@ignore_user_abort(TRUE);下面添加复制内容到剪贴板
代码:
$cron['filename'] = str_replace(array('..', '/', '\\'), array('', '', ''), $cron['filename']);找复制内容到剪贴板
代码:
if(!include_once DISCUZ_ROOT.($cronfile = "./include/crons/$cron[filename]")) {
errorlog('CRON', $cron['name']." : Cron script($cronfile) not found or syntax error", 0);替换为成复制内容到剪贴板
代码:
if(!@include $cronfile) {
errorlog('CRON', $cron['name'].' : Cron script('.$cron['filename'].') not found or syntax error', 0);找复制内容到剪贴板
代码:
require_once DISCUZ_ROOT.'./include/cache.func.php';
$query = $db->query("SELECT nextrun FROM {$tablepre}crons WHERE available>'0' ORDER BY nextrun LIMIT 1");
$_DCACHE['settings']['cronnextrun'] = $db->result($query, 0);
updatesettings();
@unlink($lockfile);
}
}替换为成复制内容到剪贴板
代码:
@unlink($lockfile);
}
require_once DISCUZ_ROOT.'./include/cache.func.php';
$query = $db->query("SELECT nextrun FROM {$tablepre}crons WHERE available>'0' ORDER BY nextrun LIMIT 1");
$_DCACHE['settings']['cronnextrun'] = $db->result($query, 0);
updatesettings();
}找复制内容到剪贴板
代码:
if(empty($cron)) return false;替换为成复制内容到剪贴板
代码:
if(empty($cron)) return FALSE;找复制内容到剪贴板
代码:
$db->query("UPDATE {$tablepre}crons SET lastrun='$timestamp', nextrun='$nextrun' WHERE cronid='$cron[cronid]'");下面添加复制内容到剪贴板
代码:
return TRUE;discuzcode.func.php
找复制内容到剪贴板
代码:
global $language, $attachrefcheck, $thumbstatus, $extcredits, $creditstrans, $ftp;替换为复制内容到剪贴板
代码:
global $language, $attachrefcheck, $thumbstatus, $extcredits, $creditstrans, $ftp, $exthtml;找复制内容到剪贴板
代码:
$replacement .= '<div style="display:none" id="attach_'.$attach['aid'].'" onmouseover="showMenu(this.id, 0, 1)"><img src="'.IMGDIR.'/attachimg.gif" border="0"></div><div title="menu" class="t_attach" id="attach_'.$attach['aid'].'_menu" style="display: none">'.替换为复制内容到剪贴板
代码:
$replacement .= '<span style="display:none" id="attach_'.$attach['aid'].'" onmouseover="showMenu(this.id, 0, 1)"><img src="'.IMGDIR.'/attachimg.gif" border="0"></span>';
$exthtml .= '<div title="menu" class="t_attach" id="attach_'.$attach['aid'].'_menu" style="display: none">'.找复制内容到剪贴板
代码:
$replacement .= $attach['attachicon'].' <span style="white-space:nowrap" id="attach_'.$attach['aid'].'" onmouseover="showMenu(this.id)"><a href="attachment.php?aid='.$attach['aid'].'" target="_blank" class="bold">'.$attach['filename'].'</a> ('.$attach['attachsize'].')</span>'.
'<div title="menu" class="t_attach" id="attach_'.$attach['aid'].'_menu" style="display: none">'.$attach['attachicon'].' <a href="attachment.php?aid='.$attach['aid'].'" target="_blank" class="bold">'.$attach['filename'].'</a> ('.$attach['attachsize'].')<br>'.替换为复制内容到剪贴板
代码:
$replacement .= $attach['attachicon'].' <span style="white-space:nowrap" id="attach_'.$attach['aid'].'" onmouseover="showMenu(this.id)"><a href="attachment.php?aid='.$attach['aid'].'" target="_blank" class="bold">'.$attach['filename'].'</a> ('.$attach['attachsize'].')</span>';
$exthtml .= '<div title="menu" class="t_attach" id="attach_'.$attach['aid'].'_menu" style="display: none">'.$attach['attachicon'].' <a href="attachment.php?aid='.$attach['aid'].'" target="_blank" class="bold">'.$attach['filename'].'</a> ('.$attach['attachsize'].')<br>'.找复制内容到剪贴板
代码:
$replacement .= ($attach['price'] ? $language['price'].': '.$extcredits[$creditstrans]['title'].' '.$attach['price'].' '.$extcredits[$creditstrans]['unit'].' <a href="misc.php?action=viewattachpayments&aid='.$aid.'" target="_blank">['.$language['pay_view'].']</a>'.替换为复制内容到剪贴板
代码:
$exthtml .= ($attach['price'] ? $language['price'].': '.$extcredits[$creditstrans]['title'].' '.$attach['price'].' '.$extcredits[$creditstrans]['unit'].' <a href="misc.php?action=viewattachpayments&aid='.$aid.'" target="_blank">['.$language['pay_view'].']</a>'.找复制内容到剪贴板
代码:
function parsetable($width, $bgcolor, $message) {下面添加复制内容到剪贴板
代码:
if(!in_array(substr($message, 0, 4), array('[tr]', '<tr>'))) {
return $message;
}找复制内容到剪贴板
代码:
"/\[url\]\s*(www.|https?:\/\/|ftp:\/\/|gopher:\/\/|news:\/\/|telnet:\/\/|rtsp:\/\/|mms:\/\/|callto:\/\/|bctp:\/\/|ed2k:\/\/){1}([^\[\"']+?)\s*\[\/url\]/ie",替换为复制内容到剪贴板
代码:
"/\[url\]\s*(www.|https?:\/\/|ftp:\/\/|gopher:\/\/|news:\/\/|telnet:\/\/|rtsp:\/\/|mms:\/\/|callto:\/\/|bctp:\/\/|ed2k:\/\/|thunder:\/\/|synacast:\/\/){1}([^\[\"']+?)\s*\[\/url\]/ie",找复制内容到剪贴板
代码:
"/\[color=([^\[\<]+?)\]/i",替换为复制内容到剪贴板
代码:
"/\[color=([#\w]+?)\]/i",找复制内容到剪贴板
代码:
"/\[align=([^\[\<]+?)\]/i",
"/\[float=([^\[\<]+?)\]/i"替换为复制内容到剪贴板
代码:
"/\[align=(left|center|right)\]/i",
"/\[float=(left|right)\]/i"找复制内容到剪贴板
代码:
"<font face=\"\\1\">",替换为复制内容到剪贴板
代码:
"<font face=\"\\1 \">",找复制内容到剪贴板
代码:
"bbcodeurl('\\1', '<img src=\"%s\" border=\"0\" onload=\"if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt=\'Click here to open new window\\nCTRL+Mouse wheel to zoom in/out\';}\" onmouseover=\"if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor=\'hand\'; this.alt=\'Click here to open new window\\nCTRL+Mouse wheel to zoom in/out\';}\" onclick=\"if(!this.resized) {return true;} else {window.open(\'%s\');}\" onmousewheel=\"return imgzoom(this);\" alt=\"\" />')",替换为复制内容到剪贴板
代码:
"bbcodeurl('\\1', '<img src=\"%s\" border=\"0\" onload=\"if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt=\'Click here to open new window\\nCTRL+Mouse wheel to zoom in/out\';}\" onmouseover=\"if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor=\'hand\'; this.alt=\'Click here to open new window\\nCTRL+Mouse wheel to zoom in/out\';}\" onclick=\"if(!this.resized) {return true;} else {window.open(this.src);}\" onmousewheel=\"return imgzoom(this);\" alt=\"\" />')",找复制内容到剪贴板
代码:
$randomstr .= chr(mt_rand(0, 59)).chr(mt_rand(63, 126));替换为复制内容到剪贴板
代码:
$randomstr .= chr(mt_rand(32, 59)).chr(mt_rand(63, 126));editpost.inc.php
找复制内容到剪贴板
代码:
if((!$forum['ismoderator'] || !$alloweditpost || (in_array($orig['adminid'], array(1, 2, 3)) && $adminid > $orig['adminid'])) && !($forum['alloweditpost'] && $isorigauthor)) {替换为复制内容到剪贴板
代码:
if(empty($orig)) {
showmessage('undefined_action');
} elseif((!$forum['ismoderator'] || !$alloweditpost || (in_array($orig['adminid'], array(1, 2, 3)) && $adminid > $orig['adminid'])) && !($forum['alloweditpost'] && $isorigauthor)) {找复制内容到剪贴板
代码:
} elseif($thread['special'] == 4 && ($allowpostactivity || $thread['authorid'] == $discuz_uid)) {替换为复制内容到剪贴板
代码:
} elseif($thread['special'] == 4) {找复制内容到剪贴板
代码:
list($attach['width']) = @getimagesize($attach['url'].'/'.$attach['attachment']);
$attach['width'] = !$attach['width'] || $attach['width'] > $thumbwidth ? $thumbwidth : $attach['width'];替换为复制内容到剪贴板
代码:
list($attach['width'], $attach['height']) = @getimagesize($attach['url'].'/'.$attach['attachment']);
$x_ratio = $attach['width'] ? $thumbwidth / $attach['width'] : 0;
$y_ratio = $attach['height'] ? $thumbheight / $attach['height'] : 0;
if(($x_ratio * $attach['height']) < $thumbheight) {
$attach['width'] = $thumbwidth;
} else {
$attach['width'] = ceil($y_ratio * $attach['width']);
}找复制内容到剪贴板
代码:
$readperm = $allowsetreadperm ? $readperm : ($isorigauthor ? 0 : 'readperm');替换为复制内容到剪贴板
代码:
$readperm = $allowsetreadperm ? intval($readperm) : ($isorigauthor ? 0 : 'readperm');找复制内容到剪贴板
代码:
if(($alloweditpoll || $thread['authorid'] == $discuz_uid) && $thread['special'] == 1 && !empty($polls)) {替换为复制内容到剪贴板
代码:
if($thread['special'] == 1 && ($alloweditpoll || $isorigauthor) && !empty($polls)) {找复制内容到剪贴板
代码:
$pollarray['maxchoices'] = $maxchoices;
}
}下面添加复制内容到剪贴板
代码:
$expiration = intval($expiration);找复制内容到剪贴板
代码:
if(!$forum['ismoderator'] && $thread['authorid'] == $discuz_uid) {替换为复制内容到剪贴板
代码:
if(!$forum['ismoderator']) {找复制内容到剪贴板
代码:
$subject = $thread['subject'];替换为复制内容到剪贴板
代码:
$subject = addslashes($thread['subject']);找复制内容到剪贴板
代码:
} elseif($thread['special'] == 4 && ($allowpostactivity || $thread['authorid'] == $discuz_uid)) {替换为复制内容到剪贴板
代码:
} elseif($thread['special'] == 4 && $allowpostactivity) {找复制内容到剪贴板
代码:
} elseif(strtotime($starttimefrom[$activitytime]) === -1 || strtotime($starttimefrom[$activitytime]) === FALSE) {替换为复制内容到剪贴板
代码:
} elseif(strtotime($starttimefrom[$activitytime]) === -1 || @strtotime($starttimefrom[$activitytime]) === FALSE) {找复制内容到剪贴板
代码:
} elseif(strtotime($starttimefrom[$activitytime]) < $timestamp) {替换为复制内容到剪贴板
代码:
} elseif(@strtotime($starttimefrom[$activitytime]) < $timestamp) {找复制内容到剪贴板
代码:
} elseif($activitytime && ((strtotime($starttimefrom) > strtotime($starttimeto) || !$starttimeto))) {替换为复制内容到剪贴板
代码:
} elseif($activitytime && ((@strtotime($starttimefrom) > @strtotime($starttimeto) || !$starttimeto))) {找复制内容到剪贴板
代码:
} elseif(trim($activityexpiration) && (strtotime($activityexpiration) === -1 || strtotime($activityexpiration) === FALSE)) {替换为复制内容到剪贴板
代码:
} elseif(trim($activityexpiration) && (@strtotime($activityexpiration) === -1 || @strtotime($activityexpiration) === FALSE)) {找复制内容到剪贴板
代码:
$activity['starttimefrom'] = strtotime($starttimefrom[$activitytime]);
$activity['starttimeto'] = $activitytime ? strtotime($starttimeto) : 0;替换为复制内容到剪贴板
代码:
$activity['starttimefrom'] = @strtotime($starttimefrom[$activitytime]);
$activity['starttimeto'] = $activitytime ? @strtotime($starttimeto) : 0;找复制内容到剪贴板
代码:
$activity['expiration'] = strtotime($activityexpiration);替换为复制内容到剪贴板
代码:
$activity['expiration'] = @strtotime($activityexpiration);找复制内容到剪贴板
代码:
while($attach = $db->fetch_array($query)) {
$attachpermadd = $allowsetattachperm && $attach['readperm'] != $attachpermnew[$attach['aid']] ? ", readperm='{$attachpermnew[$attach['aid']]}'" : '' ;
$attachpricenew[$attach['aid']] = intval($attachpricenew[$attach['aid']]);
$attachpriceadd = $maxprice && $attach['price'] != $attachpricenew[$attach['aid']] && $attachpricenew[$attach['aid']] <= $maxprice ? ", price='{$attachpricenew[$attach['aid']]}'" : '' ;
$attachdescnew[$attach['aid']] = cutstr(dhtmlspecialchars($attachdescnew[$attach['aid']]), 100);替换为复制内容到剪贴板
代码:
$attachdescnew = is_array($attachdescnew) ? $attachdescnew : array();
$attachpermnew = is_array($attachpermnew) ? $attachpermnew : array();
$attachpricenew = is_array($attachpricenew) ? $attachpricenew : array();
while($attach = $db->fetch_array($query)) {
$attachpermnew[$attach['aid']] = intval($attachpermnew[$attach['aid']]);
$attachpermadd = $allowsetattachperm && $attach['readperm'] != $attachpermnew[$attach['aid']] ? ", readperm='{$attachpermnew[$attach['aid']]}'" : '' ;
$attachpricenew[$attach['aid']] = intval($attachpricenew[$attach['aid']]);
$attachpriceadd = $maxprice && $attach['price'] != $attachpricenew[$attach['aid']] && $attachpricenew[$attach['aid']] <= $maxprice ? ", price='{$attachpricenew[$attach['aid']]}'" : '' ;
$attachdescnew[$attach['aid']] = cutstr(dhtmlspecialchars($attachdescnew[$attach['aid']]), 95);找复制内容到剪贴板
代码: