X-Git-Url: http://git.osdn.net/view?p=nucleus-jp%2Fnucleus-next.git;a=blobdiff_plain;f=createaccount.php;h=0cc16ddca680f40283b72bd8d7e5b96af0f8975b;hp=1fa06d3a316129f14bb79931704001ce6253524c;hb=15f9a0c70f7d9656f80ecb7e106d5451849bf93d;hpb=0926bc19967e1b472c9aeb40eb47234a601a68f8 diff --git a/createaccount.php b/createaccount.php index 1fa06d3..0cc16dd 100644 --- a/createaccount.php +++ b/createaccount.php @@ -14,139 +14,21 @@ * Registration form for new users * @license http://nucleuscms.org/license.txt GNU General Public License * @copyright Copyright (C) 2002-20011 The Nucleus Group - * @version $Id: createaccount.php 1624 2012-01-09 11:36:20Z sakamocchi $ + * @version $Id: createaccount.php 1888 2012-06-17 08:38:54Z sakamocchi $ */ - require_once "./config.php"; - //include $DIR_LIBS."ACTION.php"; - include_libs('ACTION.php',false,false); - - if (isset ($_POST['showform']) && $_POST['showform']==1) { - $showform = 1; - } - else { - $showform = 0; - } - sendContentType('text/html', 'createaccount'); -?> - - - - Create Member Account - - - +// we are using admin stuff: +$CONF = array(); +$CONF['UsingAdminArea'] = 1; -

Create Account

+require_once "./config.php"; +include_libs('ACTION.php'); - - -
- -
- - - - Login Name (required): -
- (only a-z, 0-9) -
-
- Real Name (required): -
- -
-
- Email (required): -
- (must be valid, because an activation link will be sent over there) -
-
- URL: -
- -
- notify('RegistrationFormExtraFields', array('type' => 'createaccount.php', 'prelabel' => '', 'postlabel' => '
', 'prefield' => '', 'postfield' => '

')); - // add a Captcha challenge or something else - global $manager; - $manager->notify('FormExtra', array('type' => 'membermailform-notloggedin')); - ?> -
-
- -
- -
-createAccount(); - - echo ''.$message.'

'; -?> - -
- -
- - - - Login Name (required): -
- /> (only a-z, 0-9) -
-
- Real Name (required): -
- /> -
-
- Email (required): -
- /> (must be valid, because an activation link will be sent over there) -
-
- URL: -
- /> -
- notify('RegistrationFormExtraFields', array('type' => 'createaccount.php', 'prelabel' => '', 'postlabel' => '
', 'prefield' => '', 'postfield' => '

')); - // add a Captcha challenge or something else - global $manager; - $manager->notify('FormExtra', array('type' => 'membermailform-notloggedin')); - ?> -
-
- -
- -
-
'; - echo 'Please contact the website administrator for more information.'; +if ( !Admin::initialize() ) +{ + /* TODO: something to handling errors */ + exit; } -?> - - - - \ No newline at end of file + +Admin::action('createaccount'); +exit;