Skip to content

Commit e7ef295

Browse files
committed
Formatting
1 parent 5927659 commit e7ef295

File tree

3 files changed

+25
-27
lines changed

3 files changed

+25
-27
lines changed

res/API.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,7 @@ public static function getFile($id, $password) {
5555
if ($enc_content != NULL) {
5656
$filedata = Encryption::decrypt(base64_decode($enc_filedata), $password, $iv[0]);
5757
$filecontent = Encryption::decrypt(base64_decode($enc_content), $password, $iv[1]);
58-
return [
59-
$filedata, $filecontent, $maxviews
60-
];
58+
return [$filedata, $filecontent, $maxviews];
6159
} else {
6260
return NULL;
6361
}
@@ -67,7 +65,7 @@ public static function uploadFile($content, $filename, $filesize, $filetype, $pa
6765
global $conf;
6866
global $con;
6967
$id = strtoupper(uniqid("d"));
70-
$filedata = base64_encode($filename)." ".base64_encode($filesize)." ".base64_encode($filetype);
68+
$filedata = base64_encode($filename) . " " . base64_encode($filesize) . " " . base64_encode($filetype);
7169
$iv = array(mb_strcut(base64_encode(openssl_random_pseudo_bytes(16)), 0, 16), mb_strcut(base64_encode(openssl_random_pseudo_bytes(16)), 0, 16));
7270
$enc_filedata = base64_encode(Encryption::encrypt($filedata, $password, $iv[0]));
7371
$enc_content = base64_encode(Encryption::encrypt($content, $password, $iv[1]));

res/content/download_404.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
<script src="/res/js/night-mode.js"></script>
1818
<title>TempFiles</title>
1919
</head>
20-
2120
<body>
2221
<div class="container">
2322

@@ -31,6 +30,7 @@
3130
<input type="password" id="p" name="p" class="form-control" placeholder="Password" required>
3231
<button class="btn btn-lg btn-success btn-block" type="submit">Download</button>
3332
</form>
33+
3434
</div>
3535
</body>
36-
</html>
36+
</html>

res/css/download_404.css

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
body {
2-
padding-top: 40px;
3-
padding-bottom: 40px;
2+
padding-top: 40px;
3+
padding-bottom: 40px;
44
}
55

66
.form-download {
7-
max-width: 330px;
8-
padding: 15px;
9-
margin: 0 auto;
7+
max-width: 330px;
8+
padding: 15px;
9+
margin: 0 auto;
1010
}
1111
.form-download .form-download-heading,
1212
.form-download .checkbox {
13-
margin-bottom: 10px;
13+
margin-bottom: 10px;
1414
}
1515
.form-download .checkbox {
16-
font-weight: normal;
16+
font-weight: normal;
1717
}
1818
.form-download .form-control {
19-
position: relative;
20-
height: auto;
21-
-webkit-box-sizing: border-box;
22-
-moz-box-sizing: border-box;
23-
box-sizing: border-box;
24-
padding: 10px;
25-
font-size: 16px;
19+
position: relative;
20+
height: auto;
21+
-webkit-box-sizing: border-box;
22+
-moz-box-sizing: border-box;
23+
box-sizing: border-box;
24+
padding: 10px;
25+
font-size: 16px;
2626
}
2727
.form-download .form-control:focus {
28-
z-index: 2;
28+
z-index: 2;
2929
}
3030
.form-download input[type="text"] {
31-
margin-bottom: -1px;
32-
border-bottom-right-radius: 0;
33-
border-bottom-left-radius: 0;
31+
margin-bottom: -1px;
32+
border-bottom-right-radius: 0;
33+
border-bottom-left-radius: 0;
3434
}
3535
.form-download input[type="password"] {
36-
margin-bottom: 10px;
37-
border-top-left-radius: 0;
38-
border-top-right-radius: 0;
36+
margin-bottom: 10px;
37+
border-top-left-radius: 0;
38+
border-top-right-radius: 0;
3939
}

0 commit comments

Comments
 (0)