download.php
来自「学校网站源码http://您的网址/admin/admin_login.asp 」· PHP 代码 · 共 28 行
PHP
28 行
<?php
define( "ROOTPATH", "" );
include( ROOTPATH."config.inc.php" );
include( ROOTPATH."language/".$sLan."_".$charset.".php" );
include( ROOTPATH."includes/pro.php" );
include( ROOTPATH."includes/SysGlobal.php" );
include( ROOTPATH."includes/func/db.inc.php" );
$id = $_GET['id'];
$msql->query( "select * from {$tbl_down_con} where id='{$id}'" );
if ( $msql->next_record( ) )
{
$url = $msql->f( "url" );
$fsql->query( "update {$tbl_down_con} set cl=cl+1 where id='{$id}'" );
if ( !strstr( $url, "http://" ) )
{
$url = $SiteUrl.$url;
}
header( "location:{$url}" );
}
else
{
echo "File Not Exists";
exit( );
}
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?