-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
29 lines (29 loc) · 813 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!DOCTYPE html>
<html>
<head>
<title>Upload your files</title>
</head>
<body>
<center>
<form enctype="multipart/form-data" action="7664sdjkj.php" method="POST">
<br><br><img width='100' height='100' src='share.png'><br>
<p>Upload your file</p>
No pornography, malware or other illegal content according to Bangladeshi law!<br>
<input type="hidden" name="MAX_FILE_SIZE" value="10242880" />
Choose a file to upload: (10.24 MB Max)<br /><br><br>
<input type="file" name="uploaded_file" ></input><br /><br><br>
<input type="submit" value="Upload"></input>
</form></center><br><br>
</body>
</html>
<center>
<?php
$directory = "./files/";
$filecount = 0;
$files = glob($directory . "*");
if ($files){
$filecount = count($files);
}
echo "There were $filecount files are hosted";
?>
</center>