$conn is not needed and do not exists anymore
authorx2000habouzit <x2000habouzit>
Sun, 21 Nov 2004 23:10:47 +0000 (23:10 +0000)
committerx2000habouzit <x2000habouzit>
Sun, 21 Nov 2004 23:10:47 +0000 (23:10 +0000)
plugins/insert.getNbIns.php
plugins/insert.mkStats.php

index 22c99b5..fe1071a 100644 (file)
@@ -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, ",", ".");
index 61ed28d..588756c 100644 (file)
@@ -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 : "-");