<?php
define('InEmpireCMSHfun',TRUE);
//-------------- 公共区 ----------------------
//返回后台风格
function EcmsReturnAdminStyle(){
global $public_r;
$adminstyle=(int)getcvar('loginadminstyleid',1);
if(!strstr($public_r['adminstyle'],','.$adminstyle.','))
{
$adminstyle=$public_r['defadminstyle']?$public_r['defadminstyle']:1;
}
return $adminstyle;
}
//返回后台管理信息栏目导航字符串
function AdminReturnClassLink($classid){
global $class_r,$editor,$fun_r,$ecmscheck;
$addcheck='';
if($ecmscheck)
{
$addcheck='&ecmscheck=1';
}
if($editor==1)
{
$addurl='../';
}
if(empty($class_r[$classid][featherclass]))
{
$class_r[$classid][featherclass]="|";
}
$r=explode("|",$class_r[$classid][featherclass].$classid."|");
$string="<a href=\"".$addurl."ListAllInfo.php?tbname=".$class_r[$classid][tbname].$addcheck."\">".$fun_r['AdminInfo']."</a>";
$count=count($r)-1;
for($i=1;$i<$count;$i++)
{
$curl=$class_r[$r[$i]][islast]?"ListNews.php?classid=".$r[$i].$addcheck:"ListAllInfo.php?tbname=".$class_r[$r[$i]][tbname]."&classid=".$r[$i].$addcheck;
$string.=" > <a href=\"".$addurl."$curl\">".$class_r[$r[$i]][classname]."</a>";
}
return $string;
}
//返回后台书籍管理导航
function AdminReturnTextLink($classid){
global $class_r,$editor,$fun_r,$ecmscheck;
$addcheck='';
if($ecmscheck)
{
$addcheck='&ecmscheck=1';
}
if($editor==1)
{
$addurl='../';
}
if(empty($class_r[$classid][featherclass]))
{
$class_r[$classid][featherclass]="|";
}
$r=explode("|",$class_r[$classid][featherclass].$classid."|");
$string="";
$count=count($r)-1;
for($i=1;$i<$count;$i++)
{
$curl=$class_r[$r[$i]][islast]?"ListText.php?classid=".$r[$i].$addcheck:"ListAllText.php?tbname=".$class_r[$r[$i]][tbname]."&classid=".$r[$i].$addcheck;
$string.=" > <a href=\"".$addurl."$curl\">".$class_r[$r[$i]][classname]."</a>";
}
return $string;
}
//返回后台书目管理导航
function AdminReturnBookLink($classid){
global $class_r,$editor,$fun_r,$ecmscheck;
$addcheck='';
if($ecmscheck)
{
$addcheck='&ecmscheck=1';
}
if($editor==1)
{
$addurl='../';
}
if(empty($class_r[$classid][featherclass]))
{
$class_r[$classid][featherclass]="|";
}
$r=explode("|",$class_r[$classid][featherclass].$classid."|");
$string="<a href=\"".$addurl."ListAllBook.php?tbname=".$class_r[$classid][tbname].$addcheck."\">全部书籍管理</a>";
$count=count($r)-1;
for($i=1;$i<$count;$i++)
{
$curl=$class_r[$r[$i]][islast]?"ListNews.php?classid=".$r[$i].$addcheck:"#";
$string.=" > <a href=\"".$addurl."$curl\">".$class_r[$r[$i]][classname]."</a>";
}
return $string;
}
//加验证代码
function AddCheckViewCode(){
$code="if(!defined('InEmpireCMS'))
{
exit();
}";
return $code;
}
//加模板验证代码
function AddCheckViewTempCode(){
$code="<?php
if(!defined('InEmpireCMS'))
{
exit();
}
?>";
return $code;
}
//后台分页
function page2($num,$line,$page_line,$start,$page,$search){
global $fun_r;
if($num<=$line)
{
return '<span class="epages"><a title="'.$fun_r['admintrecord'].'"> <b>'.$num.'</b> </a> </span>';
}
$search=RepPostStr($search,1);
$url=eReturnSelfPage(0).'?page';
$snum=2;//最小页数
$totalpage=ceil($num/$line);//取得总页数
$firststr='<a title="'.$fun_r['admintrecord'].'"> <b>'.$num.'</b> </a> ';
//上一页
if($page<>0)
{
$toppage='<a href="'.$url.'=0'.$search.'">'.$fun_r['adminstartpage'].'</a> ';
$pagepr=$page-1;
$prepage='<a href="'.$url.'='.$pagepr.$search.'">'.$fun_r['adminpripage'].'</a>';
}
//下一页
if($page!=$totalpage-1)
{
$pagenex=$page+1;
$nextpage=' <a href="'.$url.'='.$pagenex.$search.'">'.$fun_r['adminnextpage'].'</a>';
$lastpage=' <a href="'.$url.'='.($totalpage-1).$search.'">'.$fun_r['adminlastpage'].'</a>';
}
$starti=$page-$snum<0?0:$page-$snum;
$no=0;
for($i=$starti;$i<$totalpage&&$no<$page_line;$i++)
{
$no++;
if($page==$i)
{
$is_1="<b>";
$is_2="</b>";
}
else
{
$is_1='<a href="'.$url.'='.$i.$search.'">';
$is_2="</a>";
}
$pagenum=$i+1;
$returnstr.=" ".$is_1.$pagenum.$is_2;
}
$returnstr=$firststr.$toppage.$prepage.$returnstr.$nextpage.$lastpage;
return '<span class="epages">'.$returnstr.'</span>';
}
//后台分页
function postpage($num,$line,$page_line,$start,$page,$form){
global $fun_r;
if($num<=$line)
{
return '';
}
$snum=2;//最小页数
$totalpage=ceil($num/$line);//取得总页数
$firststr='<a title="'.$fun_r['admintrecord'].'"> <b>'.$num.'</b> </a> ';
//上一页
if($page<>0)
{
$toppage='<a href="#ecms" onclick="javascript:GotoPostPage(0,0);">'.$fun_r['adminstartpage'].'</a> ';
$pagepr=$page-1;
$prepage='<a href="#ecms" onclick="javascript:GotoPostPage('.$pagepr.',0);">'.$fun_r['adminpripage'].'</a>';
}
//下一页
if($page!=$totalpage-1)
{
$pagenex=$page+1;
$nextpage=' <a href="#ecms" onclick="javascript:GotoPostPage('.$pagenex.',0);">'.$fun_r['adminnextpage'].'</a>';
$lastpage=' <a href="#ecms" onclick="javascript:GotoPostPage('.($totalpage-1).',0);">'.$fun_r['adminlastpage'].'</a>';
}
$starti=$page-$snum<0?0:$page-$snum;
$no=0;
for($i=$starti;$i<$totalpage&&$no<$page_line;$i++)
{
$no++;
if($page==$i)
{
$is_1="<b>";
$is_2="</b>";
}
else
{
$is_1='<a href="#ecms" onclick="javascript:GotoPostPage('.$i.',0);">';
$is_2="</a>";
}
$pagenum=$i+1;
$returnstr.=" ".$is_1.$pagenum.$is_2;
}
$returnstr=$firststr.$toppage.$prepage.$returnstr.$nextpage.$lastpage;
$returnstr.="<script>
function GotoPostPage(page,start){
".$form.".page.value=page;
".$form.".start.value=start;
".$form.".submit();
}
</script>";
return $returnstr;
}
//取得模型表名
function GetModTable($mid){
global $empire,$dbtbpre;
$r=$empire->fetch1("select tid,tbname from {$dbtbpre}enewsmod where mid='$mid'");
return $r;
}
//建立专题目录
function CreateZtPath($ztpath){
$createpath=ECMS_PATH.$ztpath;
$mk=DoMkdir($createpath);
$createfilepath=$createpath.'/uploadfile';//建立附件目录
$mk1=DoMkdir($createfilepath);
}
//建立栏目目录
function CreateClassPath($classpath){
$createpath=ECMS_PATH.$classpath;
$mk=DoMkdir($createpath);
$createfilepath=ECMS_PATH.'d/file/'.$classpath;//建立附件目录
$mk1=DoMkdir($createfilepath);
}
//建立隐藏栏目目录
function CreateClassPath2($classpath){
$createpath=ECMS_PATH.$classpath;
$mk=DoMkdir($createpath);
}
//建立标题分类目录
function CreateInfoTypePath($tpath){
$createpath=ECMS_PATH.$tpath;
$mk=DoMkdir($createpath);
}
//删除栏目缓存文件
function DelListEnews(){
$file=ECMS_PATH."e/data/fc/ListEnews.php";
DelFiletext($file);
$file1=ECMS_PATH."e/data/fc/ListClass0.php";
DelFiletext($file1);
$file2=ECMS_PATH."e/data/fc/ListClass1.php";
DelFiletext($file2);
}
//删除模板临时缓存文件
function DelOneTempTmpfile($classid){
$file=ECMS_PATH.'e/data/tmp/dt_temp'.$classid.'.php';
if(file_exists($file))
{
DelFiletext($file);
}
}
//替换php代码
function RepPhpAspJspcode($string){
global $public_r;
if(!$public_r[candocode]){
//$string=str_replace("<?xml","[!--ecms.xml--]",$string);
$string=str_replace("<\\","<\\",$string);
$string=str_replace("<?","<?",$string);
$string=str_replace("<%","<%",$string);
if(@stristr($string,' language'))
{
$string=preg_replace(array('!<script!i','!</script>!i'),array('<script','</script>'),$string);
}
//$string=str_replace("[!--ecms.xml--]","<?xml",$string);
}
return $string;
}
//替换php代码
function RepPhpAspJspcodeText($string){
//$string=str_replace("<?xml","[!--ecms.xml--]",$string);
$string=str_replace("<\\","<\\",$string);
$string=str_replace("<?","<?",$string);
$string=str_replace("<%","<%",$string);
if(@stristr($string,' la
没有合适的资源?快使用搜索试试~ 我知道了~
基于PHP的帝国小说系统源码.zip
共2000个文件
php:1580个
html:148个
js:136个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 25 浏览量
2023-10-10
20:19:51
上传
评论
收藏 20.18MB ZIP 举报
温馨提示
基于PHP的帝国小说系统源码.zip
资源推荐
资源详情
资源评论
收起资源包目录
基于PHP的帝国小说系统源码.zip (2000个子文件)
q1.css 11KB
style.css 10KB
fck_editor.css 8KB
fck_editor.css 8KB
fck_editor.css 8KB
fck_dialog.css 6KB
fck_dialog.css 6KB
fck_dialog.css 6KB
fck_internal.css 4KB
fck_internal.css 4KB
fck_internal.css 4KB
p1.css 3KB
fck_editorarea.css 3KB
fck_editorarea.css 3KB
fck_editorarea.css 3KB
Style.css 2KB
contextmenu.css 2KB
site.css 2KB
fck_dialog_common.css 2KB
fck_dialog_common.css 2KB
fck_dialog_common.css 2KB
fck_showtableborders_gecko.css 2KB
fck_showtableborders_gecko.css 2KB
fck_showtableborders_gecko.css 2KB
adminstyle.css 2KB
adminstyle.css 2KB
css.css 2KB
css.css 2KB
menu.css 1KB
css.css 1KB
adminmain.css 1KB
adminmain.css 1KB
qcss.css 1KB
css.css 1KB
member.css 1KB
tab.winclassic.css 1KB
tab.winclassic.css 1KB
tab.winclassic.css 1KB
style.css 1KB
style.css 1KB
css.css 968B
player.css 919B
jquery.Jcrop.css 748B
player.css 591B
css.css 499B
close_o.gif 74B
close.gif 57B
about.htm 2KB
index.html 42KB
fckdialog.html 22KB
fckdialog.html 22KB
fckdialog.html 22KB
fck_docprops.html 22KB
fck_docprops.html 22KB
fck_docprops.html 22KB
fckeditor.original.html 17KB
fckeditor.original.html 17KB
fckeditor.original.html 17KB
fck_replace.html 17KB
fck_replace.html 17KB
fck_replace.html 17KB
index.html 13KB
fck_link.html 13KB
fck_link.html 13KB
fck_link.html 13KB
index.html 12KB
fckeditor.html 12KB
fckeditor.html 12KB
fckeditor.html 12KB
fck_paste.html 12KB
fck_paste.html 12KB
fck_paste.html 12KB
fck_image.html 11KB
fck_image.html 11KB
fck_table.html 10KB
fck_table.html 10KB
fck_table.html 10KB
fck_image.html 10KB
fck_div.html 9KB
fck_div.html 9KB
fck_div.html 9KB
fck_tablecell.html 9KB
fck_tablecell.html 9KB
fck_tablecell.html 9KB
index.html 8KB
doc.html 7KB
type2.html 7KB
type3.html 7KB
xieyi.html 6KB
fck_template.html 6KB
fck_template.html 6KB
fck_template.html 6KB
fck_select.html 6KB
fck_select.html 6KB
fck_select.html 6KB
fck_anchor.html 6KB
fck_anchor.html 6KB
fck_anchor.html 6KB
RepHtmlcode.html 6KB
RepHtmlcode.html 6KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
易小侠
- 粉丝: 6476
- 资源: 9万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功