first commit

This commit is contained in:
alazhar committed 2020-01-02 22:49:45 +07:00
commit 2662cbccd5
390 files changed
+81624

No files matched your search

@@ -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>