first commit

This commit is contained in:
alazhar
2020-01-02 22:49:45 +07:00
commit 2662cbccd5
390 changed files with 81624 additions and 0 deletions

View File

@ -0,0 +1,17 @@
<?php
if(isset($_FILES['file'])){
$type = substr($_FILES['file']['name'],strrpos($_FILES['file']['name'],'.'));
$image_name = time().$type;
$path = './img/';
if(!copy($_FILES['file']['tmp_name'],$path.$image_name)){
$image_name = 'no';
}
}else{
$image_name = 'nop';
}
?>
<html><head></head><body><?php echo $image_name; ?></body></html>