Riferimenti per il file typo3_src-3.8.1/typo3/ext/phpmyadmin/modsub/phpMyAdmin-2.6.4-pl3/libraries/common.lib.php

Vai al codice sorgente di questo file.

Funzioni

 PMA_displayMaximumUploadSize ($max_upload_size)
 PMA_generateHiddenMaxFileSize ($max_size)
 PMA_securePath ($path)
 PMA_sqlAddslashes ($a_string= '', $is_like=FALSE, $crlf=FALSE, $php_code=FALSE)
 PMA_escape_mysql_wildcards ($name)
 PMA_formatSql ($parsed_sql, $unparsed_sql= '')
 PMA_showMySQLDocu ($chapter, $link)
 PMA_showHint ($hint_message)
 PMA_mysqlDie ($error_message= '', $the_query= '', $is_modify_link=TRUE, $back_url= '', $exit=TRUE)
 PMA_isInto ($toFind= '', &$in)
 PMA_convert_using ($string, $mode='unquoted')
 PMA_safe_db_list ($only_db_check, $dbh, $dblist_cnt, $rs, $userlink, $cfg, $dblist)
 PMA_setFontSizes ()

Variabili

 $config_fd = fopen($cfgfile_to_load, 'r')
 $result = eval('?>' . fread($config_fd, filesize($cfgfile_to_load)))
 $cfg ['FileRevision'] = str_replace(' $', '', $cfg['FileRevision'])
 $cfg ['FileRevision'] = explode('.', $cfg['FileRevision'])
 break
return $size
 $cookie_path = substr($pma_uri_parts['path'], 0, strrpos($pma_uri_parts['path'], '/')) . '/'
 $is_https = (isset($pma_uri_parts['scheme']) && $pma_uri_parts['scheme'] == 'https') ? 1 : 0
 $dblist = array()
 $coming_from_common = TRUE
 $dblist_cnt = count($dblist)
 $is_show_dbs = TRUE
 $dblist_asterisk_bool = FALSE
 $is_show_dbs = FALSE
 $only_db_check = TRUE


Documentazione delle funzioni

PMA_convert_using string,
mode = 'unquoted'
 

Returns a string formatted with CONVERT ... USING if MySQL supports it

Parametri:
string the string itself
string the mode: quoted or unquoted (this one by default)
Restituisce:
the formatted string
private

Definizione alla linea 764 del file common.lib.php.

Riferimenti $GLOBALS.

PMA_displayMaximumUploadSize max_upload_size  ) 
 

Displays the maximum size for an upload

Parametri:
integer the size
Restituisce:
string the message
public

Definizione alla linea 222 del file common.lib.php.

Riferimenti $GLOBALS.

PMA_escape_mysql_wildcards name  ) 
 

Add slashes before "_" and "%" characters for using them in MySQL database, table and field names. Note: This function does not escape backslashes!

Parametri:
string the string to escape
Restituisce:
string the escaped string
public

Definizione alla linea 419 del file common.lib.php.

Riferimenti $name.

PMA_formatSql parsed_sql,
unparsed_sql = ''
 

format sql strings

Parametri:
mixed pre-parsed SQL structure
Restituisce:
string the formatted sql
array the configuration array boolean whether the current statement is a multiple one or not

public

Autore:
Robin Johnson <robbat2@users.sourceforge.net>

Definizione alla linea 442 del file common.lib.php.

Riferimenti $cfg, $parsed_sql, e color.

PMA_generateHiddenMaxFileSize max_size  ) 
 

Generates a hidden field which should indicate to the browser the maximum size for upload

Parametri:
integer the size
Restituisce:
string the INPUT field
public

Definizione alla linea 237 del file common.lib.php.

Riferimenti input, e value.

PMA_isInto toFind = '',
&$  in
 

Defines whether a string exists inside an array or not

Parametri:
string string to search for
mixed array to search into
Restituisce:
integer the rank of the $toFind string in the array or '-1' if it hasn't been found
public

Definizione alla linea 742 del file common.lib.php.

Riferimenti $i.

PMA_mysqlDie error_message = '',
the_query = '',
is_modify_link = TRUE,
back_url = '',
exit = TRUE
 

Displays a MySQL error message in the right frame.

Parametri:
string the error message
string the sql query that failed
boolean whether to show a "modify" link or not
string the "back" link url (full path is not required)
boolean EXIT the page?
array the configuration array

public

Definizione alla linea 581 del file common.lib.php.

Riferimenti $cfg, $db, $GLOBALS, $sql_query, $table, a, height, input, nbsp, PMA_DBI_get_fields(), PMA_DBI_getError(), PMA_formatSql(), PMA_generate_common_hidden_inputs(), PMA_sanitize(), PMA_showMySQLDocu(), select, sql_query, style, table, td, e value.

