[ Index ]
 

Code source de phpMyAdmin 2.10.3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/scripts/ -> setup.php (sommaire)

phpMyAdmin setup script PHP versions 4 and 5

Author: Michal ÄŒihaÅ™ <michal@cihar.com>
Copyright: 2006 Michal ÄŒihaÅ™ <michal@cihar.com>
License: http://www.gnu.org/licenses/gpl.html GNU GPL 2.0
Version: Subversion $Id: setup.php 10420 2007-06-03 23:30:40Z lem9 $
Poids: 2015 lignes (76 kb)
Inclus ou requis:0 fois
Référencé: 2 fois
Nécessite: 1 fichier
 libraries/common.lib.php

Définit 32 fonctions

  version_to_int()
  get_cfg_doc()
  message()
  get_hidden_cfg()
  get_hidden_inputs()
  get_action()
  get_url_action()
  footer()
  get_server_auth()
  get_server_name()
  PMA_var_export()
  get_cfg_val()
  get_cfg_string()
  compress_servers()
  grab_values()
  show_overview()
  show_config_form()
  show_security_form()
  show_manual_form()
  show_charset_form()
  show_extensions_form()
  show_relation_form()
  show_upload_form()
  show_server_form()
  show_left_form()
  show_tabs_form()
  show_icons_form()
  show_browse_form()
  show_edit_form()
  show_window_form()
  get_server_selection()
  load_config()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

version_to_int($version)   X-Ref
Calculates numerical equivalent of phpMyAdmin version string

param: string  version
return: mixed   FALSE on failure, integer on success

get_cfg_doc($anchor)   X-Ref
Returns link to documentation of some configuration directive

param: string  confguration directive name
return: string  HTML link to documentation

message($type, $text, $title = '')   X-Ref
Displays message

param: string  type of message (notice/warning/error)
param: string  text of message
param: title   optional title of message
return: nothing

get_hidden_cfg()   X-Ref
Creates hidden input required for keeping current configuraion

return: string   HTML with hidden inputs

get_hidden_inputs()   X-Ref
Returns needed hidden input for forms.

return: string HTML with hidden inputs

get_action($name, $title, $added = '', $enabled = TRUE)   X-Ref
Creates form for some action

param: string  action name
param: string  form title
param: string  optional additional inputs
return: string  HTML with form

get_url_action($url, $title, $params = array()   X-Ref
Creates form for going to some url

param: string  URL where to go
param: string  form title
param: string  optional array of parameters
return: string  HTML with form

footer()   X-Ref
Terminates script and ends HTML

return: nothing

get_server_auth($val)   X-Ref
Creates string describing server authentication method

param: array   server configuration
return: string  authentication method description

get_server_name($val, $id = FALSE, $escape = true)   X-Ref
Creates nice string with server name

param: array   server configuration
param: int     optional server id
return: string  fancy server name

PMA_var_export($input)   X-Ref
Exports variable to PHP code, very limited version of var_export

param: string  data to export
return: string  PHP code containing variable value

get_cfg_val($name, $val)   X-Ref
Creates configuration code for one variable

param: string  variable name
param: mixed   configuration
return: string  PHP code containing configuration

get_cfg_string($cfg)   X-Ref
Creates configuration PHP code

param: array   configuration
return: string  PHP code containing configuration

compress_servers(&$cfg)   X-Ref
Compresses server configuration to be indexed from 0 and contain no gaps

param: array   configuration
return: nothing

grab_values($list)   X-Ref
Grabs values from POST

param: string   list of values to grab, values are separated by ";",
return: array   array with grabbed values

show_overview($title, $list, $buttons = '')   X-Ref
Displays overview

param: string  title of oveview
param: array   list of values to display (each element is array of two
param: string  optional buttons to be displayed
return: nothing

show_config_form($list, $legend, $help, $defaults = array()   X-Ref
Displays configuration, fallback defaults are taken from global $PMA_Config_Setup

param: array   list of values to display (each element is array of two or
param: string  title of configuration
param: string  help string for this configuration
param: array   optional first level defaults
param: string  optional title for save button
param: string  optional prefix for documentation links
return: nothing

show_security_form($defaults = array()   X-Ref
Shows security options configuration form

param: array   optional defaults
return: nothing

show_manual_form($defaults = array()   X-Ref
Shows MySQL manual configuration form

param: array   optional defaults
return: nothing

show_charset_form($defaults = array()   X-Ref
Shows charset options configuration form

param: array   optional defaults
return: nothing

show_extensions_form($defaults = array()   X-Ref
Shows PHP extensions configuration form

param: array   optional defaults
return: nothing

show_relation_form($defaults = array()   X-Ref
Shows MIME/relation/history configuration form

param: array   optional defaults
return: nothing

show_upload_form($defaults = array()   X-Ref
Shows upload/save configuration form

param: array   optional defaults
return: nothing

show_server_form($defaults = array()   X-Ref
Shows server configuration form

param: array   optional defaults
return: nothing

show_left_form($defaults = array()   X-Ref
Shows left frame configuration form

param: array   optional defaults
return: nothing

show_tabs_form($defaults = array()   X-Ref
Shows tabs configuration form

param: array   optional defaults
return: nothing

show_icons_form($defaults = array()   X-Ref
Shows icons configuration form

param: array   optional defaults
return: nothing

show_browse_form($defaults = array()   X-Ref
Shows browsing  configuration form

param: array   optional defaults
return: nothing

show_edit_form($defaults = array()   X-Ref
Shows editing options configuration form

param: array   optional defaults
return: nothing

show_window_form($defaults = array()   X-Ref
Shows query window configuration form

param: array   optional defaults
return: nothing

get_server_selection($cfg)   X-Ref
Creates selection with servers

param: array   configuraion
return: string  HTML for server selection

load_config($config_file)   X-Ref
Loads configuration from file

param: string  filename
return: mixed   FALSE on failure, new config array on success



Généré le : Mon Nov 26 15:18:20 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics