[geeklog-cvs] geeklog-1.3/public_html/admin user.php,1.63,1.64
blaine at geeklog.net
blaine at geeklog.net
Fri Jan 2 15:58:29 EST 2004
Update of /usr/cvs/geeklog/geeklog-1.3/public_html/admin
In directory geeklog_prod:/tmp/cvs-serv8761/public_html/admin
Modified Files:
user.php
Log Message:
Re-vamped Custom Registration to improve integration. Now using {customfields} variable in templates so admin and user can edit their profiles and use the custom fields if required
Index: user.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/admin/user.php,v
retrieving revision 1.63
retrieving revision 1.64
diff -C2 -d -r1.63 -r1.64
*** user.php 7 Sep 2003 18:51:41 -0000 1.63
--- user.php 2 Jan 2004 20:58:26 -0000 1.64
***************
*** 152,155 ****
--- 152,159 ----
$user_templates->set_var('do_not_use_spaces', $LANG28[9]);
+ if ($_CONF['custom_registration'] AND (function_exists('custom_edituser'))) {
+ $user_templates->set_var('customfields', custom_edituser($uid) );
+ }
+
if (SEC_inGroup('Group Admin')) {
$user_templates->set_var('lang_securitygroups', $LANG_ACCESS['securitygroups']);
***************
*** 274,277 ****
--- 278,284 ----
}
DB_query("UPDATE {$_TABLES['users']} SET username = '$username', fullname = '$fullname', passwd = '$passwd', email = '$email', homepage = '$homepage', photo = '$curphoto' WHERE uid = $uid");
+ if ($_CONF['custom_registration'] AND (function_exists('custom_saveuser'))) {
+ custom_saveuser($uid);
+ }
}
More information about the geeklog-cvs
mailing list