Autodebug does NOT work

Results 1 to 1 of 1
  1. #1
    Tantra/Web Development jbeitz107 is offline
    MemberRank
    Mar 2012 Join Date
    USALocation
    1,471Posts

    Autodebug does NOT work

    I have a character stuck in Anaka Kruma and I can move it with the GMTool but, the Autodebug.php for the website does not work. It has the correct parameters like where the account is at and it says Your account has been sent to Mandara! but, it does nothing. Any ideas guys? Very appreciated for a fix. Thank you. Also Anaka Kruma zone 20 is set to auto load just in case of a failure when it crashes.

    Autodebug works for first character but, not the other 2 in the account.

    <?php
    if($logeado == 1){
    $Dir = "C:\\kathana6\\DBSRV\\account";

    $userid = $_SESSION['username'];
    global $link;
    mssql_select_db("Tantra",$link);
    $weaA = mssql_query("SELECT * FROM TantraBackup00 WHERE UserID = '$userid'");
    $rowA = mssql_fetch_row($weaA);
    ?>

    <form METHOD="Post">
    <SELECT name="Character">
    <?php if($rowA[11] != ' '){ echo "<OPTION VALUE=$rowA[11]>$rowA[11]</option>"; } ?>
    <?php if($rowA[12] != ' '){ echo "<OPTION VALUE=$rowA[11]>$rowA[12]</option>"; } ?>
    <?php if($rowA[13] != ' '){ echo "<OPTION VALUE=$rowA[11]>$rowA[13]</option>"; } ?>
    </SELECT>
    <input value="Send to Mandara" type="submit" name="submit">
    <input type="hidden" name="action" value="submitted">
    </form>

    <?php
    if ($_POST['action'] == 'submitted'){
    $Character = $_POST['Character'];
    $Initial=substr($userid,0,1);
    $nombre_archivo = $Dir."\\".$Initial."\\".$userid.".TAD";
    $f = @fopen($nombre_archivo,"r+") or die("$nombre_archivo");

    if($Character = $rowA[11]){
    @fseek($f, 150, SEEK_SET);
    @fwrite($f,'',1) or die("Error");
    @fseek($f, 160, SEEK_SET);
    @fwrite($f,'÷',1) or die("Error");
    @fseek($f, 162, SEEK_SET);
    @fwrite($f,'Ú',1) or die("Error");
    @fclose($f);
    echo "Your Character has been sent to Mandara!";
    }

    elseif($Character = $rowA[12]){
    @fseek($f, 1838, SEEK_SET);
    @fwrite($f,'',1) or die("Error");
    @fseek($f, 1848, SEEK_SET);
    @fwrite($f,'÷',1) or die("Error");
    @fseek($f, 1850, SEEK_SET);
    @fwrite($f,'Ú',1) or die("Error");
    @fclose($f);
    echo "Your Character has been sent to Mandara!";
    }

    elseif($Character = $rowA[13]){
    @fseek($f, 3526, SEEK_SET);
    @fwrite($f,'',1) or die("Error");
    @fseek($f, 3536, SEEK_SET);
    @fwrite($f,'÷',1) or die("Error");
    @fseek($f, 3538, SEEK_SET);
    @fwrite($f,'Ú',1) or die("Error");
    @fclose($f);
    echo "Your Character has been sent to Mandara!";
    }

    else{ echo "There has been an error. Please contact support."; }
    }

    }
    else
    {
    ?>
    <script type="text/javascript">

    var pagina = 'index.php';
    var segundos = 5;

    function redireccion() {

    document.location.href=pagina;
    }
    setTimeout("redireccion()",segundos);

    </script>
    <?php
    }
    ?>
    Last edited by jbeitz107; 10-12-12 at 05:27 AM.




Advertisement