* 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 $
***************************************************************************/
/*
*/
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, ",", ".");
* 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 $
***************************************************************************/
*/
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 : "-");