//$home_rote[''.$v['catdir'].'-:catId/:id'] = 'home/'.$v['catdir'].'/index';
$cate = Db::name('cate')->field('id,catdir,moduleid')->where('id',$v['catid'])->find();
$moduleurl = Db::name('module')->where('id',$cate['moduleid'])->value('name');
if($cate['catdir']){
$url = url(request()->module().'/'.$cate['catdir'].'/info', ['catId'=>$cate['id'],'id'=>$v['id']]);
}else{
$url = url(request()->module().'/'.$moduleurl.'/info', ['catId'=>$cate['id'],'id'=>$v['id']] );
}
}
return $url;
}
//获取所有模版
function getTemplate(){
//查找设置的模版
$system = Db::name('system')->where('id',1)->find();
$path = './template/home/'.$system['template'].'/'.$system['html'].'/';
$tpl['list'] = get_file_folder_List($path , 2, '*_list*');
$tpl['show'] = get_file_folder_List($path , 2, '*_show*');
USER | www |
HOME | /home/www |
SCRIPT_NAME | /index.php |
REQUEST_URI | /team-18/index.html |
QUERY_STRING | |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_URL | /team-18/index.html |
REMOTE_PORT | 44244 |
SCRIPT_FILENAME | /www/wwwroot/wxfm-tech.com/public/index.php |
SERVER_ADMIN | webmaster@example.com |
CONTEXT_DOCUMENT_ROOT | /www/wwwroot/wxfm-tech.com/public |
CONTEXT_PREFIX | |
REQUEST_SCHEME | http |
DOCUMENT_ROOT | /www/wwwroot/wxfm-tech.com/public |
REMOTE_ADDR | 44.200.141.122 |
SERVER_PORT | 80 |
SERVER_ADDR | 172.16.8.137 |
SERVER_NAME | www.wxfm-tech.com |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | <address>Apache Server at www.wxfm-tech.com Port 80</address> |
LD_LIBRARY_PATH | /www/server/apache/lib |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin |
HTTP_HOST | www.wxfm-tech.com |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
proxy-nokeepalive | 1 |
REDIRECT_STATUS | 200 |
REDIRECT_PATH_INFO | team-18/index.html |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711703209.0469 |
REQUEST_TIME | 1711703209 |
ADDON_PATH | /www/wwwroot/wxfm-tech.com/addons/ |