Exemple #1
0
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?echo LANG?>" lang="<?echo LANG?>"> 
<head>
<title><?echo TXT_UPLOADING?></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<style>
BODY{
background:#BB0000;
color: #fff;
	margin: 0px;
	}
</style>

<body>

<div id='uploading' style='margin:0px;padding:4px'><?basic_upload_hack_block();?></div>
<script type='text/javascript'>
contentContainer=document.getElementById('uploading');
contentContainer.innerHTML = '<?php 
echo TXT_UPLOADING;
?>
';
</script>

<?php 
if ($_FILES["filename"]["name"]) {
    //Upload the image to the images directory
    $newFileName = $_FILES["filename"]["name"];
    if ($_POST['type'] == image) {
        $newFileType = $_FILES["filename"]["type"];
    } else {
Exemple #2
0
<title><?echo TXT_NEW_DIR?></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<style>
BODY{
background:#BB0000;
color: #fff;
	margin: 0px;
	}
</style>

<body>

<div id='makingdir' style='margin:0px;padding:4px'>
<?php 
basic_upload_hack_block();
?>
</div>
<script type="text/javascript">
contentContainer=document.getElementById('makingdir');
contentContainer.innerHTML = '<?echo TXT_CREATING?>';
</script>

<?php 
$new_directory = trim($_POST['newdir']);
$new_directory = strtolower($new_directory);
$new_directory = str_replace(" ", "_", $new_directory);
$validFileType = false;
$ExistDir = false;
$validFileChar = true;
$makedir = true;