source: trunk/admin/edit.php @ 371

Last change on this file since 371 was 371, checked in by moo, 8 years ago

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

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.