Registration on cabal

Results 1 to 6 of 6
  1. #1
    Apprentice Ionutzik is offline
    MemberRank
    Aug 2008 Join Date
    21Posts

    Registration on cabal

    So i have a registration script but i got a problem .
    When i try to open it says to me he got an error on line 6.
    Look at the script :
    <?
    if(@$_SESSION['security_code']==@$_POST['cap'] and @$_POST['login']<>'' and @$_POST['pass']==@$_POST['pass1'] and @$_POST['pass']<>'' and @$_POST['pass1']<>''){ $account = $_POST['login'];
    $password = $_POST['pass'];
    $password2 = $_POST['pass1'];

    $d=mssql_select_db("ACCOUNT", $db);
    $sql = "SELECT * FROM cabal_auth_table WHERE ID='".$account."'";
    $res = mssql_query($sql);
    $rows=mssql_num_rows($res);
    mssql_close();

    $error=0;

    if ($rows>0) {
    echo "<p><center><b style='color: red'>Acest account este deja existent .</b></center></p><br>";
    $error = 1;
    }

    if ((strlen($account)<4 || strlen($account)>16)&& $account!="") {
    echo "<p><center><b style='background:gray;'>Accountul trebuie sa curpinda intre 4 si 14 caractere .</b></center></p><br>";
    $error = 1;
    }

    if ((strlen($password)<4 ||strlen($password)>16) && $password!="") {
    echo "<p><center><b style='background:gray;'>Parola trebuie sa curpinda intre 4 si 16 caractere .</b></center></p><br>";
    $error = 1;
    }

    if($error<>1){
    if (mssql_select_db("ACCOUNT",$db) === false)
    {
    echo '<p>Nu se poate conecta la baza de date MySQL . Incercati mai taziu .</p>';
    exit;
    }
    $proc = mssql_init('Cabal_tool_registerAccount',$db);
    mssql_bind($proc,'@id',$account,SQLVARCHAR);
    mssql_bind($proc,'@password',$password,SQLVARCHAR);

    mssql_execute($proc);

    echo'<p><center><b style="background:gray;">Accountul tau a fost creat cu succes . Acum te poti juca !</b></center></p>';
    }



    }else{
    ?>
    <p>&nbsp;</p>
    <b><center>Cabal Romania pagina de INREGISTRARE !</center></b>
    <center><img src="images/ranking/ranking_tab_line.gif" width="80%" height="1" alt="" border="0"></center>
    <form name="" action="register.html" method="post">
    <center>
    <table width='26%' border='0' cellspacing='0' cellpadding='0' class='3'>
    <tr>
    <td align='center' class='3'><b>ID : &nbsp;</b></td>
    <td height="19" colspan="3" align='center' class='3'>
    <input name="login" type="text" value=""></td>
    </tr>
    <tr>
    <td align='center' class='3'><b>Parola : &nbsp;</b></td>
    <td height="19" colspan="3" align='center' class='3'>
    <input name="pass" type="password" value=""></td>
    </tr>
    <tr>
    <td align='center' class='3'><b>Parola 2 : &nbsp;</b></td>
    <td height="19" colspan="3" align='center' class='3'>
    <input name="pass1" type="password" value=""></td>
    </tr>
    <tr>
    <td width="30%" align='center' class='3'>
    <img src="./mod/captcha.php?width=70&height=35&characters=4" />
    </td>
    <td width="70%" height="19" colspan="3" align='center' class='3'>
    <input name="cap" type="text" value="">
    </td>
    </tr>
    <tr>
    <td width="30%" align='center' class='3'></td>
    <td width="70%" height="19" colspan="3" align='center' class='3'>
    <input type="submit" value="Send">
    </td>
    </tr>
    </table>
    </center>
    </form>
    <?}?>

    and got one more question . HOW I CAN DELETE THE SECURITY CODE ? ? i need only to register with ID and password to my sql database . :D

    So. can someone can help me guys ?:busted_co:winky:


  2. #2
    The Cat in the Hat cypher is offline
    MemberRank
    Oct 2005 Join Date
    IrelandLocation
    5,073Posts

    Re: Registration on cabal

    I should have watched my mouth and not said/talked shit to DeadlyData telling him things like your are not welcome here because then I become the one who is truly not welcome here.

  3. #3
    Alpha Member john_d is offline
    MemberRank
    Feb 2004 Join Date
    PhilippinesLocation
    2,868Posts

    Re: Registration on cabal

    delete

    @$_SESSION['security_code']==@$_POST['cap'] and

    and

    <tr>
    <td width="30%" align='center' class='3'>
    <img src="./mod/captcha.php?width=70&height=35&characters=4" />
    </td>
    <td width="70%" height="19" colspan="3" align='center' class='3'>
    <input name="cap" type="text" value="">
    </td>
    </tr>

  4. #4
    Apprentice Ionutzik is offline
    MemberRank
    Aug 2008 Join Date
    21Posts

    Re: Registration on cabal

    john_d - it;s appears this error = Parse error: syntax error, unexpected '@', expecting '(' in /home/hosting/cabalromania/register.html on line 2 =

    i need to connect to my sql database :( i dunno where to put account and password :|

    Maybe someone can give me a registration script ? i need only to register and then to play !

  5. #5
    Apprentice Ionutzik is offline
    MemberRank
    Aug 2008 Join Date
    21Posts

    Re: Registration on cabal

    Quote Originally Posted by cypher66 View Post
    don`t just dump your code and hope to get it fixed... the problem is in the sql config.
    i hoped i can get help here in ragezone forum.....:angry2::mad_1:

  6. #6
    The Cat in the Hat cypher is offline
    MemberRank
    Oct 2005 Join Date
    IrelandLocation
    5,073Posts

    Re: Registration on cabal

    I should have watched my mouth and not said/talked shit to DeadlyData telling him things like your are not welcome here because then I become the one who is truly not welcome here.



Advertisement