⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.php

📁 一、超强系统模型扩展功能 EmpireCMS卓越之处在于:不仅提供了网站管理功能
💻 PHP
字号:
<?php
require("../../class/connect.php");
include("../../class/config.php");
include("../../class/db_sql.php");
include("../../class/class.php");
$link=db_connect();
$empire=new mysqlquery();
$editor=1;
//下载附件
function DoDownFile($fileid){
	global $empire,$public_r,$class_r,$dbtbpre;
	if(empty($fileid))
	{
		printerror("ErrorUrl","history.go(-1)",1);
	}
	$r=$empire->fetch1("select fileid,path,filename,classid,fpath from {$dbtbpre}enewsfile where fileid='$fileid'");
	if(empty($r[fileid]))
	{
		printerror("ErrorUrl","history.go(-1)",1);
	}
	//下载数加1
	$sql=$empire->query("update {$dbtbpre}enewsfile set onclick=onclick+1 where fileid='$fileid'");
	$ok=1;
	//按栏目
	$fspath=ReturnFileSavePath($r[classid],$r[fpath]);
	$filepath=$r[path]?$r[path].'/':$r[path];
	$downurl=$fspath['fileurl'].$filepath.$r[filename];
	if($ok)
	{
		Header("Location:$downurl");
	}
}
//下载附件
$fileid=(int)$_GET['fileid'];
DoDownFile($fileid);
db_close();
$empire=null;
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -