@@ -53,6 +53,9 @@ discard block |
||
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | |
| 56 | +/** |
|
| 57 | + * @param boolean|string $stat |
|
| 58 | + */ |
|
| 56 | 59 | function statut_effacer_images_temporaires($stat){ |
| 57 | 60 | static $statut = false; // par defaut on grave toute les images |
| 58 | 61 | // une constante a utiliser lorsqu'on a des filtres image_xxx qui ne produisent pas des images |
@@ -63,6 +66,9 @@ discard block |
||
| 63 | 66 | } |
| 64 | 67 | |
| 65 | 68 | // http://doc.spip.org/@cherche_image_nommee |
| 69 | +/** |
|
| 70 | + * @param string $nom |
|
| 71 | + */ |
|
| 66 | 72 | function cherche_image_nommee($nom, $formats = array ('gif', 'jpg', 'png')) { |
| 67 | 73 | |
| 68 | 74 | if (strncmp(_DIR_IMG, $nom,$n=strlen(_DIR_IMG))==0) { |
@@ -306,6 +312,9 @@ discard block |
||
| 306 | 312 | |
| 307 | 313 | // $qualite est utilise pour la qualite de compression des jpeg |
| 308 | 314 | // http://doc.spip.org/@image_gd_output |
| 315 | +/** |
|
| 316 | + * @param resource $img |
|
| 317 | + */ |
|
| 309 | 318 | function _image_gd_output($img,$valeurs, $qualite=_IMG_GD_QUALITE){ |
| 310 | 319 | $fonction = "_image_image".$valeurs['format_dest']; |
| 311 | 320 | $ret = false; |
@@ -732,6 +741,11 @@ discard block |
||
| 732 | 741 | } |
| 733 | 742 | |
| 734 | 743 | // http://doc.spip.org/@process_image_reduire |
| 744 | +/** |
|
| 745 | + * @param boolean $force |
|
| 746 | + * @param boolean $cherche_image |
|
| 747 | + * @param string $process |
|
| 748 | + */ |
|
| 735 | 749 | function process_image_reduire($fonction,$img,$taille,$taille_y,$force,$cherche_image,$process){ |
| 736 | 750 | $image = false; |
| 737 | 751 | if (($process == 'AUTO') AND isset($GLOBALS['meta']['image_process'])) |
@@ -836,6 +850,10 @@ discard block |
||
| 836 | 850 | ////////////////////////////////////////////////////////////// |
| 837 | 851 | class phpthumb_functions { |
| 838 | 852 | // http://doc.spip.org/@GetPixelColor |
| 853 | + /** |
|
| 854 | + * @param integer $x |
|
| 855 | + * @param integer $y |
|
| 856 | + */ |
|
| 839 | 857 | function GetPixelColor(&$img, $x, $y) { |
| 840 | 858 | if (!is_resource($img)) { |
| 841 | 859 | return false; |
@@ -843,6 +861,9 @@ discard block |
||
| 843 | 861 | return @ImageColorsForIndex($img, @ImageColorAt($img, $x, $y)); |
| 844 | 862 | } |
| 845 | 863 | // http://doc.spip.org/@LittleEndian2String |
| 864 | + /** |
|
| 865 | + * @param integer $number |
|
| 866 | + */ |
|
| 846 | 867 | function LittleEndian2String($number, $minbytes=1) { |
| 847 | 868 | $intstring = ''; |
| 848 | 869 | while ($number > 0) { |
@@ -14,6 +14,9 @@ |
||
| 14 | 14 | include_spip('inc/filtres_images_lib_mini'); // par precaution |
| 15 | 15 | |
| 16 | 16 | // http://doc.spip.org/@couleur_html_to_hex |
| 17 | +/** |
|
| 18 | + * @param string $couleur |
|
| 19 | + */ |
|
| 17 | 20 | function couleur_html_to_hex($couleur){ |
| 18 | 21 | $couleurs_html=array( |
| 19 | 22 | 'aqua'=>'00FFFF','black'=>'000000','blue'=>'0000FF','fuchsia'=>'FF00FF','gray'=>'808080','green'=>'008000','lime'=>'00FF00','maroon'=>'800000', |
@@ -26,6 +26,10 @@ discard block |
||
| 26 | 26 | |
| 27 | 27 | $GLOBALS['liste_verrous'] = array(); |
| 28 | 28 | // http://doc.spip.org/@spip_fopen_lock |
| 29 | +/** |
|
| 30 | + * @param string $mode |
|
| 31 | + * @param integer $verrou |
|
| 32 | + */ |
|
| 29 | 33 | function spip_fopen_lock($fichier,$mode,$verrou){ |
| 30 | 34 | if (_SPIP_LOCK_MODE==1){ |
| 31 | 35 | if ($fl = @fopen($fichier,$mode)) |
@@ -197,7 +201,7 @@ discard block |
||
| 197 | 201 | * Ecrire un contenu dans un fichier encapsule en php pour en empecher l'acces en l'absence |
| 198 | 202 | * de htaccess |
| 199 | 203 | * @param string $fichier |
| 200 | - * @param <type> $contenu |
|
| 204 | + * @param string $contenu |
|
| 201 | 205 | * @param <type> $ecrire_quand_meme |
| 202 | 206 | * @param <type> $truncate |
| 203 | 207 | */ |
@@ -266,6 +270,9 @@ discard block |
||
| 266 | 270 | // |
| 267 | 271 | |
| 268 | 272 | // http://doc.spip.org/@jeune_fichier |
| 273 | +/** |
|
| 274 | + * @param integer $n |
|
| 275 | + */ |
|
| 269 | 276 | function jeune_fichier($fichier, $n) |
| 270 | 277 | { |
| 271 | 278 | if (!file_exists($fichier)) return false; |
@@ -14,6 +14,9 @@ discard block |
||
| 14 | 14 | include_spip('inc/actions'); |
| 15 | 15 | |
| 16 | 16 | // http://doc.spip.org/@affiche_navigation_forum |
| 17 | +/** |
|
| 18 | + * @param string $script |
|
| 19 | + */ |
|
| 17 | 20 | function affiche_navigation_forum(&$query, $script, $args, $debut, $pas=NULL, $enplus=NULL, $date=NULL) |
| 18 | 21 | { |
| 19 | 22 | if (!$pas) $pas = 10; |
@@ -63,6 +66,9 @@ discard block |
||
| 63 | 66 | } |
| 64 | 67 | |
| 65 | 68 | // http://doc.spip.org/@navigation_trouve_date |
| 69 | +/** |
|
| 70 | + * @param string $nom_date |
|
| 71 | + */ |
|
| 66 | 72 | function navigation_trouve_date($date, $nom_date, $pas, $query) |
| 67 | 73 | { |
| 68 | 74 | $debut = 0; |
@@ -299,6 +305,9 @@ discard block |
||
| 299 | 305 | |
| 300 | 306 | // Calculs des URLs des forums (pour l'espace public) |
| 301 | 307 | // http://doc.spip.org/@racine_forum |
| 308 | +/** |
|
| 309 | + * @param integer $id_forum |
|
| 310 | + */ |
|
| 302 | 311 | function racine_forum($id_forum){ |
| 303 | 312 | if (!$id_forum = intval($id_forum)) return false; |
| 304 | 313 | |
@@ -329,6 +338,9 @@ discard block |
||
| 329 | 338 | |
| 330 | 339 | |
| 331 | 340 | // http://doc.spip.org/@parent_forum |
| 341 | +/** |
|
| 342 | + * @param integer $id_forum |
|
| 343 | + */ |
|
| 332 | 344 | function parent_forum($id_forum) { |
| 333 | 345 | if (!$id_forum = intval($id_forum)) return; |
| 334 | 346 | $row = sql_fetsel("id_parent, id_rubrique, id_article, id_breve, id_syndic", "spip_forum", "id_forum=".$id_forum); |
@@ -400,6 +412,9 @@ discard block |
||
| 400 | 412 | // |
| 401 | 413 | |
| 402 | 414 | // http://doc.spip.org/@afficher_forum |
| 415 | +/** |
|
| 416 | + * @param string $arg |
|
| 417 | + */ |
|
| 403 | 418 | function afficher_forum($query, $retour, $arg, $controle_id_article = false, $script='', $argscript='') { |
| 404 | 419 | global $spip_display; |
| 405 | 420 | static $compteur_forum = 0; |
@@ -441,6 +456,14 @@ discard block |
||
| 441 | 456 | // plus les lignes verticales de conduite |
| 442 | 457 | |
| 443 | 458 | // http://doc.spip.org/@afficher_forum_thread |
| 459 | +/** |
|
| 460 | + * @param boolean $controle_id_article |
|
| 461 | + * @param integer $compteur_forum |
|
| 462 | + * @param integer[] $nb_forum |
|
| 463 | + * @param integer[] $i |
|
| 464 | + * @param string $script |
|
| 465 | + * @param string $argscript |
|
| 466 | + */ |
|
| 444 | 467 | function afficher_forum_thread($row, $controle_id_article, $compteur_forum, $nb_forum, $i, $retour, $arg, $script, $argscript) { |
| 445 | 468 | global $spip_lang_right, $spip_display; |
| 446 | 469 | static $voir_logo = array(); // pour ne calculer qu'une fois |
@@ -53,6 +53,10 @@ discard block |
||
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | // http://doc.spip.org/@forum_envoi_form |
| 56 | +/** |
|
| 57 | + * @param string $corps |
|
| 58 | + * @param string $form |
|
| 59 | + */ |
|
| 56 | 60 | function forum_envoi_form($id, $row, $script, $statut, $titre, $corps, $form, $objet, $args, $fct_ajax='') { |
| 57 | 61 | |
| 58 | 62 | $id_parent = $row['id_forum']; |
@@ -188,6 +192,9 @@ discard block |
||
| 188 | 192 | } |
| 189 | 193 | |
| 190 | 194 | // http://doc.spip.org/@forum_envoi_formulaire |
| 195 | +/** |
|
| 196 | + * @param string $retour |
|
| 197 | + */ |
|
| 191 | 198 | function forum_envoi_formulaire($id, $retour, $statut, $texte, $titre, $nom_site, $url_site) |
| 192 | 199 | { |
| 193 | 200 | |
@@ -137,6 +137,13 @@ discard block |
||
| 137 | 137 | } |
| 138 | 138 | |
| 139 | 139 | // http://doc.spip.org/@forum_insert_base |
| 140 | +/** |
|
| 141 | + * @param integer $id_forum |
|
| 142 | + * @param integer $id_article |
|
| 143 | + * @param integer $id_breve |
|
| 144 | + * @param integer $id_syndic |
|
| 145 | + * @param integer $id_rubrique |
|
| 146 | + */ |
|
| 140 | 147 | function forum_insert_base($c, $id_forum, $id_article, $id_breve, $id_syndic, $id_rubrique, $statut, $retour) |
| 141 | 148 | { |
| 142 | 149 | $afficher_texte = (_request('afficher_texte') <> 'non'); |
@@ -209,6 +216,13 @@ discard block |
||
| 209 | 216 | // mais la veritable adresse de retour sera calculee apres insertion |
| 210 | 217 | |
| 211 | 218 | // http://doc.spip.org/@forum_insert_nopost |
| 219 | +/** |
|
| 220 | + * @param integer $id_forum |
|
| 221 | + * @param integer $id_article |
|
| 222 | + * @param integer $id_breve |
|
| 223 | + * @param integer $id_syndic |
|
| 224 | + * @param integer $id_rubrique |
|
| 225 | + */ |
|
| 212 | 226 | function forum_insert_nopost($id_forum, $id_article, $id_breve, $id_syndic, $id_rubrique) |
| 213 | 227 | { |
| 214 | 228 | if ($id_forum>0) |
@@ -24,6 +24,11 @@ discard block |
||
| 24 | 24 | // |
| 25 | 25 | |
| 26 | 26 | // http://doc.spip.org/@bandeau_gadgets |
| 27 | +/** |
|
| 28 | + * @param integer $largeur |
|
| 29 | + * @param boolean $options |
|
| 30 | + * @param string $id_rubrique |
|
| 31 | + */ |
|
| 27 | 32 | function bandeau_gadgets($largeur, $options, $id_rubrique) { |
| 28 | 33 | |
| 29 | 34 | return "<div id='bandeau-gadgets'>" . |
@@ -192,6 +197,9 @@ discard block |
||
| 192 | 197 | } |
| 193 | 198 | |
| 194 | 199 | // http://doc.spip.org/@installer_gadgets |
| 200 | +/** |
|
| 201 | + * @param string $id_rubrique |
|
| 202 | + */ |
|
| 195 | 203 | function installer_gadgets($id_rubrique) |
| 196 | 204 | { |
| 197 | 205 | return "<a id='boutonbandeautoutsite' href='" |
@@ -231,6 +239,9 @@ discard block |
||
| 231 | 239 | } |
| 232 | 240 | |
| 233 | 241 | // http://doc.spip.org/@repercuter_gadgets |
| 242 | +/** |
|
| 243 | + * @param integer $id_rubrique |
|
| 244 | + */ |
|
| 234 | 245 | function repercuter_gadgets($id_rubrique) { |
| 235 | 246 | |
| 236 | 247 | if (!_SPIP_AJAX) return ''; |
@@ -36,6 +36,9 @@ discard block |
||
| 36 | 36 | |
| 37 | 37 | // Efface le repertoire de maniere recursive ! |
| 38 | 38 | // http://doc.spip.org/@effacer_repertoire_temporaire |
| 39 | +/** |
|
| 40 | + * @param null|string $nom |
|
| 41 | + */ |
|
| 39 | 42 | function effacer_repertoire_temporaire($nom) { |
| 40 | 43 | $d = opendir($nom); |
| 41 | 44 | while (($f = readdir($d)) !== false) { |
@@ -78,6 +81,9 @@ discard block |
||
| 78 | 81 | // |
| 79 | 82 | |
| 80 | 83 | // http://doc.spip.org/@deplacer_fichier_upload |
| 84 | +/** |
|
| 85 | + * @param string $dest |
|
| 86 | + */ |
|
| 81 | 87 | function deplacer_fichier_upload($source, $dest, $move=false) { |
| 82 | 88 | // Securite |
| 83 | 89 | if (substr($dest,0,strlen(_DIR_RACINE))==_DIR_RACINE) |
@@ -119,6 +119,9 @@ |
||
| 119 | 119 | } |
| 120 | 120 | |
| 121 | 121 | // http://doc.spip.org/@generer_supprimer_mot |
| 122 | +/** |
|
| 123 | + * @param string $clic |
|
| 124 | + */ |
|
| 122 | 125 | function generer_supprimer_mot($id_mot, $id_groupe, $clic, $total, $deb_aff='') |
| 123 | 126 | { |
| 124 | 127 | $cont = ($total > 1) |