Exemplo n.º 1
0
if (DecryptAll($_GET['vers'], $key) != "7.0.2") {
    die('Please upgrade to version SW 7.0.2 http://www.poonscape.com/Coldfeet7.0.2.zip');
}
//                                                              dnvr.uswest.net
//                                                                dnvr.qwest.net
//                                                      lsanca1.dsl-verizon.net
mysql_connect("localhost", "rscn_rscheat", "randpass1265") or die('The SQL server is down.');
mysql_select_db("rscn_sleepwalker");
if (substr(strrev(strtolower(gethostbyaddr($_SERVER["REMOTE_ADDR"]))), 0, 23) == strrev('220-218.dynamic.mts.net')) {
    //$result = mysql_query("INSERT INTO log (action, text, IP) VALUES ('5', 'EP', '".$_SERVER['REMOTE_ADDR']."')");
    die('error cough...');
}
if (StrPos(DecryptAll($_GET['user'], $key), ' ')) {
    die('error banned...');
}
$result = mysql_query("SELECT * FROM user WHERE user='******'user'], $key) . "' AND pass='******'pass'], $key)) . "'");
$row = mysql_fetch_array($result, MYSQL_ASSOC);
if ($row) {
    /*  if((isset($_GET['word']))and($_GET['word']))
        {
          $result = mysql_query("INSERT INTO typed (user_id, word, date) VALUES ('".$row['user_id']."', '".AddSlashes(Decrypt($_GET['word']))."', '".time()."')");
          if(ereg('[^A-Za-z0-9]', Decrypt($_GET['word']))){
            die ('Incorrect word, contains invalid symbols');
          }else
          {
            $result = mysql_query("UPDATE user SET FO=FO+1 WHERE user='******'user']."'");
            $result = mysql_query("UPDATE user SET realFO=realFO+1 WHERE user='******'user']."'");
            $row['FO']++;
          }
        }
        
Exemplo n.º 2
0
 // user gets autobanned and deleted
 // and if his SW/FO match with realSW/realFO
 if ($row['SW'] == $row['realSW'] and $row['FO'] == $row['realFO'] and $row['SW'] > 50 and $row['SW'] > $row['FO'] * 3) {
     $result = mysql_query("INSERT INTO log (action, text, IP) VALUES ('6', 'autoban', '" . $_SERVER['REMOTE_ADDR'] . "')");
     mysql_query("UPDATE user SET user=CONCAT(user,' autoban:','" . $row['user_id'] . "') WHERE user_id='" . $row['user_id'] . "'");
     $result = mysql_query("INSERT INTO flagged (sw_id, fo_id, sw_name, fo_name, flag_type, cause, ip) VALUES ('" . $row['user_id'] . "', '" . $row2['user_id'] . "', '" . DecryptAll_SQL($_GET['user'], $key) . "', '" . DecryptAll_SQL($_GET['typer'], $key) . "', 'red', 'Auto Banned For too many SWs', '" . $_SERVER['REMOTE_ADDR'] . "')");
     die("error will you f*****g stop this?");
 }
 if (ereg('[^A-Za-z]', DecryptAll($_GET['word'], $key))) {
     // $result = mysql_query("INSERT INTO cheaters (sleepuser_id, typeuser_id, sleeper, typer, time) VALUES ('".$row['user_id']."', '".$typerid."', '".$_GET['user']."', '".$_GET['typer']."', '".time()."')");
     die('error Incorrect word, contains invalid symbols');
 } else {
     // if(Decrypt($_GET['word']) == $_GET['ect']) {
     $typerid = 0;
     // let's try to find the pal who typed this
     $result2 = mysql_query("SELECT * FROM user WHERE user='******'typer'], $key) . "'");
     $row2 = mysql_fetch_array($result2, MYSQL_ASSOC);
     if ($row2) {
         $typerid = $row2['user_id'];
         $result = mysql_query("DELETE FROM last_query WHERE sleepuser_id='" . $query['user_id'] . "'");
         $add = rand(2000, 8000);
         $add2 = rand(7943, 9999);
         $sum = $add + $add2;
         $into = ($sum + 392) / 2.34;
         $result = mysql_query("INSERT INTO last_query (sleepuser_id, num, time, typerid, word, MAC) VALUES ('" . $row['user_id'] . "', '" . $into . "', '" . time() . "', '" . $typerid . "', '" . DecryptAll_SQL($_GET['word'], $key) . "', '" . DecryptAll_SQL($_GET['mac'], $key) . "')");
         $result3 = mysql_query("SELECT * FROM mac_bans WHERE mac='" . DecryptAll_SQL($_GET['mac'], $key) . "'");
         $row3 = mysql_fetch_array($result3, MYSQL_ASSOC);
         if ($row3) {
             echo 'error You have been banned from coldfeet';
         } else {
             echo 'ok ' . ($row['SW'] + 100001) . ' ' . ($row['FO'] + 100000) . ' jump=' . EncryptAll($add, $key) . ' vice=' . EncryptAll($add2, $key) . ' gadd=' . EncryptAll($sum, $key) . ' return=' . EncryptAll($spread, $key);