From: <mic...@us...> - 2005-08-26 16:24:35
|
Update of /cvsroot/tikiwiki/tiki In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15905 Modified Files: tiki-register.php Log Message: make new user registrations via tiki-register.tpl generate a user_registers event Index: tiki-register.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/tiki-register.php,v retrieving revision 1.45 retrieving revision 1.46 diff -u -d -r1.45 -r1.46 --- tiki-register.php 25 Aug 2005 16:13:48 -0000 1.45 +++ tiki-register.php 26 Aug 2005 16:24:25 -0000 1.46 @@ -23,8 +23,14 @@ if(isset($_REQUEST["register"])) { - $registrationlib->saveRegistration(); + // $registrationlib->save_registration(); + $data = array('user'=> $_REQUEST['name'], 'mail_site'=>$_SERVER["SERVER_NAME"]); + $notificationlib->raise_event("user_registers", $data, "tiki-register.php"); } else { - $registrationlib->registerForm(); + $registrationlib->registration_form(); } + +$smarty->assign('mid','tiki-register.tpl'); +$smarty->display("tiki.tpl"); + ?> |