Questo è il grafo delle chiamate per questa funzione:

PMA_safe_db_list only_db_check,
dbh,
dblist_cnt,
rs,
userlink,
cfg,
dblist
 

Get the complete list of Databases a user can access

Parametri:
boolean whether to include check on failed 'only_db' operations
resource database handle (superuser)
integer amount of databases inside the 'only_db' container
resource possible resource from a failed previous query
resource database handle (user)
array configuration
array previous list of databases
Restituisce:
array all databases a user has access to
private

Definizione alla linea 798 del file common.lib.php.

Riferimenti $cfg, $dblist, $dblist_cnt, $GLOBALS, $local_query, $only_db_check, $row, PMA_DBI_fetch_assoc(), PMA_DBI_fetch_row(), PMA_DBI_free_result(), PMA_DBI_get_dblist(), PMA_DBI_num_rows(), PMA_DBI_query(), PMA_DBI_try_query(), PMA_sqlAddslashes(), e WHERE.

Questo è il grafo delle chiamate per questa funzione:

PMA_securePath path  ) 
 

Removes insecure parts in a path; used before include() or require() when a part of the path comes from an insecure source like a cookie or form.

Parametri:
string The path to check
Restituisce:
string The secured path
public
Autore:
Marc Delisle (lem9@users.sourceforge.net)

Definizione alla linea 264 del file common.lib.php.

PMA_setFontSizes  ) 
 

Determines the font sizes to use depending on the os and browser of the user.

This function is based on an article from phpBuilder (see http://www.phpbuilder.net/columns/tim20000821.php).

Restituisce:
boolean always true
string the standard font size string the font size for titles string the small font size string the smallest font size

public

Versione:
1.1

Definizione alla linea 929 del file common.lib.php.

PMA_showHint hint_message  ) 
 

Displays a hint icon, on mouse over show the hint

Parametri:
string the error message
public

Definizione alla linea 562 del file common.lib.php.

Riferimenti height, e onmouseout.

PMA_showMySQLDocu chapter,
link
 

Displays a link to the official MySQL documentation

Parametri:
chapter of "HTML, one page per chapter" documentation
contains name of page/anchor that is being linked
Restituisce:
string the html link
public

Definizione alla linea 498 del file common.lib.php.

Riferimenti $GLOBALS, a, e height.

PMA_sqlAddslashes a_string = '',
is_like = FALSE,
crlf = FALSE,
php_code = FALSE
 

Add slashes before "'" and "\" characters so a value containing them can be used in a sql comparison.

Parametri:
string the string to slash
boolean whether the string will be used in a 'LIKE' clause (it then requires two more escaped sequences) or not
boolean whether to treat cr/lfs as escape-worthy entities (converts
to \n, to \r)
boolean whether this function is used as part of the "Create PHP code" dialog
Restituisce:
string the slashed string
public

Definizione alla linea 384 del file common.lib.php.


Documentazione delle variabili

$cfg['FileRevision'] = explode('.', $cfg['FileRevision'])
 

Definizione alla linea 126 del file common.lib.php.

$cfg['FileRevision'] = str_replace(' $', '', $cfg['FileRevision'])
 

Definizione alla linea 125 del file common.lib.php.

$coming_from_common = TRUE
 

Definizione alla linea 1169 del file common.lib.php.

$config_fd = fopen($cfgfile_to_load, 'r')
 

Definizione alla linea 93 del file common.lib.php.

$cookie_path = substr($pma_uri_parts['path'], 0, strrpos($pma_uri_parts['path'], '/')) . '/'
 

Definizione alla linea 1112 del file common.lib.php.

$dblist = array()
 

Definizione alla linea 1115 del file common.lib.php.

$dblist_asterisk_bool = FALSE
 

Definizione alla linea 1276 del file common.lib.php.

$dblist_cnt = count($dblist)
 

SQL Validator interface code

Definizione alla linea 1271 del file common.lib.php.

$is_https = (isset($pma_uri_parts['scheme']) && $pma_uri_parts['scheme'] == 'https') ? 1 : 0
 

Definizione alla linea 1113 del file common.lib.php.

$is_show_dbs = FALSE
 

Definizione alla linea 1304 del file common.lib.php.

$is_show_dbs = TRUE
 

Definizione alla linea 1274 del file common.lib.php.

$only_db_check = TRUE
 

Definizione alla linea 1322 del file common.lib.php.

$result = eval('?>' . fread($config_fd, filesize($cfgfile_to_load)))
 

Definizione alla linea 94 del file common.lib.php.

return $size
 

Definizione alla linea 191 del file common.lib.php.

break
 

Definizione alla linea 188 del file common.lib.php.


Generato il Thu Jan 19 15:24:50 2006 per TYPO3 versione 3.8.1 da  doxygen 1.4.6