@@ -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() { |
@@ -73,6 +73,10 @@ |
||
| 73 | 73 | |
| 74 | 74 | |
| 75 | 75 | // http://doc.spip.org/@barre_onglets |
| 76 | +/** |
|
| 77 | + * @param string $rubrique |
|
| 78 | + * @param string $ongletCourant |
|
| 79 | + */ |
|
| 76 | 80 | function barre_onglets($rubrique, $ongletCourant, $class="barre_onglet"){ |
| 77 | 81 | include_spip('inc/presentation'); |
| 78 | 82 | |
@@ -135,7 +135,7 @@ |
||
| 135 | 135 | * @param string $cfg |
| 136 | 136 | * @param mixed $def |
| 137 | 137 | * @param bool $unserialize |
| 138 | - * @return mixed |
|
| 138 | + * @return string |
|
| 139 | 139 | */ |
| 140 | 140 | function lire_config_metapack_dist($cfg='', $def=null, $unserialize=true) { |
| 141 | 141 | return lire_config($cfg, $def, $unserialize); |
@@ -110,6 +110,9 @@ discard block |
||
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | // http://doc.spip.org/@prepare_donnees_post |
| 113 | +/** |
|
| 114 | + * @param string $donnees |
|
| 115 | + */ |
|
| 113 | 116 | function prepare_donnees_post($donnees, $boundary = '') { |
| 114 | 117 | |
| 115 | 118 | // permettre a la fonction qui a demande le post de formater elle meme ses donnees |
@@ -211,6 +214,9 @@ discard block |
||
| 211 | 214 | // dans lequel on ecrit directement la page |
| 212 | 215 | // * si c'est true/null ca correspond a une demande d'encodage/charset |
| 213 | 216 | // http://doc.spip.org/@recuperer_page |
| 217 | +/** |
|
| 218 | + * @param integer $taille_max |
|
| 219 | + */ |
|
| 214 | 220 | function recuperer_page($url, $trans = false, $get_headers = false, |
| 215 | 221 | $taille_max = null, $datas = '', $boundary = '', $refuser_gz = false, |
| 216 | 222 | $date_verif = '', $uri_referer = ''){ |
@@ -655,6 +661,9 @@ discard block |
||
| 655 | 661 | // retourne le descripteur sur lequel lire la reponse |
| 656 | 662 | // |
| 657 | 663 | // http://doc.spip.org/@init_http |
| 664 | +/** |
|
| 665 | + * @param string $method |
|
| 666 | + */ |
|
| 658 | 667 | function init_http($method, $url, $refuse_gz = false, $referer = '', $datas = "", $vers = "HTTP/1.0", $date = ''){ |
| 659 | 668 | $user = $via_proxy = $proxy_user = ''; |
| 660 | 669 | $fopen = false; |
@@ -699,6 +708,9 @@ discard block |
||
| 699 | 708 | } |
| 700 | 709 | |
| 701 | 710 | // http://doc.spip.org/@lance_requete |
| 711 | +/** |
|
| 712 | + * @param string $noproxy |
|
| 713 | + */ |
|
| 702 | 714 | function lance_requete($method, $scheme, $user, $host, $path, $port, $noproxy, $refuse_gz = false, $referer = '', $datas = "", $vers = "HTTP/1.0", $date = ''){ |
| 703 | 715 | |
| 704 | 716 | $proxy_user = ''; |