// Most users online
$monli = "SELECT * FROM mostonline";
$result = SQL_Query_exec($monli);
$details = mysql_fetch_array($result);
if ($totalonline > $details['amount'])
{
SQL_Query_exec("UPDATE mostonline SET amount = $totalonline");
SQL_Query_exec("UPDATE mostonline SET date = now()");
}
$date1=date("D, d M Y H:i:s", strtotime($details['date']));
// Most users online end
echo "<div align='center'>Most Users Online<br />".$date1." <font color = green>".$details['amount']."</font></div>";
"BigMax1, post: 89571":Into backend/functions.php replace the warned code with this one:
Database Error in backend/cleanup.php on line 332: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 're warned because you have accumulated 3 HnR','2013-03-15 11:53:23','22-Mar-2013' at line 1. Query was: INSERT INTO warnings (userid, reason, added, expiry, warnedby, type) VALUES (439,'You're warned because you have accumulated 3 HnR','2013-03-15 11:53:23','22-Mar-2013 09:53:23','0','HnR').
code on line 332 for me is
SQL_Query_exec("INSERT INTO warnings (userid, reason, added, expiry, warnedby, type) VALUES ($user,'".$reason."','".get_date_time()."','".$expiretime."','0','HnR')");
"mostvotedplaya, post: 84065":If you want to be more accurate maybe use
That should return the number of days in the correct month.
$secs = date('t') * 86400;
if ($CURUSER["control_panel"] == "yes") {
Instead of
if ($CURUSER["class"] == "7") {
"ArcticWolf, post: 84614":only time i ever seen that bug with image upload is when an image is really not an .jpg but an .bmp or .png just renamed to an .jpg that might be your issue.
PHP Warning: imagecreatefromjpeg() [<a href='function.imagecreatefromjpeg'>function.imagecreatefromjpeg</a>]: gd-jpeg: JPEG library reports unrecoverable error: in /var/home/xxxx/public_html/upavatar.php on line 51
[05-Aug-2012 08:50:04] PHP Warning: imagecreatefromjpeg() [<a href='function.imagecreatefromjpeg'>function.imagecreatefromjpeg</a>]: '/tmp/phpQJ1uSR' is not a valid JPEG file in /var/home/xxxx/public_html/upavatar.php on line 51
[05-Aug-2012 08:50:04] PHP Warning: imagecopyresampled() expects parameter 2 to be resource, boolean given in /var/home/xxxx/public_html/upavatar.php on line 52
//===clear funds after one month
$secs = 28*86400;
$dt = sqlesc(get_date_time(gmtime() - $secs));
SQL_Query_exec("DELETE FROM funds WHERE added < $dt");
//===end
"ArcticWolf, post: 82900":I of the other addons about donor stuff here has the cleanup to reset to power user once it expires.. use the search thats whats it here for!!!!!!!!!!!!!!!
"ArcticWolf, post: 82861":so if dont work for you dont call me i will call you:)