\n"; echo "\n"; echo "\n"; echo "Create Member Account\n"; echo "\n"; echo "\n"; echo "\n"; echo "

Create Account

\n"; // show form only if Visitors are allowed to create a Member Account if ( $CONF['AllowMemberCreate'] == 1 ) { $name = ''; $realname =''; $email = ''; $url = ''; /* already submit */ if ( array_key_exists('showform', $_POST) && $_POST['showform'] == 1 ) { if ( array_key_exists('name', $_POST) ) { $name = $_POST['name']; } if ( array_key_exists('realname', $_POST) ) { $realname = $_POST['realname']; } if ( array_key_exists('email', $_POST) ) { $email = $_POST['email']; } if ( array_key_exists('url', $_POST) ) { $url = $_POST['url']; } // after the from is sent it will be validated // POST data will be added as value to treat the user with care (;-)) $a = new Action(); $message = $a->createAccount(); if ( $message != 1 ) { echo '

' . $message . "

\n"; } else { echo '

' . _MSG_ACTIVATION_SENT . "

\n"; echo "

Return to {$CONF['SiteName']}

\n"; echo "\n"; echo "\n"; exit; } } echo "
\n"; echo "
\n"; echo "
\n"; echo "
(only a-z, 0-9)
\n"; echo "
\n"; echo "
\n"; echo "
\n"; echo "
(must be valid, because an activation link will be sent over there)
\n"; echo "
\n"; echo "
\n"; echo "\n"; // add extra fields from Plugins, like NP_Profile $manager->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 "\n"; echo "
\n"; echo "
\n"; } else { echo "

\n"; echo 'Visitors are not allowed to create a Member Account.

'; echo 'Please contact the website administrator for more information.'; echo "

\n"; } echo "\n"; echo "\n";