//$route['default_controller'] = "main"; $route['default_controller'] = "category"; $route['product/add'] = "product/form"; $route['product/add/(:num)'] = "product/form"; $route['product/edit/(:num)'] = "product/form"; $route['product/p-(:any)'] = "product/plugin"; $route['product/img/(:num)'] = "product/image"; $route['p/view/(:num)'] = "product/view"; $route['p/add'] = "product/form"; $route['p/add/(:num)'] = "product/form"; $route['p/edit/(:num)'] = "product/form"; $route['p/p-(:any)'] = "product/plugin"; $route['p/img/(:num)'] = "product/nc_img"; $route['ajax/(:any)'] = "ajax/index"; $route['product/view/comment_(new|edit|reply|delete|delete.php|post|post.php)'] = "product/comment"; $route['category'] = "category/view"; $route['category/view/(:num)'] = "category/view/$1"; $route['category/view/(:num)-'] = "category/view/$1"; $route['category/view/(:num)-(:any)'] = "category/view/$1"; $route['category_list'] = "category/view"; $route['category_list/view/(:num)'] = "category/view/$1"; $route['category_list/view/(:num)-'] = "category/view/$1"; $route['category_list/view/(:num)-(:any)'] = "category/view/$1"; $route['category_photo'] = "category/view"; $route['category_photo/view/(:num)'] = "category/view/$1"; $route['category_photo/view/(:num)-'] = "category/view/$1"; $route['category_photo/view/(:num)-(:any)'] = "category/view/$1"; $route['order/step/(:any)'] = "order/step"; $route['order/paymode_(:any)'] = "order/paymode"; if ( ! function_exists('get_title_link')) { function get_title_link( $id, $title, $module = null , $mid = null) { global $config_handler; $_link_title = FALSE; if( function_exists('get_instance') && is_null($module) ) { $CI =& get_instance(); $_link_title = $CI->xop_config->getVar('link_title'); }else if( !is_null($module) ){ if( is_null($mid) ) { $module_handler = & XoopsModule::getByDirname( $module ); $mid = $module_handler->getVar('mid'); }else{ $mid = intval($mid); } $module_config = & $config_handler->getConfigsByCat(0, $mid); $_link_title = strtolower($module).'_link_title'; } $link_href = $id; if( $_link_title && !empty($title) ) { $title = trim(strip_tags($title)); $link_href .= '-'.str_replace(array('&','?','/',' '),'_',$title ); } return $link_href; } } ?>
如果頁面沒有自動跳轉,請點擊此處繼續