| Server IP : 172.67.216.113 / Your IP : 104.23.243.32 [ Web Server : Apache System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64 User : cp648411 ( 1354) PHP Version : 7.2.34 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/cloudlinux/alt-php56/root/usr/share/xcache_3/cacher/ |
Upload File : |
<?php
include "./common.php";
if (!isset($_GET['name'])) {
die("missing name");
}
// trigger auth
$vcnt = xcache_count(XC_TYPE_VAR);
xcache_admin_namespace();
$name = $_GET['name'];
if (!empty($config['enable_eval'])) {
eval('$name = ' . $name . ';');
}
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
if (!empty($config['enable_eval'])) {
eval('$value = ' . $_POST['value'] . ';');
}
else {
$value = $_POST['value'];
}
xcache_set($name, $value);
header("Location: ./?do=listvar");
exit;
}
$value = xcache_get($name);
if (!empty($config['enable_eval'])) {
$value = var_export($value, true);
$editable = true;
}
else {
if (is_string($value)) {
$editable = true;
}
else {
$editable = false;
$value = var_export($value, true);
}
}
include "edit.tpl.php";
?>