Update of /cvsroot/phpmp/phpMP/modules
In directory usw-pr-cvs1:/tmp/cvs-serv18135/modules
Modified Files:
online_users_side.php usercp.php
Log Message:
Fixed a few bugs. Added IP encoding and tracking support. Sessions are now based on both IPs and Session IDs. Hopefully this will all work!
Index: online_users_side.php
===================================================================
RCS file: /cvsroot/phpmp/phpMP/modules/online_users_side.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** online_users_side.php 14 Aug 2002 17:44:07 -0000 1.4
--- online_users_side.php 14 Aug 2002 19:45:46 -0000 1.5
***************
*** 13,16 ****
--- 13,21 ----
$anon_num = $DBA->num_rows($anon_qry);
$mem_num = $DBA->num_rows($mem_qry);
+
+ if($Auth->first_login == 1) {
+ $mem_num++;
+ }
+
$total_num = $anon_num + $mem_num;
Index: usercp.php
===================================================================
RCS file: /cvsroot/phpmp/phpMP/modules/usercp.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** usercp.php 14 Aug 2002 06:24:24 -0000 1.10
--- usercp.php 14 Aug 2002 19:45:46 -0000 1.11
***************
*** 12,16 ****
function MakeContent() {
! global $MPCONF, $Language;
$this->module_title = $Language->lang['l_user_panel'];
--- 12,16 ----
function MakeContent() {
! global $MPCONF, $Language, $Functions;
$this->module_title = $Language->lang['l_user_panel'];
***************
*** 33,37 ****
$this->module_content .= ' <tr>' . "\n";
$this->module_content .= ' <td>' . "\n";
! $this->module_content .= ' Right now, this is all complete filler. Eventually, the User Control Panel will be contained here. C-ya when it\'s done!<br />The time now is ' . time() . ".\n";
$this->module_content .= ' </td>' . "\n";
$this->module_content .= ' </tr>' . "\n";
--- 33,37 ----
$this->module_content .= ' <tr>' . "\n";
$this->module_content .= ' <td>' . "\n";
! $this->module_content .= ' Right now, this is all complete filler. Eventually, the User Control Panel will be contained here. C-ya when it\'s done!<br />The time now is ' . time() . ".\n<br />Your IP is (hopefully) " . $Functions->decode_ip($MPCONF['SES']['user_ip']) . ".\n";
$this->module_content .= ' </td>' . "\n";
$this->module_content .= ' </tr>' . "\n";
|