diff options
author | Gerrit Uitslag <klapinklapin@gmail.com> | 2014-10-01 15:32:05 +0200 |
---|---|---|
committer | Gerrit Uitslag <klapinklapin@gmail.com> | 2014-10-01 15:32:05 +0200 |
commit | 253d4b48ec708eb42033862dc15c8576f44a48ed (patch) | |
tree | d8673e304f0deaacb7a20a31cba7b82744a00bed /install.php | |
parent | 42ea7f447f39fbc2f79eaaec31f8c10ede59c5d0 (diff) | |
download | rpg-253d4b48ec708eb42033862dc15c8576f44a48ed.tar.gz rpg-253d4b48ec708eb42033862dc15c8576f44a48ed.tar.bz2 |
more PHPDocs, unused var, small bit code reformatting
Diffstat (limited to 'install.php')
-rw-r--r-- | install.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/install.php b/install.php index 767dd332f..71c2457dc 100644 --- a/install.php +++ b/install.php @@ -160,6 +160,8 @@ header('Content-Type: text/html; charset=utf-8'); /** * Print the input form + * + * @param array $d submitted entry 'd' of request data */ function print_form($d){ global $lang; @@ -265,6 +267,9 @@ function print_retry() { * Check validity of data * * @author Andreas Gohr + * + * @param array $d + * @return bool ok? */ function check_data(&$d){ static $form_default = array( @@ -334,6 +339,9 @@ function check_data(&$d){ * Writes the data to the config files * * @author Chris Smith <chris@jalakai.co.uk> + * + * @param array $d + * @return bool */ function store_data($d){ global $LC; @@ -438,6 +446,10 @@ EOT; * Write the given content to a file * * @author Chris Smith <chris@jalakai.co.uk> + * + * @param string $filename + * @param string $data + * @return bool */ function fileWrite($filename, $data) { global $error; @@ -460,6 +472,8 @@ function fileWrite($filename, $data) { * unmodified main config file * * @author Chris Smith <chris@jalakai.co.uk> + * + * @return bool */ function check_configs(){ global $error; @@ -498,6 +512,8 @@ function check_configs(){ * Check other installation dir/file permission requirements * * @author Chris Smith <chris@jalakai.co.uk> + * + * @return bool */ function check_permissions(){ global $error; @@ -533,6 +549,8 @@ function check_permissions(){ * Check the availability of functions used in DokuWiki and the PHP version * * @author Andreas Gohr <andi@splitbrain.org> + * + * @return bool */ function check_functions(){ global $error; @@ -626,6 +644,8 @@ function print_errors(){ * remove magic quotes recursivly * * @author Andreas Gohr <andi@splitbrain.org> + * + * @param array $array */ function remove_magic_quotes(&$array) { foreach (array_keys($array) as $key) { |