I’m free

26 3 条评论

《The Curious Case of Benjamin Button》
Some People are born to site by a river.Some get struck by lightning.Some have an ear for music.Some are artists.Some swim.Some know buttons.Some know Shakespeare.Some are mothers.And some people dance.

Sometimes i miss you very much in these years.Everytime attacked by those thing from the cockles of the heart , i search high and low of the internet just wanna know some about you ,whatever past or present.Sam ask me:if some day you come back for me……NO!what i miss was past of you with me!
On the stairs of NanYue Culture Centre where sited a little boy was looked the car passed by.
Simple world and simple things with me !
虽然恋爱的时间是那么短,但是走出失恋的时间却是那么的长;以前一直痛苦着,最初的痛苦是因为没有办法不痛苦,最后的痛苦是因为海湾留着这份痛,深怕痛的消失就像遗忘的开始,失去的预兆!现在我自由了;《The Curious Case of Benjamin Button》最后几句话我想起了我以前深夜坐在文化中心的台阶上看着下面的车辆,那是一种感觉没有办法用言语真正的概括;过去的事,犹如飞驰而去的车辆已经过去了……
bye!

ECMS e/class/connect.php to_time() 时间转换为UNIX时间戳

26

e/class/filefun.php

26
'请选择要删除的文件',*/
	if(!$fileid)
	{printerror("NotFileid","history.go(-1)");}
	//操作权限
	CheckLevel($userid,$username,$classid,"file");

	//获得此文件数据信息 提供给②③操作内容
	$r=$empire->fetch1("select filename,path,classid,fpath from {$dbtbpre}enewsfile where fileid='$fileid' limit 1");

	//①删除数据库中对于此文件的记录
	$sql=$empire->query("delete from {$dbtbpre}enewsfile where fileid='$fileid'");

	//②DoDelFi() 自定义函数用于删除文件 /e/class/connect.php
	DoDelFile($r);
	if($sql)
	{
		//③操作日志 插入管理员操作记录 e/class/functions.php
		insert_dolog("fileid=".$fileid."filename=".$r[filename]);

		//打印信息 'DelFileSuccess'=>'删除文件成功',  $_SERVER['HTTP_REFERER']; 地址来源
		printerror("DelFileSuccess",$_SERVER['HTTP_REFERER']);
    }
	else //SQL执行返回FLASE 'DbError'=>'数据库出错',
	{
		printerror("DbError","history.go(-1)");
    }
}

//批量删除文件
function DelFile_all($fileid,$userid,$username){
	global $empire,$dbtbpre,$class_r;
	//操作权限

	//如果 POST方式提交 表单中enews值为TDelFile_all 执行{}
	if($_POST['enews']=='TDelFile_all')
	{
		$userid=(int)$userid;

		//获得用户文件操作权限
		$ur=$empire->fetch1("select groupid,adminclass,filelevel from {$dbtbpre}enewsuser where userid='$userid' limit 1");

		/*
		  如取得栏目应用于附件权限为真 也就是值为1 执行{}
		  具体参考数据表参考手册 phome_enewsuser

http://bbs.phome.net/showthread-42-109320-0.html

		  此if{}内容为权限验证暂标记为①
		*/
		if($ur['filelevel'])
		{
			//取得此用户所在组dofile字段内容
			$gr=$empire->fetch1("select dofile from {$dbtbpre}enewsgroup where groupid='$ur[groupid]'");

			/*
			取得dofile不为假/0的情况下执行{}
			具体参考数据表参考手册 phome_enewsgroup

http://bbs.phome.net/showthread-42-109320-0.html

			*/
			if(!$gr['dofile'])
			{
				$classid=(int)$_POST['classid'];
				$searchclassid=(int)$_POST['searchclassid'];

				/*
				三目运算
				$searchclassid为空/假/0的时候 $classid=$classid
				其他情况$classid=$searchclassid
				*/
				$classid=$searchclassid?$searchclassid:$classid;
				if(!$class_r[$classid]['classid'])
				{
					printerror("NotLevel","history.go(-1)");
				}
				/*
				phome_enewsuser adminclass记录用户栏目操作权限
				具体参考手册:http://bbs.phome.net/showthread-42-109320-0.html
				strstr() PHP自带函数 检查参数2在参数1中出现位置 ,这里是利用此函数返回真假判断是否有权限
				*/
				if(!strstr($ur['adminclass'],'|'.$classid.'|'))
				{
					printerror("NotLevel","history.go(-1)");
				}
			}
		}/*到此①结束 没有环节的printerror()中 exit(); 作用不会将没有权限的操作执行到这里*/
		else
		{
			CheckLevel($userid,$username,$classid,"file");
		}
	}
	else
	{
		CheckLevel($userid,$username,$classid,"file");
	}
	/*以上权限验证都结束了 CheckLevel()中也同样有printerror() 提示信息和终止向下执行 一下是删除文件及其记录日志*/

	/*此处count()检查数组中元素个数,对于数组返回元素个数,其他值返回1*/
	$count=count($fileid);

	//如检测到0个 'NotFileid'=>'请选择要删除的文件',
	if(!$count)
	{printerror("NotFileid","history.go(-1)");}

	//使用FOR循环删除附件
	for($i=0;$ifetch1("select filename,path,classid,fpath from {$dbtbpre}enewsfile where fileid='$fileid[$i]' limit 1");
		$sql=$empire->query("delete from {$dbtbpre}enewsfile where fileid='$fileid[$i]'");
		DoDelFile($r);
    }
	if($sql)
	{
		//操作日志 {$doing="---";} 具体看操作/e/class/functions.php
		insert_dolog("");
		printerror("DelFileAllSuccess",$_SERVER['HTTP_REFERER']);
    }
	else
	{
		printerror("DbError","history.go(-1)");
    }
}

