From: Matteo Nastasi (mop) Date: Wed, 26 Feb 2014 07:20:32 +0000 (+0100) Subject: statadm.php: use different time limits when in development mode X-Git-Tag: v4.13.0~2 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=b0f28087d9a3d6e59e7e658f163d26958aa9d30d;p=brisk.git statadm.php: use different time limits when in development mode --- diff --git a/web/briskin5/statadm.php b/web/briskin5/statadm.php index 4eb267b..652a11d 100644 --- a/web/briskin5/statadm.php +++ b/web/briskin5/statadm.php @@ -335,7 +335,8 @@ function main_pgsql($curtime) $old_score = array( 1000000000, 1000000000); $old_gam = array( -1, -1); $rank = array( 0, 0); - + + // TAG: POINTS_MANAGEMENT $pla_sql = sprintf("SELECT (float4(sum(p.pts)) * 100.0 ) / float4(count(p.pts)) as score, sum(p.pts) as points, count(p.pts) as games, u.code as ucode, u.login as login FROM %sbin5_points as p, %sbin5_games as g, %sbin5_matches as m, %susers as u WHERE m.tcode = %d AND m.code = g.mcode AND @@ -428,7 +429,10 @@ function main() $ctime = time(); - $curtime = ((int)($ctime / (24 * 3600))) * 24 * 3600 - (((int)substr(date("O", $ctime), 0, -2)) * 3600); + if (BIN5_PLAYERS_N != 5) + $curtime = $ctime; + else + $curtime = ((int)($ctime / (24 * 3600))) * 24 * 3600 - (((int)substr(date("O", $ctime), 0, -2)) * 3600); if ($ret = $fun_name($curtime)) echo "Success.
\n"; else