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

📄 mypic.php

📁 学校网站源码http://您的网址/admin/admin_login.asp 默认登录用户:admin 默认登录密码:admin
💻 PHP
字号:
<?php


include( "../../config.inc.php" );
include( "../../includes/SysGlobal.php" );
include( "../language/".$aLan."_".$charset.".php" );
include( "../../includes/version.php" );
include( "../../includes/pro.php" );
include( "../func/adm.inc.php" );
include( "../func/db.inc.php" );
needauth( 0 );
error_reporting( E_ERROR | E_WARNING | E_PARSE );
echo "<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=";
echo $charset;
echo "\">\r\n<link rel=stylesheet type=text/css href=style.css>\r\n<title>";
echo $strHtmlImageLib;
echo "</title>\r\n\r\n";
echo "<S";
echo "CRIPT>\r\nfunction cm(nn){\r\n\tif (confirm(\"";
echo $strHtmlImageLibNotice1;
echo "\")){\r\n\t\twindow.location='";
echo $PHP_SELF;
echo "?step=del&ifile='+nn;\r\n\t}\r\n}\r\n\r\nfunction ImgFile (file) {\r\n\twindow.returnValue = file;\r\n\twindow.close();\r\n}\r\n\r\nvar imgObj;\r\n\r\nfunction setImg(theURL,px){ \r\n\r\n\timgObj = new Image();\r\n\timgObj.src = theURL;\r\n\tif(imgObj.width>=imgObj.height){\r\n\t\tif(imgObj.width>=px){\r\n\t\t\tdocument.write(\"<img src='\"+ theURL +\"' width='\"+ px +\"' border=0>\");\r\n\t\t}else{\r\n\t\t\tdocument.write(\"<img src='\"+ theURL +\"'  border=0>";
echo "\");\r\n\t\t}\r\n\t}else{\r\n\t\tif(imgObj.height>=px){\r\n\t\t\tdocument.write(\"<img src='\"+ theURL +\"' height='\"+ px +\"'  border=0>\");\r\n\t\t}else{\r\n\t\t\tdocument.write(\"<img src='\"+ theURL +\"'  border=0>\");\r\n\t\t}\r\n\t}\r\n\t\r\n}\r\n</SCRIPT>\r\n</head>\r\n\r\n<body leftmargin=\"0\" topmargin=\"0\">\r\n<center>\r\n  <table width=\"100%\" border=\"0\" cellpadding=\"4\" cellspacing=\"1\" bgcolor=\"#ffffff\">\r\n    <tr>\r\n";
$step = $_REQUEST['step'];
$imagefold = "../../pic/gif/";
if ( $step == "del" )
{
	$ifile = $_GET['ifile'];
	if ( $ifile != "." && $ifile != ".." && $ifile != "_notes" && !is_dir( $ifile ) )
	{
		if ( file_exists( $imagefold.$ifile ) )
		{
			unlink( $imagefold.$ifile );
			echo "<script>parent.location.reload()</script>";
		}
	}
	else
	{
		echo "<script>alert('".$strHtmlImageLibNotice2."')</script>";
	}
}
$handle = opendir( $imagefold );
$kk = 1;
$tt = 0;
while ( $ImgFile = readdir( $handle ) )
{
	$nowfile = $imagefold.$ImgFile;
	if ( $ImgFile != "." && $ImgFile != ".." && $ImgFile != "_notes" && !strstr( $ImgFile, "/" ) && !is_dir( $nowfile ) )
	{
		echo "      <td align=\"center\" bgcolor=\"#ffffff\"  onDblclick=\"ImgFile ('";
		echo str_replace( "../../", $SiteUrl, $nowfile );
		echo "')\"> \r\n        <table border=\"0\" cellspacing=\"0\" cellpadding=\"2\">\r\n          <tr align=\"center\"> \r\n            <td height=\"100\" width=\"100\" style=\"border:1px solid #eeeeee;\">";
		echo "<s";
		echo "cript>setImg('";
		echo $nowfile;
		echo "',100);</script></td>\r\n        </tr><tr align=\"center\"> \r\n            <td height=\"22\" width=\"100\" style=\"font-size:10px\">";
		echo $ImgFile;
		echo "</td>\r\n        </tr>\r\n        <tr> \r\n          <td height=\"22\" align=\"center\" valign=\"bottom\"> \r\n            <input type=\"button\" name=\"Submit\" value=\"";
		echo $strHtmlImageLibSelit;
		echo "\" style=\"background:#f0f0f0;border:1 solid #dddddd;font-size:12px\" onClick=\"ImgFile ('";
		echo str_replace( "../../", $SiteUrl, $nowfile );
		echo "')\">&nbsp;<input type=\"button\" name=\"Submit2\" value=\"";
		echo $strDelete;
		echo "\" style=\"background:#f0f0f0;border:1 solid #dddddd;font-size:12px;text-align:center\" onClick=\"cm('";
		echo $ImgFile;
		echo "')\"> </td>\r\n        </tr>\r\n      </table> \r\n      </td>\r\n\t\t";
		if ( 5 <= $kk )
		{
			echo "</tr>";
			$kk = 0;
		}
		$kk++;
		$tt++;
	}
}
echo "  </tr>\r\n</table>\r\n</center>\r\n</body>\r\n</html>\r\n";
?>

⌨️ 快捷键说明

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