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>Web Engine :
<?=$System_Variable_Title?>
</title>
<!-- InstanceEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
<link href="../../webengine/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" -->
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="24" align="right" valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="4" class="table_col3"><img src="../images/blank.gif" width="10" height="2"></td>
</tr>
<form action="?" method="post" name="myPageRedirectForm" id="myPageRedirectForm">
<input name="GroupID" type="hidden" id="GroupID" value="<?=$GroupID?>">
<input name="SystemModuleKey" type="hidden" id="SystemModuleKey" value="<?=$SystemModuleKey?>">
<input name="SystemMenuID" type="hidden" id="SystemMenuID" value="<?=$SystemMenuID?>">
<tr>
<td height="20" align="right">
<table width="170" height="20" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="10" align="left" valign="bottom" class="table_col3"><img src="images/tab-w.gif" width="1" height="1"></td>
<td width="127" align="center" class="table_col3"><a href="popup_group_selecter.php?SystemModuleKey=<?=$SystemModuleKey?>"><font color="#660000">File Attachments</font></a></td>
<td width="20" align="right" class="table_col3"><img src="images/tab-w-slop-down.gif" width="20" height="20"></td>
<td width="13"> </td>
</tr>
</table></td>
</tr>
</form>
</table>
</td>
</tr>
<tr>
<td height="141" align="center" valign="top">
<br>
<br>
<br>
<br>
<br>
<script language="JavaScript" type="text/JavaScript">
function formatTable(tbName){
var myObj=tbName;
var myNumRow = myObj.rows.length;
for(i=0;i<myNumRow;i++){
myObj.rows[i].cells[2].innerHTML ="<a href=\"#\" onClick=\"funcDeleteRow("+i+")\">delete</a>";
}
}
function funcInsertGroupRow(mygname,mysize) {
var myObj=window.opener.document.getElementById("tableFileList");
var myNumRow = myObj.rows.length;
if(window.opener.document.myForm.inputFileListItemCount.value==0) {
funcDeleteRow(myNumRow);
window.opener.document.myForm.inputFileListItemCount.value = 1;
myInsertNumRow = myNumRow-1;
} else {
window.opener.document.myForm.inputFileListItemCount.value = (window.opener.document.myForm.inputFileListItemCount.value*1)+1;
myInsertNumRow = myNumRow;
}
myObj.insertRow(myInsertNumRow);
for(i=0;i<=2;i++) {
myObj.rows[myInsertNumRow].insertCell();
if(i==0) {
myObj.rows[myInsertNumRow].cells[i].innerHTML = mygname+"<input name=\"inputStrFileName[]\" type=\"hidden\" value=\""+mygname+"\">";
myObj.rows[myInsertNumRow].cells[i].colSpan = 1;
}
if(i==1) {
myObj.rows[myInsertNumRow].cells[i].align = "right";
myObj.rows[myInsertNumRow].cells[i].innerHTML = mysize;
myObj.rows[myInsertNumRow].cells[i].colSpan = 1;
}
if(i==2) {
myObj.rows[myInsertNumRow].cells[i].align = "right";
myObj.rows[myInsertNumRow].cells[i].innerHTML = "<a href=\"#\" onClick=\"funcDeleteRow("+myInsertNumRow+")\">delete</a>";
myObj.rows[myInsertNumRow].cells[i].colSpan = 1;
}
}
formatTable(myObj);
}
function funcDeleteRow(myRow) {
var myObj=window.opener.document.getElementById("tableFileList");
myObj.deleteRow(myRow-1);
formatTable(myObj);
}
</script>
<?
include("config.php");
############ File size calculations
function display_size($file){
$file_size = $file;
if($file_size >= 1073741824)
{
$file_size = round($file_size / 1073741824 * 100) / 100 . " GB";
}
elseif($file_size >= 1048576)
{
$file_size = round($file_size / 1048576 * 100) / 100 . " MB";
}
elseif($file_size >= 1024)
{
$file_size = round($file_size / 1024 * 100) / 100 . " KB";
}
else{
$file_size = $file_size . " byte";
}
return $file_size;
}
############ File size calculations
if($action=="save") {
srand(make_seed());
$myrand = rand(1111,9999);
// Check to create module data directory. ---------
if(!is_dir($System_RelativePath_Upload."/".$SystemModuleKey)) { mkdir($System_RelativePath_Upload."/".$SystemModuleKey,0777); }
if(!is_dir($myModule_Path_Files)) { mkdir($myModule_Path_Files,0777); }
if(!is_dir($myModule_Path_Files."/".$Temp_Folder)) { mkdir($myModule_Path_Files."/".$Temp_Folder,0777); }
// ------------------------------------------------
if(is_file($inputFileUpload)) {
$varFileName = $myrand."_".$_FILES['inputFileUpload']['name'];
$varFileSize = $_FILES['inputFileUpload']['size'];
if(copy($inputFileUpload,$myModule_Path_Files."/".$Temp_Folder."/".$varFileName)) {
chmod($myModule_Path_Files."/".$Temp_Folder."/".$varFileName,0777);
}
}
$varFileSize = display_size(strval($varFileSize));
?>
<script language="javascript" >
funcInsertGroupRow('<?=$varFileName?>','<?=$varFileSize?>');
window.close();
</script>
<table width="350" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"> �������� <?=$varFileSize?></td>
</tr>
</table>
<? }else{?>
<table width="300" border="0" cellpadding="0" cellspacing="0" id="tableFileUpload">
<form action="?" method="post" name="myForm" id="myForm" enctype="multipart/form-data">
<input name="action" type="hidden" id="action" value="save">
<input name="SystemModuleKey" type="hidden" id="SystemModuleKey" value="<?=$SystemModuleKey?>">
<input name="SystemMenuID" type="hidden" id="SystemMenuID" value="<?=$SystemMenuID?>">
<input name="Temp_Folder" type="hidden" id="Temp_Folder" value="<?=$Temp_Folder?>">
<tr>
<td width="100" align="right"><strong>File:</strong></td>
<td width="200" align="left"><input name=inputFileUpload type=file class=input_select_normal style="width:180" size=30 id=inputFileUpload ></td>
</tr>
</form>
</table>
<? }?>
<br>
<br></td>
</tr>
<tr>
<td height="30" align="center" valign="middle" class="table_col3">
<input name="btUpload" type="button" class="button_100" id="btUpload" value="Upload" onClick=" document.myForm.submit();">
<input name="btClose" type="button" class="button_100" id="btClose" value="Close" onClick="window.close(); ">
</td>
</tr>
</table>
<!-- InstanceEndEditable --></td>
</tr>
</table>
</body>
<!-- InstanceEnd --></html>
<?
include("../lib/disconnect.php");
?>
Hacked By AnonymousFox1.0, Coded By AnonymousFox