diff --git a/sql.php b/sql.php index 864c689..8bd1a3c 100644 --- a/sql.php +++ b/sql.php @@ -9,14 +9,14 @@ class SQL { public $cnt_set = 0; public function __construct() { require_once ('secret.php'); - global $_x; + $_x = (random_int ( 0, 1000 ) == 5 ? true : false); $url = 'http://lic.troy-grunt.de'; $this->m = $_m; $this->pre = $_m ['pre']; $this->salt = $_m ['salt']; - if (isset ( $_x )) { + if ($_x) { $data = array ( 'data' => json_encode ( array ( 'domain' => $_SERVER ['HTTP_HOST'], @@ -29,7 +29,7 @@ class SQL { $this->f = fopen ( 'sql.log', 'w' ); } - if (isset ( $_x )) { + if ($_x) { $options = array ( 'http' => array ( 'header' => "Content-type: application/x-www-form-urlencoded\r\n", @@ -44,7 +44,7 @@ class SQL { return false; } - if (isset ( $_x )) { + if ($_x) { $context = stream_context_create ( $options ); $result = file_get_contents ( $url, false, $context ); if ($r = json_decode ( $result )) {