source: git/admin/edit.php @ 13dd6aa

3.03.13.2trunk
Last change on this file since 13dd6aa was 13dd6aa, checked in by Xuefer <xuefer@…>, 13 years ago

fixed #86, enhancement in admin page, remove/edit variable

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@371 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

  • Property mode set to 100644
File size: 432 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    xcache_set($name, $_POST['value']);
15    header("Location: xcache.php?type=" . XC_TYPE_VAR);
16    exit;
17}
18$value = xcache_get($name);
19
20$xcache_version = XCACHE_VERSION;
21$xcache_modules = XCACHE_MODULES;
22
23include("edit.tpl.php");
24
25?>
Note: See TracBrowser for help on using the repository browser.