summaryrefslogtreecommitdiff
path: root/www-ssl
diff options
context:
space:
mode:
Diffstat (limited to 'www-ssl')
-rw-r--r--www-ssl/inc/funktion_db.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/www-ssl/inc/funktion_db.php b/www-ssl/inc/funktion_db.php
index ff85d5cd..329e9c29 100644
--- a/www-ssl/inc/funktion_db.php
+++ b/www-ssl/inc/funktion_db.php
@@ -44,6 +44,9 @@ if( !function_exists("db_query"))
//WHERE ermitteln
$Where_Start = strpos( $SQL, "WHERE");
$Where = substr( $SQL, $Where_Start);
+
+ // sicherheitsprüfung !!!!
+ if( $Where_Start == 0) die("<h1>DIE: kein WHERE im SQL ausdruck gefunden</h1>");
//Daten auslesen
$Diff .= Ausgabe_Daten( "SELECT * FROM $Table $Where");
@@ -54,6 +57,10 @@ if( !function_exists("db_query"))
//Daten auslesen
$Diff .= Ausgabe_Daten( "SELECT * FROM $Table $Where");
}
+ elseif( strpos( "#$SQL", "INSERT") > 0)
+ {
+ echo "##### LOG: INSERT #####";
+ }
else
{
//execute command