-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
38 lines (37 loc) · 1.03 KB
/
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
30
31
32
33
34
35
36
37
38
<!DOCTYPE html>
<html lang="en">
<?php
$config = fopen("config.json", "r") or die("Unable to open file!");
$jsonobj = fread($config,filesize("config.json"));
fclose($config);
$obj = json_decode($jsonobj);
$brandName = $obj->brand;
$limit = $obj->filesize;
?>
<head>
<meta charset="UTF-8">
<title><?php echo $brandName; ?> File Storage</title>
</head>
<style>
@import url("https://fonts.googleapis.com/css?family=Roboto");
body {
color: green;
background: black;
font-family:'Roboto', Helvetica;
text-align:center;
}
</style>
<body>
<h1><?php echo $brandName ?> File Storage</h1>
<h2>File Limit: <?php echo $limit / 1000000; echo "MB"; ?></h2>
<form action="fileUploadScript.php" method="post" enctype="multipart/form-data">
Upload a File:
<input type="file" name="the_file" id="fileToUpload"><br> <br>
<input type="submit" name="submit" value="Start Upload">
</form>
</body>
<footer>
<p>Copyright © Altify Developing LTD 2023</p>
<p>All rights reserved</p>
</footer>
</html>