Subversion Repositories ALCASAR

Rev

Rev 2864 | Rev 2953 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2864 Rev 2898
Line 392... Line 392...
392
	            file_put_contents($update_file_ossi_cat, "alcasar-bl-autoupdate.sh --update_ossi-bl-candc\n", FILE_APPEND);
392
	            file_put_contents($update_file_ossi_cat, "alcasar-bl-autoupdate.sh --update_ossi-bl-candc\n", FILE_APPEND);
393
		    }
393
		    }
394
		}
394
		}
395
		break;
395
		break;
396
	case 'MAJ_ossi_file_upload' :
396
	case 'MAJ_ossi_file_upload' :
-
 
397
		$bad_char = array(" ", ".");
397
		$file_name = str_replace (".", "_",basename($_FILES['fichier_ip']['name']));
398
		$file_name = str_replace ($bad_char, "_",basename($_FILES['fichier_ip']['name']));
398
		$dest_dir = $dir_blacklist."ossi-bl-".$file_name; # /etc/e2guardian/list/blacklist/ossi-bl-XXXXXXXX
399
		$dest_dir = $dir_blacklist."ossi-bl-".$file_name; # /etc/e2guardian/list/blacklist/ossi-bl-XXXXXXXX
399
		if((!empty($file_name)) && (!file_exists($dest_dir)))
400
		if((!empty($file_name)) && (!file_exists($dest_dir)))
400
		{
401
		{
401
			exec("mkdir ".escapeshellarg($dest_dir));
402
			exec("mkdir ".escapeshellarg($dest_dir));
402
			$file=$_FILES['fichier_ip']['tmp_name'];
403
			$file=$_FILES['fichier_ip']['tmp_name'];