/** * Cleans the URL * * Thanks to "THE PERFECT PHP CLEAN URL GENERATOR"(http://cubiq.org/the-perfect-php-clean-url-generator) * * This function will clean the URL by removing any unwanted characters from it and * only allowing alphanumeric and - in the URL. * This function can be customized according to your needs. * * @param string $string The URL String * @access private */ private function cleanURL($string, $delimiter = "-") { /** Alias of Static Function of PermalinksDisplay */ $string = PermalinksDisplay::cleanURL($string, $delimiter); return $string; }
+--------------------------------------------------------+ | This program is released as free software under the | Affero GPL license. You can redistribute it and/or | modify it under the terms of this license which you | can read by viewing the included agpl.txt or online | at www.gnu.org/licenses/agpl.html. Removal of this | copyright header is strictly prohibited without | written permission from the original author(s). +--------------------------------------------------------*/ if (!defined("IN_FUSION")) { die("Access Denied"); } if ($settings['site_seo']) { // Object should be created before including output_handling_class because we are using this object in output handling require_once CLASSES . "PermalinksDisplay.class.php"; $permalink = new PermalinksDisplay(); $result = dbquery("SELECT * FROM " . DB_PERMALINK_REWRITE . ""); if (dbrows($result) > 0) { while ($_permalink = dbarray($result)) { $permalink->AddHandler($_permalink['rewrite_name']); } } } require_once INCLUDES . "output_handling_include.php"; require_once INCLUDES . "header_includes.php"; require_once THEME . "theme.php"; require_once THEMES . "templates/render_functions.php"; if ($settings['maintenance'] == "1" && (iMEMBER && $settings['maintenance_level'] == "1" && $userdata['user_id'] != "1" || $settings['maintenance_level'] > $userdata['user_level'])) { redirect(BASEDIR . "maintenance.php"); } if (iMEMBER) {
private function cleanURL($string, $delimiter = "-") { /* Alias of Static Function of PermalinksDisplay */ require_once dirname(__FILE__) . "/PermalinksDisplay.class.php"; $string = PermalinksDisplay::cleanURL($string, $delimiter); return $string; }