+// Filter for loading page header, this should be ran first!
+function FILTER_LOAD_PAGE_HEADER () {
+ // Determine the page title
+ $content['header_title'] = determinePageTitle();
+
+ // Output page header code
+ $GLOBALS['page_header'] = loadTemplate('page_header', true, $content);
+
+ // Include meta data in 'guest' module
+ if (getModule() == 'index') {
+ // Load meta data template
+ $GLOBALS['page_header'] .= loadTemplate('metadata', true);
+
+ // Add meta description to header
+ if ((isInstalled()) && (isAdminRegistered()) && (SQL_IS_LINK_UP())) {
+ // Add meta description not in admin and login module and when the script is installed
+ generateMetaDescriptionCode();
+ } // END - if
+ } // END - if
+}
+
+// Filter for adding style sheet, closing page header
+function FILTER_FINISH_PAGE_HEADER () {
+ // Include stylesheet
+ loadIncludeOnce('inc/stylesheet.php');
+
+ // Closing HEAD tag
+ $GLOBALS['page_header'] .= '</head>';
+}
+
+// Cleans up the DNS cache if sql_patches is at least 0.7.0
+function FILTER_CLEANUP_DNS_CACHE () {
+ // Is the latest version installed?
+ if (isExtensionInstalledAndNewer('sql_patches', '0.7.0')) {
+ // Load class file
+ loadIncludeOnce('inc/classes/resolver.class.php');
+
+ // Instance the resolver
+ $resolver = new HostnameResolver();
+
+ // Purge entries
+ $resolver->purgeEntries();
+
+ // Cute, isn't it? ;-)
+ } // END - if
+}
+