Ignore:
Timestamp:
2009-07-05T11:24:38+02:00 (5 years ago)
Author:
moo
Message:

merged r585:592 from trunk

Location:
branches/1.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.3

  • branches/1.3/admin/edit.php

    r607 r627  
    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    if (is_string($value)) { 
     31        $editable = true; 
     32    } 
     33    else { 
     34        $editable = false; 
     35        $value = var_export($value, true); 
     36    } 
     37} 
    2038 
    2139$xcache_version = XCACHE_VERSION; 
Note: See TracChangeset for help on using the changeset viewer.