[phpBB Debug] PHP Warning : in file [ROOT]/includes/crs/crs_misc_functions.php on line 37 : mime_content_type(): Empty filename or path
Zen Cart 源代码 init_seo_config.php
Zen Cart 源代码 init_seo_config.php
init_seo_config.php - 打开高亮
<?php
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
// Remove the configured extension if present
if(isset($_GET['main_page'])) {
if(defined('SEO_URL_END') && SEO_URL_END != '') {
$pos = strrpos($_GET['main_page'], SEO_URL_END);
if($pos !== false) {
$_GET['main_page'] = substr($_GET['main_page'], 0, $pos);
}
}
if($_GET['main_page'] == FILENAME_PRODUCT_INFO) {
// Retrieve the product type handler from the database
$type = $db->Execute(
'SELECT `pt`.`type_handler` ' .
'FROM `'. TABLE_PRODUCTS .'` AS `p` ' .
'LEFT JOIN `'. TABLE_PRODUCT_TYPES .'` AS `pt` ON `pt`.`type_id` = `p`.`products_type` ' .
'WHERE `p`. `products_id` = \'' . (int)$_GET['products_id'] . '\' LIMIT 1'
);
if(!$type->EOF) {
$_GET['main_page'] = $type->fields['type_handler'] . '_info';
}
}
}