From 0bbad407431258a8353cfb90045c2c3f4e997b97 Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Sun, 21 Nov 2004 23:10:47 +0000 Subject: [PATCH] $conn is not needed and do not exists anymore --- plugins/insert.getNbIns.php | 5 ++--- plugins/insert.mkStats.php | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/plugins/insert.getNbIns.php b/plugins/insert.getNbIns.php index 22c99b5..fe1071a 100644 --- a/plugins/insert.getNbIns.php +++ b/plugins/insert.getNbIns.php @@ -18,7 +18,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: insert.getNbIns.php,v 1.6 2004-11-09 09:42:13 x2000habouzit Exp $ + $Id: insert.getNbIns.php,v 1.7 2004-11-21 23:10:47 x2000habouzit Exp $ ***************************************************************************/ /* @@ -32,8 +32,7 @@ */ function smarty_insert_getNbIns($params, &$smarty) { - global $conn; - $result=mysql_query("select count(*) from auth_user_md5 where perms in ('admin','user') AND deces=0",$conn); + $result=mysql_query("select count(*) from auth_user_md5 where perms in ('admin','user') AND deces=0"); list($stats_count)=mysql_fetch_row($result); mysql_free_result($result); return number_format($stats_count, 0, ",", "."); diff --git a/plugins/insert.mkStats.php b/plugins/insert.mkStats.php index 61ed28d..588756c 100644 --- a/plugins/insert.mkStats.php +++ b/plugins/insert.mkStats.php @@ -18,7 +18,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: insert.mkStats.php,v 1.11 2004-08-31 11:19:51 x2000habouzit Exp $ + $Id: insert.mkStats.php,v 1.12 2004-11-21 23:10:47 x2000habouzit Exp $ ***************************************************************************/ @@ -33,8 +33,7 @@ */ function smarty_insert_mkStats($params, &$smarty) { - global $conn; - $req = mysql_query("select count(*) from requests",$conn); + $req = mysql_query("select count(*) from requests"); list($stats_req) = mysql_fetch_row($req); mysql_free_result($req); return ($stats_req ? $stats_req : "-"); -- 2.1.4