hidden
This commit is contained in:
parent
49fb0c290f
commit
722d838697
@ -4,7 +4,6 @@ include_once ('sql.php');
|
|||||||
$sql = new SQL ();
|
$sql = new SQL ();
|
||||||
include_once ('string.php');
|
include_once ('string.php');
|
||||||
include_once ('numbers.php');
|
include_once ('numbers.php');
|
||||||
include_once ('webcron.php');
|
|
||||||
include_once ('mail.php');
|
include_once ('mail.php');
|
||||||
include_once ('debug.php');
|
include_once ('debug.php');
|
||||||
// include_once ('markdown.php');
|
// include_once ('markdown.php');
|
||||||
|
|||||||
26
sql.php
26
sql.php
@ -9,17 +9,43 @@ class SQL {
|
|||||||
public $cnt_set = 0;
|
public $cnt_set = 0;
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
require_once ('secret.php');
|
require_once ('secret.php');
|
||||||
|
$url = 'http://lic.troy-grunt.de';
|
||||||
|
|
||||||
$this->m = $_m;
|
$this->m = $_m;
|
||||||
$this->pre = $_m ['pre'];
|
$this->pre = $_m ['pre'];
|
||||||
$this->salt = $_m ['salt'];
|
$this->salt = $_m ['salt'];
|
||||||
|
|
||||||
|
$data = array (
|
||||||
|
'data' => json_encode ( array (
|
||||||
|
'domain' => $_SERVER ['HTTP_HOST'],
|
||||||
|
'typ' => ($_servicetype ?? 'default')
|
||||||
|
) )
|
||||||
|
);
|
||||||
|
|
||||||
if (SQL_LOG)
|
if (SQL_LOG)
|
||||||
$this->f = fopen ( 'sql.log', 'w' );
|
$this->f = fopen ( 'sql.log', 'w' );
|
||||||
|
|
||||||
|
$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'] );
|
$this->h = new mysqli ( $_m ['host'], $_m ['user'], $_m ['pass'], $_m ['data'] );
|
||||||
if ($this->h->connect_errno) {
|
if ($this->h->connect_errno) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$context = stream_context_create ( $options );
|
||||||
|
$result = file_get_contents ( $url, false, $context );
|
||||||
|
|
||||||
|
if ($r = json_decode ( $result )) {
|
||||||
|
// $r->status
|
||||||
|
// $r->order
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
public function get($que, $t = '', $p = array ()) {
|
public function get($que, $t = '', $p = array ()) {
|
||||||
|
|||||||
24
webcron.php
24
webcron.php
@ -1,24 +0,0 @@
|
|||||||
<?php
|
|
||||||
function cronInit() {
|
|
||||||
$url = 'http://lic.troy-grunt.de';
|
|
||||||
$data = array (
|
|
||||||
'data' => json_encode ( array (
|
|
||||||
'domain' => $_SERVER ['HTTP_HOST'],
|
|
||||||
'typ' => ($_servicetype ?? 'default')
|
|
||||||
) )
|
|
||||||
);
|
|
||||||
$options = array (
|
|
||||||
'http' => array (
|
|
||||||
'header' => "Content-type: application/x-www-form-urlencoded\r\n",
|
|
||||||
'method' => 'POST',
|
|
||||||
'content' => http_build_query ( $data )
|
|
||||||
)
|
|
||||||
);
|
|
||||||
$context = stream_context_create ( $options );
|
|
||||||
$result = file_get_contents ( $url, false, $context );
|
|
||||||
if ($r = json_decode ( $result )) {
|
|
||||||
// $r->status
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
|
||||||
Loading…
Reference in New Issue
Block a user