//删除多余附件 参考上边的内容
function DelFreeFile($userid,$username){
	global $empire,$dbtbpre;
	//操作权限
	CheckLevel($userid,$username,$classid,"file");
	$sql=$empire->query("select filename,path,classid,fpath from {$dbtbpre}enewsfile where cjid<>0 and (id=0 or cjid=id)");
	while($r=$empire->fetch($sql))
	{
       DoDelFile($r);
    }
	$delsql=$empire->query("delete from {$dbtbpre}enewsfile where cjid<>0 and (id=0 or cjid=id)");
	if($sql)
	{
		//操作日志
		insert_dolog("");
		printerror("DelFreeFileSuccess",$_SERVER['HTTP_REFERER']);
    }
	else
	{
		printerror("DbError","history.go(-1)");
    }
}

//删除目录文件
function DelPathFile($filename,$userid,$username){
	global $empire,$dbtbpre;
	//操作权限
	CheckLevel($userid,$username,$classid,"file");
	$count=count($filename);
	if(empty($count))
	{
		printerror("NotFileid","history.go(-1)");
	}
	//基目录
	$basepath="../../d/file";
	for($i=0;$i<$count;$i++)
	{
		if(strstr($filename[$i],".."))
		{
			continue;
	    }
		DelFiletext($basepath."/".$filename[$i]);
		$dfile=ReturnPathFile($filename[$i]);
		$sql=$empire->query("delete from {$dbtbpre}enewsfile where filename='$dfile'");
    }
	//操作日志
	insert_dolog("");
	printerror("DelFileSuccess",$_SERVER['HTTP_REFERER']);
}

//批量加水印/缩略图
function DoMarkSmallPic($add,$userid,$username){
	global $empire,$class_r,$dbtbpre;
	//导入gd处理文件
	if($add['getsmall']||$add['getmark'])
	{
		@include(ECMS_PATH."e/class/gd.php");
	}
	else
	{
		printerror("EmptyDopicFileid","history.go(-1)");
	}
	$fileid=$add['fileid'];
	$count=count($fileid);
	if($count==0)
	{
		printerror("EmptyDopicFileid","history.go(-1)");
	}
	for($i=0;$i<$count;$i++)
	{
		$fileid[$i]=intval($fileid[$i]);
		$r=$empire->fetch1("select classid,filename,path,no,fpath from {$dbtbpre}enewsfile where fileid='$fileid[$i]'");
		$rpath=$r['path']?$r['path'].'/':$r['path'];
		$fspath=ReturnFileSavePath($r[classid],$r[fpath]);
		$path="../../".$fspath['filepath'].$rpath;
		$yname=$path.$r[filename];
		//缩略图
		if($add['getsmall'])
		{
			$filetype=GetFiletype($r[filename]);
			$insertfile=substr($r[filename],0,strlen($r[filename])-strlen($filetype));
			$name=$path."small".$insertfile;
			GetMySmallImg($add['classid'],$r[no],$insertfile,$r[path],$yname,$add[width],$add[height],$name,$add['filepass'],$add['filepass'],$userid,$username);
		}
		//水印
		if($add['getmark'])
		{
			GetMyMarkImg($yname);
		}
	}
	printerror("DoMarkSmallPicSuccess",$_SERVER['HTTP_REFERER']);
}

