coding standards
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (!defined('PMA_BOOKMARK_LIB_INCLUDED')){
|
if (!defined('PMA_BOOKMARK_LIB_INCLUDED')) {
|
||||||
define('PMA_BOOKMARK_LIB_INCLUDED', 1);
|
define('PMA_BOOKMARK_LIB_INCLUDED', 1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -110,7 +110,7 @@ if (!defined('PMA_BOOKMARK_LIB_INCLUDED')){
|
|||||||
* @param array the properties of the bookmark to add
|
* @param array the properties of the bookmark to add
|
||||||
* @param array the bookmark parameters for the current user
|
* @param array the bookmark parameters for the current user
|
||||||
*
|
*
|
||||||
* @return boolean if the INSERT succeeds
|
* @return boolean whether the INSERT succeeds or not
|
||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
@@ -133,6 +133,8 @@ if (!defined('PMA_BOOKMARK_LIB_INCLUDED')){
|
|||||||
PMA_mysqlDie($error);
|
PMA_mysqlDie($error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
} // end of the 'PMA_addBookmarks()' function
|
} // end of the 'PMA_addBookmarks()' function
|
||||||
|
|
||||||
|
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (!defined('PMA_COMMON_LIB_INCLUDED')){
|
if (!defined('PMA_COMMON_LIB_INCLUDED')) {
|
||||||
define('PMA_COMMON_LIB_INCLUDED', 1);
|
define('PMA_COMMON_LIB_INCLUDED', 1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -136,7 +136,7 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold}
|
|||||||
/**
|
/**
|
||||||
* 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')) {
|
||||||
include('./libraries/select_lang.lib.php3');
|
include('./libraries/select_lang.lib.php3');
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1207,7 +1207,7 @@ if (typeof(document.getElementById) != 'undefined'
|
|||||||
if (eregi('^SELECT[[:space:]]+', $GLOBALS['sql_query'])) {
|
if (eregi('^SELECT[[:space:]]+', $GLOBALS['sql_query'])) {
|
||||||
$explain_link .= urlencode('EXPLAIN ' . $GLOBALS['sql_query']) . '">' . $GLOBALS['strExplain'];
|
$explain_link .= urlencode('EXPLAIN ' . $GLOBALS['sql_query']) . '">' . $GLOBALS['strExplain'];
|
||||||
} else if (eregi('^EXPLAIN[[:space:]]+SELECT[[:space:]]+', $GLOBALS['sql_query'])) {
|
} else if (eregi('^EXPLAIN[[:space:]]+SELECT[[:space:]]+', $GLOBALS['sql_query'])) {
|
||||||
$explain_link .= substr($GLOBALS['sql_query'],8) . '">' . $GLOBALS['strNoExplain'];
|
$explain_link .= substr($GLOBALS['sql_query'], 8) . '">' . $GLOBALS['strNoExplain'];
|
||||||
} else {
|
} else {
|
||||||
$explain_link = '';
|
$explain_link = '';
|
||||||
}
|
}
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
if (!defined('PMA_CONFIG_IMPORT_LIB_INCLUDED')){
|
if (!defined('PMA_CONFIG_IMPORT_LIB_INCLUDED')) {
|
||||||
define('PMA_CONFIG_IMPORT_LIB_INCLUDED', 1);
|
define('PMA_CONFIG_IMPORT_LIB_INCLUDED', 1);
|
||||||
|
|
||||||
if (!isset($cfg['PmaAbsoluteUri'])) {
|
if (!isset($cfg['PmaAbsoluteUri'])) {
|
||||||
|
@@ -1,6 +1,15 @@
|
|||||||
<?php
|
<?php
|
||||||
// <markus@noga.de>
|
/* $Id$ */
|
||||||
// get foreign keys in preparation for a drop-down selector
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets foreign keys in preparation for a drop-down selector
|
||||||
|
* Thanks to <markus@noga.de>
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
if (!defined('PMA_GET_FOREIGN_LIB_INCLUDED')) {
|
||||||
|
define('PMA_GET_FOREIGN_LIB_INCLUDED', 1);
|
||||||
|
|
||||||
// lem9: we always show the foreign field in the drop-down; if a display
|
// lem9: we always show the foreign field in the drop-down; if a display
|
||||||
// field is defined, we show it besides the foreign field
|
// field is defined, we show it besides the foreign field
|
||||||
@@ -32,4 +41,6 @@
|
|||||||
$disp = PMA_mysql_query($dispsql);
|
$disp = PMA_mysql_query($dispsql);
|
||||||
}
|
}
|
||||||
} // end if $foreigners
|
} // end if $foreigners
|
||||||
|
|
||||||
|
} // $__PMA_GET_FOREIGN_LIB_INCLUDED__
|
||||||
?>
|
?>
|
||||||
|
@@ -52,7 +52,7 @@ if (isset($submit)) {
|
|||||||
$field_default[$i] = $field_default_orig[$i];
|
$field_default[$i] = $field_default_orig[$i];
|
||||||
}
|
}
|
||||||
$field_length_orig[$i] = urldecode($field_length_orig[$i]);
|
$field_length_orig[$i] = urldecode($field_length_orig[$i]);
|
||||||
if (strcmp(str_replace('"', '"', $field_length_orig[$i]), $field_length[$i]) ==0) {
|
if (strcmp(str_replace('"', '"', $field_length_orig[$i]), $field_length[$i]) == 0) {
|
||||||
$field_length[$i] = $field_length_orig[$i];
|
$field_length[$i] = $field_length_orig[$i];
|
||||||
}
|
}
|
||||||
if (!isset($query)) {
|
if (!isset($query)) {
|
||||||
|
Reference in New Issue
Block a user