|
Revision 373, 432 bytes
(checked in by moo, 20 months ago)
|
|
merged [371] from trunk->1.2: remove/edit variable data in admin page
|
| Line | |
|---|
| 1 | <?php |
|---|
| 2 | |
|---|
| 3 | include("./common.php"); |
|---|
| 4 | |
|---|
| 5 | if (!isset($_GET['name'])) { |
|---|
| 6 | die("missing name"); |
|---|
| 7 | } |
|---|
| 8 | |
|---|
| 9 | $name = $_GET['name']; |
|---|
| 10 | // trigger auth |
|---|
| 11 | $vcnt = xcache_count(XC_TYPE_VAR); |
|---|
| 12 | |
|---|
| 13 | if ($_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 | |
|---|
| 23 | include("edit.tpl.php"); |
|---|
| 24 | |
|---|
| 25 | ?> |
|---|