首页 > 开发 > PHP > 正文

PHP室宝序竣?php喘送圭恬抹待夕

2024-05-04 21:51:44
字体:
来源:转载
供稿:网友

db_mysql.inc.php,config.php,function.php音屎喘欺?囚$filename 周兆,厘宥函方象垂夕兆各

<?php
include_once ('inc/db_mysql.inc.php');
include_once ('inc/config.php');
include_once ('class/function.php');

global $picPath;

if (strstr($_SERVER[HTTP_USER_AGENT],"MSIE")) {
$attachment = '';
} else {
$attachment = ' atachment;';
}

$image = getInfo('newssp_gallery','id',$_GET['id']);

$filename = $picPath.$image['filename'];

if (!file_exists($filename)) {
$filename = $picPath."notexist.gif";
}

header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0

header("Content-disposition:".$attachment." filename=".$image['original']);

$size = @filesize($filename);

header("Content-Length: $size");

$fd = @fopen($filename,rb);
$contents = @fread($fd,$size);
@fclose ($fd);

echo $contents;
?>

喘扮昨辛委html周

<img src='showpic.php?id=xxx' width='50' height='50'>

showpic.php式中椎php周,id=xxx方象垂芝村ID,width抹待夕,height抹待夕互,音揖扮互,箭泌?低?50抹待夕?峪<img src='showpic.php?id=xxx' width='50'>宸祥辛阻

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表