[geeklog-cvs] geeklog-1.3/public_html users.php,1.93,1.94

dhaun at iowaoutdoors.org dhaun at iowaoutdoors.org
Thu Jan 6 05:01:14 EST 2005


Update of /var/cvs/geeklog-1.3/public_html
In directory www:/tmp/cvs-serv13544/public_html

Modified Files:
	users.php 
Log Message:
The message that you have to be logged in before being able to view a profile was not wrapped in the GL framework (reported by Sean C).


Index: users.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/users.php,v
retrieving revision 1.93
retrieving revision 1.94
diff -C2 -d -r1.93 -r1.94
*** users.php	23 Oct 2004 10:23:01 -0000	1.93
--- users.php	6 Jan 2005 10:01:11 -0000	1.94
***************
*** 72,77 ****
--- 72,80 ----
      global $_CONF, $_TABLES, $_USER, $LANG01, $LANG04, $LANG_LOGIN;
  
+     $retval = '';
+ 
      if (empty ($_USER['username']) &&
          (($_CONF['loginrequired'] == 1) || ($_CONF['profileloginrequired'] == 1))) {
+         $retval .= COM_siteHeader ('menu');
          $retval .= COM_startBlock ($LANG_LOGIN[1], '',
                             COM_getBlockTemplate ('_msg_block', 'header'));
***************
*** 85,94 ****
          $retval .= $login->finish ($login->get_var('output'));
          $retval .= COM_endBlock (COM_getBlockTemplate ('_msg_block', 'footer'));
   
          return $retval;
      }
  
-     $retval = '';
- 
      $result = DB_query("SELECT username,fullname,regdate,homepage,about,location,pgpkey,photo FROM {$_TABLES['userinfo']},{$_TABLES["users"]} WHERE {$_TABLES['userinfo']}.uid = {$_TABLES['users']}.uid AND {$_TABLES['users']}.uid = $user");
      $nrows = DB_numRows($result);
--- 88,96 ----
          $retval .= $login->finish ($login->get_var('output'));
          $retval .= COM_endBlock (COM_getBlockTemplate ('_msg_block', 'footer'));
+         $retval .= COM_siteFooter ();
   
          return $retval;
      }
  
      $result = DB_query("SELECT username,fullname,regdate,homepage,about,location,pgpkey,photo FROM {$_TABLES['userinfo']},{$_TABLES["users"]} WHERE {$_TABLES['userinfo']}.uid = {$_TABLES['users']}.uid AND {$_TABLES['users']}.uid = $user");
      $nrows = DB_numRows($result);




More information about the geeklog-cvs mailing list