Help me !

Results 1 to 9 of 9
  1. #1
    Enthusiast nicugse is offline
    MemberRank
    Feb 2011 Join Date
    29Posts

    sad Help me !

    I have a problem with this script

    Code:
    <style>
    body, table, td, tr, div
    {
      font-family:  Verdana, Arial, Helvetica, sans-serif, Impact;
      color:#ffffff;
      font-size:9pt;
      text-decoration:none;
      line-height:18px;
    }>
    </style>
       <?php
    
    // Config
    
    // Title
    echo '<title>CABAL Online Register</title>';
    
    // MSSQL server connection details
    // Database server
    define('DB_ADDR','192.168.2.1');
    // Database login
    define('DB_USER','sa');
    // Database password
    define('DB_PASS','cabal1234');
    
    // In case you have a different db names
    define('DB_ACC','ACCOUNT');
    define('DB_GAM','GAMEDB');
    
    
    
    $num_acc=0;
    $num_cha=0;
    $num_onl=0;
    
    
    echo '<div align="center">';
    echo '<p style="font-size:24px;font-weight:bold">CABAL Online Account Registration</p>';
    echo '<p>Login ID and Password must be at least a minimum of 6 characters, letters and/or numbers only.</p>';
    
    echo '<form method="post" action="'.$_PHP['self'].'">';
    echo '<table cellspacing="4" cellpadding="0" border="0">';
    echo '<tr><td align="right">Login ID:&nbsp;</td><td><input type="text" name="uname" class="editbox"></td></tr>';
    echo '<tr><td align="right">Password:&nbsp;</td><td><input type="password" name="pass" class="editbox"></td></tr>';
    echo '<tr><td align="right">Confirm Password:&nbsp;</td><td><input type="password" name="pass2" class="editbox"></td></tr>';
    echo '<tr><td colspan="2" align="center"><input type="submit" value="Register" class="button"></td></tr><br \>';
    echo '</table>';
    echo '</form>';
    echo '<p>Registered accounts: <span style="font-size:16px;font-weight:bold">'.$num_acc.'</span> | Characters created: <span style="font-size:16px;font-weight:bold">'.$num_cha.'</span></p>';
    
    
    $uid='';
    $pass='';
    $failed=false;
    
    if (isset($_POST['uname'])) {
      if (!ctype_alnum($_POST['uname']) || strlen($_POST['uname'])<6) {
          $failed=true;
          echo '<p class="errortext">Invalid username. Minimum of 6 characters, letters and numbers only.</p> ';
      } else {
        $uid=$_POST['uname'];    
      }
    }
    
    if (isset($_POST['pass'])) {
      if (!ctype_alnum($_POST['pass']) || strlen($_POST['pass'])<6) {
          $failed=true;
          echo '<p class="errortext">Invalid password. Minimum of 6 characters, letters and numbers only.</p> ';
      } else {
        $pass=$_POST['pass'];    
      }
    }
    
    if (isset($_POST['pass2'])) {
      if (!ctype_alnum($_POST['pass2'])) {
          $failed=true;
      } else {
        if ($_POST['pass2']!=$_POST['pass']) {
            $failed=true;
            echo '<p class="errortext">Both password fields do not match.</p> ';
        }
      }
    }
    
    if ($failed==true) {
      echo '<p class="errortext">Account Registration Failed.</p> ';    
    } else {
        
        if ($uid!='' && $pass!='') {
          
          
           
            if ($r==false) {
                echo '<p class="errortext">Something went wrong.</p>';
            } else {
                echo '<p class="goodtext">Account created successfully.</p>';
            }
            
             
          } else {
              echo '<p class="errortext">Login ID has been used.</p> ';
          
        }
    }
    echo '</div>';
    ?>
    Not work for a register to my cabal !
    Cabal server is online put the password and usermane click register and not work
    Say
    Code:
    Something went wrong.


    Please help me
    Last edited by nicugse; 04-07-11 at 05:08 PM.


  2. #2
    ┌П┐(•_•)┌П┐ allocen is offline
    MemberRank
    Dec 2009 Join Date
    Deep AbyssLocation
    1,003Posts

    Re: Help me !

    Did you run xp_mdl5 on ACCOUNT?

  3. #3
    Enthusiast nicugse is offline
    MemberRank
    Feb 2011 Join Date
    29Posts

    Re: Help me !

    It's ok ?

    Last edited by nicugse; 04-07-11 at 05:51 PM.

  4. #4
    Account Upgraded | Title Enabled! xender16 is offline
    MemberRank
    May 2010 Join Date
    Constanta, RomaLocation
    414Posts

    Re: Help me !

    if u can make from db account and from the site no must be a conection problem check the firewall or the ip s be shure all ports are oki

  5. #5
    Enthusiast nicugse is offline
    MemberRank
    Feb 2011 Join Date
    29Posts

    Re: Help me !

    Firewall is offline.
    And all port is checked :(

  6. #6
    Account Upgraded | Title Enabled! xender16 is offline
    MemberRank
    May 2010 Join Date
    Constanta, RomaLocation
    414Posts

    Re: Help me !

    did u put the corect ip s in script ?

  7. #7
    Enthusiast nicugse is offline
    MemberRank
    Feb 2011 Join Date
    29Posts

    Re: Help me !

    Code:
    // MSSQL server connection details
    // Database server
    define('DB_ADDR','root');
    // Database login
    define('DB_USER','sa');
    // Database password
    define('DB_PASS','cabal1234');
    It's ok ?

  8. #8
    ┌П┐(•_•)┌П┐ allocen is offline
    MemberRank
    Dec 2009 Join Date
    Deep AbyssLocation
    1,003Posts

    Re: Help me !

    No ist not here "define('DB_ADDR','root');",instead of root put YOUR IP OF DATABASE,if youre hosting database in your windows put your windows ip!

  9. #9
    Enthusiast nicugse is offline
    MemberRank
    Feb 2011 Join Date
    29Posts

    Re: Help me !

    I go to My IP address? Free IP Address tracer and IP address lookup and my ip adrees is 79.116.36.6x

    root replace it with 79.116.36.6x
    I server and database on my personal PC

    Code:
    // MSSQL server connection details
    // Database server
    define('DB_ADDR','79.116.36.6x');
    // Database login
    define('DB_USER','sa');
    // Database password
    define('DB_PASS','cabal1234');
    It's ok ?



Advertisement