@@ -84,6 +84,10 @@ discard block |
||
| 84 | 84 | |
| 85 | 85 | |
| 86 | 86 | // http://doc.spip.org/@convert_table_utf8 |
| 87 | +/** |
|
| 88 | + * @param string $table |
|
| 89 | + * @param string $champ |
|
| 90 | + */ |
|
| 87 | 91 | function convert_table_utf8($f, $table, $champ) |
| 88 | 92 | { |
| 89 | 93 | echo "<br /><b>$table</b> "; |
@@ -148,6 +152,9 @@ discard block |
||
| 148 | 152 | |
| 149 | 153 | // stocker le nouvel extra |
| 150 | 154 | // http://doc.spip.org/@convert_extra |
| 155 | +/** |
|
| 156 | + * @param string $charset_source |
|
| 157 | + */ |
|
| 151 | 158 | function convert_extra($v, $charset_source) { |
| 152 | 159 | if ($extra = @unserialize($v)) { |
| 153 | 160 | foreach ($extra as $key=>$val) |
@@ -19,6 +19,9 @@ |
||
| 19 | 19 | include_spip('base/abstract_sql'); |
| 20 | 20 | |
| 21 | 21 | // http://doc.spip.org/@creer_ou_upgrader_table |
| 22 | +/** |
|
| 23 | + * @param boolean $autoinc |
|
| 24 | + */ |
|
| 22 | 25 | function creer_ou_upgrader_table($table,$desc,$autoinc,$upgrade=false,$serveur='') { |
| 23 | 26 | $sql_desc = $upgrade ? sql_showtable($table,true,$serveur) : false; |
| 24 | 27 | if (!$sql_desc) |
@@ -79,6 +79,9 @@ |
||
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | // http://doc.spip.org/@import_all_milieu |
| 82 | +/** |
|
| 83 | + * @param string $archive |
|
| 84 | + */ |
|
| 82 | 85 | function import_all_milieu($request, $archive) |
| 83 | 86 | { |
| 84 | 87 | global $trans; |
@@ -231,6 +231,9 @@ |
||
| 231 | 231 | |
| 232 | 232 | // pour versions <= 1.926 |
| 233 | 233 | // http://doc.spip.org/@upgrade_vers |
| 234 | +/** |
|
| 235 | + * @param double $version |
|
| 236 | + */ |
|
| 234 | 237 | function upgrade_vers($version, $version_installee, $version_cible = 0){ |
| 235 | 238 | return ($version_installee<$version |
| 236 | 239 | AND (($version_cible>=$version) OR ($version_cible==0)) |
@@ -138,6 +138,9 @@ |
||
| 138 | 138 | } |
| 139 | 139 | |
| 140 | 140 | // http://doc.spip.org/@afficher_choix_vignette |
| 141 | +/** |
|
| 142 | + * @param string $process |
|
| 143 | + */ |
|
| 141 | 144 | function afficher_choix_vignette($process) { |
| 142 | 145 | |
| 143 | 146 | //global $taille_preview; |
@@ -97,6 +97,9 @@ discard block |
||
| 97 | 97 | // |
| 98 | 98 | |
| 99 | 99 | // http://doc.spip.org/@colonne_droite_eq4 |
| 100 | +/** |
|
| 101 | + * @param integer $id_rubrique |
|
| 102 | + */ |
|
| 100 | 103 | function colonne_droite_eq4($id_rubrique, $activer_breves, $activer_sites, $articles_mots) { |
| 101 | 104 | global $connect_statut, $connect_toutes_rubriques; |
| 102 | 105 | |
@@ -124,6 +127,9 @@ discard block |
||
| 124 | 127 | // |
| 125 | 128 | |
| 126 | 129 | // http://doc.spip.org/@colonne_droite_neq4 |
| 130 | +/** |
|
| 131 | + * @param integer $id_rubrique |
|
| 132 | + */ |
|
| 127 | 133 | function colonne_droite_neq4($id_rubrique, $activer_breves, $activer_sites, $articles_mots) { |
| 128 | 134 | global $connect_statut, $connect_id_auteur, $connect_login; |
| 129 | 135 | |
@@ -255,6 +255,14 @@ discard block |
||
| 255 | 255 | |
| 256 | 256 | |
| 257 | 257 | // http://doc.spip.org/@liste_sauvegardes |
| 258 | +/** |
|
| 259 | + * @param integer $key |
|
| 260 | + * @param string $fichier |
|
| 261 | + * @param string $class |
|
| 262 | + * @param boolean $selected |
|
| 263 | + * @param integer $date |
|
| 264 | + * @param integer $taille |
|
| 265 | + */ |
|
| 258 | 266 | function liste_sauvegardes($key, $fichier, $class, $selected, $date, $taille) |
| 259 | 267 | { |
| 260 | 268 | return "\n<tr class='$class'><td><input type='radio' name='archive' value='" |
@@ -301,6 +309,9 @@ discard block |
||
| 301 | 309 | |
| 302 | 310 | |
| 303 | 311 | // Fabrique la liste a cocher des tables presentes |
| 312 | +/** |
|
| 313 | + * @param string $name |
|
| 314 | + */ |
|
| 304 | 315 | function controle_tables_en_base($name, $check) |
| 305 | 316 | { |
| 306 | 317 | $p = '/^' . $GLOBALS['table_prefix'] . '/'; |
@@ -17,6 +17,9 @@ |
||
| 17 | 17 | |
| 18 | 18 | |
| 19 | 19 | // http://doc.spip.org/@calculer_taille_dossier |
| 20 | +/** |
|
| 21 | + * @param string|null $dir |
|
| 22 | + */ |
|
| 20 | 23 | function calculer_taille_dossier ($dir) { |
| 21 | 24 | $handle = @opendir($dir); |
| 22 | 25 | if (!$handle) return; |
@@ -28,6 +28,9 @@ discard block |
||
| 28 | 28 | return generer_url_ecrire('aide_index', $args, false, true); |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | +/** |
|
| 32 | + * @param string $path |
|
| 33 | + */ |
|
| 31 | 34 | function help_fichier_contenu ($lang_aide, $path, $help_server) { |
| 32 | 35 | $contenu = array(); |
| 33 | 36 | include_spip('inc/distant'); |
@@ -87,6 +90,9 @@ discard block |
||
| 87 | 90 | } |
| 88 | 91 | |
| 89 | 92 | // http://doc.spip.org/@help_lastmodified |
| 93 | +/** |
|
| 94 | + * @param integer $lastmodified |
|
| 95 | + */ |
|
| 90 | 96 | function help_lastmodified($lastmodified) |
| 91 | 97 | { |
| 92 | 98 | $gmoddate = gmdate("D, d M Y H:i:s", $lastmodified); |
@@ -226,6 +232,9 @@ discard block |
||
| 226 | 232 | return $res; |
| 227 | 233 | } |
| 228 | 234 | |
| 235 | +/** |
|
| 236 | + * @param string $contenu |
|
| 237 | + */ |
|
| 229 | 238 | function help_frame_menu($titre, $contenu, $lang) |
| 230 | 239 | { |
| 231 | 240 | global $spip_lang_rtl; |
@@ -285,6 +294,9 @@ discard block |
||
| 285 | 294 | } |
| 286 | 295 | |
| 287 | 296 | // http://doc.spip.org/@help_img_cache |
| 297 | +/** |
|
| 298 | + * @param string $img |
|
| 299 | + */ |
|
| 288 | 300 | function help_img_cache($img, $ext) |
| 289 | 301 | { |
| 290 | 302 | header("Content-Type: image/$ext"); |
@@ -345,6 +357,9 @@ discard block |
||
| 345 | 357 | // reecrit par le htacces suivant: |
| 346 | 358 | // http://zone.spip.org/trac/spip-zone/browser/_galaxie_/www.spip.net/squelettes/htaccess.txt |
| 347 | 359 | |
| 360 | +/** |
|
| 361 | + * @param string $aide |
|
| 362 | + */ |
|
| 348 | 363 | function aide_index_frame($var_lang_r, $lang_r, $frame, $aide, $help_server) |
| 349 | 364 | { |
| 350 | 365 | global $spip_lang; |