Example #1
0
//Enregistrement du message
if (isset($_POST['m'])) {
    $handle2 = fopen($conf['absolute_path_download'] . "files/" . $folder . "/.messenger", "w");
    fwrite($handle2, htmlspecialchars($_POST['m']));
    fclose($handle2);
}
//Mise à jour du fichier
$handle2 = fopen($conf['name_folder_log'] . "log_attachment.log", "w+");
fwrite($handle2, $update);
fclose($handle2);
openlog("uploadLog", 0, LOG_LOCAL0);
syslog(LOG_INFO, ";ATT-SENT-ACCESS;" . date("d/m/Y-G:i") . ";" . $folder . ";" . $_SERVER['REMOTE_ADDR'] . ";" . htmlspecialchars($_POST['fm']) . ";;;;" . "Notify : " . htmlspecialchars($_POST["noti"]) . "/" . htmlspecialchars($_POST["every"]) . "-Only One : " . htmlspecialchars($_POST["only"]));
closelog();
//Raccourcir l'url
$handle3 = fopen($conf['name_folder_log'] . "url_attachment.log", "a");
$tmp_var = createRandomName();
$var = $tmp_var . " | " . $folder . " | " . $frommail . " | " . $htpasswd . "\n";
fwrite($handle3, $var);
fclose($handle3);
//Listing des fichiers dans un tableau
$c_file = 0;
$dir = opendir($conf['absolute_path_download'] . "files/{$folder}/");
while ($file = readdir($dir)) {
    if ($file != '.' && $file != '..' && $file != '...' && $file != 'index.php' && !is_dir($conf['absolute_path_download'] . "files/{$folder}/" . $file) && $file != 'all_files_list.zip' && $file != '.htaccess' && $file != '.htpasswd' && $file != '.sender' && $file != '.messenger' && $file != 'mail.json') {
        $file_list[$c_file] = $file;
        $c_file++;
    }
}
$file_listing = null;
if ($c_file > 0) {
    foreach ($file_list as $key2 => $value2) {
Example #2
0
echo $vocables["{$lang}"]["interne_5"];
?>
</span>
                </button>
                <button type="button" id="delete_button" class="btn btn-danger delete" style="display:none;">
                    <i class="glyphicon glyphicon-trash"></i>
                    <span><?php 
echo $vocables["{$lang}"]["interne_6"];
?>
</span>
                </button>
				<input  type="hidden" name="folder" id="folder" value="<?php 
if ($folder != "") {
    echo $folder;
} else {
    echo createRandomName();
}
?>
"/>
<?php 
/* Create the IV and determine the keysize length, use MCRYPT_RAND
 * on Windows instead */
$iv = createRandomName2();
/* Create key from iv*/
$key = createRandomName2();
?>
			<input  type="hidden" name="iv" id="iv" value="<?php 
echo $iv;
?>
"/>
			<input  type="hidden" name="key" id="key" value="<?php