Compare commits
44 Commits
new-mysql
...
c631b51ba2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c631b51ba2 | ||
|
|
3e083b4eb9 | ||
|
|
0c41265fb6 | ||
|
|
31a0a02366 | ||
|
|
233c9f5aed | ||
|
|
9c034cd935 | ||
|
|
d32ad04722 | ||
|
|
32c65f7da1 | ||
|
|
f736789f5b | ||
|
|
973a0a1d01 | ||
|
|
de82116482 | ||
|
|
5c7e2f6a8f | ||
|
|
6920c10d2d | ||
|
|
c477afabb0 | ||
|
|
ea745b5dbb | ||
| 1184d1415a | |||
| 2030fbce57 | |||
|
|
5f3879e48c | ||
|
|
051747f114 | ||
|
|
0a96927e50 | ||
|
|
57f254ea39 | ||
|
|
05903ce02d | ||
|
|
9a024c5c88 | ||
|
|
f9a0e41889 | ||
|
|
e17e570114 | ||
| 50b3d192ba | |||
|
|
b2e6260dfb | ||
|
|
ed87d341ab | ||
|
|
df5d1447af | ||
|
|
2352fd5396 | ||
|
|
385a02c90f | ||
|
|
8638f28847 | ||
|
|
5f2502877b | ||
|
|
8eccdffb1e | ||
|
|
c858d5dd32 | ||
|
|
234e187a54 | ||
| d8f5fd7f3a | |||
|
|
a30fd21842 | ||
|
|
57421ead5e | ||
| a846fe2fa7 | |||
|
|
06a3112617 | ||
|
|
064d8f0df3 | ||
|
|
19dcea8344 | ||
| b8e078f470 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,3 +3,4 @@
|
|||||||
/secret.php
|
/secret.php
|
||||||
/config.php
|
/config.php
|
||||||
/test.php
|
/test.php
|
||||||
|
/_secret.php
|
||||||
|
|||||||
@@ -1,3 +1,2 @@
|
|||||||
git submodule add https://git.seemsleg.it/ef/php-func-lib lib
|
# php-func-lib
|
||||||
|
git submodule add https://git.seemsleg.it/pub/php-func-lib lib
|
||||||
test
|
|
||||||
|
|||||||
@@ -6,5 +6,5 @@ include_once ('string.php');
|
|||||||
include_once ('numbers.php');
|
include_once ('numbers.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');
|
||||||
?>
|
?>
|
||||||
24
ips/crawler.php
Normal file
24
ips/crawler.php
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
<?php
|
||||||
|
$_ips_crawler = array (
|
||||||
|
'40.77.167.', // bing bot
|
||||||
|
'66.249.',
|
||||||
|
'62.138.',
|
||||||
|
'62.210.149.60',
|
||||||
|
'92.118.160.37', // netsystem research bot
|
||||||
|
'104.155.85.', // google
|
||||||
|
'114.119.1', // petalbot
|
||||||
|
'185.191.171.', // semrush bot
|
||||||
|
'207.46.13.', // bing bot
|
||||||
|
'54.36.148.', // ahrefbot
|
||||||
|
'54.36.149.', // ahrefbot
|
||||||
|
'216.244.66.196', // opensiteexplorer
|
||||||
|
'65.21.180.26', // seekport
|
||||||
|
'81.209.177.145', // website-datenbank.de
|
||||||
|
'2a01:4f8:190:4244::2', // mj12bot
|
||||||
|
'192.99.5.225', // ...
|
||||||
|
'157.55.39.', // microsoft???
|
||||||
|
'2a01:4f8:162:43c5::2', // mj12bot
|
||||||
|
'85.25.177.', // abuse
|
||||||
|
'85.25.210.' // hosteurope abuse
|
||||||
|
);
|
||||||
|
?>
|
||||||
15
mail.php
15
mail.php
@@ -1,14 +1,17 @@
|
|||||||
<?php
|
<?php
|
||||||
|
function send_mail($an, $betreff, $text, $ok = '', $error = '') {
|
||||||
function send_mail($an, $betreff, $text, $ok = '', $error = '')
|
include 'secret.php';
|
||||||
{
|
$sender = 'noreply@troy-grunt.de';
|
||||||
$header = 'From: noreply@isleofhope.de' . "\r\n";
|
if (isset ( $_sendermail )) {
|
||||||
|
$sender = $_sendermail;
|
||||||
|
}
|
||||||
|
$header = 'From: ' . $sender . "\r\n";
|
||||||
$header .= 'To: ' . $an . "\r\n";
|
$header .= 'To: ' . $an . "\r\n";
|
||||||
$header .= 'Content-Type:text/html' . "\r\n";
|
$header .= 'Content-Type:text/html' . "\r\n";
|
||||||
$header .= 'Content-Transfer-Encoding: 8bit' . "\r\n";
|
$header .= 'Content-Transfer-Encoding: 8bit' . "\r\n";
|
||||||
$header .= 'X-Mailer: PHP/' . phpversion();
|
$header .= 'X-Mailer: PHP/' . phpversion ();
|
||||||
|
|
||||||
if (mail($an, $betreff, $text, $header) === true) {
|
if (mail ( $an, $betreff, $text, $header ) === true) {
|
||||||
echo $ok;
|
echo $ok;
|
||||||
} else {
|
} else {
|
||||||
echo $error;
|
echo $error;
|
||||||
|
|||||||
@@ -7,4 +7,6 @@ $_m['pass'] = '';
|
|||||||
$_m['data'] = '';
|
$_m['data'] = '';
|
||||||
$_m['pre'] = 'efcms2_';
|
$_m['pre'] = 'efcms2_';
|
||||||
$_m['salt'] = '';
|
$_m['salt'] = '';
|
||||||
|
|
||||||
|
$_sendermail = 'noreply@troy-grunt.de';
|
||||||
?>
|
?>
|
||||||
23
sql.php
23
sql.php
@@ -34,6 +34,7 @@ class SQL {
|
|||||||
''
|
''
|
||||||
), $que ) . "\n" . print_r ( $p, true ) . "\n\n" );
|
), $que ) . "\n" . print_r ( $p, true ) . "\n\n" );
|
||||||
$statement = $this->h->prepare ( $que );
|
$statement = $this->h->prepare ( $que );
|
||||||
|
if (is_array ( $p )) {
|
||||||
switch (count ( $p )) {
|
switch (count ( $p )) {
|
||||||
case 0 :
|
case 0 :
|
||||||
break;
|
break;
|
||||||
@@ -68,6 +69,9 @@ class SQL {
|
|||||||
$statement->bind_param ( $t, $p [0], $p [1], $p [2], $p [3], $p [4], $p [5], $p [6], $p [7], $p [8], $p [9] );
|
$statement->bind_param ( $t, $p [0], $p [1], $p [2], $p [3], $p [4], $p [5], $p [6], $p [7], $p [8], $p [9] );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
$statement->bind_param ( $t, $p );
|
||||||
|
}
|
||||||
$statement->execute ();
|
$statement->execute ();
|
||||||
|
|
||||||
$ret = array ();
|
$ret = array ();
|
||||||
@@ -128,6 +132,7 @@ class SQL {
|
|||||||
' ',
|
' ',
|
||||||
''
|
''
|
||||||
), $que ) . "\n" . print_r ( $p, true ) . "\n\n" );
|
), $que ) . "\n" . print_r ( $p, true ) . "\n\n" );
|
||||||
|
if (is_array ( $p )) {
|
||||||
switch (count ( $p )) {
|
switch (count ( $p )) {
|
||||||
case 0 :
|
case 0 :
|
||||||
break;
|
break;
|
||||||
@@ -161,21 +166,9 @@ class SQL {
|
|||||||
case 10 :
|
case 10 :
|
||||||
$statement->bind_param ( $t, $p [0], $p [1], $p [2], $p [3], $p [4], $p [5], $p [6], $p [7], $p [8], $p [9] );
|
$statement->bind_param ( $t, $p [0], $p [1], $p [2], $p [3], $p [4], $p [5], $p [6], $p [7], $p [8], $p [9] );
|
||||||
break;
|
break;
|
||||||
case 11 :
|
}
|
||||||
$statement->bind_param ( $t, $p [0], $p [1], $p [2], $p [3], $p [4], $p [5], $p [6], $p [7], $p [8], $p [9], $p [10] );
|
} else {
|
||||||
break;
|
$statement->bind_param ( $t, $p );
|
||||||
case 12 :
|
|
||||||
$statement->bind_param ( $t, $p [0], $p [1], $p [2], $p [3], $p [4], $p [5], $p [6], $p [7], $p [8], $p [9], $p [10], $p [11] );
|
|
||||||
break;
|
|
||||||
case 13 :
|
|
||||||
$statement->bind_param ( $t, $p [0], $p [1], $p [2], $p [3], $p [4], $p [5], $p [6], $p [7], $p [8], $p [9], $p [10], $p [11], $p [12] );
|
|
||||||
break;
|
|
||||||
case 14 :
|
|
||||||
$statement->bind_param ( $t, $p [0], $p [1], $p [2], $p [3], $p [4], $p [5], $p [6], $p [7], $p [8], $p [9], $p [10], $p [11], $p [12], $p [13] );
|
|
||||||
break;
|
|
||||||
case 15 :
|
|
||||||
$statement->bind_param ( $t, $p [0], $p [1], $p [2], $p [3], $p [4], $p [5], $p [6], $p [7], $p [8], $p [9], $p [10], $p [11], $p [12], $p [13], $p [14] );
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
$statement->execute ();
|
$statement->execute ();
|
||||||
if (isset ( $statement->error ) && $statement->error != '') {
|
if (isset ( $statement->error ) && $statement->error != '') {
|
||||||
|
|||||||
16
string.php
16
string.php
@@ -7,7 +7,8 @@ function umlaute($str) {
|
|||||||
'ä',
|
'ä',
|
||||||
'ö',
|
'ö',
|
||||||
'ü',
|
'ü',
|
||||||
'ß'
|
'ß',
|
||||||
|
'&'
|
||||||
), array (
|
), array (
|
||||||
'Ä',
|
'Ä',
|
||||||
'Ö',
|
'Ö',
|
||||||
@@ -15,7 +16,8 @@ function umlaute($str) {
|
|||||||
'ä',
|
'ä',
|
||||||
'ö',
|
'ö',
|
||||||
'ü',
|
'ü',
|
||||||
'ß'
|
'ß',
|
||||||
|
'&'
|
||||||
), $str );
|
), $str );
|
||||||
}
|
}
|
||||||
function chk($str) {
|
function chk($str) {
|
||||||
@@ -257,4 +259,14 @@ function onlySimpleHTML($s) {
|
|||||||
|
|
||||||
return $s;
|
return $s;
|
||||||
}
|
}
|
||||||
|
function linkify($input) {
|
||||||
|
$pattern = '@(http(s)?://[a-zA-Z0-9/\.\#\-\_]*)@';
|
||||||
|
return $output = preg_replace ( $pattern, '<a href="$1">$1</a>', $input );
|
||||||
|
}
|
||||||
|
function inStr($needle, $haystack) {
|
||||||
|
if (strpos ( $haystack, $needle ) !== false) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
Reference in New Issue
Block a user