source: git/admin/edit.php @ d349d6f

1.3
Last change on this file since d349d6f was d349d6f, checked in by Xuefer <xuefer@…>, 10 years ago

merged 418,r419,r424,r425,r429,r431 from trunk

git-svn-id: svn://svn.lighttpd.net/xcache/branches/1.3@607 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

  • Property mode set to 100644
File size: 479 bytes
Line 
1<?php
2
3include("./common.php");
4
5if (!isset($_GET['name'])) {
6    die("missing name");
7}
8
9$name = $_GET['name'];
10// trigger auth
11$vcnt = xcache_count(XC_TYPE_VAR);
12
13if ($_SERVER['REQUEST_METHOD'] == 'POST') {
14    eval('$value = ' . $_POST['value']);
15    xcache_set($name, $value);
16    header("Location: xcache.php?type=" . XC_TYPE_VAR);
17    exit;
18}
19$value = var_export(xcache_get($name), true);
20
21$xcache_version = XCACHE_VERSION;
22$xcache_modules = XCACHE_MODULES;
23
24include("edit.tpl.php");
25
26?>
Note: See TracBrowser for help on using the repository browser.