@@ -389,6 +389,9 @@ |
||
| 389 | 389 | } |
| 390 | 390 | |
| 391 | 391 | // http://doc.spip.org/@import_init_meta |
| 392 | +/** |
|
| 393 | + * @return string |
|
| 394 | + */ |
|
| 392 | 395 | function import_init_meta($tag, $atts, $charset, $request) |
| 393 | 396 | { |
| 394 | 397 | $version_archive = $atts['version_archive']; |
@@ -829,6 +829,9 @@ |
||
| 829 | 829 | return $tables[$serveur]; |
| 830 | 830 | } |
| 831 | 831 | |
| 832 | +/** |
|
| 833 | + * @param string $serveur |
|
| 834 | + */ |
|
| 832 | 835 | function lister_toutes_tables($serveur){ |
| 833 | 836 | static $tables = array(); |
| 834 | 837 | if (!isset($tables[$serveur])){ |
@@ -34,6 +34,9 @@ discard block |
||
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | // http://doc.spip.org/@valider_xml_ok |
| 37 | +/** |
|
| 38 | + * @param integer $limit |
|
| 39 | + */ |
|
| 37 | 40 | function valider_xml_ok($url, $req_ext, $limit, $rec) |
| 38 | 41 | { |
| 39 | 42 | $url = urldecode($url); |
@@ -114,6 +117,9 @@ discard block |
||
| 114 | 117 | } |
| 115 | 118 | |
| 116 | 119 | // http://doc.spip.org/@valider_resultats |
| 120 | +/** |
|
| 121 | + * @param boolean $mode |
|
| 122 | + */ |
|
| 117 | 123 | function valider_resultats($res, $mode) |
| 118 | 124 | { |
| 119 | 125 | $i = $j = 0; |
@@ -283,6 +289,9 @@ discard block |
||
| 283 | 289 | } |
| 284 | 290 | |
| 285 | 291 | // http://doc.spip.org/@valider_dir |
| 292 | +/** |
|
| 293 | + * @param string $dir |
|
| 294 | + */ |
|
| 286 | 295 | function valider_dir($files, $ext, $dir) |
| 287 | 296 | { |
| 288 | 297 | $res = array(); |
@@ -65,6 +65,9 @@ |
||
| 65 | 65 | // L'index du SELECT doit s'appeler "id" |
| 66 | 66 | |
| 67 | 67 | // http://doc.spip.org/@optimiser_sansref |
| 68 | +/** |
|
| 69 | + * @param string $id |
|
| 70 | + */ |
|
| 68 | 71 | function optimiser_sansref($table, $id, $sel, $and="") |
| 69 | 72 | { |
| 70 | 73 | $in = array(); |
@@ -105,6 +105,9 @@ discard block |
||
| 105 | 105 | // Inclure les arguments significatifs pour le hachage |
| 106 | 106 | // cas particulier du statut pour compatibilite ancien rss/suivi_revisions |
| 107 | 107 | |
| 108 | +/** |
|
| 109 | + * @param string $op |
|
| 110 | + */ |
|
| 108 | 111 | function param_low_sec($op, $args=array(), $lang='', $mime='rss') |
| 109 | 112 | { |
| 110 | 113 | $a = $b = ''; |
@@ -202,6 +205,9 @@ discard block |
||
| 202 | 205 | // Installe ou verifie un .htaccess, y compris sa prise en compte par Apache |
| 203 | 206 | // |
| 204 | 207 | // http://doc.spip.org/@verifier_htaccess |
| 208 | +/** |
|
| 209 | + * @param string|null $rep |
|
| 210 | + */ |
|
| 205 | 211 | function verifier_htaccess($rep, $force=false) { |
| 206 | 212 | $htaccess = rtrim($rep,"/") . "/" . _ACCESS_FILE_NAME; |
| 207 | 213 | if (((@file_exists($htaccess)) OR defined('_TEST_DIRS')) AND !$force) |
@@ -24,11 +24,11 @@ discard block |
||
| 24 | 24 | * -1 : renvoyer action, arg et hash sous forme de array() |
| 25 | 25 | * true ou false : renvoyer une url, avec & (false) ou & (true) |
| 26 | 26 | * string : renvoyer un formulaire |
| 27 | - * @param string|int $att |
|
| 27 | + * @param string $att |
|
| 28 | 28 | * id_auteur pour lequel generer l'action en mode url ou array() |
| 29 | 29 | * atributs du formulaire en mode formulaire |
| 30 | 30 | * @param bool $public |
| 31 | - * @return array|string |
|
| 31 | + * @return string |
|
| 32 | 32 | */ |
| 33 | 33 | function generer_action_auteur($action, $arg, $redirect = "", $mode = false, $att = '', $public = false){ |
| 34 | 34 | $securiser_action = charger_fonction('securiser_action', 'inc'); |
@@ -36,6 +36,10 @@ discard block |
||
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | // http://doc.spip.org/@redirige_action_auteur |
| 39 | +/** |
|
| 40 | + * @param string $action |
|
| 41 | + * @param string $ret |
|
| 42 | + */ |
|
| 39 | 43 | function redirige_action_auteur($action, $arg, $ret, $gra = '', $mode = false, $atts = '', $public = false) { |
| 40 | 44 | |
| 41 | 45 | $r = ($public ? _DIR_RESTREINT_ABS : _DIR_RESTREINT) .generer_url_ecrire($ret, $gra, true, true); |
@@ -44,6 +48,12 @@ discard block |
||
| 44 | 48 | } |
| 45 | 49 | |
| 46 | 50 | // http://doc.spip.org/@redirige_action_post |
| 51 | +/** |
|
| 52 | + * @param string $action |
|
| 53 | + * @param string $arg |
|
| 54 | + * @param string $ret |
|
| 55 | + * @param string $gra |
|
| 56 | + */ |
|
| 47 | 57 | function redirige_action_post($action, $arg, $ret, $gra, $corps, $att = ''){ |
| 48 | 58 | $r = _DIR_RESTREINT.generer_url_ecrire($ret, $gra, false, true); |
| 49 | 59 | return generer_action_auteur($action, $arg, $r, $corps, $att." method='post'"); |
@@ -92,6 +92,9 @@ discard block |
||
| 92 | 92 | return aider_icone($url); |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | +/** |
|
| 96 | + * @param null|string $url |
|
| 97 | + */ |
|
| 95 | 98 | function aider_icone($url, $clic= '') |
| 96 | 99 | { |
| 97 | 100 | global $spip_lang, $spip_lang_rtl; |
@@ -118,6 +121,9 @@ discard block |
||
| 118 | 121 | // Les sections d'un fichier aide sont reperees ainsi: |
| 119 | 122 | define('_SECTIONS_AIDE', ',<h([12])(?:\s+class="spip")?'. '>([^/]+?)(?:/(.+?))?</h\1>,ism'); |
| 120 | 123 | |
| 124 | +/** |
|
| 125 | + * @param string $path |
|
| 126 | + */ |
|
| 121 | 127 | function aide_fichier($path, $help_server) { |
| 122 | 128 | |
| 123 | 129 | $md5 = md5(serialize($help_server)); |
@@ -448,6 +448,10 @@ |
||
| 448 | 448 | return $securiser_action('auth', "$auth_methode/$login", $redirect, true); |
| 449 | 449 | } |
| 450 | 450 | |
| 451 | +/** |
|
| 452 | + * @param string $auth_methode |
|
| 453 | + * @param string $login |
|
| 454 | + */ |
|
| 451 | 455 | function auth_terminer_identifier_login($auth_methode, $login, $serveur=''){ |
| 452 | 456 | $args = func_get_args(); |
| 453 | 457 | $auteur = auth_administrer('terminer_identifier_login',$args); |
@@ -132,9 +132,6 @@ |
||
| 132 | 132 | /** |
| 133 | 133 | * Construire tout le bandeau superieur de l'espace prive |
| 134 | 134 | * |
| 135 | - * @param unknown_type $rubrique |
|
| 136 | - * @param unknown_type $sous_rubrique |
|
| 137 | - * @param unknown_type $largeur |
|
| 138 | 135 | * @return unknown |
| 139 | 136 | */ |
| 140 | 137 | function inc_bandeau_dist() { |