下面是正常HTML网页代码内容
---------------------------------------------------------------------------------------
*/
/*
1.defined() 函数检查某常量是否存在;
2.exit();执行后下面的代码将不再执行
3.引用此文件的动态页面不能被其他程序所引用
*/
if(!defined('empirecms'))
{
exit();
}
//扣点
require_once($check_path."e/class/connect.php");
/*同上defined*/
if(!defined('InEmpireCMS'))
{
exit();
}
require_once(ECMS_PATH."e/class/db_sql.php");
require_once(ECMS_PATH."e/class/user.php");
require_once(ECMS_PATH.'e/data/dbcache/MemberLevel.php');
/*
所要看的栏目ID
需要的最低用户组ID
设置需要权限的动态页面直接传参得到
*/
$check_classid=(int)$check_classid;
$check_groupid=(int)$check_groupid;
/*
1.返回页面地址
2.$_SERVER['PHP_SELF'] 得到当前执行脚本的绝路径文件名
3.例如:http://www.phome.net/some/text.php 会得到/some/text.php
*/
$toreturnurl=$_SERVER['PHP_SELF'];
/*
$eloginurl 登陆地址
/e/class/user.php
*/
$gotourl=$eloginurl?$eloginurl:$public_r['newsurl']."e/member/login/"; //登陆地址
/*
1.getcvar() 自定义函数用于取得登陆信息
2.定义:e/class/connect.php
3.getcvar('mluserid')登陆ID
4.getcvar('mlgroupid')登陆用户组ID
*/
$loginuserid=(int)getcvar('mluserid');
$logingroupid=(int)getcvar('mlgroupid');
/*
1.printerror2()函数定义在/e/class/connect.php
2.用于直接打印提示信息
3.如果登录ID为FLASE 也就是说用户没有登录
3.$level_r 读取缓存文件中数组/e/data/dbcache/MemberLevel.php
*/
if(!$loginuserid)
{
printerror2("本栏目需要 ".$level_r[$check_groupid][groupname]." 会员级别以上才能查看","");
}
if($level_r[$logingroupid][level]<$level_r[$check_groupid][level])
{
printerror2("本栏目需要 ".$level_r[$check_groupid][groupname]." 会员级别以上才能查看","");
}
?>
用于删除文件目录
应该是老大很早以前写的类了 版权上下都有
用于删除目录和文件
包含一个类3个方法
wm_chief_delpath()
wm_chief_file()
wm_chief_path()
如果目录中有目录就返回重新读新发现的目录 目录中的文件 然后删除目录,如此循环 目录和文件全删了
wm_chief_delpath($del_s_path);
}
/*其他情况 也就是不是目录的情况即为文件的情况 执行大括号中内容*/
else{
$del_file=$del_path."/".$file;
/* 使用本类中 wm_chief_file处理$del_file*/
$this->wm_chief_file($del_file);
}
}
}//while循环结束
/*关闭*/
@closedir($hand);
/*使用本类中的 wm_chief_path函数处理*/
$this->wm_chief_path($del_path);
/**/
return true;
}
// unlink() PHP自由函数,用于删除文件:若成功,则返回 true,失败则返回 false。
function wm_chief_file($del_file){
@unlink($del_file);
}
//删除目录 rmdir() 函数删除空的目录。若成功,则该函数返回 true。若失败,则返回 false。
function wm_chief_path($del_path){
@rmdir($del_path);
}
}
//本程序由wm_chief原创,如要转载,请注明作者与来源(http://www.phome.net)
?>
防盗链加密文件已经被注释和很短
被引用闻之为
e/class/DownSysFun.php
e/class/connect.php
自己也感觉进步了……
2005年6月的某段时间,天天折腾着盗QQ……
2006年下半年的某段时间,炫耀着拿整站系统装的网站,在网吧提心吊胆的用SQL远程更新自己的会员金额……
2007年1月的连续几个晚上,看着九天的风格安装录像,连续琢磨着怎么把chinaddv的模板放进去……
2007年6月的某一天,突然知道模型是怎么用的了,于是花了一天的时间录了个象九天一样的教程,那时候自认为无所不能干了好多蠢事……
2007年7月的某一天,承蒙王猛 AMT两位老大爱戴,吃了帝国当了自定义模型的斑竹,吃了帝国的月饼;其实自定义模型一般没人问问题,一有问题就不是一般的问题……
2007年12月的某一天,看着别人弄插件自己也想弄,于是花了N个星期,天天骚扰WM老大,终于不知道怎么搞出来一个批量更新软件字母的插件……
2008年的某月一个空奸商OVER了几个月,我的网站跟着OVER了;之后找了个地方天天画图……
2009年初回来了开始看简单的<?php echo ‘Hello World’; ?>
2009年6月流浪到沈阳做了几个插件
2009年9月和心缘一起弄数据表参考手册,弄完之后感觉进步很大,翻翻WM老大的代码发现看明白好多……
虽然感觉进步了,但是还是很菜……
- MySQL ./configure --helphow long does marijuana stay in your systemHow can i get thc out my system fast? If you're clean now and you don't smoke again between now and then, 3 weeks should be more than plenty of time for it to get out of your ...
- 帝国CMS二次开发 迅雷/快车批量下载插件 (截图)SwopeWeepPortuguese, also as pairs of trail shoes for kinds race. I predicted it becoming heat in Brazil (becauseallow for air to circulate involving its consumer and the backpack by itself. This kind of bag technology will help preserve theare seriously PVC-free and supply memory becoming a member of plus new jersey ship regarding the safe. The foot of all thechallenge or take a seat to the sidelines and see we stay pass. A great thought is at present - we do not getIn contrast to a few other hiking footwear appears so basic, eye-catching Ugg boots continually shift their north face jackets winter things to do at bay. Enough purpose for 40 years of out of doorways gear design and style and screeningjackets and ski pants and foot wears designed to supply comfort and security to ski lovers. As ages pass bytrick: a aspect entrance. This additional entrance may make it a lot easier to identify things buried deep inside your bag.exclusive and trendy variations obviously suit present-day tendencies and furthermore meet kind wants. north encounter Jacketsfrom giving heat and defense through the elements, it also provides a enjoyable really feel. Luxurious in
- make: ./libtool: Command not foundRegistry CleanersFascinating blog! Is your theme custom made or did you download it from somewhere? A design like yours with a few simple tweeks would really make my blog jump out. Please let me know where you got your theme. Thank you
- 开发使用并出售愤怒的站长
必须顶一个 - 新的帝国CMS反馈发送邮箱示例高邮件内容:联系人:$add['lianxiren'],联系手机:$add['tel'] , 不能读取字段;是什么原因?
- 2147483647Alternative Healing MethodsCure physical and mental problems. Get information about various alternative healing methods.
