/*
[DISCUZ!] include/db_mysql_error.inc.php - error report module for MySQL class
This is NOT a freeware, use is subject to license terms
Version: 4.0.0
Web: http://www.comsenz.com
Copyright: 2001-2005 Comsenz Technology Ltd.
Last Modified: 2005-4-7 11:29
*/
if(!defined('IN_DISCUZ')) {
exit('Access Denied');
}
$timestamp = time();
$errmsg = '';
$dberror = $this->error();
$dberrno = $this->errno();
if($dberrno == 1114) {
?>
Max Onlines Reached
Forum onlines reached the upper limit
Sorry, the number of online visitors has reached the upper limit.
Please wait for someone else going offline or visit us in idle hours.
|
|
function_exists('dexit') ? dexit() : exit();
} else {
if($message) {
$errmsg = "Discuz! info: $message\n\n";
}
if(isset($GLOBALS['_DSESSION']['discuz_user'])) {
$errmsg .= "User: ".htmlspecialchars($GLOBALS['_DSESSION']['discuz_user'])."\n";
}
$errmsg .= "Time: ".gmdate("Y-n-j g:ia", $timestamp + ($GLOBALS['timeoffset'] * 3600))."\n";
$errmsg .= "Script: ".$GLOBALS['PHP_SELF']."\n\n";
if($sql) {
$errmsg .= "SQL: ".htmlspecialchars($sql)."\n";
}
$errmsg .= "Error: $dberror\n";
$errmsg .= "Errno.: $dberrno";
echo "\n";
echo "";
echo nl2br($errmsg);
if($GLOBALS['adminemail']) {
$errlog = array();
if(@$fp = fopen(DISCUZ_ROOT.'./forumdata/dberror.log', 'r')) {
while((!feof($fp)) && count($errlog) < 20) {
$log = explode("\t", fgets($fp, 50));
if($timestamp - $log[0] < 86400) {
$errlog[$log[0]] = $log[1];
}
}
fclose($fp);
}
if(!in_array($dberrno, $errlog)) {
$errlog[$timestamp] = $dberrno;
@$fp = fopen(DISCUZ_ROOT.'./forumdata/dberror.log', 'w');
@flock($fp, 2);
foreach(array_unique($errlog) as $dateline => $errno) {
@fwrite($fp, "$dateline\t$errno");
}
@fclose($fp);
if(function_exists('errorlog')) {
errorlog('MySQL', basename($GLOBALS['_SERVER']['PHP_SELF'])." : $dberror - ".cutstr($sql, 120), 0);
}
echo "
An error report has been dispatched to our administrator.";
@sendmail($GLOBALS['adminemail'], '[Discuz!] MySQL Error Report',
"There seems to have been a problem with the database of your Discuz! Board\n\n".
strip_tags($errmsg)."\n\n".
"Please check-up your MySQL server and forum scripts, similar errors will not be reported again in recent 24 hours\n".
"If you have troubles in solving this problem, please visit Discuz! Community http://www.Discuz.net.");
} else {
echo '
Similar error report has beed dispatched to administrator before.';
}
}
echo '
';
function_exists('dexit') ? dexit() : exit();
}
?> if(!defined('IN_DISCUZ')) exit('Access Denied'); include template('header'); ?>
The time now is 08:49 PM, your lastvisit: 3-12-2023 08:49 PM
Credits: 0
if(is_array($extcredits)) { foreach($extcredits as $id => $credit) { ?>
: Array
} } ?>
/ Status:
if($validdays) { ?>
Guest(0)
} else { ?>
Guest
} if(!empty($invisible)) { ?>
/ Invisible Mode
} ?>
|
New Posts |
if($discuz_uid) { ?>
My Topics |
if($allowuseblog) { ?>
Blog |
} } ?>
Digest |
Mark Read
| Welcome ÃϼÑ
Total 0 threads / 0 posts / !index_today! 0 posts / 4300 members
|
if(empty($gid)) { ?>
if(empty($announcements)) { ?>
There is no announcement up to now.
} else { ?>
} ?>
|
} if(!empty($newpmexists)) { include template('pmprompt'); } if(!empty($advlist['text'])) { ?>
} if(is_array($forumlist)) { foreach($forumlist as $key => $forum) { if($forum['type'] == 'group' && $forumlist[($key + 1)]['type'] == 'forum') { if($key) { ?>
} ?>
|
Forum |
Threads |
Posts |
Today |
Last Post |
Moderators |
} elseif($forum['permission']) { ?>
|
if(isset($forum['subforums'])) { ?>
Sub Forums: } ?>
|
|
|
|
if($forum['permission'] == 1) { ?>
Private |
} else { if(is_array($forum['lastpost'])) { ?>
By
if($forum['lastpost']['author']) { ?>
} else { ?>
Guest
} ?>
|
 |
|
} else { ?>
Never |
} } ?>
|
} } } if(empty($gid) && ($_DCACHE['forumlinks'] || $whosonlinestatus)) { if(empty($forumlist)) { ?>
} else { ?>
} ?>
} if(empty($gid)) { if($_DCACHE['forumlinks']) { ?>
if(is_array($_DCACHE['forumlinks'])) { foreach($_DCACHE['forumlinks'] as $flink) { if($flink['type'] == 1) { ?>
 |
|
![]() |
} elseif($flink['type'] == 2) { ?>
 |
|
} else { ?>
 |
|
} } } ?>
} if($whosonlinestatus) { if($detailstatus) { ?>
} else { ?>
} ?>
 |
Administrator Super Moderator Moderator Member |
if($detailstatus) { ?>
|
if($whosonline) { if(is_array($whosonline)) { foreach($whosonline as $key => $online) { if($key % 7 == 0) { ?>
|
} else { ?>
|
} ?>
} } } else { ?>
Currently Only Guests or Invisible Members Online
} } ?>
| |
} } ?>
New posts
No new posts |
include template('footer'); ?>