Problema con registo

Topic created · 2 Mensajes · 982 Visitas
  • No me funciona el registro de mi web y ya no se que hacer para que funcione.

    Registracion

    $regCoins = 0; // Startcoins

    $laufZeit = 365; //Tage autoloot,safebox
    $calcLZ = (60*60*24)*365;
    $expireStamp = time()+$calcLZ;
    $expireDate = date("Y-m-d H:i:s",$expireStamp);

    if($serverSettings['register_on'] && (!isset($_SESSION['user_admin']) && !checkInt($_SESSION['user_admin']) && !$_SESSION['user_admin']>=0)) {

    if(isset($_POST['submit']) && $_POST['submit']=="Registro") {
    if((checkAnum($_POST['account']) && strlen($_POST['account'])>=8 && strlen($_POST['account'])

    error_log

    [17-Nov-2012 13:53:17] PHP Notice:  Constant SQL_HOST already defined in /home/hidralon/public_html/inc/config.inc.php on line 3
    [17-Nov-2012 13:53:17] PHP Notice:  Constant SQL_USER already defined in /home/hidralon/public_html/inc/config.inc.php on line 4
    [17-Nov-2012 13:53:17] PHP Notice:  Constant SQL_PASS already defined in /home/hidralon/public_html/inc/config.inc.php on line 5
    [17-Nov-2012 13:53:17] PHP Notice:  Constant SQL_HP_HOST already defined in /home/hidralon/public_html/inc/config.inc.php on line 7
    [17-Nov-2012 13:53:17] PHP Notice:  Constant SQL_HP_USER already defined in /home/hidralon/public_html/inc/config.inc.php on line 8
    [17-Nov-2012 13:53:17] PHP Notice:  Constant SQL_HP_PASS already defined in /home/hidralon/public_html/inc/config.inc.php on line 9
    [17-Nov-2012 13:53:17] PHP Notice:  Constant SQL_HP_DB already defined in /home/hidralon/public_html/inc/config.inc.php on line 10
    [17-Nov-2012 13:53:17] PHP Notice:  Undefined index:  user_admin in /home/hidralon/public_html/pages/register.php on line 12
    [17-Nov-2012 13:53:17] PHP Notice:  Undefined index:  user_admin in /home/hidralon/public_html/pages/register.php on line 12
  • reemplazar:

    if(isset($_POST['submit']) && $_POST['submit']=="Registro") {
    

    por:

    if(!empty($_POST)) {
    

    arreglado. así no volverá a fallar por una tontería como cambiar el texto del botón submit...