PHP3 fixes and coding standards

This commit is contained in:
Loïc Chapeaux
2002-07-19 11:46:42 +00:00
parent 0f629f73dc
commit 8792cefc7c
3 changed files with 13 additions and 8 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2002-07-19 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* pdf_schema.php3; libraries/common.lib.php3: PHP3 fixes.
* tbl_properties_structure.php3: coding standards.
2002-07-18 Alexander M. Turek <rabus@users.sourceforge.net> 2002-07-18 Alexander M. Turek <rabus@users.sourceforge.net>
* libraries/common.lib.php3, libraries/select_lang.lib.php3: Don't include * libraries/common.lib.php3, libraries/select_lang.lib.php3: Don't include
the "real" config file if a developer edition exists. the "real" config file if a developer edition exists.
@@ -632,7 +636,6 @@ $Source$
* Documentation.html line 593-770,1884-1920 * Documentation.html line 593-770,1884-1920
- added and changed Doku for Creating PDFs - added and changed Doku for Creating PDFs
2002-06-02 Lo<4C>c Chapeaux <lolo@phpheaven.net> 2002-06-02 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* libraries/display_tbl.inc.php3, line 1413: xhtml fix. * libraries/display_tbl.inc.php3, line 1413: xhtml fix.
* libraries/fpdf/fpdf.php3: light optimizations and fixes. * libraries/fpdf/fpdf.php3: light optimizations and fixes.

View File

@@ -81,10 +81,12 @@ if (!defined('PMA_COMMON_LIB_INCLUDED')){
* versions of phpMyAdmin/php/mysql... * versions of phpMyAdmin/php/mysql...
*/ */
$old_error_reporting = error_reporting(0); $old_error_reporting = error_reporting(0);
if (!include($cfgfile_to_load)) { include($cfgfile_to_load);
// Include failed
if (!isset($cfgServers) && !isset($cfg['Servers'])) {
// Creates fake settings // Creates fake settings
$cfg = array('DefaultLang' => 'en'); $cfg = array('DefaultLang' => 'en');
// Loads the laguage file // Loads the language file
include('./libraries/select_lang.lib.php3'); include('./libraries/select_lang.lib.php3');
// Sends the Content-Type header // Sends the Content-Type header
header('Content-Type: text/html; charset=' . $charset); header('Content-Type: text/html; charset=' . $charset);
@@ -127,14 +129,14 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold}
* if necessary * if necessary
*/ */
if (!isset($cfg['FileRevision']) || (int) substr($cfg['FileRevision'], 13, 3) < 120) { if (!isset($cfg['FileRevision']) || (int) substr($cfg['FileRevision'], 13, 3) < 120) {
require('./libraries/config_import.lib.php3'); include('./libraries/config_import.lib.php3');
} }
/** /**
* Includes the language file if it hasn't been included yet * Includes the language file if it hasn't been included yet
*/ */
if (!defined('PMA_SELECT_LANG_LIB_INCLUDED')){ if (!defined('PMA_SELECT_LANG_LIB_INCLUDED')){
require('./libraries/select_lang.lib.php3'); include('./libraries/select_lang.lib.php3');
} }
/** /**
@@ -547,7 +549,7 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold}
// behaviour of auto-detection due to their setup. // behaviour of auto-detection due to their setup.
// See the mailing list message: // See the mailing list message:
// http://sourceforge.net/mailarchive/forum.php?thread_id=859093&forum_id=2141 // http://sourceforge.net/mailarchive/forum.php?thread_id=859093&forum_id=2141
if ($cfg['PmaAbsoluteUri_DisableWarning'] === FALSE) { if ($cfg['PmaAbsoluteUri_DisableWarning'] == FALSE) {
$display_pmaAbsoluteUri_warning = 1; $display_pmaAbsoluteUri_warning = 1;
} }
} }

View File

@@ -547,15 +547,15 @@ echo "\n";
<?php echo PMA_showDocuShort('p/r/procedure_analyse.html'); ?> <?php echo PMA_showDocuShort('p/r/procedure_analyse.html'); ?>
</div> </div>
</li> </li>
<?php
<?php
/** /**
* Query box, bookmark, insert data from textfile * Query box, bookmark, insert data from textfile
*/ */
$goto = 'tbl_properties_structure.php3'; $goto = 'tbl_properties_structure.php3';
require('./tbl_query_box.php3'); require('./tbl_query_box.php3');
?> ?>
</ul> </ul>