[geeklog-cvs] geeklog-1.3/public_html users.php,1.73,1.74

dhaun at geeklog.net dhaun at geeklog.net
Sat Jan 31 14:50:43 EST 2004


Update of /usr/cvs/geeklog/geeklog-1.3/public_html
In directory geeklog_prod:/tmp/cvs-serv17221

Modified Files:
	users.php 
Log Message:
Enable displaying a message above the profile.


Index: users.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/users.php,v
retrieving revision 1.73
retrieving revision 1.74
diff -C2 -d -r1.73 -r1.74
*** users.php	7 Jan 2004 04:48:11 -0000	1.73
--- users.php	31 Jan 2004 19:50:41 -0000	1.74
***************
*** 9,13 ****
  // | User authentication module.                                               |
  // +---------------------------------------------------------------------------+
! // | Copyright (C) 2000-2003 by the following authors:                         |
  // |                                                                           |
  // | Authors: Tony Bibbs        - tony at tonybibbs.com                           |
--- 9,13 ----
  // | User authentication module.                                               |
  // +---------------------------------------------------------------------------+
! // | Copyright (C) 2000-2004 by the following authors:                         |
  // |                                                                           |
  // | Authors: Tony Bibbs        - tony at tonybibbs.com                           |
***************
*** 49,52 ****
--- 49,54 ----
  require_once('lib-common.php');
  
+ $VERBOSE = false;
+ 
  // Uncomment the line below if you need to debug the HTTP variables being passed
  // to the script.  This will sometimes cause errors but it will allow you to see
***************
*** 658,666 ****
      $mode = "";
  }
  switch ($mode) {
  case 'logout':
      if (!empty($_USER['uid']) AND $_USER['uid'] > 1) {
          SESS_endUserSession($_USER['uid']);
-         COM_accessLog("userid = {$HTTP_COOKIE_VARS[$_CONF["cookie_session"]]} {$LANG04[29]} $REMOTE_ADDR.");
      }
      setcookie ($_CONF['cookie_session'], '', time() - 10000,
--- 660,670 ----
      $mode = "";
  }
+ 
+ $display = '';
+ 
  switch ($mode) {
  case 'logout':
      if (!empty($_USER['uid']) AND $_USER['uid'] > 1) {
          SESS_endUserSession($_USER['uid']);
      }
      setcookie ($_CONF['cookie_session'], '', time() - 10000,
***************
*** 676,679 ****
--- 680,687 ----
      if (is_numeric ($uid) && ($uid > 0)) {
          $display .= COM_siteHeader('menu');
+         $msg = COM_applyFilter ($HTTP_GET_VARS['msg'], true);
+         if ($msg > 0) {
+             $display .= COM_showMessage ($msg);
+         }
          $display .= userprofile ($uid);
          $display .= COM_siteFooter ();
***************
*** 898,905 ****
              $display .= loginform();
              break;
-         }
- 
-         if ($mode != 'new' && empty($msg)) {
-             $msg = $LANG04[31];
          }
  
--- 906,909 ----





More information about the geeklog-cvs mailing list