[geeklog-cvs] geeklog-1.3/public_html users.php,1.91,1.92
dhaun at iowaoutdoors.org
dhaun at iowaoutdoors.org
Sun Oct 10 15:01:09 EDT 2004
Update of /var/cvs/geeklog-1.3/public_html
In directory www:/tmp/cvs-serv6375
Modified Files:
users.php
Log Message:
Added an alternative method to get to a user's profile.
Index: users.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/users.php,v
retrieving revision 1.91
retrieving revision 1.92
diff -C2 -d -r1.91 -r1.92
*** users.php 9 Oct 2004 20:18:34 -0000 1.91
--- users.php 10 Oct 2004 19:01:07 -0000 1.92
***************
*** 68,72 ****
*
*/
! function userprofile ($user, $msg)
{
global $_CONF, $_TABLES, $_USER, $LANG01, $LANG04, $LANG_LOGIN;
--- 68,72 ----
*
*/
! function userprofile ($user, $msg = 0)
{
global $_CONF, $_TABLES, $_USER, $LANG01, $LANG04, $LANG_LOGIN;
***************
*** 672,675 ****
--- 672,690 ----
break;
+ case 'user':
+ $username = COM_applyFilter ($HTTP_GET_VARS['username']);
+ if (!empty ($username)) {
+ $username = addslashes ($username);
+ $uid = DB_getItem ($_TABLES['users'], 'uid', "username = '$username'");
+ if ($uid > 1) {
+ $display .= userprofile ($uid);
+ } else {
+ $display .= COM_refresh ($_CONF['site_url'] . '/index.php');
+ }
+ } else {
+ $display .= COM_refresh ($_CONF['site_url'] . '/index.php');
+ }
+ break;
+
case 'create':
$display .= createuser (COM_applyFilter ($HTTP_POST_VARS['username']),
More information about the geeklog-cvs
mailing list