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:
authorSebastian Mendel <cybot_tm@users.sourceforge.net>2007-04-01 15:02:46 +0400
committerSebastian Mendel <cybot_tm@users.sourceforge.net>2007-04-01 15:02:46 +0400
commitcfeb30652642d995bb0c8d17988d33d11b02318f (patch)
tree33fec5cdc925d60888ee67c32dbfc0422c6bc29a /scripts
parentadb39168cc384d7a808f836cf2e9f9585b82f864 (diff)
coding standard: no spaces inside braces
Diffstat (limited to 'scripts')
-rw-r--r--scripts/setup.php26
1 files changed, 13 insertions, 13 deletions
diff --git a/scripts/setup.php b/scripts/setup.php
index 8fa45e52df..9b8590ed63 100644
--- a/scripts/setup.php
+++ b/scripts/setup.php
@@ -14,7 +14,7 @@
*/
// Grab phpMyAdmin version and PMA_dl function
-define( 'PMA_MINIMUM_COMMON', TRUE );
+define('PMA_MINIMUM_COMMON', TRUE);
chdir('..');
require_once './libraries/common.inc.php';
@@ -54,7 +54,7 @@ if ($eoltype == 'dos') {
$crlf = "\n";
}
-if (isset($_POST['configuration']) && $action != 'clear' ) {
+if (isset($_POST['configuration']) && $action != 'clear') {
// Grab previous configuration, if it should not be cleared
$configuration = unserialize($_POST['configuration']);
} else {
@@ -1229,17 +1229,17 @@ function get_server_selection($cfg) {
* @return mixed FALSE on failure, new config array on success
*/
function load_config($config_file) {
- if ( file_exists( $config_file ) ) {
+ if (file_exists($config_file)) {
$success_apply_user_config = FALSE;
- $old_error_reporting = error_reporting( 0 );
- if ( function_exists( 'file_get_contents' ) ) {
+ $old_error_reporting = error_reporting(0);
+ if (function_exists('file_get_contents')) {
$success_apply_user_config = eval('?>' . trim(file_get_contents($config_file)));
} else {
$success_apply_user_config =
eval('?>' . trim(implode("\n", file($config_file))));
}
- error_reporting( $old_error_reporting );
- unset( $old_error_reporting );
+ error_reporting($old_error_reporting);
+ unset($old_error_reporting);
if ($success_apply_user_config === FALSE) {
message('error', 'Error while parsing configuration file!');
} elseif (!isset($cfg) || count($cfg) == 0) {
@@ -1360,7 +1360,7 @@ switch ($action) {
message('error', 'Empty signon URL while using signon authentication method!');
$err = TRUE;
}
- if ( isset($new_server['pmadb']) && strlen($new_server['pmadb'])) {
+ if (isset($new_server['pmadb']) && strlen($new_server['pmadb'])) {
// Just use defaults, should be okay for most users
$pmadb = array();
$pmadb['bookmarktable'] = 'pma_bookmark';
@@ -1879,7 +1879,7 @@ switch ($action) {
break;
}
- $version_local = version_to_int( $PMA_Config_Setup->get('PMA_VERSION') );
+ $version_local = version_to_int($PMA_Config_Setup->get('PMA_VERSION'));
if ($version_local === FALSE) {
message('error', 'Unparsable version string.');
break;
@@ -1907,7 +1907,7 @@ switch ($action) {
case '':
message('notice', 'You want to configure phpMyAdmin using web interface. Please note that this only allows basic setup, please read <a href="../Documentation.html#config">documentation</a> to see full description of all configuration directives.', 'Welcome');
- if ( $PMA_Config_Setup->get( 'PMA_PHP_INT_VERSION' ) < 40100) {
+ if ($PMA_Config_Setup->get('PMA_PHP_INT_VERSION') < 40100) {
message('warning', 'Please upgrade to PHP 4.1.0, it is required for phpMyAdmin.', 'Too old PHP');
}
@@ -1994,9 +1994,9 @@ echo get_action('load', 'Load', '', !$fail_dir);
echo get_action('clear', 'Clear');
echo get_action('seteol', 'Change end of line',
'<select name="neweol">' .
- '<option value="unix" ' . ( $eoltype == 'unix' ? ' selected="selected"' : '' ) . '>UNIX/Linux (\\n)</option>' .
- '<option value="dos" ' . ( $eoltype == 'dos' ? ' selected="selected"' : '' ) . '>DOS/Windows (\\r\\n)</option>' .
- '<option value="mac" ' . ( $eoltype == 'mac' ? ' selected="selected"' : '' ) . '>Macintosh (\\r)</option>' . '
+ '<option value="unix" ' . ($eoltype == 'unix' ? ' selected="selected"' : '') . '>UNIX/Linux (\\n)</option>' .
+ '<option value="dos" ' . ($eoltype == 'dos' ? ' selected="selected"' : '') . '>DOS/Windows (\\r\\n)</option>' .
+ '<option value="mac" ' . ($eoltype == 'mac' ? ' selected="selected"' : '') . '>Macintosh (\\r)</option>' . '
</select>');
echo '</fieldset>' . "\n\n";