<?
/*
Co5Up created by Co5.info
� 2006 Co5.info. All Rights Reserved.
*/
include "header.php";
?>
<?
include "config.php";
if (!isset($HTTP_POST_FILES['userfile'])) exit;
if (is_uploaded_file($HTTP_POST_FILES['userfile']['tmp_name'])) {
if ($HTTP_POST_FILES['userfile']['size']>$ms) {
echo "Your File Size is too big, please reduce the size and try again.<br>\n"; exit; }
if(($HTTP_POST_FILES['userfile']['type']=="image/gif") ||
($HTTP_POST_FILES['userfile']['type']=="image/pjpeg") || ($HTTP_POST_FILES['userfile']['type']=="image/jpeg") ||
($HTTP_POST_FILES['userfile']['type']=="image/jpg") ||
($HTTP_POST_FILES['userfile']['type']=="image/jpg") ||
($HTTP_POST_FILES['userfile']['type']=="image/bmp") ||
($HTTP_POST_FILES['userfile']['type']=="image/JPEG") ||
($HTTP_POST_FILES['userfile']['type']=="image/png")) {
if (file_exists("./".$path . $HTTP_POST_FILES['userfile']['name'])) {
echo "File name exists please rename then try again.<br>\n"; exit; }
$zufall = rand(1,99999);
$fupl = "$zufall";
$res = copy($HTTP_POST_FILES['userfile']['tmp_name'], "./" .$path .$fupl .$HTTP_POST_FILES['userfile']['name']);
if (!$res) { echo "Upload Failed, please try again<br>\n"; exit; } else {
?>
<br>
<?php
//set url variable
$domst = "";
$drecks = "/";
$imgf = $fupl.$HTTP_POST_FILES['userfile']['name'];
$thbf = $tpath.$imgf;
$urlf = $domst .$domain .$drecks .$path .$imgf;
//create thumbnails
function LoadWBMP($imgname)
{
$im = @imagecreatefromwbmp($imgname); /* Attempt to open */
if (!$im) { /* See if it failed */
$im = imagecreatetruecolor (20, 20); /* Create a blank image */
$bgc = imagecolorallocate($im, 255, 255, 255);
$tc = imagecolorallocate($im, 0, 0, 0);
imagefilledrectangle($im, 0, 0, 10, 10, $bgc);
/* Output an errmsg */
imagestring($im, 1, 5, 5, "Error loading $imgname", $tc);
}
return $im;
}
?>
<table border='0'>
<link rel="STYLESHEET" type="text/css" href="style.css">
<center>
<FORM action="nowhere" method="post">
<center>
<tr><td><input type="text" name="thetext" style="width: 500px" size="70" value="<a href="<?echo $url ;?>/v.php?id=<? echo $imgf; ?>"><img src="<?echo $url ;?>/images<? echo $domst.$domain.$drecks.$tpath.$imgf; ?>" border="0" /></a>"><td>
Thumbnail for Websites</td></td></tr>
<tr><td><input type="text" name="thetext" style="width: 500px" size="70" value="[URL=<?echo $url ;?>/v.php?id=<? echo $imgf; ?>][IMG]<?echo $url ;?>/images<? echo $domst.$domain.$drecks.$tpath.$imgf; ?>[/IMG][/URL]"><td>
Thumbnail for forums (1)</td></td></tr>
<tr><td><input type="text" name="thetext" style="width: 500px" size="70" value="[url=<?echo $url ;?>/v.php?id=<? echo $imgf; ?>][img=<?echo $url ;?>/images<? echo $domst.$domain.$drecks.$tpath.$imgf; ?>][/url]"><td>
Thumbnail for forums (2)</td></td></tr>
<tr><td><input type="text" name="thetext" style="width: 500px" size="70" value="Thanks to <?echo $name;?> for <a href="<?echo $url ;?>">Free Image Hosting</a>"><td>
Link back to <a href="<?echo $url ;?>"><?echo $name ;?></a></td></td></tr>
<tr><td><input type="text" name="thetext" style="width: 500px" size="70" value="[URL=<?echo $url ;?>][IMG]<?echo $url ;?><? echo $domst.$domain.$drecks.$tpath.$imgf; ?>[/IMG][/URL]"><td>
Hotlink for forums (1)</td></td></tr>
<tr><td><input type="text" name="thetext" style="width: 500px" size="70" value="[url=<?echo $url ;?>][img=<?echo $url ;?>/images<? echo $domst.$domain.$drecks.$tpath.$imgf; ?>][/url]"><td>
Hotlink for forums (2)</td></td></tr>
<tr><td><input type="text" name="thetext" style="width: 500px" size="70" value="<a href="<?echo $url ;?>"><img src="<?echo $url ;?>/images<? echo $domst.$domain.$drecks.$tpath.$imgf; ?>" border="0" /></a>"><td>
Hotlink for Websites</td></td></tr>
<tr><td><input type="text" name="thetext" style="width: 500px" size="70" value='<?echo $url ;?>/v.php?id=<? echo $imgf; ?>'><td>
<a href="<?echo $url ;?>/v.php?id=<? echo $imgf; ?>"><b>Show</b></a> image to friends</td></td></tr>
<tr><td><input type="text" name="thetext" style="width: 500px" size="70" value="<?echo $url ;?><? echo $urlf; ?>"><td>Direct link to image</td></tr>
<BR>
<a href="<?echo $url ;?>/v.php?id=<? echo $imgf; ?>"><img src="<?echo $url ;?><? echo $urlf; ?>" alt="iNetScripts" border="0" height="31" width="88" /></a> Click <a href="<?echo $url ;?>/v.php?id=<? echo $imgf; ?>">HERE</a> to view image</td></td><BR>
<?
}
} else { echo "Sorry we dont allow that file type.!<br>Please go back and try again!\n"; exit; }
}
?>
</table>
<br><br>
</body></center>
<center><?
/* Co5Up created by Co5.info
� 2006 Co5.info. All Rights Reserved.
*/
include "adverts.php";
?></center><BR><?
include "footer.php";
?>
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
【项目资源】:包含前端、后端、移动开发、操作系统、人工智能、物联网、信息化管理、数据库、硬件开发、大数据、课程资源、音视频、网站开发等各种技术项目的源码。包括STM32、ESP8266、PHP、QT、Linux、iOS、C++、Java、python、web、C#、EDA、proteus、RTOS等项目的源码。【项目质量】:所有源码都经过严格测试,可以直接运行。功能在确认正常工作后才上传。【适用人群】:适用于希望学习不同技术领域的小白或进阶学习者。可作为毕设项目、课程设计、大作业、工程实训或初期项目立项。【附加价值】:项目具有较高的学习借鉴价值,也可直接拿来修改复刻。对于有一定基础或热衷于研究的人来说,可以在这些基础代码上进行修改和扩展,实现其他功能。【沟通交流】:有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。鼓励下载和使用,并欢迎大家互相学习,共同进步。
资源推荐
资源详情
资源评论
收起资源包目录
基于HTML实现上传下载网站_PHP简单图片上传类_upimg(HTML源码+数据集+项目使用说明).rar (22个子文件)
[上传下载]PHP简单图片上传类_upimg
upimg
adverts.php 811B
style.css 822B
v.php 1KB
upload.php 5KB
up.php 3KB
adverts2.php 492B
if.php 1KB
header.php 2KB
tos.php 852B
config.php 595B
tool.php 605B
footer.php 66B
if1.php 814B
index.php 554B
style_images
logo.gif 5KB
button1.gif 5KB
link.php 2KB
thumbs
images
83707p6411767.gif 54B
11353logo.gif 5KB
36253ai.gif 21KB
41161banner.png 3KB
text1.swf 4KB
cgi-bin
共 22 条
- 1
资源评论
CyMylive.
- 粉丝: 6789
- 资源: 3万+
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功