X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fbriskin5%2Fstatadm.php;h=96b79cdc3bb53ed1a45d3858df86d74812bc0053;hb=fd0382ef2ff8216bc3880fc61cf0178d9f0f75e9;hp=4933b038f3df029960c07b95ec85844cf46390e2;hpb=bdb3cb2379f32bfb9279da661b1d4dbaf9712299;p=brisk.git diff --git a/web/briskin5/statadm.php b/web/briskin5/statadm.php index 4933b03..96b79cd 100644 --- a/web/briskin5/statadm.php +++ b/web/briskin5/statadm.php @@ -2,7 +2,7 @@ /* * brisk - statadm.php * - * Copyright (C) 2009 Matteo Nastasi + * Copyright (C) 2009-2011 Matteo Nastasi * mailto: nastasi@alternativeoutput.it * matteo.nastasi@milug.org * web: http://www.alternativeoutput.it @@ -20,8 +20,6 @@ * not, write to the Free Software Foundation, Inc, 59 Temple Place - * Suite 330, Boston, MA 02111-1307, USA. * - * $Id$ - * */ /* @@ -35,6 +33,8 @@ TODO: */ +$G_base = "../"; + ini_set("max_execution_time", "240"); require_once("../Obj/brisk.phh"); @@ -67,10 +67,11 @@ function main() fclose($fp_start); } - $userdb = new LoginDB(); + $bdb = new BriskDB(); + $bdb->users_load(); - for ($i = 0 ; $i < $userdb->count() ; $i++) { - $login = $userdb->getlogin_byidx($i); + for ($i = 0 ; $i < $bdb->count() ; $i++) { + $login = $bdb->getlogin_byidx($i); $tri[$i] = new Ptsgam($login); $mon[$i] = new Ptsgam($login); $wee[$i] = new Ptsgam($login); @@ -125,7 +126,7 @@ function main() for ($i = 0 ; $i < BRISKIN5_PLAYERS_N ; $i++) { // echo $p." i) ".$i."
"; $username = $ar[9+($i*2)]; - if (($item = $userdb->getitem_bylogin($username, &$id)) == FALSE) { + if (($item = $bdb->getitem_bylogin($username, &$id)) == FALSE) { echo "WARNING: the user [".$username."] NOT EXISTS!
"; continue; }