2 if(!defined(
'IN_GAME')) {
17 <title>Max Onlines Reached</title>
19 <body bgcolor=
"#FFFFFF">
20 <table cellpadding=
"0" cellspacing=
"0" border=
"0" width=
"600" align=
"center" height=
"85%">
21 <tr align=
"center" valign=
"middle">
23 <table cellpadding=
"10" cellspacing=
"0" border=
"0" width=
"80%" align=
"center" style=
"font-family: Verdana, Tahoma; color: #666666; font-size: 9px">
25 <td valign=
"middle" align=
"center" bgcolor=
"#EBEBEB">
26 <br><b style=
"font-size: 10px">Forum onlines reached the upper limit</b>
27 <br><br><br>Sorry, the number of online visitors has reached the upper limit.
28 <br>Please wait
for someone
else going offline or visit us in idle hours.
40 function_exists(
'dexit') ? dexit() : exit();
45 $errmsg =
"<b>BRA info</b>: $message\n\n";
47 if(isset($GLOBALS[
'_DSESSION'][
'bra_user'])) {
48 $errmsg .=
"<b>User</b>: ".htmlspecialchars($GLOBALS[
'_DSESSION'][
'bra_user']).
"\n";
50 $errmsg .=
"<b>Time</b>: ".gmdate(
"Y-n-j g:ia",
$timestamp + ($GLOBALS[
'timeoffset'] * 3600)).
"\n";
51 $errmsg .=
"<b>Script</b>: ".$GLOBALS[
'PHP_SELF'].
"\n\n";
53 $errmsg .=
"<b>SQL</b>: ".htmlspecialchars($sql).
"\n";
55 $errmsg .=
"<b>Error</b>: $dberror\n";
56 $errmsg .=
"<b>Errno.</b>: $dberrno";
58 echo
"</table></table></table></table></table>\n";
59 echo
"<p style=\"font-family: Verdana, Tahoma; font-size: 11px; background: #FFFFFF;\">";
61 if($GLOBALS[
'adminemail']) {
63 if(@$fp = fopen(
GAME_ROOT.
'./gamedata/dberror.log',
'r')) {
64 while((!feof($fp)) && count($errlog) < 20) {
65 $log = explode(
"\t", fgets($fp, 50));
67 $errlog[
$log[0]] = $log[1];
75 @$fp = fopen(
GAME_ROOT.
'./gamedata/dberror.log',
'w');
77 foreach(array_unique($errlog) as $dateline => $errno) {
78 @fwrite($fp,
"$dateline\t$errno");
81 if(function_exists(
'errorlog')) {
82 errorlog(
'MySQL', basename($GLOBALS[
'_SERVER'][
'PHP_SELF']).
" : $dberror - ".cutstr($sql, 120), 0);
85 if($GLOBALS[
'dbreport']) {
86 echo
"<br><br>An error report has been dispatched to our administrator.";
87 @sendmail($GLOBALS[
'adminemail'],
'[bra!] MySQL Error Report',
88 "There seems to have been a problem with the database of your bra game\n\n".
90 "Please check-up your MySQL server and forum scripts, similar errors will not be reported again in recent 24 hours\n".
91 "If you have troubles in solving this problem, please visit loongyou Community http://www.loongyou.com");
95 echo
'<br><br>Similar error report has beed dispatched to administrator before.';
101 function_exists(
'gexit') ?
gexit() : exit();
gexit($message= '', $file= '', $line=0)
if(!defined('IN_GAME')) $timestamp