Changeset 30253 in spip-zone
- Timestamp:
- Jul 27, 2009, 3:26:42 AM (10 years ago)
- Location:
- _plugins_
- Files:
-
- 51 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/Association/Association_1.9.1/association_mes_fonctions.php
r13662 r30253 246 246 //Conversion de date 247 247 function association_datefr($date) { 248 $split = split('-',$date);248 $split = explode('-',$date); 249 249 $annee = $split[0]; 250 250 $mois = $split[1]; -
_plugins_/Association/Association_1.9.1/exec/ajout_cotisation.php
r12536 r30253 40 40 $categorie=$data['categorie']; 41 41 $validite=$data['validite']; 42 $split = split("-",$validite);42 $split = explode("-",$validite); 43 43 $annee = $split[0]; 44 44 $mois = $split[1]; -
_plugins_/Association/Association_1.9.2/association_fonctions.php
r20034 r30253 13 13 //Conversion de date 14 14 function association_datefr($date) { 15 $split = split('-',$date);15 $split = explode('-',$date); 16 16 $annee = $split[0]; 17 17 $mois = $split[1]; -
_plugins_/Association/Association_1.9.2/exec/ajout_cotisation.php
r20979 r30253 29 29 $categorie=$data['categorie']; 30 30 $validite=$data['validite']; 31 $split = split("-",$validite);31 $split = explode("-",$validite); 32 32 $annee = $split[0]; 33 33 $mois = $split[1]; -
_plugins_/Association/Association_2.0/association_fonctions.php
r21863 r30253 13 13 //Conversion de date 14 14 function association_datefr($date) { 15 $split = split('-',$date);15 $split = explode('-',$date); 16 16 $annee = $split[0]; 17 17 $mois = $split[1]; -
_plugins_/Association/Association_2.0/exec/ajout_cotisation.php
r25122 r30253 30 30 $categorie=$data['categorie']; 31 31 $validite=$data['validite']; 32 $split = split("-",$validite);32 $split = explode("-",$validite); 33 33 $annee = $split[0]; 34 34 $mois = $split[1]; -
_plugins_/FCKEditor/191/fckeditor2_pipelines.php
r15720 r30253 9 9 define('_DIR_RELATIF_PLUGIN_FCKEDITOR',str_replace('../','',(_DIR_PLUGINS.end($p)))); 10 10 11 $dir_relatif_array = split('/', $_SERVER["PHP_SELF"]);11 $dir_relatif_array = explode('/', $_SERVER["PHP_SELF"]); 12 12 $i = 0; 13 13 while($dir_relatif_array[$i] != 'ecrire') -
_plugins_/FCKEditor/191/spip_fck/filemanager/browser/spip/connectors/php/config.php
r13292 r30253 39 39 //détermination du chemin des images de Spip par rapport à la racine du serveur 40 40 $chemin_final=''; 41 $dir_relatif_array = split('/', $_SERVER["PHP_SELF"]);41 $dir_relatif_array = explode('/', $_SERVER["PHP_SELF"]); 42 42 $i = 0; 43 43 while($dir_relatif_array[$i] != 'plugins') -
_plugins_/FCKEditor/191/spip_fck/filemanager/browser/spip/galerie.php
r13292 r30253 2 2 3 3 // détermination du chemin de base par rapport à la racine du serveur 4 $dir_relatif_array = split('/', $_SERVER["PHP_SELF"]);4 $dir_relatif_array = explode('/', $_SERVER["PHP_SELF"]); 5 5 $i = 0; 6 6 $dir_relatif=""; -
_plugins_/FCKEditor/191/spip_fck/filemanager/upload/spip/config.php
r13292 r30253 28 28 define('_DIR_RELATIF_PLUGIN_FCKEDITOR',str_replace('../','',(_DIR_PLUGINS.end($p)))); 29 29 30 $dir_relatif_array = split('/', $_SERVER["PHP_SELF"]);30 $dir_relatif_array = explode('/', $_SERVER["PHP_SELF"]); 31 31 $i = 0; 32 32 while($dir_relatif_array[$i] != 'plugins') -
_plugins_/FCKEditor/192/fckeditor_pipelines.php
r14127 r30253 14 14 define('_DIR_RELATIF_PLUGIN_FCKEDITOR',str_replace('../','',(_DIR_PLUGINS.end($p)))); 15 15 16 $dir_relatif_array = split('/', $_SERVER["PHP_SELF"]);16 $dir_relatif_array = explode('/', $_SERVER["PHP_SELF"]); 17 17 $i = 0; 18 18 while($dir_relatif_array[$i] != 'ecrire') -
_plugins_/FCKEditor/192/spip_fck/filemanager/browser/spip/connectors/php/config.php
r13851 r30253 42 42 //détermination du chemin des images de Spip par rapport à la racine du serveur 43 43 $chemin_final=''; 44 $dir_relatif_array = split('/', $_SERVER["PHP_SELF"]);44 $dir_relatif_array = explode('/', $_SERVER["PHP_SELF"]); 45 45 $i = 0; 46 46 while($dir_relatif_array[$i] != 'plugins') -
_plugins_/FCKEditor/192/spip_fck/filemanager/upload/spip/config.php
r12810 r30253 28 28 define('_DIR_RELATIF_PLUGIN_FCKEDITOR',str_replace('../','',(_DIR_PLUGINS.end($p)))); 29 29 30 $dir_relatif_array = split('/', $_SERVER["PHP_SELF"]);30 $dir_relatif_array = explode('/', $_SERVER["PHP_SELF"]); 31 31 $i = 0; 32 32 while($dir_relatif_array[$i] != 'plugins') -
_plugins_/SPIP-Genea/public/genea_criteres.php
r19561 r30253 73 73 $params = array_shift($params); 74 74 //$champs = ($params[0]->type = 'texte') ? calculer_liste(array($params[0]), array(), $boucles, $boucle->parent) : 75 list($champs, $val) = split('[=]', $params[0]->texte);75 list($champs, $val) = explode('=', $params[0]->texte); 76 76 if (isset($params[1])) { 77 77 $val = "'".calculer_liste(array($params[1]), array(), $boucles, $boucle->parent)."'"; -
_plugins_/agenda/1_9_2/inc/agenda_saisie_rapide.php
r13779 r30253 12 12 function Agenda_retourne_liste_mots($texte) { 13 13 $texte = preg_replace("/[\|\s\t\n\r]+/", " ", $texte); 14 $split = split('"', $texte);14 $split = explode('"', $texte); 15 15 $c = count($split); 16 16 for($i=0; $i<$c; $i++) if ($i & 1) $split[$i] = preg_replace('/[ ,]+/', '+', trim($split[$i])); … … 18 18 $texte = preg_replace("/ *,+ */","\t", $texte); 19 19 $texte = preg_replace("/\++/"," ", $texte); 20 return array_unique( split("\t", trim($texte)));20 return array_unique(preg_split(",\t,", trim($texte))); 21 21 } 22 22 -
_plugins_/autosave/exec/autosave.php
r18411 r30253 36 36 $hash = _action_auteur("editer_article-$arg", $id_auteur, $pass, 'alea_ephemere'); 37 37 38 $new_arg_document = split('/',$arg_document);38 $new_arg_document = explode('/',$arg_document); 39 39 $fin_arg = ''; 40 40 for($i=1; $i < sizeof($new_arg_document) ; $i++){ … … 43 43 $new_arg_document = $id_article . $fin_arg ; 44 44 45 $new_arg_vignette = split('/',$arg_vignette);45 $new_arg_vignette = explode('/',$arg_vignette); 46 46 $fin_arg = ''; 47 47 for($i=1; $i < sizeof($new_arg_vignette) ; $i++){ -
_plugins_/balise_session/action/session.php
r14307 r30253 12 12 $redirect = isset($redirect) ? $redirect : _DIR_RESTREINT_ABS; 13 13 14 list($session, $action, $var, $val) = split('-', $arg);14 list($session, $action, $var, $val) = explode('-', $arg); 15 15 16 16 session_name($session); -
_plugins_/bannieres/bannieres_1.9.2/bannieres_fonctions.php
r19717 r30253 12 12 //Conversion de date 13 13 function bannieres_datefr($date) { 14 $split = split('-',$date);14 $split = explode('-',$date); 15 15 $annee = $split[0]; 16 16 $mois = $split[1]; -
_plugins_/bannieres/bannieres_2.0/bannieres_fonctions.php
r26104 r30253 12 12 //Conversion de date 13 13 function bannieres_datefr($date) { 14 $split = split('-',$date);14 $split = explode('-',$date); 15 15 $annee = $split[0]; 16 16 $mois = $split[1]; -
_plugins_/barre_accessibilite/inc/barrac_pipeline_insert_head.php
r26501 r30253 88 88 , _BARRAC_POSITION_DEFAULT 89 89 ); 90 list($ii, $jj) = split("_", $config['barrac_position_barre']);90 list($ii, $jj) = explode("_", $config['barrac_position_barre']); 91 91 $style_barre = "$ii:0px;$jj:0px;"; 92 92 -
_plugins_/bouquinerie/action/importer_catalogue.php
r21970 r30253 57 57 58 58 // verification si extention OK 59 $tableau = split('[.]', $fichier);59 $tableau = explode('.', $fichier); 60 60 $type_ext = $tableau[1]; 61 61 -
_plugins_/ecommerce/squelettes_ecommerce/spip_rss.php
r8166 r30253 42 42 } else { 43 43 $a = array(); 44 foreach ( split(':', $args) as $bout) {45 list($var, $val) = split('-', $bout, 2);44 foreach (explode(':', $args) as $bout) { 45 list($var, $val) = explode('-', $bout, 2); 46 46 $a[$var] = $val; 47 47 } -
_plugins_/forms/forms_et_tables_2_0_0/interface/inc/forms_edit.php
r25494 r30253 32 32 $champ = $type.'_'.strval($n); 33 33 while ($row = spip_fetch_array($res)){ 34 $lenumero = split('_', $row['champ'] );34 $lenumero = explode('_', $row['champ'] ); 35 35 $lenumero = intval(end($lenumero)); 36 36 if ($lenumero>= $n) $n=$lenumero+1; … … 58 58 $res = spip_query("SELECT choix FROM spip_forms_champs_choix WHERE id_form="._q($id_form)." AND champ="._q($champ)); 59 59 while ($row = spip_fetch_array($res)){ 60 $lenumero = split('_', $row['choix']);60 $lenumero = explode('_', $row['choix']); 61 61 $lenumero = intval(end($lenumero)); 62 62 if ($lenumero>= $n) $n=$lenumero+1; -
_plugins_/forms_et_tables_captcha/inc/ftcaptcha_functions.php
r15242 r30253 425 425 if ( strlen($solution) < 32 ) 426 426 { 427 list($GLOBALS['captcha_level'], $solution) = split('-', $solution);427 list($GLOBALS['captcha_level'], $solution) = explode('-', $solution); 428 428 if($value == $solution) 429 429 { … … 589 589 $row = spip_fetch_array($s); 590 590 $solution = $row['captcha_solution']; 591 list($GLOBALS['captcha_level'], $solution) = split('-', $solution);591 list($GLOBALS['captcha_level'], $solution) = explode('-', $solution); 592 592 //$i = intval($_GET['i']); 593 593 $istr = $i; -
_plugins_/jeux/jeux/diag_echecs.php
r14566 r30253 119 119 120 120 for ($i=0 ; $i<count($table) ; $i++) { 121 $sub_table = split("[:,]",$table[$i]);121 $sub_table = preg_split("/[:,]/",$table[$i]); 122 122 switch($sub_table[0]) { 123 123 case "b" : $side = "w";break; -
_plugins_/jeux/jeux/mots_croises.php
r26427 r30253 118 118 function calcul_tableau_grille($texte){ 119 119 $texte = preg_replace(",\s?[\r\n]+\s?,", "\n", trim($texte)); 120 $tableau = split("\n", $texte);120 $tableau = preg_split("/\n/", $texte); 121 121 foreach ($tableau as $i=>$valeur) $tableau[$i] = preg_split('//', trim($valeur), -1, PREG_SPLIT_NO_EMPTY); 122 122 return $tableau; -
_plugins_/jeux/jeux/sudoku.php
r19808 r30253 108 108 // arggh les raccourcis SPIP... TODO : voir pkoi (1.93) 109 109 $texte = str_replace('—', '--', $texte); 110 $tableau = split("\n", $texte);110 $tableau = preg_split("/\n/", $texte); 111 111 $hauteur = count($tableau); 112 112 foreach ($tableau as $i=>$valeur) { -
_plugins_/kconf/public/kconf_balise.php
r29648 r30253 83 83 if ($t[0]->type == 'texte') { 84 84 $t = $t[0]->texte; 85 list($k,$v) = split(" ",$t);85 list($k,$v) = explode(" ",$t); 86 86 $ret = "s:".strlen($k).":\"$k\";a:3:{i:0;s:".strlen($v).":\"$v\""; 87 87 // spip_log("critere_kconf $k, $v, $ret"); -
_plugins_/login_logout/action/lilo_auteur_infos.php
r26470 r30253 71 71 if($row = spip_fetch_array($sql_result)) { 72 72 $ok = true; 73 foreach( split(',', $sql_select) as $key) {73 foreach(explode(',', $sql_select) as $key) { 74 74 $$key = trim($row[$key]); 75 75 } … … 89 89 else { 90 90 // inconnu ? 91 foreach( split(',', $sql_select) as $key) {91 foreach(explode(',', $sql_select) as $key) { 92 92 $$key = ""; 93 93 } … … 97 97 $result = ""; 98 98 $sql_select .= ",logo_src"; 99 foreach( split(',', $sql_select) as $key) {99 foreach(explode(',', $sql_select) as $key) { 100 100 $result .= $$key . _LILO_AJAX_RESULT_SEPARATOR; 101 101 } -
_plugins_/mes_fichiers/action/export_all.php
r14453 r30253 29 29 $dir = _DIR_DUMP; 30 30 31 list($quoi, $gz, $archive, $zip) = split(',', $arg);31 list($quoi, $gz, $archive, $zip) = explode(',', $arg); 32 32 33 33 $file = $dir . $archive; -
_plugins_/mots_partout/1.9.1/inc/mots.php
r4962 r30253 281 281 $res = ''; 282 282 283 foreach ( split(" *[,;] *", $cherche_mots) as $cherche_mot) {283 foreach (preg_split("/ *[,;] */", $cherche_mots) as $cherche_mot) { 284 284 if ($cherche_mot) { 285 285 $resultat = mots_ressemblants($cherche_mot, $table_mots, $table_ids); -
_plugins_/mots_partout/1.9.2/inc/editer_mot.php
r21092 r30253 162 162 $res = ''; 163 163 164 foreach ( split(" *[,;] *", $cherche_mots) as $cherche_mot) {164 foreach (preg_split("/ *[,;] */", $cherche_mots) as $cherche_mot) { 165 165 if ($cherche_mot) { 166 166 $resultat = mots_ressemblants($cherche_mot, $table_mots, $table_ids); -
_plugins_/mots_partout/2.0/inc/editer_mots.php
r29246 r30253 170 170 $res = ''; 171 171 172 foreach ( split(" *[,;] *", $cherche_mots) as $cherche_mot) {172 foreach (preg_split("/ *[,;] */", $cherche_mots) as $cherche_mot) { 173 173 if ($cherche_mot) { 174 174 $resultat = mots_ressemblants($cherche_mot, $table_mots, $table_ids); -
_plugins_/nuage/frequence_fonctions.php
r23346 r30253 89 89 /*Ajouter ici un test et produire une erreur si table non trouvee*/ 90 90 $ids = $desc['key']['PRIMARY KEY']; 91 foreach( split(',', $ids) as $_id)91 foreach(explode(',', $ids) as $_id) 92 92 if(trim($_id) != $primary) $id = $_id; 93 93 $boucle->select[]= 'COUNT('.$frequence.'.'.$id.') AS '.$frequence; -
_plugins_/openPublishing/balise/formulaire_article.php
r22257 r30253 336 336 337 337 // construction de la date complete 338 $tableau = split('[:]', $variables['champs_aux']['heure']);338 $tableau = explode(':', $variables['champs_aux']['heure']); 339 339 $heure = $tableau[0]; 340 340 $minute = $tableau[1]; … … 762 762 763 763 // verification si extention OK 764 $tableau = split('[.]', $fichier);764 $tableau = explode('.', $fichier); 765 765 $type_ext = $tableau[1]; 766 766 -
_plugins_/panoramas/panoramas_mes_fonctions.php
r23243 r30253 19 19 20 20 //mise à jour de la liste des jeux réussis 21 $tab_jeux_reussis = split(",", $_COOKIE['jeux_reussis']);21 $tab_jeux_reussis = explode(",", $_COOKIE['jeux_reussis']); 22 22 if (!in_array($id_jeu, $tab_jeux_reussis)) { 23 23 setcookie("jeux_reussis",implode(",", $tab_jeux_reussis).",".$id_jeu); -
_plugins_/passe_complexe/inc/passe_complexe.php
r16141 r30253 3 3 //on combine une liste de mots, separe par des virgules ou espace pour en faire une liste quoter: ,"mot1", "mot3" 4 4 function passe_complexe_quote_common($list) { 5 $commons = split('[ ,]',$list);5 $commons = preg_split('/[ ,]/',$list); 6 6 $return = ''; 7 7 for ($i = 0; $i < count($commons); $i++) { -
_plugins_/photos/balise/formulaire_photos.php
r28358 r30253 43 43 44 44 { 45 $tab= split("[.]",$nom_file);45 $tab= explode(".",$nom_file); 46 46 $nom_file_thumb= $tab[0]; 47 47 $dateheure=date('Y-m-d H:i:s'); -
_plugins_/raccourcis_texte_perso/exec/raper_edit.php
r25659 r30253 214 214 $id_menu = 0; 215 215 $alt = _T("raper:selectionnez_langue"); 216 $langues_array = split(',', raper_langues_selection());216 $langues_array = explode(',', raper_langues_selection()); 217 217 sort($langues_array); 218 218 $traduire = charger_fonction('traduire', 'inc'); -
_plugins_/raccourcis_texte_perso/inc/raper_api_edit.php
r25659 r30253 357 357 } 358 358 else if(raper_site_langues_compter() > 1) { 359 if(($langues_array = split(',', raper_langues_selection())) && (count($langues_array) > 1)) {359 if(($langues_array = explode(',', raper_langues_selection())) && (count($langues_array) > 1)) { 360 360 sort($langues_array); 361 361 $value = ""; -
_plugins_/sedna/sedna_options.php
r16798 r30253 49 49 // initialiser la liste des articles lus 50 50 if (!is_array($lus)) 51 $lus = array_flip( split('-', '-'.$_COOKIE['sedna_lu']));51 $lus = array_flip(explode('-', '-'.$_COOKIE['sedna_lu'])); 52 52 53 53 if ($vu[$id_lien]++) return; -
_plugins_/simpletest/simpletest/http.php
r24737 r30253 317 317 $this->_authentication = false; 318 318 $this->_realm = false; 319 foreach ( split("\r\n", $headers) as $header_line) {319 foreach (preg_split(",\r\n,", $headers) as $header_line) { 320 320 $this->_parseHeaderLine($header_line); 321 321 } … … 458 458 */ 459 459 function _parseCookie($cookie_line) { 460 $parts = split(";", $cookie_line);460 $parts = explode(";", $cookie_line); 461 461 $cookie = array(); 462 462 preg_match('/\s*(.*?)\s*=(.*)/', array_shift($parts), $cookie); … … 522 522 $this->_headers = &new SimpleHttpHeaders($raw); 523 523 } else { 524 list($headers, $this->_content) = split("\r\n\r\n", $raw, 2);524 list($headers, $this->_content) = preg_split(",\r\n\r\n,", $raw, 2); 525 525 $this->_headers = &new SimpleHttpHeaders($headers); 526 526 } -
_plugins_/simpletest/simpletest/url.php
r24737 r30253 107 107 if (preg_match('/^([^\/]*)@(.*)/', $url, $matches)) { 108 108 $url = $prefix . $matches[2]; 109 $parts = split(":", $matches[1]);109 $parts = explode(":", $matches[1]); 110 110 return array( 111 111 urldecode($parts[0]), … … 185 185 $this->_raw = $raw; 186 186 $request = new SimpleGetEncoding(); 187 foreach ( split("&", $raw) as $pair) {187 foreach (explode("&", $raw) as $pair) { 188 188 if (preg_match('/(.*?)=(.*)/', $pair, $matches)) { 189 189 $request->add($matches[1], urldecode($matches[2])); -
_plugins_/simpletest/simpletest/web_tester.php
r24737 r30253 191 191 */ 192 192 function _findHeader($compare) { 193 $lines = split("\r\n", $compare);193 $lines = preg_split(",\r\n,", $compare); 194 194 foreach ($lines as $line) { 195 195 if ($this->_testHeaderLine($line)) { … … 207 207 */ 208 208 function _testHeaderLine($line) { 209 if (count($parsed = split(':', $line, 2)) < 2) {209 if (count($parsed = explode(':', $line, 2)) < 2) { 210 210 return false; 211 211 } -
_plugins_/spip-listes/spip-listes_1_9_3/inc/spiplistes_api.php
r28882 r30253 89 89 $queries = substr($queries, 0, strlen($queries)-1); 90 90 } 91 $_queries = split(';', $queries);91 $_queries = explode(';', $queries); 92 92 while( list(,$val) = each($_queries)) { 93 93 $res = spip_query($val); -
_plugins_/spip_fckeditor/fckeditor_pipelines.php
r25397 r30253 5 5 define('_DIR_RELATIF_PLUGIN_FCKEDITOR',str_replace('../','',(_DIR_PLUGINS.end($p)))); 6 6 7 $dir_relatif_array = split('/', $_SERVER["PHP_SELF"]);7 $dir_relatif_array = explode('/', $_SERVER["PHP_SELF"]); 8 8 $i = 0; 9 9 while($dir_relatif_array[$i] != 'ecrire') -
_plugins_/spip_fckeditor/spip_fck/filemanager/browser/spip/connectors/php/config.php
r25397 r30253 42 42 //détermination du chemin des images de Spip par rapport à la racine du serveur 43 43 $chemin_final=''; 44 $dir_relatif_array = split('/', $_SERVER["PHP_SELF"]);44 $dir_relatif_array = explode('/', $_SERVER["PHP_SELF"]); 45 45 $i = 0; 46 46 while($dir_relatif_array[$i] != 'plugins') -
_plugins_/spip_fckeditor/spip_fck/filemanager/upload/spip/config.php
r25397 r30253 28 28 define('_DIR_RELATIF_PLUGIN_FCKEDITOR',str_replace('../','',(_DIR_PLUGINS.end($p)))); 29 29 30 $dir_relatif_array = split('/', $_SERVER["PHP_SELF"]);30 $dir_relatif_array = explode('/', $_SERVER["PHP_SELF"]); 31 31 $i = 0; 32 32 while($dir_relatif_array[$i] != 'plugins') -
_plugins_/spip_fckeditor/spip_fck/plugins/ImageManager/config.inc.php
r25397 r30253 19 19 //+++ Modif F. SAURET +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 20 20 //$IMConfig['base_dir'] = '/var/www/FCKeditor/images/'; 21 $dir_relatif_array = split('/', $_SERVER["PHP_SELF"]);21 $dir_relatif_array = explode('/', $_SERVER["PHP_SELF"]); 22 22 $i = 0; 23 23 $cheminSpip=""; -
_plugins_/tag-machine/inc/tag-machine.php
r15156 r30253 430 430 431 431 // exploser selon les tab 432 $tags = split("\t", substr($liste_tags,1));432 $tags = preg_split("/\t/", substr($liste_tags,1)); 433 433 434 434 // recuperer les groupes sous la forme <groupe:mot> -
_plugins_/verifcore/exec/config_verifcore.php
r5638 r30253 25 25 $fich =recuperer_page("http://zone.spip.org/trac/spip-zone/browser/_plugins_/_test_/verifcore/refcorespip191.txt?format=txt"); 26 26 if($fich){ 27 $tab_fic = split( "\n" ,"$fich") ;27 $tab_fic = preg_split( ",\n," ,"$fich") ; 28 28 29 29 foreach ( $tab_fic as $contenu ){ … … 47 47 $fich =recuperer_page("http://zone.spip.org/trac/spip-zone/browser/_plugins_/_test_/verifcore/fichier_repertoire_supprimer_depuis_svn6797.txt?format=txt"); 48 48 if($fich){ 49 $tab_fic = split( "\n" ,"$fich") ;49 $tab_fic = preg_split( ",\n," ,"$fich") ; 50 50 $com = 0 ; 51 51 foreach ( $tab_fic as $contenu ){
Note: See TracChangeset
for help on using the changeset viewer.