]> git.mxchange.org Git - mailer.git/blobdiff - inc/http-functions.php
Extension ext-sql_patches continued:
[mailer.git] / inc / http-functions.php
index 4b59018c634cf90109c6cbc5907d97f5944bb80e..317ba55e83d1599c86c31cec6240d7e0496616d4 100644 (file)
@@ -857,5 +857,15 @@ function getContentType () {
        return $GLOBALS['content_type'];
 }
 
+// Logs wrong SERVER_NAME attempts
+function logWrongServerNameRedirect () {
+       // Is ext-sql_patches at least version 0.9.1?
+       if (isExtensionInstalledAndNewer('sql_patches', '0.9.1')) {
+               // Then log it away
+               SQL_QUERY("INSERT INTO `{?_MYSQL_PREFIX?}_server_name_log` (`server_name`) VALUES('{%pipe,detectServerName%}')",
+                       __FUNCTION__, __LINE__);
+       } // END - if
+}
+
 // [EOF]
 ?>