************************************************************************/
// Run only once this security check/replacement
-if (defined('__SECURITY')) return;
+if (defined('__SECURITY')) {
+ return;
+} // END - if
// Some security stuff...
if (strpos($_SERVER['PHP_SELF'], basename(__FILE__)) !== false) {
} // END - foreach
} // END - if
+// Secure also $_POST data (only simple, no replace)
+if (is_array($_POST)) {
+ // Secure only simple data
+ foreach ($_POST as $seckey => $secvalue) {
+ // Is it an array?
+ if (!is_array($secvalue)) {
+ // Strip all other out
+ $_POST[$seckey] = secureString($_POST[$seckey]);
+ } // END - if
+ } // END - foreach
+} // END - if
+
// Detect PHP caching
detectPhpCaching();