X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Ffilters.php;h=82fb3196790e1727a76eec7073ce4b0a4b2fc6b1;hb=e19231f39d9d6583cc5753dbd2638c597957fdd1;hp=7d09db69cc978552f05cb662c8e9057e195d2e8e;hpb=61621983cc6d7195fcc7eab29b5f6080ff283b34;p=mailer.git diff --git a/inc/filters.php b/inc/filters.php index 7d09db69cc..82fb319679 100644 --- a/inc/filters.php +++ b/inc/filters.php @@ -1161,7 +1161,7 @@ function FILTER_LOAD_PAGE_HEADER () { // Filter for adding style sheet, closing page header function FILTER_FINISH_PAGE_HEADER () { // Include stylesheet - loadIncludeOnce('inc/stylesheet.php'); + loadStyleSheets(); // Closing HEAD tag $GLOBALS['__page_header'] .= ''; @@ -1387,24 +1387,6 @@ function FILTER_HANDLE_REFERRER_BANNER_VIEW ($filterData) { redirectToUrl('modules.php?module=index'); } -// Filter for redirecting on wrong server name (e.g. bad.your-server.tld will be redirected to your-server.tld) -function FILTER_REDIRECT_WRONG_SERVER_NAME ($filterData) { - // Get URL - $url = getUrl(); - - // Is the configured URL same as SERVER_NAME? - if (extractHostnameFromUrl($url) != detectServerName()) { - // Log all attempts - logWrongServerNameRedirect(); - - // Then redirect to configured URL - redirectToRequestUri(); - } // END - if - - // Return filter data - return $filterData; -} - // Filter for adding hidden session id function FILTER_ADD_INPUT_HIDDEN_SESSION_ID ($filterData) { // Is a spider detected? @@ -1417,28 +1399,6 @@ function FILTER_ADD_INPUT_HIDDEN_SESSION_ID ($filterData) { return $filterData; } -// Filter for purging old SERVER_NAME entries -function FILTER_SERVER_NAME_EXTRA_AUTOPURGE ($filterData) { - // Is purging configured? - if ((isApServerNameEnabled()) && (getApServerNameSince() > 0)) { - // Then start purging - sqlQuery('DELETE LOW_PRIORITY FROM - `{?_MYSQL_PREFIX?}_server_name_log` -WHERE - (UNIX_TIMESTAMP() - UNIX_TIMESTAMP(`server_name_added`)) >= {?ap_server_name_since?}', - __FILE__, __LINE__); - - // Are some entries deleted? - if (sqlAffectedRows() > 0) { - // Okay, then send an email to the admin - sendAdminNotification('{--ADMIN_PURGE_SERVER_NAME_LOG_SUBJECT--}', 'admin_purge_user_server_name_log', sqlAffectedRows()); - } // END - if - } // END - if - - // Return filter data - return $filterData; -} - // Filter for detecting menu mode function FILTER_DETERMINE_MENU_MODE_GENERIC ($filterData) { // "Detect" it