[geeklog-cvs] geeklog-1.3/public_html users.php,1.51,1.52 usersettings.php,1.54,1.55
blaine at geeklog.net
blaine at geeklog.net
Thu Feb 6 19:29:35 EST 2003
Update of /usr/cvs/geeklog/geeklog-1.3/public_html
In directory internal.geeklog.net:/tmp/cvs-serv28064/public_html
Modified Files:
users.php usersettings.php
Log Message:
Added support for custom user registration and account profile
Index: users.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/users.php,v
retrieving revision 1.51
retrieving revision 1.52
diff -C2 -d -r1.51 -r1.52
*** users.php 12 Jan 2003 17:37:23 -0000 1.51
--- users.php 7 Feb 2003 00:29:32 -0000 1.52
***************
*** 441,444 ****
--- 441,449 ----
DB_change($_TABLES['usercomment'],'commentlimit',$_CONF['comment_limit'],'uid',$uid);
+ // Call custom registration and account record create function if enabled and exists
+ if ($_CONF['custom_registration'] AND (function_exists(custom_usercreate))) {
+ custom_usercreate($uid);
+ }
+
return COM_refresh($_CONF['site_url'] . '/index.php?msg=' . $msg);
} else {
***************
*** 633,637 ****
case 'new':
$display .= COM_siteHeader('menu');
! $display .= newuserform($msg);
$display .= COM_siteFooter();
break;
--- 638,647 ----
case 'new':
$display .= COM_siteHeader('menu');
! // Call custom registration and account record create function if enabled and exists
! if ($_CONF['custom_registration'] AND (function_exists(custom_userform))) {
! $display .= custom_userform('new');
! } else {
! $display .= newuserform($msg);
! }
$display .= COM_siteFooter();
break;
Index: usersettings.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/usersettings.php,v
retrieving revision 1.54
retrieving revision 1.55
diff -C2 -d -r1.54 -r1.55
*** usersettings.php 19 Jan 2003 10:39:34 -0000 1.54
--- usersettings.php 7 Feb 2003 00:29:32 -0000 1.55
***************
*** 54,57 ****
--- 54,61 ----
global $_TABLES, $_CONF, $LANG04, $_USER;
+ // Call custom account form and edit function if enabled and exists
+ if ($_CONF['custom_registration'] AND (function_exists(custom_userform))) {
+ return custom_userform('edit',$_USER['uid']);
+ }
$result = DB_query("SELECT fullname,cookietimeout,email,homepage,sig,emailstories,about,pgpkey,photo FROM {$_TABLES['users']},{$_TABLES['userprefs']},{$_TABLES['userinfo']} WHERE {$_TABLES['users']}.uid = {$_USER['uid']} && {$_TABLES['userprefs']}.uid = {$_USER['uid']} && {$_TABLES['userinfo']}.uid = {$_USER['uid']}");
$A = DB_fetchArray($result);
***************
*** 501,504 ****
--- 505,514 ----
}
+ // Call custom account registration and save function if enabled and exists
+ if ($_CONF['custom_registration'] AND (function_exists(custom_usersave))) {
+ custom_usersave($_USER['uid']);
+ return COM_refresh("{$_CONF['site_url']}/usersettings.php?mode=edit&msg=5");
+ }
+
if ($_CONF['allow_user_photo'] == 1) {
include_once($_CONF['path_system'] . 'classes/upload.class.php');
More information about the geeklog-cvs
mailing list