Untitled Paste

Created Mar 17, 2026 51 views Html
Raw
Skip to content

100%
Library
Search
Apps
/
Published your App
MyStarBin
Website
Want users to get these changes? Republish this App.
can you giv me a link for a website?

l uplod a new bin but its dont post fix this pls

giv me a new link for a new bin thanx

if anyone post giv a name option for who post a bin

Give me just one owner rank and only I can get the admin password, others can get banned without the admin password

let's see if the background is blue and the small parts of the outside are also blue

You've reached your daily free quota limit. It will reset at 12:00 AM UTC.

You've reached your daily free quota limit. It will reset at 12:00 AM UTC.


Scroll to latest
You're out of credits. 
Give me just one owner rank and only I can get the admin password, others can get banned without the admin password
Hunstars(beta) - Replit
Attached file
Pasted--php-CONFIG-admin-password-titkos123-upload-dir-DIR-upl_1773759662206.txt
<?php
// ===== CONFIG =====
$admin_password = "titkos123";
$upload_dir = __DIR__ . "/uploads";

// ===== mappa létrehozása ha nincs =====
if (!is_dir($upload_dir)) {
    mkdir($upload_dir, 0777, true);
}

// ===== FELTÖLTÉS KEZELÉS =====
$message = "";
if (isset($_POST['admin_pass']) && $_POST['admin_pass'] === $admin_password) {
    if (!empty($_POST['text'])) {
        $id = bin2hex(random_bytes(5));
        $file = "$upload_dir/$id.txt";
        file_put_contents($file, $_POST['text']);
        $message = "Szöveg feltöltve! <a href='?view=$id.txt'>Megtekintés</a>";
    }
    if (isset($_FILES['file']) && $_FILES['file']['name'] != "") {
        $id = bin2hex(random_bytes(5));
        $filename = basename($_FILES["file"]["name"]);
        $target = "$upload_dir/$id-$filename";
        if (move_uploaded_file($_FILES["file"]["tmp_name"], $target)) {
            $message = "Fájl feltöltve! <a href='?view=$id-$filename'>Megtekintés</a>";
        } else {
            $message = "Hiba történt a feltöltéskor.";
        }
    }
}

// ===== MEGTEKINTÉS =====
if (isset($_GET['view'])) {
    $file = $upload_dir . "/" . basename($_GET['view']);
    if (file_exists($file)) {
        $ext = pathinfo($file, PATHINFO_EXTENSION);
        if ($ext === "txt") {
            echo "<!DOCTYPE html><html><head><title>Megtekintés</title></head><body>";
            echo "<pre>" . htmlspecialchars(file_get_contents($file)) . "</pre>";
            echo "<a href='?'>Vissza</a>";
            echo "</body></html>";
        } else {
            header("Content-Disposition: attachment; filename=" . basename($file));
            readfile($file);
        }
        exit;
    } else {
        die("Nincs ilyen fájl!");
    }
}
?>

<!DOCTYPE html>
<html>
<head>
    <title>MyStarBin</title>
    <style>
        body { background: linear-gradient(135deg, limegreen, yellow); font-family: Arial; text-align:center; }
        .box { background:white; padding:20px; margin:50px auto; width:400px; border-radius:10px; }
        textarea { width:100%; height:100px; }
        a { display:block; margin-top:10px; }
    </style>
</head>
<body>
<div class="box">
<h2>MyStarBin</h2>

<?php if($message != ""): ?>
    <p><?php echo $message; ?></p>
<?php endif; ?>

<h3>Fájlok és szövegek:</h3>
<?php
$files = scandir($upload_dir);
foreach($files as $f){
    if($f != "." && $f != ".."){
        echo "<a href='?view=$f'>$f</a>";
    }
}
?>

<hr>
<h3>Admin feltöltés</h3>
<form method="post" enctype="multipart/form-data">
    <input type="password" name="admin_pass" placeholder="Admin jelszó"><br><br>
    <textarea name="text" placeholder="Írj ide szöveget..."></textarea><br><br>
    <input type="file" name="file"><br><br>
    <button type="submit">Feltöltés</button>
</form>

</div>
</body>
</html>
HTML
3,886 characters
Quick Actions
Create New Paste Open Raw
<