diff --git a/libraries/Config.class.php b/libraries/Config.class.php index 4b54925758..9d06ab3483 100644 --- a/libraries/Config.class.php +++ b/libraries/Config.class.php @@ -199,8 +199,8 @@ class PMA_Config )) { $this->set('PMA_USR_BROWSER_VER', $log_version[1]); $this->set('PMA_USR_BROWSER_AGENT', 'OMNIWEB'); - // Konqueror 2.2.2 says Konqueror/2.2.2 - // Konqueror 3.0.3 says Konqueror/3 + // Konqueror 2.2.2 says Konqueror/2.2.2 + // Konqueror 3.0.3 says Konqueror/3 } elseif (preg_match( '@(Konqueror/)(.*)(;)@', $HTTP_USER_AGENT, @@ -208,10 +208,7 @@ class PMA_Config )) { $this->set('PMA_USR_BROWSER_VER', $log_version[2]); $this->set('PMA_USR_BROWSER_AGENT', 'KONQUEROR'); - } 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) && preg_match('@Safari/([0-9]*)@', $HTTP_USER_AGENT, $log_version2) ) { $this->set('PMA_USR_BROWSER_VER', $log_version[1] . '.' . $log_version2[1]); @@ -220,10 +217,8 @@ class PMA_Config $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 - )) { + 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'); } else { @@ -595,8 +590,7 @@ class PMA_Config if ((! isset($config_data['collation_connection']) && $GLOBALS['collation_connection'] != 'utf8_general_ci') || isset($config_data['collation_connection']) - && $GLOBALS['collation_connection'] - != $config_data['collation_connection'] + && $GLOBALS['collation_connection'] != $config_data['collation_connection'] ) { $this->setUserValue( null, @@ -627,7 +621,7 @@ class PMA_Config * by {@link loadUserPreferences()} * * @param string $cookie_name can be null - * @param string $cfg_path + * @param string $cfg_path configuration path * @param mixed $new_cfg_value new value * @param mixed $default_value default value * @@ -682,7 +676,7 @@ class PMA_Config /** * set source * - * @param string $source + * @param string $source source * * @return nothing */ @@ -724,7 +718,8 @@ class PMA_Config if (! is_readable($this->getSource())) { $this->source_mtime = 0; die( - sprintf(__('Existing configuration file (%s) is not readable.'), + sprintf( + __('Existing configuration file (%s) is not readable.'), $this->getSource() ) ); @@ -1220,10 +1215,11 @@ class PMA_Config /** * returns options for font size selection * - * @static * @param string $current_size current selected font size with unit * * @return array selectable font sizes + * + * @static */ static protected function _getFontsizeOptions($current_size = '82%') { @@ -1283,7 +1279,6 @@ class PMA_Config * returns html selectbox for font sizes * * @static - * @param string $current_size currently slected font size with unit * * @return string html selectbox */ @@ -1318,7 +1313,6 @@ class PMA_Config * return complete font size selection form * * @static - * @param string $current_size currently slected font size with unit * * @return string html selectbox */ @@ -1357,11 +1351,11 @@ class PMA_Config * sets cookie if value is different from current cokkie value, * or removes if value is equal to default * - * @param string $cookie name of cookie to remove - * @param mixed $value new cookie value - * @param string $default default value - * @param int $validity validity of cookie in seconds (default is one month) - * @param bool $httponly whether cookie is only for HTTP (and not for scripts) + * @param string $cookie name of cookie to remove + * @param mixed $value new cookie value + * @param string $default default value + * @param int $validity validity of cookie in seconds (default is one month) + * @param bool $httponly whether cookie is only for HTTP (and not for scripts) * * @return boolean result of setcookie() */ diff --git a/libraries/blowfish.php b/libraries/blowfish.php index 0c04106831..63809e77cc 100644 --- a/libraries/blowfish.php +++ b/libraries/blowfish.php @@ -320,7 +320,8 @@ class Horde_Cipher_blowfish /** * Set the key to be used for en/decryption. * - * @param string $key The key to use. + * @param string $key The key to use. + * * @return bool */ public function setKey($key) @@ -344,45 +345,45 @@ class Horde_Cipher_blowfish $encZero = array('L' => 0, 'R' => 0); for ($i = 0; $i + 1 < $iMax; $i += 2) { - $encZero = $this->_encryptBlock($encZero['L'], $encZero['R']); - $this->p[$i] = $encZero['L']; - $this->p[$i + 1] = $encZero['R']; + $encZero = $this->_encryptBlock($encZero['L'], $encZero['R']); + $this->p[$i] = $encZero['L']; + $this->p[$i + 1] = $encZero['R']; } $iMax = count($this->s1); for ($i = 0; $i < $iMax; $i += 2) { - $encZero = $this->_encryptBlock($encZero['L'], $encZero['R']); - $this->s1[$i] = $encZero['L']; - $this->s1[$i + 1] = $encZero['R']; + $encZero = $this->_encryptBlock($encZero['L'], $encZero['R']); + $this->s1[$i] = $encZero['L']; + $this->s1[$i + 1] = $encZero['R']; } $iMax = count($this->s2); for ($i = 0; $i < $iMax; $i += 2) { - $encZero = $this->_encryptBlock($encZero['L'], $encZero['R']); - $this->s2[$i] = $encZero['L']; - $this->s2[$i + 1] = $encZero['R']; + $encZero = $this->_encryptBlock($encZero['L'], $encZero['R']); + $this->s2[$i] = $encZero['L']; + $this->s2[$i + 1] = $encZero['R']; } $iMax = count($this->s3); for ($i = 0; $i < $iMax; $i += 2) { - $encZero = $this->_encryptBlock($encZero['L'], $encZero['R']); - $this->s3[$i] = $encZero['L']; - $this->s3[$i + 1] = $encZero['R']; + $encZero = $this->_encryptBlock($encZero['L'], $encZero['R']); + $this->s3[$i] = $encZero['L']; + $this->s3[$i + 1] = $encZero['R']; } $iMax = count($this->s4); for ($i = 0; $i < $iMax; $i += 2) { - $encZero = $this->_encryptBlock($encZero['L'], $encZero['R']); - $this->s4[$i] = $encZero['L']; - $this->s4[$i + 1] = $encZero['R']; + $encZero = $this->_encryptBlock($encZero['L'], $encZero['R']); + $this->s4[$i] = $encZero['L']; + $this->s4[$i + 1] = $encZero['R']; } } /** * Encrypt a block of data. * - * @param string $block The data to encrypt. - * @param string $key The key to use. + * @param string $block The data to encrypt. + * @param string $key The key to use. * * @return string The encrypted output. */ @@ -400,8 +401,8 @@ class Horde_Cipher_blowfish /** * Encrypt left and right halves of a block of data. * - * @param integer $L Left half of the data. - * @param integer $R Right half of the data. + * @param integer $L Left half of the data. + * @param integer $R Right half of the data. * * @return array A hash, with keys 'L' and 'R', and the encrypted data as * the values. @@ -433,8 +434,8 @@ class Horde_Cipher_blowfish /** * Decrypt a block of data. * - * @param string $block The data to decrypt. - * @param string $key The key to use. + * @param string $block The data to decrypt. + * @param string $key The key to use. * * @return string The decrypted output. */ @@ -444,7 +445,7 @@ class Horde_Cipher_blowfish $this->setKey($key); } -// change for phpMyAdmin + // change for phpMyAdmin $L = null; $R = null; @@ -455,7 +456,7 @@ class Horde_Cipher_blowfish if (isset($retarray[1])) { $R = $retarray[1]; } -// end change for phpMyAdmin + // end change for phpMyAdmin $L ^= $this->p[17]; $R ^= ((($this->s1[($L >> 24) & 0xFF] + $this->s2[($L >> 16) & 0x0ff]) ^ $this->s3[($L >> 8) & 0x0ff]) + $this->s4[$L & 0x0ff]) ^ $this->p[16]; @@ -484,8 +485,8 @@ class Horde_Cipher_blowfish /** * Encryption using blowfish algorithm * - * @param string original data - * @param string the secret + * @param string $data original data + * @param string $secret the secret * * @return string the encrypted result * @@ -512,8 +513,8 @@ function PMA_blowfish_encrypt($data, $secret) /** * Decryption using blowfish algorithm * - * @param string encrypted data - * @param string the secret + * @param string $encdata encrypted data + * @param string $secret the secret * * @return string original data * diff --git a/libraries/bookmark.lib.php b/libraries/bookmark.lib.php index 84b97f84b8..b047c0644f 100644 --- a/libraries/bookmark.lib.php +++ b/libraries/bookmark.lib.php @@ -39,13 +39,13 @@ function PMA_Bookmark_getParams() /** * Gets the list of bookmarks defined for the current database * - * @global resource the controluser db connection handle + * @param string $db the current database name * - * @param string the current database name + * @return array the bookmarks list (key as index, label as value) * - * @return array the bookmarks list (key as index, label as value) + * @access public * - * @access public + * @global resource the controluser db connection handle */ function PMA_Bookmark_getList($db) { @@ -84,17 +84,18 @@ function PMA_Bookmark_getList($db) /** * Gets the sql command from a bookmark * - * @global resource the controluser db connection handle - * - * @param string the current database name - * @param mixed the id of the bookmark to get - * @param string which field to look up the $id - * @param boolean true: get all bookmarks regardless of the owning user - * @param boolean whether to ignore bookmarks with no user + * @param string $db the current database name + * @param mixed $id the id of the bookmark to get + * @param string $id_field which field to look up the $id + * @param boolean $action_bookmark_all true: get all bookmarks regardless of the owning user + * @param boolean $exact_user_match whether to ignore bookmarks with no user * * @return string the sql query * * @access public + * + * @global resource the controluser db connection handle + * */ function PMA_Bookmark_get($db, $id, $id_field = 'id', $action_bookmark_all = false, $exact_user_match = false) { @@ -125,15 +126,15 @@ function PMA_Bookmark_get($db, $id, $id_field = 'id', $action_bookmark_all = fal /** * Adds a bookmark * - * @global resource the controluser db connection handle - * - * @param array the properties of the bookmark to add; here, - * $fields['query'] is urlencoded - * @param boolean whether to make the bookmark available for all users + * @param array $fields the properties of the bookmark to add; here, + * $fields['query'] is urlencoded + * @param boolean $all_users whether to make the bookmark available for all users * * @return boolean whether the INSERT succeeds or not * * @access public + * + * @global resource the controluser db connection handle */ function PMA_Bookmark_save($fields, $all_users = false) { @@ -154,12 +155,14 @@ function PMA_Bookmark_save($fields, $all_users = false) /** * Deletes a bookmark * - * @global resource the controluser db connection handle + * @param string $db the current database name + * @param integer $id the id of the bookmark to get * - * @param string the current database name - * @param integer the id of the bookmark to get + * @return bool true if successful * * @access public + * + * @global resource the controluser db connection handle */ function PMA_Bookmark_delete($db, $id) { diff --git a/libraries/build_html_for_db.lib.php b/libraries/build_html_for_db.lib.php index a6836c8c5a..bb32ed1fa2 100644 --- a/libraries/build_html_for_db.lib.php +++ b/libraries/build_html_for_db.lib.php @@ -61,18 +61,20 @@ function PMA_getColumnOrder() * of databases from server_databases.php (which can be modified by * db_create.php) * - * @param array $current + * @param array $current * @param boolean $is_superuser - * @param string $checkall - * @param string $url_query - * @param array $column_order - * @param array $replication_types - * @param array $replication_info + * @param string $checkall + * @param string $url_query + * @param array $column_order + * @param array $replication_types + * @param array $replication_info * * @return array $column_order, $out */ -function PMA_buildHtmlForDb($current, $is_superuser, $checkall, $url_query, $column_order, $replication_types, $replication_info) -{ +function PMA_buildHtmlForDb( + $current, $is_superuser, $checkall, $url_query, + $column_order, $replication_types, $replication_info +) { $out = ''; if ($is_superuser || $GLOBALS['cfg']['AllowUserDropDatabase']) { diff --git a/libraries/charset_conversion.lib.php b/libraries/charset_conversion.lib.php index 7c1ac13297..271b4b1a82 100644 --- a/libraries/charset_conversion.lib.php +++ b/libraries/charset_conversion.lib.php @@ -58,9 +58,9 @@ if ($PMA_recoding_engine == PMA_CHARSET_ICONV_AIX) { * Converts encoding of text according to parameters with detected * conversion function. * - * @param string source charset - * @param string target charset - * @param string what to convert + * @param string $src_charset source charset + * @param string $dest_charset target charset + * @param string $what what to convert * * @return string converted text * @@ -73,14 +73,14 @@ function PMA_convert_string($src_charset, $dest_charset, $what) return $what; } switch ($GLOBALS['PMA_recoding_engine']) { - case PMA_CHARSET_RECODE: - return recode_string($src_charset . '..' . $dest_charset, $what); - case PMA_CHARSET_ICONV: - return iconv($src_charset, $dest_charset . $GLOBALS['cfg']['IconvExtraParams'], $what); - case PMA_CHARSET_ICONV_AIX: - return PMA_aix_iconv_wrapper($src_charset, $dest_charset . $GLOBALS['cfg']['IconvExtraParams'], $what); - default: - return $what; + case PMA_CHARSET_RECODE: + return recode_string($src_charset . '..' . $dest_charset, $what); + case PMA_CHARSET_ICONV: + return iconv($src_charset, $dest_charset . $GLOBALS['cfg']['IconvExtraParams'], $what); + case PMA_CHARSET_ICONV_AIX: + return PMA_aix_iconv_wrapper($src_charset, $dest_charset . $GLOBALS['cfg']['IconvExtraParams'], $what); + default: + return $what; } } // end of the "PMA_convert_string()" function diff --git a/libraries/check_user_privileges.lib.php b/libraries/check_user_privileges.lib.php index daef27887f..ec9c195f50 100644 --- a/libraries/check_user_privileges.lib.php +++ b/libraries/check_user_privileges.lib.php @@ -30,6 +30,7 @@ $GLOBALS['is_superuser'] = PMA_isSuperuser(); * displayed. For example, if an anonymous account exists, the named account * might be able to use its privileges, but SHOW GRANTS will not display them. * + * @return nothing */ function PMA_analyseShowGrant() { @@ -62,9 +63,10 @@ function PMA_analyseShowGrant() while ($row = PMA_DBI_fetch_row($rs_usr)) { // extract db from GRANT ... ON *.* or GRANT ... ON db.* $db_name_offset = strpos($row[0], ' ON ') + 4; - $show_grants_dbname = substr($row[0], - $db_name_offset, - strpos($row[0], '.', $db_name_offset) - $db_name_offset); + $show_grants_dbname = substr( + $row[0], $db_name_offset, + strpos($row[0], '.', $db_name_offset) - $db_name_offset + ); $show_grants_dbname = PMA_unQuote($show_grants_dbname, '`'); $show_grants_str = substr($row[0], 6, (strpos($row[0], ' ON ') - 6)); @@ -77,9 +79,10 @@ function PMA_analyseShowGrant() * the create database dialog box */ if ($show_grants_str == 'ALL' - || $show_grants_str == 'ALL PRIVILEGES' - || $show_grants_str == 'CREATE' - || strpos($show_grants_str, 'CREATE,') !== false) { + || $show_grants_str == 'ALL PRIVILEGES' + || $show_grants_str == 'CREATE' + || strpos($show_grants_str, 'CREATE,') !== false + ) { if ($show_grants_dbname == '*') { // a global CREATE privilege $GLOBALS['is_create_db_priv'] = true; @@ -101,14 +104,14 @@ function PMA_analyseShowGrant() } if ((preg_match('/' . $re0 . '%|_/', $show_grants_dbname) - && ! preg_match('/\\\\%|\\\\_/', $show_grants_dbname)) - // does this db exist? - || (! PMA_DBI_try_query('USE ' . preg_replace('/' . $re1 . '(%|_)/', '\\1\\3', $dbname_to_test)) - && substr(PMA_DBI_getError(), 1, 4) != 1044) + && ! preg_match('/\\\\%|\\\\_/', $show_grants_dbname)) + // does this db exist? + || (! PMA_DBI_try_query('USE ' . preg_replace('/' . $re1 . '(%|_)/', '\\1\\3', $dbname_to_test)) + && substr(PMA_DBI_getError(), 1, 4) != 1044) ) { if ($GLOBALS['cfg']['SuggestDBName']) { /** - * Do not handle the underscore wildcard + * Do not handle the underscore wildcard * (this case must be rare anyway) */ $GLOBALS['db_to_create'] = preg_replace('/' . $re0 . '%/', '\\1...', $show_grants_dbname); diff --git a/libraries/cleanup.lib.php b/libraries/cleanup.lib.php index 92b5c47046..c4c382a679 100644 --- a/libraries/cleanup.lib.php +++ b/libraries/cleanup.lib.php @@ -9,7 +9,8 @@ /** * Removes all variables from request except whitelisted ones. * - * @param string list of variables to allow + * @param string &$whitelist list of variables to allow + * * @return nothing * @access public */ diff --git a/libraries/common.inc.php b/libraries/common.inc.php index abc3833f9d..c47e6ea6bd 100644 --- a/libraries/common.inc.php +++ b/libraries/common.inc.php @@ -75,7 +75,7 @@ if (version_compare(phpversion(), '5.3', 'lt')) { if (version_compare(phpversion(), '5.4', 'lt')) { /** * Avoid problems with magic_quotes_runtime - */ + */ @ini_set('magic_quotes_runtime', false); } @@ -242,7 +242,8 @@ if (isset($_POST['usesubform'])) { * track this */ if (isset($_POST['redirect']) - && $_POST['redirect'] != basename($PMA_PHP_SELF)) { + && $_POST['redirect'] != basename($PMA_PHP_SELF) + ) { $__redirect = $_POST['redirect']; unset($_POST['redirect']); } @@ -321,8 +322,8 @@ $GLOBALS['PMA_Config']->enableBc(); */ $pma_cookie_version = 4; if (isset($_COOKIE) - && (isset($_COOKIE['pmaCookieVer']) - && $_COOKIE['pmaCookieVer'] < $pma_cookie_version)) { + && (isset($_COOKIE['pmaCookieVer']) && $_COOKIE['pmaCookieVer'] < $pma_cookie_version) +) { // delete all cookies foreach ($_COOKIE as $cookie_name => $tmp) { $GLOBALS['PMA_Config']->removeCookie($cookie_name); @@ -336,11 +337,12 @@ if (isset($_COOKIE) * check HTTPS connection */ if ($GLOBALS['PMA_Config']->get('ForceSSL') - && !$GLOBALS['PMA_Config']->get('is_https')) { + && ! $GLOBALS['PMA_Config']->get('is_https') +) { PMA_sendHeaderLocation( - preg_replace('/^http/', 'https', - $GLOBALS['PMA_Config']->get('PmaAbsoluteUri')) - . PMA_generate_common_url($_GET, 'text')); + preg_replace('/^http/', 'https', $GLOBALS['PMA_Config']->get('PmaAbsoluteUri')) + . PMA_generate_common_url($_GET, 'text') + ); // delete the current session, otherwise we get problems (see bug #2397877) $GLOBALS['PMA_Config']->removeCookie($GLOBALS['session_name']); exit; @@ -609,8 +611,10 @@ if ($GLOBALS['PMA_Config']->error_config_file) { trigger_error($error, E_USER_ERROR); } if ($GLOBALS['PMA_Config']->error_config_default_file) { - $error = sprintf(__('Could not load default configuration from: %1$s'), - $GLOBALS['PMA_Config']->default_source); + $error = sprintf( + __('Could not load default configuration from: %1$s'), + $GLOBALS['PMA_Config']->default_source + ); trigger_error($error, E_USER_ERROR); } if ($GLOBALS['PMA_Config']->error_pma_uri) { @@ -738,7 +742,8 @@ if (@file_exists($_SESSION['PMA_Theme']->getLayoutFile())) { * @todo remove if all themes are update use Navi instead of Left as frame name */ if (! isset($GLOBALS['cfg']['NaviWidth']) - && isset($GLOBALS['cfg']['LeftWidth'])) { + && isset($GLOBALS['cfg']['LeftWidth']) + ) { $GLOBALS['cfg']['NaviWidth'] = $GLOBALS['cfg']['LeftWidth']; } } @@ -758,8 +763,10 @@ if (! defined('PMA_MINIMUM_COMMON')) { * Lookup server by name * (see FAQ 4.8) */ - if (! empty($_REQUEST['server']) && is_string($_REQUEST['server']) - && ! is_numeric($_REQUEST['server'])) { + if (! empty($_REQUEST['server']) + && is_string($_REQUEST['server']) + && ! is_numeric($_REQUEST['server']) + ) { foreach ($cfg['Servers'] as $i => $server) { if ($server['host'] == $_REQUEST['server']) { $_REQUEST['server'] = $i; @@ -799,7 +806,8 @@ if (! defined('PMA_MINIMUM_COMMON')) { * Kanji encoding convert feature appended by Y.Kawada (2002/2/20) */ if (function_exists('mb_convert_encoding') - && $lang == 'ja') { + && $lang == 'ja' + ) { include_once './libraries/kanji-encoding.lib.php'; } // end if @@ -859,7 +867,8 @@ if (! defined('PMA_MINIMUM_COMMON')) { // http://cvs.apache.org/viewcvs.cgi/httpd-2.0/modules/aaa/mod_access.c?rev=1.37&content-type=text/vnd.viewcvs-markup // Look at: "static int check_dir_access(request_rec *r)" if (isset($cfg['Server']['AllowDeny']) - && isset($cfg['Server']['AllowDeny']['order'])) { + && isset($cfg['Server']['AllowDeny']['order']) + ) { /** * ip based access library @@ -883,8 +892,7 @@ if (! defined('PMA_MINIMUM_COMMON')) { $allowDeny_forbidden = false; } } elseif ($cfg['Server']['AllowDeny']['order'] == 'explicit') { - if (PMA_allowDeny('allow') - && !PMA_allowDeny('deny')) { + if (PMA_allowDeny('allow') && ! PMA_allowDeny('deny')) { $allowDeny_forbidden = false; } else { $allowDeny_forbidden = true; @@ -927,19 +935,22 @@ if (! defined('PMA_MINIMUM_COMMON')) { $controllink = false; if ($cfg['Server']['controluser'] != '') { if (! empty($cfg['Server']['controlhost'])) { - $controllink = PMA_DBI_connect($cfg['Server']['controluser'], + $controllink = PMA_DBI_connect( + $cfg['Server']['controluser'], $cfg['Server']['controlpass'], true, array('host' => $cfg['Server']['controlhost']) ); } else { - $controllink = PMA_DBI_connect($cfg['Server']['controluser'], - $cfg['Server']['controlpass'], true); + $controllink = PMA_DBI_connect( + $cfg['Server']['controluser'], $cfg['Server']['controlpass'], true + ); } } // Connects to the server (validates user's login) - $userlink = PMA_DBI_connect($cfg['Server']['user'], - $cfg['Server']['password'], false); + $userlink = PMA_DBI_connect( + $cfg['Server']['user'], $cfg['Server']['password'], false + ); if (! $controllink) { $controllink = $userlink; diff --git a/libraries/common.lib.php b/libraries/common.lib.php index 733a0b7d7f..f8ccbeb412 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -578,9 +578,10 @@ function PMA_showHint($message, $bbcode = false, $type = 'notice') * * @access public */ -function PMA_mysqlDie($error_message = '', $the_query = '', -$is_modify_link = true, $back_url = '', $exit = true) -{ +function PMA_mysqlDie( + $error_message = '', $the_query = '', + $is_modify_link = true, $back_url = '', $exit = true +) { global $table, $db; /** @@ -894,8 +895,8 @@ function PMA_backquote($a_name, $do_it = true) * * * - * @param mixed $a_name the "backquoted" database, table or field name - * or array of it + * @param mixed $a_name the "backquoted" database, table or field name + * or array of it * * @return mixed the "backquoted" database, table or field name * @@ -946,6 +947,8 @@ function PMA_whichCrlf() * * @param bool $jsonly prints out pure JavaScript * + * @return nothing + * * @access public */ function PMA_reloadNavigation($jsonly=false) @@ -1511,9 +1514,10 @@ function PMA_localizeNumber($value) * * @access public */ -function PMA_formatNumber($value, $digits_left = 3, $digits_right = 0, -$only_down = false, $noTrailingZero = true) -{ +function PMA_formatNumber( + $value, $digits_left = 3, $digits_right = 0, + $only_down = false, $noTrailingZero = true +) { if ($value==0) { return '0'; } @@ -1701,14 +1705,15 @@ function PMA_localisedDate($timestamp = -1, $format = '') * returns a tab for tabbed navigation. * If the variables $link and $args ar left empty, an inactive tab is created * - * @param array $tab array with all options - * @param array $url_params + * @param array $tab array with all options + * @param array $url_params + * @param string $base_dir * * @return string html code for one tab, a link if valid otherwise a span * * @access public */ -function PMA_generate_html_tab($tab, $url_params = array(), $base_dir='') +function PMA_generate_html_tab($tab, $url_params = array(), $base_dir = '') { // default values $defaults = array( @@ -1812,7 +1817,7 @@ function PMA_generate_html_tab($tab, $url_params = array(), $base_dir='') * * @return string html-code for tab-navigation */ -function PMA_generate_html_tabs($tabs, $url_params, $base_dir='', $menu_id='topmenu') +function PMA_generate_html_tabs($tabs, $url_params, $base_dir = '', $menu_id = 'topmenu') { $tab_navigation = '