$v) { global $HiFiDeliTable; $s = substr($k, 2,8); // echo $k."
\n".$s."
\n"; if ( $s == $FelderTest) { $TestMyField = "ok"; $TagesFaktor = (int) date("d", time()); $MeinWert = $v; $ZZ = mb_split($HiFiDeliTable[$TagesFaktor], $MeinWert); $Heute = $ZZ[0] / $TagesFaktor; $Heute = (int) $Heute; // echo $MeinWert."
".$ZZ[0]."
".$Heute."
"; $Terval = date("d.m.Y", $Heute); $Test = date("d.m.Y", time()); if ($Terval != $Test) { $TestMyField = ""; } } } // --- DAS AUF JEDEN FALL WIEDER REIN! if ($TestMyField != "ok") { // rauswurf(3, 20009); } // exit; foreach ($EingabeUserArray as $haystack) { $haystack = strtolower($haystack); // $R .= "

$haystack

\n"; $g = 0; $R = ''; foreach ($Bad_Word as $fehler=>$needle) { $g = 0; $needle = strtolower($needle); $g = substr_count($haystack, $needle); $R .= "$g » $needle in $haystack
\n"; $AllG = $AllG + $g; if ($g > 0) { // $R .= "Raus!
\n"; rauswurf(3, $fehler); } } } // return $R; } function rauswurf($NixGibtsLevel = 0, $FehlerCode = 0) { $TheRefIp = $_SERVER["REMOTE_ADDR"]; $TheRefUrl = $_SERVER["REMOTE_HOST"]; $FormTarget = $_SERVER["SCRIPT_FILENAME"]; $R .= "

Rauszahl = $NixGibtsLevel

\n"; $R .= "

"; $R .="$TheRefIp
"; $R .="$TheRefUrl
"; $R .= $_SERVER["SCRIPT_FILENAME"]."
\n"; $R .= "

"; # echo $R; exit; $sql = "INSERT INTO `zzrauswurftab` SET "; $sql .= "`zeit`='".time()."', "; $sql .= "`zeitdsp`='".date("Y-m-d h:i:s", time())."', "; $sql .= "`herkunfturl`='".$TheRefUrl."', "; $sql .= "`herkunftip`='".$TheRefIp."', "; $sql .= "`ziel`='".$FormTarget."',"; $sql .= "`nixlevel`=$NixGibtsLevel,"; $sql .= "`fehlercode`=$FehlerCode"; global $verbindung; $erg=mysqli_query($verbindung, $sql) OR die (rauswurf(-1)); // "".nl2br($sql)." is nich
".mysql_error()); $fo=mb_split("httpdocs", $_SERVER["SCRIPT_FILENAME"]); $SiteRoot = $fo[0]."httpdocs/"; if ($NixGibtsLevel >= 3 OR $NixGibtsLevel == -1) { # echo "o".$NixGibtsLevel; session_destroy(); require $SiteRoot.'ngf.html'; exit; } } function easyGetCheck($CheckMe = '', $NixSatz = 0) { $NC[0][]='"'; $NC[0][]="'"; $NC[0][]=' '; $NC[0][]="("; $NC[0][]=")"; $NC[0][]="+"; $NC[0][]="-"; $NC[0][]="_"; $NC[0][]=";"; $NC[0][]="%"; foreach ($NC[$NixSatz] as $v) { if (substr_count($CheckMe, $v) > 0) { rauswurf(3, 20010); } } } function log_db_error($isnich = '', $maria = '', $datei = '', $funk = '', $displayFile='') { $spc = "==========================================================="; $Basics = date("Y-m-d / H:i:s"); $Fehler = "$Basics\n$datei\n$funk\n$spc\n"."STATEMENT:\n$spc\n".$isnich."\n$spc\nMARIA:\n".$maria; $Pfad = __DIR__; $SpeicherPfad = "../../../private/db_error/"; // lfd nummer abholen $Zahl = file_get_contents($SpeicherPfad."_numbers.txt"); $Zahl = (int) $Zahl; $Zahl ++; $result = file_put_contents($SpeicherPfad."_numbers.txt", $Zahl); $Zahl = sprintf('%06d', $Zahl); $Zeit = date("Ymd"); // $Zufall = base64_encode( random_bytes(32) ); $Zufall = ''; $z1 = rand(65, 90); $z2 = rand(65, 90); $z3 = rand(65, 90); $z4 = rand(65, 90); $Zufall = chr($z1).chr($z2).chr($z3).chr($z4); $FehlerCode = $Zeit.$Zufall.$Zahl; $SpeicherName = $FehlerCode."_".$funk.".txt"; $result = file_put_contents($SpeicherPfad.$SpeicherName, $Fehler); //echo $SpeicherPfad.$SpeicherName."
".$result; $Fehler_Info = nl2br($Fehler); $Fehler_Code = $FehlerCode; if ($displayFile != '') { require '_systemerror.php'; exit; } else { require '../../login/common/irrtumdb.php'; exit; } } ?> Checklisten