The branch, master has been updated via e82d3c7136425fbe51ed26f8bf95cf932740ddd8 (commit) via 0c6dbb530d4d1b594a72c1f99bf384a46d6f7c92 (commit) from 20a6232173e08810211412c8ed7cfe84b9561b82 (commit)
- Log ----------------------------------------------------------------- commit e82d3c7136425fbe51ed26f8bf95cf932740ddd8 Author: Dieter Adriaenssens ruleant@users.sourceforge.net Date: Sun Aug 21 23:36:10 2011 +0200
require/include are statements not functions; no parentheses are required
commit 0c6dbb530d4d1b594a72c1f99bf384a46d6f7c92 Author: Dieter Adriaenssens ruleant@users.sourceforge.net Date: Sun Aug 21 23:19:30 2011 +0200
coding style
-----------------------------------------------------------------------
Summary of changes: index.php | 2 +- libraries/Advisor.class.php | 2 +- libraries/Config.class.php | 23 ++++++++++----------- libraries/PDF.class.php | 4 +- libraries/core.lib.php | 2 +- libraries/display_import_ajax.lib.php | 2 +- libraries/mult_submits.inc.php | 2 +- libraries/schema/User_Schema.class.php | 2 +- libraries/schema/Visio_Relation_Schema.class.php | 2 +- main.php | 2 +- schema_export.php | 4 +- server_status.php | 6 ++-- test/selenium/PmaSeleniumLoginTest.php | 2 +- test/selenium/PmaSeleniumPrivilegesTest.php | 2 +- test/selenium/PmaSeleniumXssTest.php | 2 +- 15 files changed, 29 insertions(+), 30 deletions(-)
diff --git a/index.php b/index.php index 5e0fa36..9add876 100644 --- a/index.php +++ b/index.php @@ -69,7 +69,7 @@ $lang_iso_code = $GLOBALS['available_languages'][$GLOBALS['lang']][1];
// start output -include ('./libraries/header_http.inc.php'); +include './libraries/header_http.inc.php'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> diff --git a/libraries/Advisor.class.php b/libraries/Advisor.class.php index b681155..12fdcad 100644 --- a/libraries/Advisor.class.php +++ b/libraries/Advisor.class.php @@ -22,7 +22,7 @@ class Advisor PMA_DBI_fetch_result('SHOW GLOBAL VARIABLES', 0, 1) ); // Add total memory to variables as well - require_once('libraries/sysinfo.lib.php'); + require_once 'libraries/sysinfo.lib.php'; $sysinfo = getSysInfo(); $memory = $sysinfo->memory(); $this->variables['system_memory'] = $memory['MemTotal']; diff --git a/libraries/Config.class.php b/libraries/Config.class.php index fe24009..7beb4cc 100644 --- a/libraries/Config.class.php +++ b/libraries/Config.class.php @@ -219,9 +219,10 @@ class PMA_Config } elseif (preg_match('@rv:1.9(.*)Gecko@', $HTTP_USER_AGENT)) { $this->set('PMA_USR_BROWSER_VER', '1.9'); $this->set('PMA_USR_BROWSER_AGENT', 'GECKO'); - } elseif (preg_match('@Mozilla/([0-9].[0-9]{1,2})@' - , $HTTP_USER_AGENT - , $log_version) + } elseif ( + preg_match('@Mozilla/([0-9].[0-9]{1,2})@', + $HTTP_USER_AGENT, + $log_version) ) { $this->set('PMA_USR_BROWSER_VER', $log_version[1]); $this->set('PMA_USR_BROWSER_AGENT', 'MOZILLA'); @@ -342,10 +343,7 @@ class PMA_Config } $this->set( 'PMA_PHP_INT_VERSION', - (int) sprintf('%d%02d%02d', - $match[1], - $match[2], - $match[3]) + (int) sprintf('%d%02d%02d', $match[1], $match[2], $match[3]) ); } else { $this->set('PMA_PHP_INT_VERSION', 0); @@ -495,7 +493,7 @@ class PMA_Config || $_SESSION['cache'][$cache_key]['config_mtime'] < $config_mtime ) { // load required libraries - require_once './libraries/user_preferences.lib.php'; + include_once './libraries/user_preferences.lib.php'; $prefs = PMA_load_userprefs(); $_SESSION['cache'][$cache_key]['userprefs'] = PMA_apply_userprefs($prefs['config_data']); @@ -668,6 +666,7 @@ class PMA_Config
/** * set source + * * @param string $source * * @return nothing @@ -743,9 +742,9 @@ class PMA_Config /** * returns specific config setting * - * @param string $setting + * @param string $setting * - * @return mixed value + * @return mixed value */ function get($setting) { @@ -758,8 +757,8 @@ class PMA_Co etting s($prefs['config_data']); ; onfig_mtime [1]; 30.126] ��� + r)� + �ϗl� `Зl� u�� + �ʳ + �� + ���+ `Зl� ���+ Pŗl� ėl� k�� + 6 � �! �! �ϗl� `Зl� xt�+ PƗl� ��� + ��� + �ϗl� `�� + /Зl� �o3+ u�� + `3+ �d3+ �i3+ �ʳ + xt�+ PƗl� ŗl� k�� + �! �! �ϗl� `Зl� H>�+ 0Ǘl� ��� + ��� + �ϗl� `�� + /Зl� Зl� Зl� 8�� + �p� `Зl� u�� + �ʳ + 0Ǘl� Ɨl� k�� + G H I J K M N O P �ϗl� `Зl� H��+ �ȗl� ��� + ��� + �ϗl� 0o3+ u�� + ��+ �)c+ `3+ �d3+ �i3+ �ʳ + H��+ �ȗl� Ǘl� k�� + 8��+ �ȗl� @Ǘl� k�� + (��+ �ȗl� pǗl� k�� + ��+ �ȗl� �Ǘl� k�� + �n3+ u�� + �i3+ l� �xc+ e�� + �d3+ @ȗl� yxc+ e�� + `3+ pȗl� Zxc+ e�� + �$c+ ��+ �)c+ `3+ �+ �d3+ �i3+ �ʳ + 8�� + �.+ `Зl� p�b+ ʗl� �ȗl� k�� + 5 6 7 8 : <