Changeset 591 in svn for trunk/admin/edit.php


Ignore:
Timestamp:
2009-04-16T10:43:35+02:00 (6 years ago)
Author:
Xuefer
Message:

added $enable_eval

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/edit.php

    r419 r591  
    1212
    1313if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    14     eval('$value = ' . $_POST['value']);
     14    if ($enable_eval) {
     15        eval('$value = ' . $_POST['value']);
     16    }
     17    else {
     18        $value = $_POST['value'];
     19    }
    1520    xcache_set($name, $value);
    1621    header("Location: xcache.php?type=" . XC_TYPE_VAR);
    1722    exit;
    1823}
    19 $value = var_export(xcache_get($name), true);
     24$value = xcache_get($name);
     25if ($enable_eval) {
     26    $value = var_export($value, true);
     27    $editable = true;
     28}
     29else {
     30    $editable = is_string($value);
     31}
    2032
    2133$xcache_version = XCACHE_VERSION;
Note: See TracChangeset for help on using the changeset viewer.