| [ Index ] |
|
Code source de Serendipity 1.2 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
| Poids: | 1184 lignes (44 kb) |
| Inclus ou requis: | 4 fois |
| Référencé: | 0 fois |
| Nécessite: | 1 fichier include/db/db.inc.php |
| serendipity_ini_bool($var) X-Ref |
| Convert a PHP Ini setting to a boolean flag param: mixed input variable return: boolean output variable |
| serendipity_ini_bytesize($val) X-Ref |
| convert a size value from a PHP.ini to a bytesize param: string size value from PHP.ini return: string bytesize |
| serendipity_updateLocalConfig($dbName, $dbPrefix, $dbHost, $dbUser, $dbPass, $dbType, $dbPersistent, $privateVariables = null) X-Ref |
| Update the serendipity_config_local.inc.php file with core information param: string Database name param: string Database prefix param: string Database host param: string Database user param: string Datapase Passwort param: string Database type param: string Use persistent connections? param: array An array of additional variables to be put into the config file return: true |
| serendipity_installDatabase() X-Ref |
| Setup the core database tables Creates the needed tables - beware, they will be empty and need to be stuffed with default templates and such... return: null |
| serendipity_query_default($optname, $default, $usertemplate = false, $type = 'string') X-Ref |
| Check a default value of a config item from the configuration template files param: string Name of the config item to check param: string The default value, if none is found param: boolean If true, it's the personal config template, if false its the global config template param: string Protected fields will not be echo'd in the HTML form return: string The default value |
| serendipity_parseTemplate($filename, $areas = null, $onlyFlags=null) X-Ref |
| Parse a configuration template file param: string Path to the s9y configuration template file param: array An array of config areas/sections that shall be returned from the template param: array Restrict the return of template variables to items containing a specific flag return: array An array with configuration items, keys and values |
| serendipity_replaceEmbeddedConfigVars($s) X-Ref |
| Replace some variables within config item values with the right values param: string Input string return: string Output string |
| serendipity_guessInput($type, $name, $value='', $default='') X-Ref |
| Preprocess the configuration value and put it into a HTML output field (radio, password, text, select, ...) param: string The type of the configuration item param: string The name of the configuration item param: string The current value of the configuration item param: string The default value of the configuration item return: null |
| serendipity_printConfigTemplate($config, $from = false, $noForm = false, $folded = true, $allowToggle = true, $showDangerous = false) X-Ref |
| Parses the configuration array and displays the configuration screen param: array Configuration superarray param: array The previous values submitted by the user param: boolean If true, no HTML FORM container will be emitted param: boolean If true, the configuration sections will all be folded param: boolean If true, the user can turn config sections on and off param: boolean If true, the user can NOT display possibly dangerous options return: null |
| showConfig(id) X-Ref |
| Pas de description |
| showConfigAll(count) X-Ref |
| Pas de description |
| serendipity_parse_sql_tables($filename) X-Ref |
| Parse .sql files for use within Serendipity, query by query, accepting only CREATE commands. param: string The filename of the SQL file return: array An array of queries to execute |
| serendipity_parse_sql_inserts($filename) X-Ref |
| Parse .sql files for use within Serendipity, query by query, accepting only INSERT commands. param: string The filename of the SQL file return: array An array of queries to execute |
| serendipity_checkInstallation() X-Ref |
| Check the serendipity Installation for problems, during installation return: boolean Errors encountered? |
| serendipity_installFiles($serendipity_core = '') X-Ref |
| Create the files needed by Serendipity [htaccess/serendipity_config_local.inc.php] param: string Path to the serendipity directory return: true |
| serendipity_checkConfigItemFlags(&$item, $area) X-Ref |
| Check the flags of a configuration item for their belonging into a template param: array An item to check param: array The area (configuration|local) where the config item might be displayed return: boolean |
| serendipity_updateConfiguration() X-Ref |
| When paths or other options are changed in the s9y configuration, update the core files return: boolean |
| serendipity_httpCoreDir() X-Ref |
| Get the root directory of Serendipity return: string The root directory of Serendipity |
| serendipity_removeFiles($files = null) X-Ref |
| Delete obsolete files from Serendipity param: array List of files to remove (backup is tried) return: boolean |
| serendipity_getRealDir($file) X-Ref |
| Get the real directory of this function file param: string A filename to strip extra paths from return: string The real directory name |
| serendipity_check_rewrite($default) X-Ref |
| Try to detect if apache URL rewriting is available This function makes a dummy HTTP request and sees if it works param: string The default option when rewrite fails return: string The best preference option for URL rewriting |
| serendipity_removeObsoleteVars() X-Ref |
| Remove old configuration values that are no longer used by Serendipity return: null |
| Généré le : Sat Nov 24 09:00:37 2007 | par Balluche grâce à PHPXref 0.7 |
|