Hacked By AnonymousFox
<?
include("../lib/session.php");
include("../lib/config.php");
include("../lib/connect.php");
include("../lib/function.php");
?>
<html><!-- InstanceBegin template="/Templates/WebEngine-Adminpanel-Popup.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title> <?=$System_Variable_Title?>
</title>
<!-- InstanceEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
<link href="../css/mystyle.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#000000">
<tr valign="top">
<td width="77%" align="center" valign="top" bgcolor="#FFFFFF"><!-- InstanceBeginEditable name="Programmable Region" -->
<?
function formatImageSize($mySize) {
if($mySize>1024*1024) {
return sprintf("%1.2f",$mySize/(1024*1024)) . "M";
} else {
return sprintf("%1.2f",$mySize/1024) . "k";
}
}
function removeEndSlash($myURL) {
if($myURL[strlen($myURL)-1]=="/") {
return substr($myURL,0,strlen($myURL)-1);
} else {
return $myURL;
}
}
function removeEndURL($myURL) {
$myURLArray = explode("/",$myURL);
$myURL = $myURLArray[0];
for($i=1;$i<count($myURLArray)-1;$i++) {
$myURL = $myURL . "/" . $myURLArray[$i];
}
return $myURL;
}
function getFileOrFolderName($myURL) {
$myURLArray = explode("/",$myURL);
return $myURLArray[count($myURLArray)-1];
}
function getFileOrFolderNameUpload($myURL) {
$myURLArray = explode("\\",$myURL);
return $myURLArray[count($myURLArray)-1];
}
?>
<table width="100%" height="100%" border="0" cellpadding="2" cellspacing="0">
<tr>
<td height="22" align="right" valign="top" class="table_footer"> <table border="0" cellspacing="0" cellpadding="2">
<tr>
<td><input name="btClose" type="button" class="button_80" id="btClose" value="Close" onClick="window.close(); "></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" valign="top">
<?
$ImagePath = "..";
if($CurrentPath=="") { $CurrentPath = $ImagePath; }
$CurrentPath =removeEndSlash($CurrentPath);
$UpPath = removeEndURL($CurrentPath);
?>
<table width="100%" border="0" cellpadding="1" cellspacing="0" id="htmltool_table">
<tr>
<td height="22" align="center" valign="middle"> </td>
<td height="22" colspan="2"><font color="#990000"><strong>
<?=$CurrentPath?>
</strong></font></td>
</tr>
<?
if($CurrentPath!=$ImagePath) {
$FullPathBaseURL = $FullPath . "/" . substr($CurrentPath,strlen($ImagePath)+1,strlen($CurrentPath));
?>
<tr onMouseOver="this.style.background='#DDDDDD'" onMouseOut="this.style.background=''">
<td width="18" height="18" align="center" valign="middle"><img src="images/folder_back.gif" width="16" height="16"></td>
<td width="638" height="18"> <a href="?CurrentPath=<?=$UpPath . "/" . $file ?>">..</a></td>
<td width="41"> </td>
</tr>
<?
} else {
$FullPathBaseURL = $FullPath;
}
// Get Folder
$handle = opendir($CurrentPath);
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
if(is_dir($CurrentPath . "/". $file)) {
// Get Files Inside
$FileInside=0;
$ImageFileInside=0;
$FileInsideHandle = opendir($CurrentPath . "/". $file);
while (false !== ($FileInsideFile = readdir($FileInsideHandle))) {
if ($FileInsideFile != "." && $FileInsideFile != "..") {
$FileInside++;
if( is_file($CurrentPath . "/". $file . "/". $FileInsideFile) ) {
//$size=GetImageSize($CurrentPath . "/". $file . "/". $FileInsideFile);
//if($size!=NULL) {
$ImageFileInside++;
//}
}
}
}
closedir($FileInsideHandle);
?>
<tr onMouseOver="this.style.background='#DDDDDD'" onMouseOut="this.style.background=''">
<td width="18" height="18" align="center" valign="middle">
<? if($FileInside==0) { ?>
<img src="images/folder_empty.gif" width="16" height="16">
<? } else { ?>
<img src="images/folder.gif" width="16" height="16">
<? } ?>
</td>
<td height="18"> <a href="?CurrentPath=<?=$CurrentPath . "/" . $file ?>">
<?=$file?>
</a></td>
<td width="41"> </td>
</tr>
<?
}
}
}
closedir($handle);
// Get Files
$handle = opendir($CurrentPath);
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
if( is_file($CurrentPath . "/". $file) ) {
?>
<tr onMouseOver="this.style.background='#DDDDDD'" onMouseOut="this.style.background=''">
<td width="18" height="18" align="center" valign="middle"> <img src="images/file.gif" width="16" height="16">
</td>
<td height="18"> <a href="#" onClick="setPath('<?=$file?>')">
<?=$file?>
</a></td>
<td width="41">
<?=formatImageSize(filesize($CurrentPath . "/". $file))?>
</td>
</tr>
<?
}
}
}
closedir($handle);
?>
</table>
</td>
</tr>
<tr>
<td height="22" align="right" valign="top" class="table_footer"> <table border="0" cellspacing="0" cellpadding="2">
<tr>
<td><input name="btClose" type="button" class="button_80" id="btClose" value="Close" onClick="window.close(); "></td>
</tr>
</table></td>
</tr>
</table>
<script language="JavaScript" type="text/JavaScript">
function setPath(myFile) {
window.opener.document.myForm.inputLinkPath.value = '<?=$CurrentPath?>'+'/'+myFile;
window.close();
}
</script>
<!-- InstanceEndEditable --></td>
</tr>
</table>
</body>
<!-- InstanceEnd --></html>
<?
include("../lib/disconnect.php");
?>
Hacked By AnonymousFox1.0, Coded By AnonymousFox