Changeset 607 for branches/1.3
- Timestamp:
- 07/05/2009 08:03:56 AM (4 years ago)
- Location:
- branches/1.3
- Files:
-
- 4 modified
-
. (modified) (1 prop)
-
admin/common.php (modified) (1 diff)
-
admin/edit.php (modified) (1 diff)
-
coverager/common.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.3
- Property svn:mergeinfo changed
/trunk merged: 418-419,424-425,429,431
- Property svn:mergeinfo changed
-
branches/1.3/admin/common.php
r604 r607 75 75 } 76 76 77 function stripaddslashes_array($value, $mqs = false) 78 { 79 if (is_array($value)) { 80 foreach($value as $k => $v) { 81 $value[$k] = stripaddslashes_array($v, $mqs); 82 } 83 } 84 else if(is_string($value)) { 85 $value = $mqs ? str_replace('\'\'', '\'', $value) : stripslashes($value); 86 } 87 return $value; 88 } 89 77 90 error_reporting(E_ALL); 78 91 ini_set('display_errors', 'On'); 79 92 define('REQUEST_TIME', time()); 93 94 if (get_magic_quotes_gpc()) { 95 $mqs = (bool) ini_get('magic_quotes_sybase'); 96 $_GET = stripaddslashes_array($_GET, $mqs); 97 $_POST = stripaddslashes_array($_POST, $mqs); 98 $_REQUEST = stripaddslashes_array($_REQUEST, $mqs); 99 } 100 ini_set('magic_quotes_runtime', '0'); 80 101 81 102 $charset = "UTF-8"; -
branches/1.3/admin/edit.php
r604 r607 12 12 13 13 if ($_SERVER['REQUEST_METHOD'] == 'POST') { 14 xcache_set($name, $_POST['value']); 14 eval('$value = ' . $_POST['value']); 15 xcache_set($name, $value); 15 16 header("Location: xcache.php?type=" . XC_TYPE_VAR); 16 17 exit; 17 18 } 18 $value = xcache_get($name);19 $value = var_export(xcache_get($name), true); 19 20 20 21 $xcache_version = XCACHE_VERSION; -
branches/1.3/coverager/common.php
r394 r607 75 75 } 76 76 77 function stripaddslashes_array($value, $mqs = false) 78 { 79 if (is_array($value)) { 80 foreach($value as $k => $v) { 81 $value[$k] = stripaddslashes_array($v, $mqs); 82 } 83 } 84 else if(is_string($value)) { 85 $value = $mqs ? str_replace('\'\'', '\'', $value) : stripslashes($value); 86 } 87 return $value; 88 } 89 77 90 error_reporting(E_ALL); 78 91 ini_set('display_errors', 'On'); 79 92 define('REQUEST_TIME', time()); 93 94 if (get_magic_quotes_gpc()) { 95 $mqs = (bool) ini_get('magic_quotes_sybase'); 96 $_GET = stripaddslashes_array($_GET, $mqs); 97 $_POST = stripaddslashes_array($_POST, $mqs); 98 $_REQUEST = stripaddslashes_array($_REQUEST, $mqs); 99 } 100 ini_set('magic_quotes_runtime', '0'); 80 101 81 102 $charset = "UTF-8";

