1
0
Fork 0
Browse Source

fixed #103, able to edit non-string variable

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@419 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 15 years ago
parent
commit
4932014df3
  1. 5
      admin/edit.php

5
admin/edit.php

@ -11,11 +11,12 @@ $name = $_GET['name'];
$vcnt = xcache_count(XC_TYPE_VAR);
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
xcache_set($name, $_POST['value']);
eval('$value = ' . $_POST['value']);
xcache_set($name, $value);
header("Location: xcache.php?type=" . XC_TYPE_VAR);
exit;
}
$value = xcache_get($name);
$value = var_export(xcache_get($name), true);
$xcache_version = XCACHE_VERSION;
$xcache_modules = XCACHE_MODULES;

Loading…
Cancel
Save