Changeset 6985
- Timestamp:
- Sep 21, 2010, 6:26:57 PM (14 years ago)
- Location:
- extensions/music_player
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/music_player/admin/admin.php
r3561 r6985 434 434 //$mp_msgs[] = $lang['mp_msg_admin_6']; 435 435 array_push($page['infos'], l10n('mp_msg_admin_6')); 436 }} 436 } 437 } 438 load_conf_from_db(); 437 439 438 440 $check='checked="checked"'; … … 461 463 function recursive_readdir ($dir) { 462 464 global $conf, $template; 465 463 466 $conf_lecteur = explode("," , $conf['mp_lecteur']); 464 467 $dh = opendir ($dir); // on l'ouvre 465 468 while (($file = readdir ($dh)) !== false ) { //boucle pour parcourir le repertoire 466 if ($file !== '.' && $file !== '..') { // no comment469 if ($file !== '.' && $file !== '..') { 467 470 $path =$dir.'/'.$file; // construction d'un joli chemin... 468 471 if (is_dir ($path)) { //si on tombe sur un sous-repertoire 469 //echo '<p style="font-weight: bold; border : 1pt solid #000000;">', $path, ' -> dir</p>'; // ptit style... 470 recursive_readdir ($path); // appel recursif pour lire a l'interieur de ce sous-repertoire 472 recursive_readdir ($path); 471 473 } 472 474 else 473 475 { 474 //echo $path, '<br />'; // si il s'agit d'un fichier, on affiche, tout simplement.475 476 $page = explode('.', $file); 476 477 $nb = count($page); … … 486 487 } 487 488 488 if($ext_fichier == 'conf.php') { //On ne prend que les css489 if($ext_fichier == 'conf.php') { //On ne prend que les .conf.php 489 490 $path = str_replace("/plugins/music_player", "", $path); 490 491 if ($conf_lecteur[9]==$path) -
extensions/music_player/admin/admin_edit.php
r3329 r6985 338 338 $nb = count($page); 339 339 $nom_fichier = $page[0]; 340 $file = addslashes($file);341 $nom_fichier = addslashes($nom_fichier);340 $file = utf8_encode(addslashes($file)); 341 $nom_fichier = utf8_encode(addslashes($nom_fichier)); 342 342 $query = ' 343 343 INSERT INTO '.MP_MUSIC.' … … 360 360 if(preg_match('`^music`', $music['url'])) { 361 361 $filename="./plugins/music_player/".$url; 362 $filename=utf8_decode($filename); 362 363 if (!file_exists($filename)) { 364 $music['url']=addslashes($music['url']); 363 365 pwg_query('DELETE FROM '.MP_MUSIC.' WHERE url IN (\''.$music['url'].'\')'); 364 366 //$mp_msgs[] = $lang['mp_msg_edit4'].$url; -
extensions/music_player/main.inc.php
r6887 r6985 2 2 /* 3 3 Plugin Name: music_player 4 Version: 2.1. 44 Version: 2.1.5 5 5 Description: play music / avoir de la musique 6 6 Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=162 7 7 Author: Flop25 8 Author URI: http:// flop25.free.fr8 Author URI: http://www.planete-flop.fr/ 9 9 10 10 */
Note: See TracChangeset
for help on using the changeset viewer.