Compare commits
24 Commits
234e187a54
...
feature/ma
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
63d289b6a9 | ||
|
|
6920c10d2d | ||
|
|
c477afabb0 | ||
|
|
ea745b5dbb | ||
| 1184d1415a | |||
| 2030fbce57 | |||
|
|
5f3879e48c | ||
|
|
051747f114 | ||
|
|
0a96927e50 | ||
|
|
57f254ea39 | ||
|
|
05903ce02d | ||
|
|
9a024c5c88 | ||
|
|
f9a0e41889 | ||
|
|
e17e570114 | ||
| 50b3d192ba | |||
|
|
b2e6260dfb | ||
|
|
ed87d341ab | ||
|
|
df5d1447af | ||
|
|
2352fd5396 | ||
|
|
385a02c90f | ||
|
|
8638f28847 | ||
|
|
5f2502877b | ||
|
|
8eccdffb1e | ||
|
|
c858d5dd32 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,3 +3,4 @@
|
|||||||
/secret.php
|
/secret.php
|
||||||
/config.php
|
/config.php
|
||||||
/test.php
|
/test.php
|
||||||
|
/_secret.php
|
||||||
|
|||||||
18
ips/crawler.php
Normal file
18
ips/crawler.php
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<?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.124', // bing bot
|
||||||
|
'54.36.148.', // ahrefbot
|
||||||
|
'216.244.66.196', // opensiteexplorer
|
||||||
|
'65.21.180.26', // seekport
|
||||||
|
'81.209.177.145', // website-datenbank.de
|
||||||
|
'2a01:4f8:190:4244::2' // mj12bot
|
||||||
|
);
|
||||||
|
?>
|
||||||
29
mail.php
29
mail.php
@@ -1,17 +1,20 @@
|
|||||||
<?php
|
<?php
|
||||||
|
function send_mail($an, $betreff, $text, $ok = '', $error = '') {
|
||||||
|
include 'secret.php';
|
||||||
|
$sender = 'noreply@troy-grunt.de';
|
||||||
|
if (isset ( $_sendermail )) {
|
||||||
|
$sender = $_sendermail;
|
||||||
|
}
|
||||||
|
$header = 'From: ' . $sender . "\r\n";
|
||||||
|
$header .= 'To: ' . $an . "\r\n";
|
||||||
|
$header .= 'Content-Type:text/html' . "\r\n";
|
||||||
|
$header .= 'Content-Transfer-Encoding: 8bit' . "\r\n";
|
||||||
|
$header .= 'X-Mailer: PHP/' . phpversion ();
|
||||||
|
|
||||||
function send_mail($an, $betreff, $text, $ok = '', $error = '')
|
if (mail ( $an, $betreff, $text, $header ) === true) {
|
||||||
{
|
echo $ok;
|
||||||
$header = 'From: noreply@isleofhope.de' . "\r\n";
|
} else {
|
||||||
$header .= 'To: ' . $an . "\r\n";
|
echo $error;
|
||||||
$header .= 'Content-Type:text/html' . "\r\n";
|
}
|
||||||
$header .= 'Content-Transfer-Encoding: 8bit' . "\r\n";
|
|
||||||
$header .= 'X-Mailer: PHP/' . phpversion();
|
|
||||||
|
|
||||||
if (mail($an, $betreff, $text, $header) === true) {
|
|
||||||
echo $ok;
|
|
||||||
} else {
|
|
||||||
echo $error;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
if (!defined('SQL_LOG')) define ( 'SQL_LOG', 1 ); // schreibt sql querys in eine log
|
if (!defined('SQL_LOG')) define ( 'SQL_LOG', 1 ); // schreibt sql querys in eine log
|
||||||
|
|
||||||
$_m['host'] = 'localhost';
|
$_m['host'] = 'localhost';
|
||||||
$_m['user'] = '';
|
$_m['user'] = '';
|
||||||
$_m['pass'] = '';
|
$_m['pass'] = '';
|
||||||
$_m['data'] = '';
|
$_m['data'] = '';
|
||||||
$_m['pre'] = 'efcms2_';
|
$_m['pre'] = 'efcms2_';
|
||||||
$_m['salt'] = '';
|
$_m['salt'] = '';
|
||||||
|
|
||||||
|
$_sendermail = 'noreply@troy-grunt.de';
|
||||||
?>
|
?>
|
||||||
198
string.php
198
string.php
@@ -1,21 +1,21 @@
|
|||||||
<?php
|
<?php
|
||||||
function umlaute($str) {
|
function umlaute($str) {
|
||||||
return str_replace ( array (
|
return str_replace ( array (
|
||||||
'Ä',
|
'Ä',
|
||||||
'Ö',
|
'Ö',
|
||||||
'Ü',
|
'Ü',
|
||||||
'ä',
|
'ä',
|
||||||
'ö',
|
'ö',
|
||||||
'ü',
|
'ü',
|
||||||
'ß'
|
'ß'
|
||||||
), array (
|
), array (
|
||||||
'Ä',
|
'Ä',
|
||||||
'Ö',
|
'Ö',
|
||||||
'Ü',
|
'Ü',
|
||||||
'ä',
|
'ä',
|
||||||
'ö',
|
'ö',
|
||||||
'ü',
|
'ü',
|
||||||
'ß'
|
'ß'
|
||||||
), $str );
|
), $str );
|
||||||
}
|
}
|
||||||
function chk($str) {
|
function chk($str) {
|
||||||
@@ -23,17 +23,17 @@ function chk($str) {
|
|||||||
}
|
}
|
||||||
function noScript($str) {
|
function noScript($str) {
|
||||||
return str_replace ( array (
|
return str_replace ( array (
|
||||||
'<',
|
'<',
|
||||||
'>'
|
'>'
|
||||||
), array (
|
), array (
|
||||||
'<',
|
'<',
|
||||||
'>'
|
'>'
|
||||||
), $str );
|
), $str );
|
||||||
}
|
}
|
||||||
function random($name_laenge) {
|
function random($name_laenge) {
|
||||||
$zeichen = "abcedfghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRTSUVWXYZ0123456789";
|
$zeichen = "abcedfghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRTSUVWXYZ0123456789";
|
||||||
$name_neu = "";
|
$name_neu = "";
|
||||||
|
|
||||||
@mt_srand ( ( double ) microtime () * 1000000 );
|
@mt_srand ( ( double ) microtime () * 1000000 );
|
||||||
for($i = 0; $i < $name_laenge; $i ++) {
|
for($i = 0; $i < $name_laenge; $i ++) {
|
||||||
$r = mt_rand ( 0, strlen ( $zeichen ) - 1 );
|
$r = mt_rand ( 0, strlen ( $zeichen ) - 1 );
|
||||||
@@ -47,7 +47,7 @@ function startsWith($haystack, $needle) {
|
|||||||
}
|
}
|
||||||
function endsWith($haystack, $needle) {
|
function endsWith($haystack, $needle) {
|
||||||
$length = strlen ( $needle );
|
$length = strlen ( $needle );
|
||||||
|
|
||||||
return $length === 0 || (substr ( $haystack, - $length ) === $needle);
|
return $length === 0 || (substr ( $haystack, - $length ) === $needle);
|
||||||
}
|
}
|
||||||
function onlyAlpha($str, $zus = '') {
|
function onlyAlpha($str, $zus = '') {
|
||||||
@@ -127,134 +127,144 @@ function markUp($text) {
|
|||||||
}
|
}
|
||||||
function onlySimpleHTML($s) {
|
function onlySimpleHTML($s) {
|
||||||
$s = str_replace ( array (
|
$s = str_replace ( array (
|
||||||
'<',
|
'<',
|
||||||
'>'
|
'>'
|
||||||
), array (
|
), array (
|
||||||
'{{|-<-|}}',
|
'{{|-<-|}}',
|
||||||
'{{|->-|}}'
|
'{{|->-|}}'
|
||||||
), $s );
|
), $s );
|
||||||
$s = str_replace ( array (
|
$s = str_replace ( array (
|
||||||
'{{|-<-|}}b{{|->-|}}',
|
'{{|-<-|}}b{{|->-|}}',
|
||||||
'{{|-<-|}}b/{{|->-|}}'
|
'{{|-<-|}}b/{{|->-|}}'
|
||||||
), array (
|
), array (
|
||||||
'<b>',
|
'<b>',
|
||||||
'<b/>'
|
'<b/>'
|
||||||
), $s );
|
), $s );
|
||||||
$s = str_replace ( array (
|
$s = str_replace ( array (
|
||||||
'{{|-<-|}}u{{|->-|}}',
|
'{{|-<-|}}u{{|->-|}}',
|
||||||
'{{|-<-|}}u/{{|->-|}}'
|
'{{|-<-|}}u/{{|->-|}}'
|
||||||
), array (
|
), array (
|
||||||
'<u>',
|
'<u>',
|
||||||
'<u/>'
|
'<u/>'
|
||||||
), $s );
|
), $s );
|
||||||
$s = str_replace ( array (
|
$s = str_replace ( array (
|
||||||
'{{|-<-|}}i{{|->-|}}',
|
'{{|-<-|}}i{{|->-|}}',
|
||||||
'{{|-<-|}}i/{{|->-|}}'
|
'{{|-<-|}}i/{{|->-|}}'
|
||||||
), array (
|
), array (
|
||||||
'<i>',
|
'<i>',
|
||||||
'<i/>'
|
'<i/>'
|
||||||
), $s );
|
), $s );
|
||||||
$s = str_replace ( array (
|
$s = str_replace ( array (
|
||||||
'{{|-<-|}}span{{|->-|}}',
|
'{{|-<-|}}span{{|->-|}}',
|
||||||
'{{|-<-|}}span/{{|->-|}}'
|
'{{|-<-|}}span/{{|->-|}}'
|
||||||
), array (
|
), array (
|
||||||
'<span>',
|
'<span>',
|
||||||
'<span/>'
|
'<span/>'
|
||||||
), $s );
|
), $s );
|
||||||
$s = str_replace ( array (
|
$s = str_replace ( array (
|
||||||
'{{|-<-|}}b{{|->-|}}',
|
'{{|-<-|}}b{{|->-|}}',
|
||||||
'{{|-<-|}}b/{{|->-|}}'
|
'{{|-<-|}}b/{{|->-|}}'
|
||||||
), array (
|
), array (
|
||||||
'<b>',
|
'<b>',
|
||||||
'<b/>'
|
'<b/>'
|
||||||
), $s );
|
), $s );
|
||||||
$s = str_replace ( array (
|
$s = str_replace ( array (
|
||||||
'{{|-<-|}}br{{|->-|}}',
|
'{{|-<-|}}br{{|->-|}}',
|
||||||
'{{|-<-|}}br/{{|->-|}}'
|
'{{|-<-|}}br/{{|->-|}}'
|
||||||
), array (
|
), array (
|
||||||
'<br>',
|
'<br>',
|
||||||
'<br/>'
|
'<br/>'
|
||||||
), $s );
|
), $s );
|
||||||
$s = str_replace ( array (
|
$s = str_replace ( array (
|
||||||
'{{|-<-|}}h1{{|->-|}}',
|
'{{|-<-|}}h1{{|->-|}}',
|
||||||
'{{|-<-|}}h1/{{|->-|}}'
|
'{{|-<-|}}h1/{{|->-|}}'
|
||||||
), array (
|
), array (
|
||||||
'<h1>',
|
'<h1>',
|
||||||
'<h1/>'
|
'<h1/>'
|
||||||
), $s );
|
), $s );
|
||||||
$s = str_replace ( array (
|
$s = str_replace ( array (
|
||||||
'{{|-<-|}}h2{{|->-|}}',
|
'{{|-<-|}}h2{{|->-|}}',
|
||||||
'{{|-<-|}}h2/{{|->-|}}'
|
'{{|-<-|}}h2/{{|->-|}}'
|
||||||
), array (
|
), array (
|
||||||
'<h2>',
|
'<h2>',
|
||||||
'<h2/>'
|
'<h2/>'
|
||||||
), $s );
|
), $s );
|
||||||
$s = str_replace ( array (
|
$s = str_replace ( array (
|
||||||
'{{|-<-|}}h3{{|->-|}}',
|
'{{|-<-|}}h3{{|->-|}}',
|
||||||
'{{|-<-|}}h3/{{|->-|}}'
|
'{{|-<-|}}h3/{{|->-|}}'
|
||||||
), array (
|
), array (
|
||||||
'<h3>',
|
'<h3>',
|
||||||
'<h3/>'
|
'<h3/>'
|
||||||
), $s );
|
), $s );
|
||||||
$s = str_replace ( array (
|
$s = str_replace ( array (
|
||||||
'{{|-<-|}}h4{{|->-|}}',
|
'{{|-<-|}}h4{{|->-|}}',
|
||||||
'{{|-<-|}}h4/{{|->-|}}'
|
'{{|-<-|}}h4/{{|->-|}}'
|
||||||
), array (
|
), array (
|
||||||
'<h4>',
|
'<h4>',
|
||||||
'<h4/>'
|
'<h4/>'
|
||||||
), $s );
|
), $s );
|
||||||
$s = str_replace ( array (
|
$s = str_replace ( array (
|
||||||
'{{|-<-|}}h5{{|->-|}}',
|
'{{|-<-|}}h5{{|->-|}}',
|
||||||
'{{|-<-|}}h5/{{|->-|}}'
|
'{{|-<-|}}h5/{{|->-|}}'
|
||||||
), array (
|
), array (
|
||||||
'<h5>',
|
'<h5>',
|
||||||
'<h5/>'
|
'<h5/>'
|
||||||
), $s );
|
), $s );
|
||||||
$s = str_replace ( array (
|
$s = str_replace ( array (
|
||||||
'{{|-<-|}}h6{{|->-|}}',
|
'{{|-<-|}}h6{{|->-|}}',
|
||||||
'{{|-<-|}}h6/{{|->-|}}'
|
'{{|-<-|}}h6/{{|->-|}}'
|
||||||
), array (
|
), array (
|
||||||
'<h6>',
|
'<h6>',
|
||||||
'<h6/>'
|
'<h6/>'
|
||||||
), $s );
|
), $s );
|
||||||
$s = str_replace ( array (
|
$s = str_replace ( array (
|
||||||
'{{|-<-|}}li{{|->-|}}',
|
'{{|-<-|}}li{{|->-|}}',
|
||||||
'{{|-<-|}}li/{{|->-|}}'
|
'{{|-<-|}}li/{{|->-|}}'
|
||||||
), array (
|
), array (
|
||||||
'<li>',
|
'<li>',
|
||||||
'<li/>'
|
'<li/>'
|
||||||
), $s );
|
), $s );
|
||||||
$s = str_replace ( array (
|
$s = str_replace ( array (
|
||||||
'{{|-<-|}}ul{{|->-|}}',
|
'{{|-<-|}}ul{{|->-|}}',
|
||||||
'{{|-<-|}}ul/{{|->-|}}'
|
'{{|-<-|}}ul/{{|->-|}}'
|
||||||
), array (
|
), array (
|
||||||
'<ul>',
|
'<ul>',
|
||||||
'<ul/>'
|
'<ul/>'
|
||||||
), $s );
|
), $s );
|
||||||
$s = str_replace ( array (
|
$s = str_replace ( array (
|
||||||
'{{|-<-|}}ol{{|->-|}}',
|
'{{|-<-|}}ol{{|->-|}}',
|
||||||
'{{|-<-|}}ol/{{|->-|}}'
|
'{{|-<-|}}ol/{{|->-|}}'
|
||||||
), array (
|
), array (
|
||||||
'<ol>',
|
'<ol>',
|
||||||
'<ol/>'
|
'<ol/>'
|
||||||
), $s );
|
), $s );
|
||||||
$s = str_replace ( array (
|
$s = str_replace ( array (
|
||||||
'{{|-<-|}}pre{{|->-|}}',
|
'{{|-<-|}}pre{{|->-|}}',
|
||||||
'{{|-<-|}}pre/{{|->-|}}'
|
'{{|-<-|}}pre/{{|->-|}}'
|
||||||
), array (
|
), array (
|
||||||
'<pre>',
|
'<pre>',
|
||||||
'<pre/>'
|
'<pre/>'
|
||||||
), $s );
|
), $s );
|
||||||
|
|
||||||
// cleanup
|
// cleanup
|
||||||
$s = str_replace ( array (
|
$s = str_replace ( array (
|
||||||
'{{|-',
|
'{{|-',
|
||||||
'-|}}'
|
'-|}}'
|
||||||
), array (
|
), array (
|
||||||
'',
|
'',
|
||||||
''
|
''
|
||||||
), $s );
|
), $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