小邮包 包月订购包年程序
小邮包-包月订购包年服务网,该程序由好买卖商城开发,程序采用PHP+MYSQL架设,程序商业模式为目前最为火爆的包月订制包年服务模式,这种包年订购在国外网站已经热火很多年了,并且已经发展到一定规模,像英国的男士用品网站BlackSocks,一年的袜子购买量更是达到了1000万双。功能:1、实现多产品上线,2、不用注册也可以直接下单购买,3、集成目前主流支付接口,4、下单发货均有邮件提醒。
下载
小邮包-包月订购包年服务网,该程序由好买卖商城开发,程序采用PHP+MYSQL架设,程序商业模式为目前最为火爆的包月订制包年服务模式,这种包年订购在国外网站已经热火很多年了,并且已经发展到一定规模,像英国的男士用品网站BlackSocks,一年的袜子购买量更是达到了1000万双。功能:1、实现多产品上线,2、不用注册也可以直接下单购买,3、集成目前主流支付接口,4、下单发货均有邮件提醒。
get_config($configureFile,$actionid,"upload");
?>
charset=gb2312">
<script language="JavaScript"><br><br><!--<br><br>function <span class="SpellE">MM_goToURL() { //v3.0<br><br> <span class="SpellE">var <span class="SpellE">i, <span class="SpellE">args=<span class="SpellE">MM_goToURL.arguments; <span class="SpellE">document.MM_returnValue = false;<br><br> for (<span class="SpellE">i=0; <span class="SpellE">i<(args.length-1); <span class="SpellE">i+=2) <span class="SpellE">eval(<span class="SpellE">args[<span class="SpellE">i]+".location='"+<span class="SpellE">args[i+1]+"'");<br><br>}<br><br>function <span class="SpellE">mydelfun(<span class="SpellE">fileName) { <br><br>answer=confirm('<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt">您确定要删除<span lang="EN-US" style="mso-bidi-font-size: 10.5pt">'+<span class="SpellE">fileName+'<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt">文件吗?<span lang="EN-US" style="mso-bidi-font-size: 10.5pt">');<br><br>if(answer == 1){<br><br><span class="SpellE">MM_goToURL('<span class="SpellE">parent','upfile.php?actid=<? echo $<span class="SpellE">actionid;?>&username=<? echo $username;?>&filename='+<span class="SpellE">fileName+'&sec=<? echo $password;?>');return <span class="SpellE">document.MM_returnValue;}<br><br>else{<br><br><br><br>}<br><br>}<br><br>//--><br><br></script>
| | 操作ID:actionid;?> | 用户名: | 当前目录:targetDir?> | |
| 文件名称 | 文件大小 | 创建时间 | 有关操作 |
| $file | "; echo filesize($targetDir."/".$file); echo " |
"; $filemod = filemtime($targetDir."/".$file); $filemodtime = date("Y-m-d H:i:s", $filemod); print($filemodtime); echo " |
href=javascript:mydelfun('$file');>删除 | tr>";
| |
本操作ID的 href=upfile.php?actid= echo $actionid?>&type=up" target="_blank">上传日志 href=upfile.php?actid= echo $actionid?>&type= |
exit;
};
##删除管理完毕
##删除文件操作
if($sec){//
get_config($configureFile,$actid,"upload");
unlink($targetDir."/".$filename);
$message=date("Y-m-d H:i:s")." remote_ip:".$REMOTE_ADDR." UserName:".$username." delete FileName:".$filename."";
putLog($actid,$message,"b");
header("location:upfile.php?username=$username&actionid=$actid&actiontype=del&password=$sec");
exit;
}
if($type){}else{exit;};
function showLog($actid,$flag="a"){
$logfile="./log/".$actid.$flag.".log";
if(!file_exists($logfile)){echo "该操作ID暂时没有任何日志!";};
$logarray=file($logfile);
while (list($key,$value) = each($logarray)) {
echo $value."br>";
}
}
if(trim($type)=="del"){showLog($actid,$flag="b");}else{showLog($actid);};
//主程序结束
?>
■配置文件 config.inc.php
####################################################################
#Project Name: Test
#Author :lanf
#Home Page: http://lanf.yeah.net
#E-mail:imbusy@263.net
#Time: 2001 . 9
####################################################################
[table up]
#id dir user max(kb) type check limit callback
fa001 /home/lanf/upload * 1900 * * * ./
#这就是说,标志为fa001的上传中,目标路径是/home/lanf/upload(当然这需要赋予php在这个目录下写的权限),限定的操作用户是*(表示任何人,当然你也可以限制为lanf,yy等等),每次上传的大小限制为1900KB,类型为任何类型(*,当然你也可以限制为gif,jpg等后缀,用逗号分隔。如果限制是gif或者jpg的话,系统自动读取若干字节检查文件类型是否为伪冒)。check项为是否调用外部程序检验上传文件真伪,若不调用,直接写*,调用直接写该文件绝对路径。limit项是针对调用页的限制,不限制可以写*,限制的话,填写该主机域名或者ip地址,可以支持192.*.*.*等区域授权方式。最后一项是返回页面,上传文件后调用哪个URL(注意,填写的是url,确保系统路径不被泄漏)










