projects
/
e-DoKo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CLEANUP: removed all calls to mysql functions and replaced them with calls to DB_xxx
[e-DoKo.git]
/
include
/
welcome.php
diff --git
a/include/welcome.php
b/include/welcome.php
index 7aeaf78b05d7e1fd3ba049bc42384c6f1e56ea6e..34709d35cb6a8f5b3a11cad3dad072e4ac24d096 100644
(file)
--- a/
include/welcome.php
+++ b/
include/welcome.php
@@
-8,16
+8,16
@@
if(!isset($HOST))
/* this outputs the default home page with some extra statistics on it */
$pre[0]=0;$game[0]=0;$done[0]=0;
/* this outputs the default home page with some extra statistics on it */
$pre[0]=0;$game[0]=0;$done[0]=0;
-$r=
mysql
_query("SELECT COUNT(id) FROM Game GROUP BY status");
+$r=
DB
_query("SELECT COUNT(id) FROM Game GROUP BY status");
if($r) {
if($r) {
- $pre =
mysql_fetch_array($r,MYSQL_NUM
);
- $game =
mysql_fetch_array($r,MYSQL_NUM
);
- $done =
mysql_fetch_array($r,MYSQL_NUM
);
+ $pre =
DB_fetch_array($r
);
+ $game =
DB_fetch_array($r
);
+ $done =
DB_fetch_array($r
);
}
}
-$r=
mysql
_query("SELECT AVG(datediff(mod_date,create_date)) FROM Game where status='gameover' ");
+$r=
DB
_query("SELECT AVG(datediff(mod_date,create_date)) FROM Game where status='gameover' ");
if($r)
if($r)
- $avgage=
mysql_fetch_array($r,MYSQL_NUM
);
+ $avgage=
DB_fetch_array($r
);
else
$avgage[0]=0;
else
$avgage[0]=0;