Location: PHPKode > projects > ZompLog > admin/file_manager_upload.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Zomplog File Manager - Uploader</title>

<style type="text/css">
   @import "style.css";
   
   body{
   background-color: #FFFFFF;
   background-image: url();
   }
  </style>
  
  <script src="jscripts/multifile_compressed.js"></script>

  
</head>

<body>

<?php
include_once("functions.php");
include('config.php');
include("session.php");

include("loadsettings.php");
include("../language/$settings[language].php"); 

//print_r($_FILES);

if(!$_SESSION["loggedIn"]){
	echo ("You are not allowed to view this page, please log in first.");
}
else  
{
// **********************************************************************
// **********************************************************************
// START loggedIn


// START Submit
if($_POST['submit']){  

// upload script
//include("upload_theme_image.php");
// upload script
include("upload_files.php");

foreach ($aBestanden as $sFilename => $sFiletype)
{

if($sFiletype == 'image/jpeg' || $sFiletype == 'image/pjpeg' || $sFiletype == 'image/gif'){
	?>

			<img src="icons/lightning.png" onload="parent.tinyMCE.execCommand('mceFocus',false,'text'); parent.tinyMCE.execInstanceCommand('text', 'mceInsertContent', false, '<img src=\'../thumbs/<?php echo $sFilename?>\' border=\'0\' />'), parent.mcWindows.windows['1'].close();" style="display:none;" />
            

<?php
}
else
{

//print_r($_FILES);
?>
<img src="icons/lightning.png" onload="parent.tinyMCE.execCommand('mceFocus',false,'text'); parent.tinyMCE.execInstanceCommand('text', 'mceInsertContent', false, '<a href=\'../upload/temp_<?php echo $sFilename?>\' target=\'blank\'><?php echo $_FILES['file_0']['name'];?></a>'), parent.mcWindows.windows['1'].close();" style="display:none;" />

<?php


}	



}

	?>
			
<?php
	
// END empty messages

}

// END submit
?>
<div style="width: 98%; background-color: #FFFFFF;">





        <form name="myform" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>" enctype="multipart/form-data">

        	<?php
    if (!is_writable("../upload/")){
			echo "$lang_set_permissions";
			}
			else
			{
			echo $lang_insert_directly;
			?>
            <br /><br />
        <input id="my_file_element" type="file" value="1" name="file_1" \ /> <input name="submit" type="submit" value="<?php echo $lang_submit; ?>" />
		
        <div id="files_list"></div>
<script>
	<!-- Create an instance of the multiSelector class, pass it the output target and the max number of files -->
	var multi_selector = new MultiSelector( document.getElementById( 'files_list' ), 2 );
	<!-- Pass in the file element -->
	multi_selector.addElement( document.getElementById( 'my_file_element' ) );
</script>

<?php } ?>


</form>
    





</div>
<?php } ?>
</body>
</html>
Return current item: ZompLog