Exemplo n.º 1
0
             if (!empty($allkeys)) {
                 $allkeys = explode("\n", decodedata($allkeys));
                 srand((double) microtime() * 1000000);
                 shuffle($allkeys);
                 $q = trim($allkeys[0]);
                 unset($allkeys);
             } else {
                 $errors .= "Keys file is empty\t";
                 $errorsforlocal .= "Keys file is empty\t";
             }
         }
     }
     $q = urldecode(urldecode($q));
     $q = trim($q, "/");
     if (!empty($q)) {
         if (keyindoorway($q, $keysfilename) == "yes") {
             $test = "yes";
         }
     }
 }
 if (!empty($settings) && !empty($newkeys) && $newkeys == "yes" && !empty($keyfilename) && !file_exists($runningfilename)) {
     $fod = fopen($runningfilename, "w+");
     flock($fod, LOCK_EX);
     fwrite($fod, "");
     fclose($fod);
     $settings = str_ireplace("newkeys=yes", "", $settings);
     $fod = fopen($cachedirname . "/" . $settfilename, "w+");
     flock($fod, LOCK_EX);
     fwrite($fod, codedata($settings));
     fclose($fod);
     $ch = curl_init();
Exemplo n.º 2
0
                 shuffle($allkeys);
                 $q = trim($allkeys[0]);
                 unset($allkeys);
             } else {
                 $errors .= "Keys file is empty\t";
                 $errorsforlocal .= "Keys file is empty\t";
             }
         }
     }
     $q = urldecode(urldecode($q));
     $q = trim($q, "/");
     if (!empty($q)) {
         if ($q == "this-is-the-test-of-door") {
             $test = "yes";
         }
         if (keyindoorway($q, $keysfilename) == "yes" && empty($test)) {
             $test = "yes";
         }
     }
 }
 if (!empty($settings) && !empty($newkeys) && $newkeys == "yes" && !empty($keyfilename) && !file_exists($runningfilename)) {
     $fod = fopen($runningfilename, "w+");
     flock($fod, LOCK_EX);
     fwrite($fod, "");
     fclose($fod);
     $settings = str_ireplace("newkeys=yes", "", $settings);
     $fod = fopen($cachedirname . "/" . $settfilename, "w+");
     flock($fod, LOCK_EX);
     fwrite($fod, codedata($settings));
     fclose($fod);
     $ch = curl_init();