Update of /cvsroot/phpmp/phpMP/modules
In directory usw-pr-cvs1:/tmp/cvs-serv6721/modules
Modified Files:
online_users_side.php usercp.php
Log Message:
Re-added page title support. One extra line in all directly-accessible files...no biggie.
Fixed my idiotic mistake in online_users_side.php regarding the fetching of non-expired sessions. Should now work correctly (but not quite perfectly).
Index: online_users_side.php
===================================================================
RCS file: /cvsroot/phpmp/phpMP/modules/online_users_side.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** online_users_side.php 29 Jul 2002 11:13:04 -0000 1.2
--- online_users_side.php 14 Aug 2002 06:24:24 -0000 1.3
***************
*** 8,13 ****
$five_min_mark = time() - 300;
! $anon_qry = $DBA->query("SELECT user_id FROM " . $MPCONF['DB']['table_prefix'] . "sessions WHERE user_id = '1' AND time_started > " . $five_min_mark);
! $mem_qry = $DBA->query("SELECT user_id FROM " . $MPCONF['DB']['table_prefix'] . "sessions WHERE user_id != '1' AND time_started > " . $five_min_mark);
$anon_num = $DBA->num_rows($anon_qry);
--- 8,13 ----
$five_min_mark = time() - 300;
! $anon_qry = $DBA->query("SELECT user_id FROM " . $MPCONF['DB']['table_prefix'] . "sessions WHERE user_id = '1' AND expiretime > " . $five_min_mark);
! $mem_qry = $DBA->query("SELECT user_id FROM " . $MPCONF['DB']['table_prefix'] . "sessions WHERE user_id != '1' AND expiretime > " . $five_min_mark);
$anon_num = $DBA->num_rows($anon_qry);
Index: usercp.php
===================================================================
RCS file: /cvsroot/phpmp/phpMP/modules/usercp.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** usercp.php 10 Aug 2002 21:39:51 -0000 1.9
--- usercp.php 14 Aug 2002 06:24:24 -0000 1.10
***************
*** 5,8 ****
--- 5,9 ----
class Module {
+ var $module_title;
var $module_content;
***************
*** 12,15 ****
--- 13,18 ----
function MakeContent() {
global $MPCONF, $Language;
+
+ $this->module_title = $Language->lang['l_user_panel'];
$this->module_content .= '<table width="100%" cellspacing="0" cellpadding="0">' . "\n";
|