@@ -61,6 +61,9 @@ discard block |
||
| 61 | 61 | return ajax_action_greffe("editer_mots", $id_objet, $res); |
| 62 | 62 | } |
| 63 | 63 | |
| 64 | +/** |
|
| 65 | + * @param string $url_base |
|
| 66 | + */ |
|
| 64 | 67 | function chercher_inserer_mot($cherche_mot, $select_groupe, $objet, $id_objet, $nom, $table_id, $url_base) |
| 65 | 68 | { |
| 66 | 69 | $modifier = false; |
@@ -142,6 +145,9 @@ discard block |
||
| 142 | 145 | } |
| 143 | 146 | |
| 144 | 147 | // http://doc.spip.org/@afficher_mots_cles |
| 148 | +/** |
|
| 149 | + * @param string $url |
|
| 150 | + */ |
|
| 145 | 151 | function afficher_mots_cles($flag, $objet, $id_objet, $table, $table_id, $url) |
| 146 | 152 | { |
| 147 | 153 | $q = array('SELECT' => "M.id_mot, M.titre, M.id_groupe", 'FROM' => "spip_mots AS M LEFT JOIN spip_mots_$table AS L ON M.id_mot=L.id_mot", 'WHERE' => "L.$table_id=$id_objet", 'ORDER BY' => "M.type, M.titre"); |
@@ -236,6 +242,11 @@ discard block |
||
| 236 | 242 | // boolean $visible : determiner si le formulaire est deplie |
| 237 | 243 | // string $objet : 'article' |
| 238 | 244 | // http://doc.spip.org/@formulaire_mots_cles |
| 245 | +/** |
|
| 246 | + * @param string $les_mots |
|
| 247 | + * @param string $url_base |
|
| 248 | + * @param boolean $visible |
|
| 249 | + */ |
|
| 239 | 250 | function formulaire_mots_cles($id_objet, $les_mots, $table, $table_id, $url_base, $visible, $objet) { |
| 240 | 251 | global $spip_lang, $spip_lang_right; |
| 241 | 252 | |
@@ -305,6 +316,9 @@ discard block |
||
| 305 | 316 | return array($visible, $res); |
| 306 | 317 | } |
| 307 | 318 | |
| 319 | +/** |
|
| 320 | + * @param string $url_base |
|
| 321 | + */ |
|
| 308 | 322 | function creer_mot($table, $id_objet, $table_id, $url_base, $mot='', $id_groupe=0) |
| 309 | 323 | { |
| 310 | 324 | static $titres = array( |
@@ -333,6 +347,9 @@ discard block |
||
| 333 | 347 | } |
| 334 | 348 | |
| 335 | 349 | // http://doc.spip.org/@menu_mots |
| 350 | +/** |
|
| 351 | + * @param string $cond_mots_vus |
|
| 352 | + */ |
|
| 336 | 353 | function menu_mots($row, $id_groupes_vus, $cond_mots_vus) |
| 337 | 354 | { |
| 338 | 355 | $id_groupe = $row['id_groupe']; |
@@ -205,6 +205,9 @@ |
||
| 205 | 205 | } |
| 206 | 206 | } |
| 207 | 207 | |
| 208 | +/** |
|
| 209 | + * @param string $to |
|
| 210 | + */ |
|
| 208 | 211 | function mail_normaliser_headers($headers, $from, $to, $texte, $parts="") |
| 209 | 212 | { |
| 210 | 213 | $charset = $GLOBALS['meta']['charset']; |
@@ -59,6 +59,9 @@ discard block |
||
| 59 | 59 | return ($etape > $all OR !$all) ? false : $dir; |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | +/** |
|
| 63 | + * @param string $dir |
|
| 64 | + */ |
|
| 62 | 65 | function export_trace($val_meta, $dir, $meta) |
| 63 | 66 | { |
| 64 | 67 | list($gz, $archive, $rub, $tables_for_dump, $etape_actuelle, $sous_etape, $serveur, $save) = $val_meta; |
@@ -182,6 +185,9 @@ discard block |
||
| 182 | 185 | // est plus court que le temps pour creer les parties |
| 183 | 186 | |
| 184 | 187 | // http://doc.spip.org/@export_objets |
| 188 | +/** |
|
| 189 | + * @param string $filetable |
|
| 190 | + */ |
|
| 185 | 191 | function export_objets($table, $cpt, $total, $filetable, $les_rubriques, $les_meres, $meta) { |
| 186 | 192 | global $tables_principales; |
| 187 | 193 | |
@@ -46,6 +46,9 @@ discard block |
||
| 46 | 46 | //une fonction qui permet de si un lien est un feed ou nom, si c'est un feed elle retourne son type |
| 47 | 47 | //si c'est pas un feed elle retourne 0, cette verification est evidemment tres tres legere |
| 48 | 48 | // http://doc.spip.org/@is_feed |
| 49 | +/** |
|
| 50 | + * @param string $url |
|
| 51 | + */ |
|
| 49 | 52 | function is_feed($url){ |
| 50 | 53 | |
| 51 | 54 | # methode SPIP |
@@ -187,6 +190,9 @@ discard block |
||
| 187 | 190 | //petite fonction qui prend en charge les problemes de double slash |
| 188 | 191 | //qunad on concatene les lien |
| 189 | 192 | // http://doc.spip.org/@concat_url |
| 193 | +/** |
|
| 194 | + * @param string $path |
|
| 195 | + */ |
|
| 190 | 196 | function concat_url($url1, $path){ |
| 191 | 197 | # methode spip |
| 192 | 198 | if(function_exists('suivre_lien')) { |
@@ -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 | |