website bug nolife checkcokie

Results 1 to 12 of 12
  1. #1
    Apprentice smatch999 is offline
    MemberRank
    Jun 2012 Join Date
    13Posts

    idea website bug nolife checkcokie

    Does anyone have a solution for the error that is happening on my site?
    www.dinistyduel.com/
    line 308 /309 /311 << errors.
    ERROR NOLIFE CHECKCOOKIE, HAVE SOLUTION ?
    PLEASE IS URGENT.
    SCRIPT PAGE >>

    <?
    $show =1;
    //Check if is logued
    if(!function_exists("ShowResetPwdForm")){
    function ShowResetPwdForm(){
    if(!$_SESSION['AID'] == ""){re_dir("index.php");}
    if($_POST['submit'] == ""){
    ?>
    <form name="pwd" method="POST" action="index.php"><div align="center">
    Pagina desabilitada, rs.

    </form>


    <?
    }elseif ($_POST['submit'] == "Step 2"){
    $userid = clean($_POST['userid']);
    if($userid == ""){
    msgbox("Please enter a User ID","index.php");
    }
    $res = mssql_query_logged("SELECT * FROM Account WHERE UserID = '$userid'");
    if (mssql_num_rows($res) == 0){
    msgbox("The user ".ucfirst($userid)." does not exist.","index.php");
    }
    $_SESSION['ResetPwdUser'] = $userid;
    $info = mssql_fetch_assoc($res);
    ?>

    <form name="pwd" method="POST" action="index.php"><div align="center">
    <table border="0" width="456" style="border-collapse: collapse">
    <tr>
    <td background="http://forum.ragezone.com/images/cont_up.jpg">&nbsp;</td>
    </tr>
    <tr>
    <td background="http://forum.ragezone.com/images/cont_bg.jpg">
    <div align="center">
    <table border="0" style="border-collapse: collapse" width="454" height="100%">
    <tr>
    <td width="4" rowspan="14">&nbsp;</td>
    <td width="436" colspan="3">
    <img border="0" src="http://forum.ragezone.com/images/inf/resetaccountdata.png" width="414" height="18"></td>
    <td width="8">&nbsp;</td>
    </tr>
    <tr>
    <td width="434" colspan="3">
    Step 2 of 3</td>
    <td width="8">&nbsp;</td>
    </tr>
    <tr>
    <td width="434" colspan="3">
    &nbsp;<?=@$errorbox?></td>
    <td width="8">&nbsp;</td>
    </tr>
    <tr>
    <td width="434" colspan="3">
    &nbsp;</td>
    <td width="8">&nbsp;</td>
    </tr>
    <tr>
    <td width="181">
    <p align="right">Your E-Mail</td>
    <td width="9">
    &nbsp;</td>
    <td width="242">
    <input type="text" name="email" size="38"></td>
    <td width="8">&nbsp;</td>
    </tr>
    <tr>
    <td width="181">
    &nbsp;</td>
    <td width="9">
    &nbsp;</td>
    <td width="242">
    &nbsp;</td>
    <td width="8">&nbsp;</td>
    </tr>
    <tr>
    <td width="181">
    <p align="right">&nbsp;Secret
    Question</td>
    <td width="9">
    &nbsp;</td>
    <td width="242">
    <b><?=$info['Sq']?></b></td>
    <td width="8">&nbsp;</td>
    </tr>
    <tr>
    <td width="181">
    &nbsp;</td>
    <td width="9">
    &nbsp;</td>
    <td width="242">
    &nbsp;</td>
    <td width="8">&nbsp;</td>
    </tr>
    <tr>
    <td width="181">
    <p align="right">Answer</td>
    <td width="9">
    &nbsp;</td>
    <td width="242">
    <input type="text" name="sa" size="38"></td>
    <td width="8">&nbsp;</td>
    </tr>
    <tr>
    <td width="181">
    &nbsp;</td>
    <td width="9">
    &nbsp;</td>
    <td width="242">
    &nbsp;</td>
    <td width="8">&nbsp;</td>
    </tr>
    <tr>
    <td width="434" colspan="3">
    <p align="center">
    <input type="submit" value="Step 3" name="submit"></td>
    <td width="8">&nbsp;</td>
    </tr>
    <tr>
    <td width="434" colspan="3">
    <center>
    &nbsp;</center>
    </td>
    <td width="8">&nbsp;</td>
    </tr>
    </table>
    </div>
    </td>
    </tr>
    <tr>
    <td background="http://forum.ragezone.com/images/cont_top.jpg" height="27">&nbsp;</td>
    </tr>
    </table>
    </div></form>
    <?
    }elseif ($_POST['submit'] == "Step 3"){
    $sa = clean($_POST['sa']);
    $mail = clean($_POST['email']);
    $res = mssql_query_logged("SELECT * FROM Account WHERE Email = '$mail' AND sa = '$sa'");
    if(mssql_num_rows($res) == 1){
    ?>
    <form method="POST" action="index.php"><div align="center">
    <table border="0" width="456" style="border-collapse: collapse">
    <tr>
    <td background="http://forum.ragezone.com/images/cont_up.jpg">&nbsp;</td>
    </tr>
    <tr>
    <td background="http://forum.ragezone.com/images/cont_bg.jpg">
    <div align="center">
    <table border="0" style="border-collapse: collapse" width="454" height="100%">
    <tr>
    <td width="4" rowspan="13">&nbsp;</td>
    <td width="436" colspan="3">
    <img border="0" src="http://forum.ragezone.com/images/inf/resetaccountdata.png" width="414" height="18"></td>
    <td width="8">&nbsp;</td>
    </tr>
    <tr>
    <td width="434" colspan="3">
    Step 3 of 3</td>
    <td width="8">&nbsp;</td>
    </tr>
    <tr>
    <td width="434" colspan="3">
    &nbsp;</td>
    <td width="8">&nbsp;</td>
    </tr>
    <tr>
    <td width="434" colspan="3">
    &nbsp;</td>
    <td width="8">&nbsp;</td>
    </tr>
    <tr>
    <td width="181">
    &nbsp;</td>
    <td width="9">
    &nbsp;</td>
    <td width="242">
    &nbsp;</td>
    <td width="8">&nbsp;</td>
    </tr>
    <tr>
    <td width="181">
    <p align="right">Enter your new
    password</td>
    <td width="9">
    &nbsp;</td>
    <td width="242">
    <input type="password" name="pw1" size="38"></td>
    <td width="8">&nbsp;</td>
    </tr>
    <tr>
    <td width="181">
    &nbsp;</td>
    <td width="9">
    &nbsp;</td>
    <td width="242">
    &nbsp;</td>
    <td width="8">&nbsp;</td>
    </tr>
    <tr>
    <td width="181">
    <p align="right">Repeat your new
    password</td>
    <td width="9">
    &nbsp;</td>
    <td width="242">
    <input type="password" name="pw2" size="38"></td>
    <td width="8">&nbsp;</td>
    </tr>
    <tr>
    <td width="181">
    &nbsp;</td>
    <td width="9">
    &nbsp;</td>
    <td width="242">
    &nbsp;</td>
    <td width="8">&nbsp;</td>
    </tr>
    <tr>
    <td width="434" colspan="3">
    <p align="center">
    <input type="submit" value="End" name="submit"></td>
    <td width="8">&nbsp;</td>
    </tr>
    <tr>
    <td width="434" colspan="3">
    <center>
    &nbsp;</center>
    </td>
    <td width="8">&nbsp;</td>
    </tr>
    </table>
    </div>
    </td>
    </tr>
    <tr>
    <td background="http://forum.ragezone.com/images/cont_top.jpg" height="27">&nbsp;</td>
    </tr>
    </table>
    </div></form>

    <?
    }else{
    msgbox("The E-Mail or the secret answer is incorrect.","index.php");
    }
    }elseif ($_POST['submit'] == "End"){
    if($_POST['pw1'] == $_POST['pw2']){
    $pw1 = clean($_POST['pw1']);
    mssql_query_logged("UPDATE Login SET Password = '$pw1' WHERE UserID = '".$_SESSION['ResetPwdUser']."'");
    msgbox("Password reset complete!","index.php?do=login");
    }else{
    msgbox("Please use the same password in both boxes!","index.php");
    }
    }








    }}

    //Logout
    switch ($_GET['action']) {
    case "logout";
    $user = Clean($_SESSION['UserID']);
    $user = ucfirst($user);
    unset($_SESSION['AID']);
    unset($_SESSION['RZCoins']);
    unset($_SESSION['EVCoins']);
    unset($_SESSION['UGradeID']);
    setcookie ("Nolife_xLogin_usr", "", time() - 3600);
    setcookie ("Nolife_xLogin_pwd", "", time() - 3600);
    echo "<body bgcolor='#000000'><script language='Javascript'> document.location = 'index.php';alert('$user Desconectado.'); </script>";
    break;
    case "resetpwd";
    ShowResetPwdForm();
    $show =0;
    break;
    }

    if(!$_SESSION['AID']== ""){
    echo "<script language='Javascript'> document.location = 'index.php';alert('Already logged out'); </script>";
    }


    if (isset($_POST['submit']) and $show ==1){
    $user = clean($_POST['userid']);
    $pwd = Clean($_POST['pasw']);
    $sql = mssql_query_logged("SELECT * FROM Login WHERE UserID = '".$user."' AND Password = '".$pwd."'");
    if (mssql_num_rows($sql) == 1){
    $data = mssql_fetch_assoc($sql);
    $_SESSION['AID'] = $data['AID'];
    $_SESSION['UserID'] = ucfirst($user);
    $_SESSION['RZCoins'] = $data['RZCoins'];
    $_SESSION['EVCoins'] = $data['EVCoins'];
    //---
    $res2 = mssql_query_logged("SELECT * FROM Account WHERE AID = '".$data['AID']."'");
    $aData = mssql_fetch_assoc($res2);
    $_SESSION['UGradeID'] = $aData['UGradeID'];
    if($_POST['cookie'] == "ON"){
    setcookie("Nolife_xLogin_usr", $user, time()+60*60*24*100);
    setcookie("Nolife_xLogin_pwd", md5("Nolife_xc_".$data['Password']), time()+60*60*24*100);
    }else{
    setcookie ("Nolife_xLogin_usr", "", time() - 3600);
    setcookie ("Nolife_xLogin_pwd", "", time() - 3600);
    }
    header("Location: index.php");
    }else{
    echo "<body bgcolor='#000000'><script language='Javascript'> alert('Usuario ou senha inccoretos.');document.location = 'index.php?do=login'; </script>";
    }
    }
    if ($show ==1){
    ?>
    <form name="reg" method="POST" action="index.php?do=login&header=1">

    <div id="wrapper-cent">

    <!-- Content Box Starts -->
    <div id="cont-frame">
    <div id="cont-top"><div id="cont-title">Logar</div></div>
    <div id="cont-body">
    <div id="news-wrap">
    <div id="container">


    <!-- #first_step -->
    <div id="first_step">

    <h1>Logue-se no <span>DinistyDuel</span></h1>
    <div class="form">

    <input type="text" name="userid" id="userid" value="Usuario" />
    <label for="userid">Digite seu Usuario.</label>

    <input type="password" name="pasw" id="pasw" value="password" />
    <label for="pasw">Digite sua senha.</label>

    <div id="more-info"><div id="bullet"></div><a href="#">Esqueceu sua senha ?</a></div>
    <div id="more-info"><div id="bullet"></div><a href="#">Tem algum problema ?</a>
    </div>
    </div>
    <input id="enter" type="submit" name="submit" class="submit" value="ENTER">
    </div>
    </form>
    </div>

    </div>
    </div>
    <div id="cont-footer"></div>
    </div>
    <!-- Content Box Ends -->

    <div id="copyright">Copyright <a href="http://www.dinistyduel.com/">DinistyDuel</a> 2012-2013. All Rights Reserved</div>

    </div>


    <?
    }
    ?>
    Last edited by smatch999; 27-08-12 at 05:43 PM.


  2. #2
    Apprentice smatch999 is offline
    MemberRank
    Jun 2012 Join Date
    13Posts

    Re: website bug nolife checkcokie

    help-me

  3. #3
    Apprentice Alex Pain is offline
    MemberRank
    Aug 2012 Join Date
    7Posts

    Re: website bug nolife checkcokie

    where is the problem?

  4. #4
    Developer / Patch Finder Tankado is offline
    MemberRank
    Oct 2011 Join Date
    The NetherlandsLocation
    451Posts

    Re: website bug nolife checkcokie

    omg,
    stop with use darkgunz site -.-
    now i wont help u

    - Tankado

  5. #5
    Apprentice smatch999 is offline
    MemberRank
    Jun 2012 Join Date
    13Posts

    Re: website bug nolife checkcokie

    Quote Originally Posted by Alex Pain View Post
    where is the problem?
    when I log into the Web site error on this line.
    What is the page I put in quote above.



    PLEASE HELP-ME!

  6. #6
    Apprentice smatch999 is offline
    MemberRank
    Jun 2012 Join Date
    13Posts

    Re: website bug nolife checkcokie

    help-me? o.o
    (OMG)

  7. #7
    C:\ WizCoder is offline
    MemberRank
    Aug 2010 Join Date
    JapanLocation
    703Posts

    Re: website bug nolife checkcokie

    This is what you have to do.
    Step 1. Open folder.
    Step 2. Close Folder.
    Step 3. Open Folder.
    Step 4. Find Index.php
    Step 5. Find Line 308
    Step 6. Delete that line
    Step 7. Close folder
    Step 8. Turn off Xampp,Wampp
    Step 9. Turn off computer

    Hope I helped!

  8. #8
    Apprentice smatch999 is offline
    MemberRank
    Jun 2012 Join Date
    13Posts

    Re: website bug nolife checkcokie

    Quote Originally Posted by WizCoder View Post
    This is what you have to do.
    Step 1. Open folder.
    Step 2. Close Folder.
    Step 3. Open Folder.
    Step 4. Find Index.php
    Step 5. Find Line 308
    Step 6. Delete that line
    Step 7. Close folder
    Step 8. Turn off Xampp,Wampp
    Step 9. Turn off computer

    Hope I helped!
    not solved, error continue :((

    HELP-ME Please!

  9. #9
    Apprentice smatch999 is offline
    MemberRank
    Jun 2012 Join Date
    13Posts

    Re: website bug nolife checkcokie

    help-me? =]'

  10. #10
    Developer / Patch Finder Tankado is offline
    MemberRank
    Oct 2011 Join Date
    The NetherlandsLocation
    451Posts

    Re: website bug nolife checkcokie

    @WizCoder at me on msn, skype
    msn thankadonort@hotmail.com
    skype: nickvlug

    - Tankado

  11. #11
    Apprentice smatch999 is offline
    MemberRank
    Jun 2012 Join Date
    13Posts

    Re: website bug nolife checkcokie

    My god.
    i need help - me!

    wtf , please.

  12. #12
    Apprentice smatch999 is offline
    MemberRank
    Jun 2012 Join Date
    13Posts

    Re: website bug nolife checkcokie

    heeeeeeeeeeeeeeeeeeeeeeeeeeeeelp, is urgent.



Advertisement