Hacked By AnonymousFox

Current Path : C:/AppServ/www/mfu/object/obj_javaword/
Upload File :
Current File : C:/AppServ/www/mfu/object/obj_javaword/popup_selectfile.php

<?
include("../../lib/config.php");
include("../../lib/function.php");

$Object_FileBrowser_RootPath = $_REQUEST['Object_FileBrowser_RootPath'];
$SystemModuleKey = $_REQUEST['SystemModuleKey'];
$myModule_Path_Files = $_REQUEST['myModule_Path_Files'];
$Object_JavaWord_FullRootPath = $_REQUEST['Object_JavaWord_FullRootPath'];
$Object_JavaWord_RootPath = $_REQUEST['Object_JavaWord_RootPath'];
$mediatype = $_REQUEST['mediatype'];
?>
<html><!-- InstanceBegin template="/Templates/WebEngine-Adminpanel-Popup.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->

<title>Web Engine : 
<?=$System_Variable_Title?>
</title>
<link href="skins/silver/fck_dialog.css" rel="stylesheet" type="text/css" />
<!-- 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" align="left">
        <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="Object_JavaWord_RootPath" type="hidden" id="Object_JavaWord_RootPath" value="<?=$Object_JavaWord_RootPath?>">
                <input name="SystemModuleKey" type="hidden" id="SystemModuleKey" value="<?=$SystemModuleKey?>">
                 <input name="Object_JavaWord_FullRootPath" type="hidden" id="Object_JavaWord_FullRootPath" value="<?=$Object_JavaWord_FullRootPath?>">
                <input name="myModule_Path_Files" type="hidden" id="myModule_Path_Files" value="<?=$myModule_Path_Files?>">
                    <input name="mediatype" type="hidden" id="mediatype" value="<?=$mediatype?>">
                
                <tr> 
                  <td height="20" align="right">
<table width="13" height="20" border="0" cellpadding="0" cellspacing="0">
                      <tr> 
                        <td width="13">&nbsp;</td>
                      </tr>
                  </table></td>
                </tr>
              </form>
            </table>
            
          </td>
        </tr>
        <tr> 
          <td height="141" align="left" valign="top"> 
<br>
<br>
<br>
<br>
<br>
<?
 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_file($inputFileUpload)) {
				$varFileName = $myrand."_".$_FILES['inputFileUpload']['name'];
				$varFileSize = $_FILES['inputFileUpload']['size'];
				if(move_uploaded_file($inputFileUpload,$myModule_Path_Files."/".$varFileName)) {
					chmod($myModule_Path_Files."/".$varFileName,0777);
				}
		}		

?>
<script language="javascript" >
window.opener.location.href='filebrowser.php?mediatype=<?=$mediatype?>&type=Image&Object_JavaWord_RootPath=<?=$Object_JavaWord_RootPath?>&Object_JavaWord_FullRootPath=<?=$Object_JavaWord_FullRootPath?>';
window.close();
</script>
<table width="350" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center"> เสร็จแล้ว  <?=$varFileSize?></td>
  </tr>
</table>

<? }else{?>
<table width="345"  border="0" cellpadding="0" cellspacing="0"  id="tableFileUpload">
<form action="?" method="post" name="myForm" id="myForm" enctype="multipart/form-data">
<input name="Object_JavaWord_FullRootPath" type="hidden" id="Object_JavaWord_FullRootPath" value="<?=$Object_JavaWord_FullRootPath?>">
 <input name="action" type="hidden" id="action" value="save">
 <input name="SystemModuleKey" type="hidden" id="SystemModuleKey" value="<?=$SystemModuleKey?>">
  <input name="myModule_Path_Files" type="hidden" id="myModule_Path_Files" value="<?=$myModule_Path_Files?>">
  <input name="Object_JavaWord_RootPath" type="hidden" id="Object_JavaWord_RootPath" value="<?=$Object_JavaWord_RootPath?>">
    <input name="mediatype" type="hidden" id="mediatype" value="<?=$mediatype?>">
  <tr>
    <td width="30" align="right">&nbsp;</td>
    <td width="56" align="right"><strong>File:</strong></td>
    <td width="259" align="left"><input name="inputFileUpload" type="file" class="Button" style="width:180" size="25" 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" id="btUpload" value="Upload" onClick=" document.myForm.submit();">
&nbsp;&nbsp;&nbsp;&nbsp;
<input name="btClose" type="button" class="Button" id="btClose" value="Close" onClick="window.close();">
          </td>
        </tr>
      </table>      
      <!-- InstanceEndEditable --></td>
  </tr>
</table>
</body>
<!-- InstanceEnd --></html>


Hacked By AnonymousFox1.0, Coded By AnonymousFox