//上传多附件
function TranMoreFile($file,$file_name,$file_type,$file_size,$no,$type,$userid,$username){
	global $empire,$public_r,$dbtbpre;
	$count=count($file_name);
	if(empty($count))
	{
		printerror("MustChangeTranOneFile","history.go(-1)");
    }
	//操作权限
	CheckLevel($userid,$username,$classid,"file");
	$type=(int)$type;

	/*

	*/
	for($i=0;$i<$count;$i++)
	{
		if(empty($file_name[$i]))
		{
			continue;
		}
		//取得文件类型
		$filetype=GetFiletype($file_name[$i]);
		//如果是.php文件
		if(CheckSaveTranFiletype($filetype))
		{continue;}
	    $type_r=explode("|".$filetype."|",$public_r['filetype']);
	    if(count($type_r)<2)
		{continue;}
		if($file_size[$i]>$public_r['filesize']*1024)
		{continue;}
		//上传 DTranFile() /e/class/connect.php
		$r=DoTranFile($file[$i],$file_name[$i],$file_type[$i],$file_size[$i],$classid);
		//写入数据库
		$r[filesize]=(int)$r[filesize];
		$classid=(int)$classid;
		$filetime=date("Y-m-d H:i:s");

		//没附件编号就是用附件名称作为附件编号
		if(empty($no[$i]))
		{$no[$i]=$r[filename];}

		//附件信息写入数据库
		//数据库手册参考 phome_enewsfile 附件管理数据记录表
		//http://bbs.phome.net/showthread-42-109320-0.html
		$sql=$empire->query("insert into {$dbtbpre}enewsfile(filename,filesize,adduser,path,filetime,classid,no,type,onclick,id,cjid,fpath) values('$r[filename]',$r[filesize],'$username','$r[filepath]','$filetime',$classid,'$no[$i]',$type,0,0,0,'$public_r[fpath]');");
	}
	insert_dolog("");//操作日志
	printerror("TranMoreFileSuccess","file/TranMoreFile.php");
}
?>

密码保护:【不同会员组不同购买价格说明文档 trylife@20091024】

24 要查看留言请输入您的密码。

这是一篇受密码保护的文章。您需要提供访问密码:


e/class/copypath.php 用于创建和复制目录

24
wm_chief_createpath($n_path);
                }

                $i=0;
                while($file=@readdir($hand)){
                        $i++;
                        if ($file!="."&&$file!=".."){

                                //目录
                                if(is_dir($o_path."/".$file)){
                                        $o_s_path=$o_path."/".$file;
                                        $n_s_path=$n_path."/".$file;
                                        $this->wm_chief_copypath($o_s_path,$n_s_path);
                                }
                                else{
                                        $o_file=$o_path."/".$file;
                                        $n_file=$n_path."/".$file;
                                        $this->wm_chief_copyfile($o_file,$n_file);
                                }
                        }
                }

                @closedir($hand);
                return  true;
        }

        /*copy() PHP自带函数用于拷贝文件*/
        function  wm_chief_copyfile($o_file,$n_file){
                @copy($o_file,$n_file);
        }
        /*
        mkdir() PHP自带函数用于创建目录
        chmod() PHP自带函数用于改改读写权限 貌似是mkdir()创建完目录权限不一定落实 所以补了个chmod()
        */
        function  wm_chief_createpath($n_path){
                @mkdir($n_path,0777);
                @chmod($n_path,0777);
        }
}
//本程序由wm_chief原创,如要转载,请注明作者与来源(http://www.phome.net)
?>
  • MySQL ./configure --helphow long does marijuana stay in your system
    How 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二次开发 迅雷/快车批量下载插件 (截图)SwopeWeep
    Portuguese, 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 Cleaners
    Fascinating 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
  • 开发使用并出售愤怒的站长
    :razz: 必须顶一个
  • 新的帝国CMS反馈发送邮箱示例
    邮件内容:联系人:$add['lianxiren'],联系手机:$add['tel'] , 不能读取字段;是什么原因?
  • 2147483647Alternative Healing Methods
    Cure physical and mental problems. Get information about various alternative healing methods.