|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry experts this July. Register Today! |
|
#1
|
|||
|
|||
|
Major Emergency Help needed with Website
Ive got a php website that im building. Heres my problem. People cant sign-up. My computer is connected to the Server with the site via Local Network. I have no problem Creating accounts, editing them, anything on the Network. But when I try to do it over the net It Wont register users. It gets to the end of the Registration and then Gives me the Following Error... "User Can Not be Registered."
If U can help that would be great. Here is the Link to the Website: http://www.dragonsofzion.com/phpsite/ Thanks for the Help. If U have any Ideas Please Email me at dunkan@dragonsofzion.com or Post them Here. |
|
#2
|
|||
|
|||
|
RE: Major Emergency Help needed with Website
you need to post the code for the last part of the registration process so we can see what is going on there. Looking at the site alone can not help us determine the problem.
|
|
#3
|
|||
|
|||
|
RE: RE: Major Emergency Help needed with Website
Quote:
How do i know what part is the Last part? Im very new to php. |
|
#4
|
|||
|
|||
|
RE: Major Emergency Help needed with Website
Sorry. Last last post was from Me. I forgot to login.
|
|
#5
|
|||
|
|||
|
RE: Major Emergency Help needed with Website
Just post all the code that is used to do the registration process.
|
|
#6
|
|||
|
|||
|
RE: RE: Major Emergency Help needed with Website
Quote:
Here is the Code for the Entire Register.php File. [highlight=php]$xoopsOption['pagetype'] = 'user'; include 'mainfile.php'; $myts =& MyTextSanitizer::getInstance(); $config_handler =& xoops_gethandler('config'); $xoopsConfigUser =& $config_handler->getConfigsByCat(XOOPS_CONF_USER); if (empty($xoopsConfigUser['allow_register'])) { redirect_header('index.php', 6, _US_NOREGISTER); exit(); } function userCheck($uname, $email, $pass, $vpass) { global $xoopsConfigUser; $xoopsDB =& Database::getInstance(); $myts =& MyTextSanitizer::getInstance(); $stop = ''; if (!checkEmail($email)) { $stop .= _US_INVALIDMAIL.'<br />'; } foreach ($xoopsConfigUser['bad_emails'] as $be) { if (!empty($be) && preg_match("/".$be."/i", $email)) { $stop .= _US_INVALIDMAIL.'<br />'; break; } } if (strrpos($email,' ') > 0) { $stop .= _US_EMAILNOSPACES.'<br />'; } $uname = xoops_trim($uname); switch ($xoopsConfigUser['uname_test_level']) { case 0: // strict $restriction = '/[^a-zA-Z0-9_-]/'; break; case 1: // medium $restriction = '/[^a-zA-Z0-9_-<>,.$%#@!\'"]/'; break; case 2: // loose $restriction = '/[ ! !e&hpFxa&PpF > @_&*U_& spacer_close a&A e& s_&- 'l a&TZ&DF&d&e& |