<?php
function a($where) {
$where['pagesize']=1;
$article=alist($where);
if(isset($article['list'][0])) {
Return $article['list'][0];
}else {
Return false;
}
}
function u($cid='') {
if(empty($cid)) {
Return gethomeurl();
}
Return getchannelurl($cid);
}
function z($strname,$return=1) {
Return str($strname,0,$return);
}
function s($strname,$cid='',$return=1) {
Return str($strname,$cid,$return);
}
function n($where=0) {
Return nav($where);
}
function c($kind=0,$num=9999,$fid=0,$shownav=0) {
$channel=getchannelscache();
$newchannel=array();
$count=0;
if(isset($GLOBALS['nav'][$fid])) {
if(is_array($GLOBALS['nav'][$fid])) {
$diychannel=$GLOBALS['nav'][$fid];
}elseif(function_exists($GLOBALS['nav'][$fid])) {
$diychannel=$GLOBALS['nav'][$fid]($fid);
}
if(isset($diychannel)) {
foreach($diychannel as $val) {
if($shownav==0 || !isset($val['ifshownav']) ||($shownav>0 && @$val['ifshownav'])) {
$newchannel[]=$val;
$count++;
}
if($count==$num) {
Return $newchannel;
}
}
Return $newchannel;
}
}
foreach($channel as $val) {
if($fid==$val['fid']) {
if($shownav==0 || ($shownav>0 && $val['ifshownav'])) {
if($kind==0) {
$newchannel[]=$val;
$count++;
$newchannel[count($newchannel)-1]['key']=$count;
}elseif($val['ckind']==$kind) {
$newchannel[]=$val;
$count++;
$newchannel[count($newchannel)-1]['key']=$count;
}
}
}
if($count==$num) {
break;
}
}
$fidarray=@cnav(cid,1);
foreach($newchannel as $key=>$val) {
$newchannel[$key]['onstyle']='';
foreach($fidarray as $fidkey=>$fidval) {
if($val['cid']==$fidval['cid']) {
$newchannel[$key]['onstyle']='on';
break;
}
}
}
Return $newchannel;
}
function b($cid='',$return=false,$linktag=' > ',$homepage=SystemDir) {
Return cnav($cid,$return,$linktag,$homepage);
}
function i($kind='',$cid=0) {
if($cid===0) {
if(!defined('cid')) {Return false;}
$cid=cid;
}
$channel=getchannelcache($cid);
if(!$channel) {
Return false;
}
if(empty($kind)) {
Return $channel;
}elseif($kind=='name' && isset($channel['cname'])) {
Return $channel['cname'];
}elseif($kind=='topfid') {
$breadcrumb=b($channel['cid'],1);
if(isset($breadcrumb[0]['cid'])) {
Return $breadcrumb[0]['cid'];
}
}elseif($kind=='url') {
Return u($channel['cid']);
}elseif($kind=='domain') {
Return @$channel['csetting']['channel_domain'];
}else {
if(isset($channel[$kind])) {
Return $channel[$kind];
}
}
Return false;
}
function uri($uri) {
$uri=ltrim($uri,'/');
if(UrlRewrite) {
Return SystemDir.$uri;
}else {
Return SystemDir.IndexFile.'/'.$uri;
}
}
function f($file) {
require(SystemRoot.TemplateDir.DIRECTORY_SEPARATOR.$file);
}
function t($file='',$echo=1) {
if($echo==1) {
echo(SystemDir.TemplateDir.'/'.$file);
}
Return SystemDir.TemplateDir.'/'.$file;
}
function alist($where='') {
if(isset($where['page']) && !is_numeric($where['page'])) {
if(isset($_GET[$where['page']]) && $_GET[$where['page']]>0) {
$where['page']=intval($_GET[$where['page']]);
}else {
$where['page']=1;
}
}
$nullarticle=array('list'=>array(),'pagecount'=>0,'pagesize'=>1,'page'=>1,);
if(!isset($where['cid']) && !defined('cid') && !isset($where['tablename']) && !isset($where['cids'])) {Return $nullarticle;}
if(!isset($where['tablename']) && !isset($where['cid']) && !isset($where['cids']) && defined('cid')) {$where['cid']=cid;}
if(!isset($where['cid'])) {$where['cid']=0;}
if(is_numeric($where['cid'])) {$where['cid']=intval($where['cid']);}
if(SiteCache && isset($where['cache']) && $where['cache']>0) {
$cachewhere=$where;
$cachehash=md5(json_encode($where));
$res =cacheget($cachehash,$where['cache'],'alist');
if ($res) {return json_decode($res,1);}
}
$sql='';
if($where['cid']!==0) {
$thischannelcache=getchannelcache($where['cid']);
if(!$thischannelcache) {Return $nullarticle;}
$where['cid']=$thischannelcache['cid'];
}
if(!isset($where['tablename'])) {$where['tablename']='';}
if(!isset($where['all']) || $where['all']==1) {
if(!isset($where['cids'])) {$where['cids']='';}
$clistsetting=alist_getson($where['cid'],$where['tablename'],$where['cids']);
if(!isset($clistsetting['sql'])) {Return $nullarticle;}
$where['cidsql']=$clistsetting['sql'];
$where['tablename']=$clistsetting['tablename'];
$defaultsetting=getchannelcache($clistsetting['default']);
if(!isset($where['pageurl']) && !isset($clistsetting['pageurl'])) {
unset($defaultsetting['csetting']['channel_pageurl']);
}
}else {
if(!isset($where['cidsql'])) {
$where['cidsql']=" and (cid='".$where['cid']."')";
}
if($where['cid']) {
$defaultsetting=getchannelcache($where['cid']);
if(empty($where['tablename']) && isset($defaultsetting['csetting']['articletable'])) {
$where['tablename']=$defaultsetting['csetting']['articletable'];
}
}
}
$sql.=$where['cidsql'];
if(!isset($where['pagesize'])) {
if(isset($defaultsetting['csetting']['temppage_size']) && !empty($defaultsetting['csetting']['temppage_size'])) {
$where['pagesize']=$defaultsetting['csetting']['temppage_size'];
}
}
if(!isset($where['order'])) {
if(isset($defaultsetting['csetting']['temppage_order']) && !empty($defaultsetting['csetting']['temppage_order'])) {
$where['order']=$defaultsetting['csetting']['temppage_order'];
}
}
isset($where['addslashes']) ? $ifaddslashes=$where['addslashes']:$ifaddslashes=1;
isset($where['tablename']) ? $where['tablename']=$where['tablename']:die('no tablename');
isset($where['pagesize']) ? $where['pagesize']=intval($where['pagesize']):$where['pagesize']=9;
isset($where['order']) ? $where['order']='order by '.$where['order']:$where['order']='order by id desc';
isset($where['start']) ? $where['start']=intval($where['start']):$where['start']=0;
isset($where['column']) ? $where['column']=$where['column']:$where['column']='*';
isset($where['rowidstyle']) && !isset($where['rowidname']) ? $where['rowidname']='id' :'';
isset($where['linktime']) ? 1==1 : $where['linktime']='posttime';
isset($where['link']) ? 1==1 : $where['link']='';
isset($where['domain']) ? 1==1 : $where['domain']='';
if(trim($where['column'])<>'*') {$where['column'].=',cid';}
if(isset($where['where'])) {
if(is_array($where['where'])) {
foreach($where['where'] as $key=>$val) {
$key=addslashes_str($key,$ifaddslashes);
if(is_array($val) && count($val)>0) {
$sql.=" and (";
foreach($val as $value) {
$sql.=$key."='".addslashes_str($value,$ifaddslashes)."' or ";
}
$sql=substr($sql,0,strlen($sql)-4);
$sql.=")";
}else {
$sql.=" and ".$key."='".addslashes_str($val,$ifaddslashes)."'";
}
}
}else {
$sql.=" and ".$where['where'];
}
}
if(isset($where['inwhere'])) {
foreach($where['inwhere'] as $key=>$val) {
if(!is_array($val)) {
$val=array();
$val[]=$where['inwhere'][$key];
}
$key=addslashes_str($key,$ifaddslashes);
foreach($val as $val1) {
if(is_numeric($val1) && $val1>0) {
$sql.=" and (".$key."='[".$val1."]' or ".$key." like '%,".$val1.",%' or ".$key." like '[".$val1.",%' or ".$key." like '%,".$val1."]')";
}else {
unset($where['inwhere'][$key]);
}
}
}
}
if(isset($where['nowhere'])) {
foreach($where['nowhere'] as $key=>$val) {
$key=addslashes_str($key,$ifaddslashes);
if(is_array($val) && count($val)>0) {
foreach($val as $value) {
$sql.=" and ".$key."<>'".addslashes_str($value,$ifaddslashes).'\'';
}
}else {
$sql.=" and ".$key."<>'".addslashes_str($val,$ifaddslashes)."'";
}
}
}
if(isset($where['other']) && !empty($where['other'])) {
$sql.=" and ".$where['other'];
}
if(isset($where['keyword']) && !empty($where['keyword'])) {
没有合适的资源?快使用搜索试试~ 我知道了~
首涂第二十六套破解无加密带后台版.zip
共303个文件
html:79个
gif:78个
png:52个
需积分: 5 7 下载量 168 浏览量
2021-10-27
23:28:34
上传
评论
收藏 1.73MB ZIP 举报
温馨提示
首涂【第二十六套模板】小屏精致灰色风格苹果 CMSv10 主题 说明:独立后台,带资讯,明星 使用:LOGO更换在苹果cms后台上传就行了,二维码图片在imags路径替换。 首页轮播推荐5,数量最多10个; 首页轮播右边推荐4,数量最多11个; 大片推荐是推荐1,数量最多6个; 荧屏巨星明星推荐1,数量最多8个; 新增影片下载模块; 新增播放页增加切换线路提示语,播放器增加滚动提示语; 首页新增公告,文章推荐1就是公告内容。 更多功能,请自行体验。
资源推荐
资源详情
资源评论
收起资源包目录
首涂第二十六套破解无加密带后台版.zip (303个子文件)
layui.css 68KB
mytheme-ui.css 35KB
mytheme-font.css 30KB
layer.css 14KB
layer.css 14KB
mytheme-site.css 10KB
layui.mobile.css 10KB
laydate.css 7KB
mytheme-color.css 5KB
mytheme-color1.css 5KB
mytheme-color2.css 5KB
mytheme-color3.css 5KB
layer.css 5KB
mytheme-share.css 2KB
code.css 1KB
sq.css 803B
50ef74f1ea787652.db 144KB
fontawesome-webfont.eot 162KB
iconfont.eot 40KB
59.gif 10KB
22.gif 10KB
24.gif 8KB
13.gif 7KB
16.gif 7KB
39.gif 6KB
64.gif 6KB
63.gif 6KB
50.gif 6KB
loading-0.gif 6KB
loading-0.gif 6KB
4.gif 6KB
1.gif 5KB
42.gif 5KB
71.gif 5KB
21.gif 5KB
20.gif 5KB
29.gif 5KB
70.gif 4KB
5.gif 4KB
17.gif 4KB
27.gif 4KB
9.gif 4KB
44.gif 4KB
11.gif 4KB
8.gif 4KB
3.gif 4KB
23.gif 4KB
34.gif 4KB
41.gif 4KB
38.gif 4KB
65.gif 3KB
32.gif 3KB
45.gif 3KB
7.gif 3KB
12.gif 3KB
26.gif 3KB
60.gif 3KB
2.gif 3KB
40.gif 3KB
25.gif 3KB
19.gif 3KB
66.gif 3KB
18.gif 3KB
46.gif 3KB
10.gif 3KB
28.gif 3KB
51.gif 3KB
57.gif 3KB
67.gif 3KB
0.gif 3KB
48.gif 3KB
43.gif 3KB
30.gif 2KB
61.gif 2KB
33.gif 2KB
69.gif 2KB
14.gif 2KB
47.gif 2KB
36.gif 2KB
49.gif 2KB
58.gif 2KB
6.gif 2KB
54.gif 2KB
53.gif 2KB
56.gif 2KB
62.gif 2KB
31.gif 2KB
55.gif 2KB
35.gif 2KB
15.gif 2KB
loading-2.gif 2KB
loading-2.gif 2KB
37.gif 1KB
68.gif 1KB
52.gif 777B
loading-1.gif 701B
loading-1.gif 701B
screen.html 11KB
head.html 8KB
detail_data.html 6KB
共 303 条
- 1
- 2
- 3
- 4
资源评论
khih
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功