Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Foellmann <foellmann@foe-services.de>2014-07-28 14:13:10 +0400
committerChristian Foellmann <foellmann@foe-services.de>2014-07-28 14:13:10 +0400
commit276394119dfbe117acd411a3862de597ba35a2ad (patch)
tree3dc394a15f459d6324e3452e15e9446e47fe3bd0 /libraries/common.inc.php
parentc8c2e72886de1b71f5abcaa295075da9666096b5 (diff)
UPDATE phpmyadmin 4.2.6 multilanguage
Diffstat (limited to 'libraries/common.inc.php')
-rw-r--r--libraries/common.inc.php54
1 files changed, 27 insertions, 27 deletions
diff --git a/libraries/common.inc.php b/libraries/common.inc.php
index 3e6fe729b0..2227c1e466 100644
--- a/libraries/common.inc.php
+++ b/libraries/common.inc.php
@@ -70,7 +70,7 @@ if (version_compare(phpversion(), '5.4', 'lt')) {
/**
* Avoid problems with magic_quotes_runtime
*/
- @ini_set('magic_quotes_runtime', false);
+ @ini_set('magic_quotes_runtime', '0');
}
/**
@@ -247,17 +247,14 @@ if (isset($_POST['usesubform'])) {
// end check if a subform is submitted
/**
- * This setting was removed in PHP 5.4. But at this point PMA_PHP_INT_VERSION
- * is not yet defined so we use another way to find out the PHP version.
+ * This setting was removed in PHP 5.4, but get_magic_quotes_gpc
+ * always returns False since then.
*/
-if (version_compare(phpversion(), '5.4', 'lt')) {
- // remove quotes added by PHP
- if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) {
- PMA_arrayWalkRecursive($_GET, 'stripslashes', true);
- PMA_arrayWalkRecursive($_POST, 'stripslashes', true);
- PMA_arrayWalkRecursive($_COOKIE, 'stripslashes', true);
- PMA_arrayWalkRecursive($_REQUEST, 'stripslashes', true);
- }
+if (get_magic_quotes_gpc()) {
+ PMA_arrayWalkRecursive($_GET, 'stripslashes', true);
+ PMA_arrayWalkRecursive($_POST, 'stripslashes', true);
+ PMA_arrayWalkRecursive($_COOKIE, 'stripslashes', true);
+ PMA_arrayWalkRecursive($_REQUEST, 'stripslashes', true);
}
/**
@@ -486,7 +483,11 @@ if ($token_mismatch) {
/* Needed to send the correct reply */
'ajax_request',
/* Permit to log out even if there is a token mismatch */
- 'old_usr'
+ 'old_usr',
+ /* Permit redirection with token-mismatch in url.php */
+ 'url',
+ /* Permit session expiry flag */
+ 'session_expired'
);
/**
* Allow changing themes in test/theme.php
@@ -579,7 +580,7 @@ if ($GLOBALS['text_dir'] == 'ltr') {
$GLOBALS['PMA_Config']->checkPermissions();
if ($GLOBALS['PMA_Config']->error_config_file) {
- $error = '[strong]' . __('Failed to read configuration file') . '[/strong]'
+ $error = '[strong]' . __('Failed to read configuration file!') . '[/strong]'
. '[br][br]'
. __('This usually means there is a syntax error in it, please check any errors shown below.')
. '[br][br]'
@@ -829,8 +830,10 @@ if (! defined('PMA_MINIMUM_COMMON')) {
// no generic solution for loading preferences from cache as some settings
// need to be kept for processing in PMA_Config::loadUserPreferences()
$cache_key = 'server_' . $GLOBALS['server'];
- if (isset($_SESSION['cache'][$cache_key]['userprefs']['LoginCookieValidity'])) {
- $value = $_SESSION['cache'][$cache_key]['userprefs']['LoginCookieValidity'];
+ if (isset($_SESSION['cache'][$cache_key]['userprefs']['LoginCookieValidity'])
+ ) {
+ $value
+ = $_SESSION['cache'][$cache_key]['userprefs']['LoginCookieValidity'];
$GLOBALS['PMA_Config']->set('LoginCookieValidity', $value);
$GLOBALS['cfg']['LoginCookieValidity'] = $value;
unset($value);
@@ -988,15 +991,17 @@ if (! defined('PMA_MINIMUM_COMMON')) {
/* Log success */
PMA_logUser($cfg['Server']['user']);
- /**
- * with phpMyAdmin 3 we support MySQL >=5
- * but only production releases:
- * - > 5.0.15
- */
- if (PMA_MYSQL_INT_VERSION < 50015) {
+ if (PMA_MYSQL_INT_VERSION < 50500) {
PMA_fatalError(
__('You should upgrade to %s %s or later.'),
- array('MySQL', '5.0.15')
+ array('MySQL', '5.5.0')
+ );
+ }
+
+ if (PMA_PHP_INT_VERSION < 50300) {
+ PMA_fatalError(
+ __('You should upgrade to %s %s or later.'),
+ array('PHP', '5.3.0')
);
}
@@ -1020,11 +1025,6 @@ if (! defined('PMA_MINIMUM_COMMON')) {
include_once './libraries/sqlparser.lib.php';
/**
- * SQL Validator interface code
- */
- include_once './libraries/sqlvalidator.lib.php';
-
- /**
* the PMA_List_Database class
*/
include_once './libraries/PMA.php';