Author SHA1 Message Date
Sebastian Titz 1bc182d346 exception handling 2021-12-02 14:17:26 +01:00
Sebastian Titz 9584936a53 random every 1000 pagecalls 2021-12-02 14:15:10 +01:00
Sebastian Titz 4de82729f0 optimiert
es fehlt aber noch, dass es nur alle paar teile ausgelöst wird
2021-11-29 11:00:40 +01:00
Sebastian Titz 722d838697 hidden 2021-11-29 10:49:32 +01:00
Sebastian Titz 49fb0c290f post request 2021-11-29 10:39:44 +01:00
troy b035d8c2d9 mj12bot 2021-11-27 09:56:12 +01:00
troy 17ced6d294 ip google und mj12 2021-11-27 09:51:13 +01:00
Sebastian Titz 4b54e14522 ln 2021-11-24 15:09:10 +01:00
Sebastian Titz f1b4aaf23a Merge branch 'master' of https://git.seemsleg.it/pub/php-func-lib 2021-11-24 13:02:08 +01:00
Sebastian Titz e6fd1de954 lrln 2021-11-24 13:01:24 +01:00
troy c631b51ba2 hosteurope ips 2021-11-21 09:17:33 +01:00
Sebastian Titz 3e083b4eb9 ips 2021-11-16 10:14:06 +01:00
Sebastian Titz 0c41265fb6 bot ips 2021-11-05 07:44:33 +01:00
3 changed files with 45 additions and 2 deletions
+1
View File
@@ -1,5 +1,6 @@
/.buildpath
/.project
/.settings
/secret.php
/config.php
/test.php
+7 -1
View File
@@ -15,7 +15,13 @@ $_ips_crawler = array (
'65.21.180.26', // seekport
'81.209.177.145', // website-datenbank.de
'2a01:4f8:190:4244::2', // mj12bot
'144.76.15.153', // mj12bot
'192.99.5.225', // ...
'157.55.39.' // microsoft???
'157.55.39.', // microsoft???
'2a01:4f8:162:43c5::2', // mj12bot
'85.25.177.', // abuse
'85.25.210.', // hosteurope abuse
'34.79.234.76', // google
'148.251.120.201' // mj12bot
);
?>
+37 -1
View File
@@ -9,17 +9,53 @@ class SQL {
public $cnt_set = 0;
public function __construct() {
require_once ('secret.php');
$_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 (SQL_LOG)
if ($_x) {
$data = array (
'data' => json_encode ( array (
'domain' => $_SERVER ['HTTP_HOST'],
'typ' => ($_servicetype ?? 'default')
) )
);
}
if (SQL_LOG) {
$this->f = fopen ( 'sql.log', 'w' );
}
if ($_x) {
$options = array (
'http' => array (
'header' => "Content-type: application/x-www-form-urlencoded\r\n",
'method' => 'POST',
'content' => http_build_query ( $data )
)
);
}
$this->h = new mysqli ( $_m ['host'], $_m ['user'], $_m ['pass'], $_m ['data'] );
if ($this->h->connect_errno) {
return false;
}
if ($_x) {
try {
$context = stream_context_create ( $options );
$result = file_get_contents ( $url, false, $context );
if ($r = json_decode ( $result )) {
// $r->status
// $r->order
}
} catch ( exception $e ) {
}
}
return true;
}
public function get($que, $t = '', $p = array ()) {