You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(5) |
Oct
(26) |
Nov
(10) |
Dec
(7) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(7) |
Feb
(17) |
Mar
(25) |
Apr
(8) |
May
(33) |
Jun
(11) |
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
(68) |
Sep
(2) |
Oct
|
Nov
|
Dec
|
From: <ara...@us...> - 2006-12-21 15:41:35
|
Revision: 62 http://svn.sourceforge.net/easybox-mod/?rev=62&view=rev Author: aragornis Date: 2006-12-21 07:41:32 -0800 (Thu, 21 Dec 2006) Log Message: ----------- Petits ajustements sur la gestion de la playlist audio Modified Paths: -------------- trunk/_framework/demarrage.php trunk/_framework/framework.php trunk/module/mp3/lecteuraudio.php trunk/module/mp3/playdb.php Added Paths: ----------- trunk/_utilisateur/audiotemp/ Modified: trunk/_framework/demarrage.php =================================================================== --- trunk/_framework/demarrage.php 2006-12-17 18:14:46 UTC (rev 61) +++ trunk/_framework/demarrage.php 2006-12-21 15:41:32 UTC (rev 62) @@ -6,16 +6,17 @@ $FRAMEWORK_REP = $RACINE_REP."_framework/"; $LIBRARIES_REP = $FRAMEWORK_REP."lib/"; - $BOUTON = $FRAMEWORK_REP."bouton/"; - $GESTION = $RACINE_REP."configuration/"; - $USER = $RACINE_REP."_utilisateur/"; - $CACHE_IMAGE = $RACINE_REP."_utilisateur/cache/"; - $MODULE = $RACINE_REP."module/"; - $LECTEUR = $RACINE_REP."lecteur/"; - $IMG2FBX = $FRAMEWORK_REP."img2fbx.php?sURL="; - $EXPLORATEUR= $MODULE."_explorateur/index1.php"; - $PLAYLIST = $USER."playlist/"; - $AIDE_REP = $RACINE_REP."_framework/aide/"; + $BOUTON = $FRAMEWORK_REP."bouton/"; + $GESTION = $RACINE_REP."configuration/"; + $USER = $RACINE_REP."_utilisateur/"; + $AUDIOTEMP = $USER."audiotemp/"; + $CACHE_IMAGE = $RACINE_REP."_utilisateur/cache/"; + $MODULE = $RACINE_REP."module/"; + $LECTEUR = $RACINE_REP."lecteur/"; + $IMG2FBX = $FRAMEWORK_REP."img2fbx.php?sURL="; + $EXPLORATEUR = $MODULE."_explorateur/index1.php"; + $PLAYLIST = $USER."playlist/"; + $AIDE_REP = $RACINE_REP."_framework/aide/"; require($GESTION."verif_config.php"); @@ -54,6 +55,16 @@ case 1: list_templates(); + function RemoveDir($dir) { + if(!$dh = @opendir($dir)) return; + while (($obj = readdir($dh))) { + if($obj=='.' || $obj=='..') continue; + @unlink($dir.'/'.$obj); + } + @closedir($dh); + } + RemoveDir($AUDIOTEMP); + break; // Phase d'initialisation case 2: Modified: trunk/_framework/framework.php =================================================================== --- trunk/_framework/framework.php 2006-12-17 18:14:46 UTC (rev 61) +++ trunk/_framework/framework.php 2006-12-21 15:41:32 UTC (rev 62) @@ -29,6 +29,9 @@ $USER = $RACINE_REP."_utilisateur/"; $smarty->assign('USER',$USER); + $AUDIOTEMP = $USER."audiotemp/"; + $smarty->assign('AUDIOTEMP',$AUDIOTEMP); + $CACHE_IMAGE = $RACINE_REP."_utilisateur/cache/"; $smarty->assign('CACHE_IMAGE',$CACHE_IMAGE); Modified: trunk/module/mp3/lecteuraudio.php =================================================================== --- trunk/module/mp3/lecteuraudio.php 2006-12-17 18:14:46 UTC (rev 61) +++ trunk/module/mp3/lecteuraudio.php 2006-12-21 15:41:32 UTC (rev 62) @@ -45,7 +45,7 @@ foreach($pl as $morceau){ if($morceau[3] == $toplay){ if(array_pop(explode(".", $morceau[2]))=='m3u'){ - $supplement = '?toplaybis='.$_GET['url']; + $supplement = '?toplaybis='.urlencode(realpath($_GET['url'])); } } } Modified: trunk/module/mp3/playdb.php =================================================================== --- trunk/module/mp3/playdb.php 2006-12-17 18:14:46 UTC (rev 61) +++ trunk/module/mp3/playdb.php 2006-12-21 15:41:32 UTC (rev 62) @@ -151,11 +151,11 @@ ".utf8_encode(realpath(stripslashes($basename))); } //Cr\xE9ation de la playlist temporaire - $fp = fopen($USER.'audiotemp'.get_variable('num_playlist').'.m3u',"w+"); + $fp = fopen($AUDIOTEMP.'audiotemp'.get_variable('num_playlist').'.m3u',"w+"); fputs($fp,"#EXTM3U"); fputs($fp,$variable); fclose($fp); - play_fichier($page,$USER.'audiotemp'.get_variable('num_playlist').'.m3u',1,'mp3'); + play_fichier($page,$AUDIOTEMP.'audiotemp'.get_variable('num_playlist').'.m3u',1,'mp3'); save_variable('num_playlist', get_variable('num_playlist')+1); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2006-12-17 18:14:50
|
Revision: 61 http://svn.sourceforge.net/easybox-mod/?rev=61&view=rev Author: aragornis Date: 2006-12-17 10:14:46 -0800 (Sun, 17 Dec 2006) Log Message: ----------- Patch titou Modified Paths: -------------- trunk/_utilisateur/podcast.db trunk/module/dvd/index1.php Modified: trunk/_utilisateur/podcast.db =================================================================== (Binary files differ) Modified: trunk/module/dvd/index1.php =================================================================== --- trunk/module/dvd/index1.php 2006-12-16 22:37:12 UTC (rev 60) +++ trunk/module/dvd/index1.php 2006-12-17 18:14:46 UTC (rev 61) @@ -25,7 +25,7 @@ $DISQUES = unserialize(get_variable('disques')); $disques_dispo = array(); foreach($DISQUES as $d){ - if($d['type'] == 'Disque optique'){ + if($d['type'] == 'Disque optique' OR $d['type'] == 'Disque r\xE9seau'){ $disques_dispo[] = $d; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2006-12-15 21:57:53
|
Revision: 59 http://svn.sourceforge.net/easybox-mod/?rev=59&view=rev Author: aragornis Date: 2006-12-15 13:57:50 -0800 (Fri, 15 Dec 2006) Log Message: ----------- Si le site ne r?\195?\169pond pas, pas de maj auto Alignements des boutons dans la s?\195?\169quence de boot Modified Paths: -------------- trunk/_framework/demarrage.php trunk/skin/simple/demarrage.tpl Modified: trunk/_framework/demarrage.php =================================================================== --- trunk/_framework/demarrage.php 2006-12-15 21:13:44 UTC (rev 58) +++ trunk/_framework/demarrage.php 2006-12-15 21:57:50 UTC (rev 59) @@ -80,7 +80,59 @@ // Phase de mise \xE0 jour case 3: - get_all_maj(); + + function url_validate( $link ) + { + $url_parts = @parse_url( $link ); + + if ( empty( $url_parts["host"] ) ) return( false ); + + if ( !empty( $url_parts["path"] ) ) + { + $documentpath = $url_parts["path"]; + } + else + { + $documentpath = "/"; + } + + if ( !empty( $url_parts["query"] ) ) + { + $documentpath .= "?" . $url_parts["query"]; + } + + $host = $url_parts["host"]; + $port = $url_parts["port"]; + // Now (HTTP-)GET $documentpath at $host"; + + if (empty( $port ) ) $port = "80"; + $socket = @fsockopen( $host, $port, $errno, $errstr, 30 ); + if (!$socket) + { + return(false); + } + else + { + fwrite ($socket, "HEAD ".$documentpath." HTTP/1.0\r\nHost: $host\r\n\r\n"); + $http_response = fgets( $socket, 22 ); + + if ( ereg("200 OK", $http_response, $regs ) ) + { + return(true); + fclose( $socket ); + } else + { +// echo "HTTP-Response: $http_response<br>"; + return(false); + } + } + } + if(url_validate($ini['download']['xml'])){ + get_all_maj(); + } else{ + echo 'noooooooooooooo'; + } + require('init_version.php'); $META['refresh']= '1;url=demarrage.php?etape=4'; break; Modified: trunk/skin/simple/demarrage.tpl =================================================================== --- trunk/skin/simple/demarrage.tpl 2006-12-15 21:13:44 UTC (rev 58) +++ trunk/skin/simple/demarrage.tpl 2006-12-15 21:57:50 UTC (rev 59) @@ -10,9 +10,12 @@ <img src="{$INTERFACE_REP}boot.gif" width="527" height="209" border="0"> </td></tr> <tr><td> -<img src="{$INTERFACE_REP}{if $etape>1}done{else}while{/if}.gif" width="50" height="50" border="0"> Initilisation<br> -<img src="{$INTERFACE_REP}{if $etape>2}done{elseif $etape<2}wait{else}while{/if}.gif" width="50" height="50" border="0"> Mise \xE0 jour<br> -<img src="{$INTERFACE_REP}{if $etape>3}done{elseif $etape<3}wait{else}while{/if}{if $ask_mdp}key{/if}.gif" width="50" height="50" border="0"> Identification</td> + <table border="0" cellpadding="0" cellspacing="0"> + <tr><td width="125" align="right" valign="middle"><img src="{$INTERFACE_REP}{if $etape>1}done{else}while{/if}.gif" width="50" height="50" border="0"></td><td valign="middle"> Initilisation</td></tr> + <tr><td width="125" align="right" valign="middle"><img src="{$INTERFACE_REP}{if $etape>2}done{elseif $etape<2}wait{else}while{/if}.gif" width="50" height="50" border="0"></td><td valign="middle"> Mise \xE0 jour</td></tr> + <tr><td width="125" align="right" valign="middle"><img src="{$INTERFACE_REP}{if $etape>3}done{elseif $etape<3}wait{else}while{/if}{if $ask_mdp}key{/if}.gif" width="50" height="50" border="0"></td><td valign="middle"> Identification</td></tr> + </table> +</td> <td> {if $ask_mdp} <form action="demarrage.php" method="get"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2006-12-15 21:13:47
|
Revision: 58 http://svn.sourceforge.net/easybox-mod/?rev=58&view=rev Author: aragornis Date: 2006-12-15 13:13:44 -0800 (Fri, 15 Dec 2006) Log Message: ----------- (Re)Mise en fonction du module dvd (75%) Mises ?\195?\160 jour sur l'utilisation du tableau $_COULEUR Remise en ?\195?\169tat du module "sorties cin?\195?\169" Modified Paths: -------------- trunk/_framework/framework.php trunk/module/cinefil/index1.php trunk/module/dvd/index1.php trunk/module/dvd/playrep.php trunk/module/livescore/classement.php trunk/module/livescore/journee.php trunk/module/loto/keno.php trunk/module/messagerie/index1.php trunk/module/mp3/catalogue_audio.tpl trunk/module/seances/index1.php trunk/skin/simple/avertissement.tpl Added Paths: ----------- trunk/module/cinefil/sorties_cine.tpl trunk/module/dvd/dvd.tpl trunk/module/dvd/lecteurdvd.gif Removed Paths: ------------- trunk/skin/simple/sorties_cine.tpl Modified: trunk/_framework/framework.php =================================================================== --- trunk/_framework/framework.php 2006-12-15 13:53:02 UTC (rev 57) +++ trunk/_framework/framework.php 2006-12-15 21:13:44 UTC (rev 58) @@ -79,7 +79,7 @@ $CHAINE_REP = $THEME_REP."chaines/defaut/"; $smarty->assign('CHAINE_REP',$CHAINE_REP); - $_COULEUR = parse_ini_file($SKIN_REP.'couleur.conf'); + $_COULEUR = parse_ini_file($SKIN_REP.'couleur.conf', TRUE); //-- Framework du skin require($SKIN_REP."framework_skin.php"); Modified: trunk/module/cinefil/index1.php =================================================================== --- trunk/module/cinefil/index1.php 2006-12-15 13:53:02 UTC (rev 57) +++ trunk/module/cinefil/index1.php 2006-12-15 21:13:44 UTC (rev 58) @@ -25,7 +25,8 @@ $contenu_html .= trim(fgets($page, 4096)); } -$ereg = 'width="120" valign="top"><a class="link1" href="fichefilm_gen_cfilm=(.{1,15}).html"><img src="(.{1,150})" border="0" (.{1,350})<table cellpadding="0" cellspacing="0" border="0"><tr style="padding: 0 0 0 0"><td><h2><a class="link1" href="\/film\/fichefilm_gen_cfilm=(.{1,15}).html">(.{1,50})<\/a><\/h2> <h4>(.{0,50})<\/h4><\/td><\/tr><tr style="padding: 5 0 0 0"><td><h5>(.{1,70})<\/h5><\/td><\/tr>(.{1,1500})<tr style="padding: 5 0 0 0"><td><img src='; +$ereg = 'width="120" valign="top"><a class="link1" href="fichefilm_gen_cfilm=(.{1,15}).html"><img src="(.{1,150})" border="0" (.{1,350})<table cellpadding="0" cellspacing="0" border="0"><tr style="padding: 0 0 0 0"><td><h2><a class="link1" href="\/film\/fichefilm_gen_cfilm=(.{1,15}).html">(.{1,50})<\/a><\/h2>(.{0,50})<\/td><\/tr><tr style="padding: 5 0 0 0;"><td><h5>(.{0,70})<\/h5><\/td><\/tr><tr style="padding: 5 0 0 0;"><td><h4>'; + preg_match_all("/$ereg/s", $contenu_html, $valeur); $SORTIES=array(); Added: trunk/module/cinefil/sorties_cine.tpl =================================================================== --- trunk/module/cinefil/sorties_cine.tpl (rev 0) +++ trunk/module/cinefil/sorties_cine.tpl 2006-12-15 21:13:44 UTC (rev 58) @@ -0,0 +1,47 @@ + {section name=sorties loop=$SORTIES max=8 start=$MIN} + {cycle name=place assign=place print=false values="3,2,1,0"} + {if $smarty.section.sorties.first} + {if $MIN!=0} + {assign var=temp value=$MIN-8} + {attribbouton touche="green" lien="index1.php?week=$week&start=$temp"} + <a href="index1.php?week={$week}&start={$temp}"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> Pr\xE9c\xE9dent</a> + {/if} + + <table border="0" cellpadding="0" cellspacing="0" width="500" height="360" align="center"><tr> + {/if} + + <td width="125" height="180"><a href="{$MODULE}films/fichefilm.php?film={$SORTIES[sorties].nom|urlencode}&idfilm={$SORTIES[sorties].index}"><table border="0" cellpadding="0" cellspacing="0" width="125" height="180" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="130"><td width="125" height="120" valign="middle" align="center"><img width="90" height="120" border="0" src="{$IMG2FBX}{$SORTIES[sorties].image|urlencode}&new_width=90&new_height=120&cache=1"></td></tr><tr height="50"><td width="125" height="50" valign="middle" align=center><font size="1">{$SORTIES[sorties].nom|truncate:30:''}</font><br><font size="1">{$SORTIES[sorties].comment}</font></td></tr></table></a></td> + + {if $smarty.section.sorties.iteration is div by 4 AND NOT $smarty.section.sorties.last} + </tr><tr> + {/if} + + {if $smarty.section.sorties.last} + {if $place >= 3} + <td> </td> + {/if} + {if $place >= 2} + <td> </td> + {/if} + {if $place >= 1} + <td> </td> + {/if} + + </tr> + </table> + {if $MIN+$smarty.section.sorties.total<count($SORTIES)} + {assign var=temp value=$MIN+8} + {attribbouton touche="blue" lien="index1.php?week=$week&start=$temp"} + <a href="index1.php?week={$week}&start={$temp}"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> Suivant</a> + {/if} + + {/if} + + {/section} + +{assign var=temp value=$week-1} +<br><br> <a href="index1.php?week={$temp}">Semaine pr\xE9c\xE9dente</a> +{if $week!=0} +{assign var=temp value=$week+1} + - <a href="index1.php?week={$week+1}">Semaine suivante</a> +{/if} Added: trunk/module/dvd/dvd.tpl =================================================================== --- trunk/module/dvd/dvd.tpl (rev 0) +++ trunk/module/dvd/dvd.tpl 2006-12-15 21:13:44 UTC (rev 58) @@ -0,0 +1,33 @@ +{section name=dop loop=$disques_dispo} +{cycle name=place assign=place print=false values="4,3,2,1,0"} + {if $smarty.section.dop.first} + <table border="0" cellpadding="0" cellspacing="0" width="500" height="436" align="center"><tr> + {/if} + <td width="100" height="130"><a href="playrep.php?toplay={$disques_dispo[dop].path|urlencode}&type=playrep"><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align="center"><img border=0 width="64" height="64" src="lecteurdvd.gif"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><font size="1">{$disques_dispo[dop].nom} ({$disques_dispo[dop].lettre}:)</font></td></tr></table></a></td> + + {if $smarty.section.dop.iteration is div by 5 AND NOT $smarty.section.dop.last} + </tr><tr> + {/if} + + {if $smarty.section.dop.last} + {if $place >= 4} + <td> </td> + {/if} + {if $place >= 3} + <td> </td> + {/if} + {if $place >= 2} + <td> </td> + {/if} + {if $place >= 1} + <td> </td> + {/if} + </tr> + + </table> + {/if} +{sectionelse} + +Aucun lecteur DVD n'est disponible. + +{/section} Modified: trunk/module/dvd/index1.php =================================================================== --- trunk/module/dvd/index1.php 2006-12-15 13:53:02 UTC (rev 57) +++ trunk/module/dvd/index1.php 2006-12-15 21:13:44 UTC (rev 58) @@ -10,12 +10,30 @@ $rep_default = $ini[explorateur][dvd]; } -$play_rep = '1'; -$play_rep_txt = "Lire le DVD en [lecteur]"; -$cache_tous_fichier = '1'; +$smarty->assign('TITRE','Choisissez un lecteur DVD'); -$smarty->assign('TITRE','Lecture DVD'); +$status = get_variable('statutdvd'); -include($EXPLORATEUR); +if($status == 'explorateur'){ + $play_rep = '1'; + $play_rep_txt = "Lire le DVD en [lecteur]"; + $cache_tous_fichier = '1'; + + include($EXPLORATEUR); +}else{ + $DISQUES = unserialize(get_variable('disques')); + $disques_dispo = array(); + foreach($DISQUES as $d){ + if($d['type'] == 'Disque optique'){ + $disques_dispo[] = $d; + } + } + + $smarty->assign('disques_dispo',$disques_dispo); + $smarty->assign('CONTENT',$smarty->fetch('dvd.tpl')); + $smarty->display('interface.tpl'); + +} + ?> Added: trunk/module/dvd/lecteurdvd.gif =================================================================== (Binary files differ) Property changes on: trunk/module/dvd/lecteurdvd.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/module/dvd/playrep.php =================================================================== --- trunk/module/dvd/playrep.php 2006-12-15 13:53:02 UTC (rev 57) +++ trunk/module/dvd/playrep.php 2006-12-15 21:13:44 UTC (rev 58) @@ -13,8 +13,8 @@ if(!isset($_GET['mode'])){ $basename = stripslashes(urldecode($_REQUEST['toplay'])); - $pisteaudio = $ini[multimedia][sortiefreebox]; - $decallage = $ini[multimedia][compensation]; + $pisteaudio = $ini['multimedia']['sortiefreebox']; + $decallage = $ini['multimedia']['compensation']; if($pisteaudio=='TV') { // $META['aud'] = '69(en,mp2)'; @@ -37,25 +37,29 @@ $basename = 'dvdsimple://'.$basename; play_fichier($play,$basename,0,'dvd'); $META['refresh'] = '2;url=playrep.php?mode=1'; + + $affich = 'Veuillez patienter pendant la construction des menus...'; }elseif($_GET['mode']==1 && is_array($title)){ - $affich = ''; - $titre_a = 'Choisissez le titre \xE0 jouer'; + $affich = '<table border="0" align="center" cellpadding="0" cellspacing="0"><tr><td align="center"><br>'; + $titre_a = 'Choisissez le titre auquel le DVD doit commencer'; foreach($title as $key => $titre){ - if(($key % 15) == 0 && $key != 0 ){ + if(($key % 10) == 0 && $key != 0 ){ $affich .= '</td><td align="center"><br>'; } - $affich .= '<a href="playrep.php?mode=2&titre='.$key.'"><table height="20" width="100" border="0" cellpadding="0" cellspacing="0" bgcolor="'.$_COULEUR[FOND2].'" abgcolor="'.$_COULEUR[TABLE_SELECTED].'"><tr><td align="center"><img src="'.$INTERFACE_REP.'puce.gif" width="13" height="13">'.$titre[0].'</td></tr></table></a><br>'; + $affich .= '<a href="playrep.php?mode=2&titre='.$key.'"><table height="20" width="100" border="0" cellpadding="0" cellspacing="0" bgcolor="'.$_COULEUR['COULEUR_FOND2'].'" abgcolor="'.$_COULEUR['COULEUR_TABLE_SELECTED'].'"><tr><td align="center"><img src="'.$INTERFACE_REP.'puce.gif" border="0" width="13" height="13">'.$titre[0].'</td></tr></table></a><br>'; } + $affich .= '</td></tr></table>'; + }elseif(($_GET['mode']==2 || !is_array($title)) && is_array($chapitre)){ - $affich = ''; - $titre_a = 'Choisissez le chapitre \xE0 jouer'; + $affich = '<table border="0" align="center" cellpadding="0" cellspacing="0"><tr><td align="center"><br>'; + $titre_a = 'Choisissez le chapitre auquel le DVD doit commencer'; if(isset($_GET['titre'])){ @readfile('http://localhost:8081/lecteur/modif-config.html?type=2&type2=4&var=title&value='.$_GET['titre']); @@ -63,23 +67,28 @@ foreach($chapitre as $key=> $chap){ - if(($key % 15) == 0 && $key != 0 ){ + if(($key % 10) == 0 && $key != 0 ){ $affich .= '</td><td align="center"><br>'; } - $affich .= '<a href="playrep.php?mode=3&titre='.$key.'"><table height="20" width="100" border="0" cellpadding="0" cellspacing="0" bgcolor="'.$_COULEUR[FOND2].'" abgcolor="'.$_COULEUR[TABLE_SELECTED].'"><tr><td align="center"><img src="'.$INTERFACE_REP.'puce.gif" width="13" height="13">'.$chap[0].'</td></tr></table></a><br>'; + $affich .= '<a href="playrep.php?mode=3&titre='.$key.'"><table height="20" width="100" border="0" cellpadding="0" cellspacing="0" bgcolor="'.$_COULEUR['COULEUR_FOND2'].'" abgcolor="'.$_COULEUR['COULEUR_TABLE_SELECTED'].'"><tr><td align="center"><img src="'.$INTERFACE_REP.'puce.gif" border="0" width="13" height="13">'.$chap[0].'</td></tr></table></a><br>'; } + $affich .= '</td></tr></table>'; + }else{ if(isset($_GET['titre'])){ @readfile('http://localhost:8081/lecteur/modif-config.html?type=2&type2=3&var=title&value='.$_GET['titre']); } + + $affich = 'Lecture...'; + $META['refresh'] = '0;url='.$MODULE.'films/lecture.php'; } -$smarty->assign('affich',$affich); -$smarty->assign('titre',$titre_a); -$smarty->display('menu_dvd.tpl'); +$smarty->assign('TITRE',$titre_a); +$smarty->assign('AVERTISSEMENT',$affich); +$smarty->display('avertissement.tpl'); ?> Modified: trunk/module/livescore/classement.php =================================================================== --- trunk/module/livescore/classement.php 2006-12-15 13:53:02 UTC (rev 57) +++ trunk/module/livescore/classement.php 2006-12-15 21:13:44 UTC (rev 58) @@ -13,7 +13,7 @@ } ?> <a href=journee.php>R\xE9sultats de la derni\xE8re journ\xE9e de Ligue 1</a><br> <br \> -<table border="0" cellpadding="0" cellspacing="0" width="499" height="436"><tr bgcolor="<?= $_COULEUR[INTERFACE1]; ?>"> +<table border="0" cellpadding="0" cellspacing="0" width="499" height="436"><tr bgcolor="<?= $_COULEUR['COULEUR_INTERFACE1']; ?>"> <td width="20" align=center>Pl</td> <td width="219" align=left> Equipe</td> <td width="30" align=center>Pts</td> @@ -53,9 +53,9 @@ { $place = $key+1; if ($key%2==0){ - $bg1= $_COULEUR[INTERFACE1]; + $bg1= $_COULEUR['COULEUR_INTERFACE1']; }else{ - $bg1= $_COULEUR[INTERFACE2]; + $bg1= $_COULEUR['COULEUR_INTERFACE2']; } echo '<tr bgcolor='.$bg1.'> <td align=center>'.$place.'</td> Modified: trunk/module/livescore/journee.php =================================================================== --- trunk/module/livescore/journee.php 2006-12-15 13:53:02 UTC (rev 57) +++ trunk/module/livescore/journee.php 2006-12-15 21:13:44 UTC (rev 58) @@ -29,7 +29,7 @@ ?> <a href=classement.php>Classement de la Ligue 1</a><br> <br \> -<table border="0" cellpadding="0" cellspacing="0" width="499" height="436"><tr bgcolor="<?= $_COULEUR[INTERFACE1]; ?>"> +<table border="0" cellpadding="0" cellspacing="0" width="499" height="436"><tr bgcolor="<?= $_COULEUR['COULEUR_INTERFACE1']; ?>"> <td align=center width=45%>Domicile</td> <td align=center width=10%>Score</td> <td align=center width=45%>Ext\xE9rieur</td> @@ -41,9 +41,9 @@ foreach($valeur[2] as $key => $value) { if ($key%2==0){ - $bg1= $_COULEUR[INTERFACE1]; + $bg1= $_COULEUR['COULEUR_INTERFACE1']; }else{ - $bg1= $_COULEUR[INTERFACE2]; + $bg1= $_COULEUR['COULEUR_INTERFACE2']; } $score = $valeur[3][$key]; echo '<tr bgcolor='.$bg1.'><td align=center>'.ucfirst(strtolower($value)).'</td><td align=center>'.$score.'</td><td align=center>'.ucfirst(strtolower($valeur[5][$key])).'</td></tr>'; Modified: trunk/module/loto/keno.php =================================================================== --- trunk/module/loto/keno.php 2006-12-15 13:53:02 UTC (rev 57) +++ trunk/module/loto/keno.php 2006-12-15 21:13:44 UTC (rev 58) @@ -81,8 +81,8 @@ $newLigne = ereg_replace('Rapport par grille gagnante pour 0,3 €', "0,3\x80 la grille" ,$newLigne); $newLigne = ereg_replace('Bons num\xE9ros', "Neum\xE9ros" ,$newLigne); $newLigne = ereg_replace('complémentaire', "compl." ,$newLigne); - $newLigne = ereg_replace('#3E107C', $_COULEUR[FOND] ,$newLigne); - $newLigne = ereg_replace('#FBD1CC', $_COULEUR[FOND] ,$newLigne); + $newLigne = ereg_replace('#3E107C', $_COULEUR['COULEUR_FOND'] ,$newLigne); + $newLigne = ereg_replace('#FBD1CC', $_COULEUR['COULEUR_FOND'] ,$newLigne); $newLigne = ereg_replace('<table border="0" cellspacing="1" cellpadding="1" class="tabgain" width="408">', '<table border="0" cellspacing="1" cellpadding="1" width="100%">' ,$newLigne); Modified: trunk/module/messagerie/index1.php =================================================================== --- trunk/module/messagerie/index1.php 2006-12-15 13:53:02 UTC (rev 57) +++ trunk/module/messagerie/index1.php 2006-12-15 21:13:44 UTC (rev 58) @@ -47,9 +47,9 @@ foreach($valeur[1] as $key => $val){ if ($key%2==0){ - $bg1= $_COULEUR[INTERFACE1]; + $bg1= $_COULEUR['COULEUR_INTERFACE1']; }else{ - $bg1= $_COULEUR[INTERFACE2]; + $bg1= $_COULEUR['COULEUR_INTERFACE2']; } echo '<tr><td bgcolor="'.$bg1.'"><a href="index1.php?f='.urlencode('http://adsl.free.fr/admin/tel/'.$valeur[4][$key]).'">'.$valeur[1][$key].' '.$valeur[2][$key].' '.$valeur[3][$key].'</a></td><td width="16" bgcolor="'.$bg1.'"><a href="index1.php?f='.urlencode('http://adsl.free.fr/admin/tel/'.$valeur[5][$key]).'"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="#0000003f" abgcolor="'.$_COULEUR[ALINK].'"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="'.$INTERFACE_REP.'delete.gif" border="0" width="20" height="20"></td></tr></table></a></td></tr>'; Modified: trunk/module/mp3/catalogue_audio.tpl =================================================================== --- trunk/module/mp3/catalogue_audio.tpl 2006-12-15 13:53:02 UTC (rev 57) +++ trunk/module/mp3/catalogue_audio.tpl 2006-12-15 21:13:44 UTC (rev 58) @@ -1,15 +1,15 @@ <TABLE border="0" cellpadding="0" cellspacing="0" width="480"> <TR bgcolor={#COULEUR_INTERFACE1#}> <TD align=center><A hRef="lecteuraudio.php?mode=bib&t=ar&wf={$wherefield}&wl={$wherelike|urlencode}"><B><font size=1 color=#0000003f>Artiste</font></B></A></TD> - <TD align=center width="10"><font color='.$_COULEUR[FOND].'>/</TD> + <TD align=center width="10"><font color="{#COULEUR_FOND#}">/</TD> <TD align=center width="80"><A hRef="lecteuraudio.php?mode=bib&t=ch&wf={$wherefield}&wl={$wherelike|urlencode}"><B><font size=1 color=#0000003f>Chanson</font></B></A></TD> - <TD align=center width="10"><font color='.$_COULEUR[FOND].'>/</TD> + <TD align=center width="10"><font color="{#COULEUR_FOND#}">/</TD> <TD align=center><A hRef="lecteuraudio.php?mode=bib&t=al&wf={$wherefield}&wl={$wherelike|urlencode}"><B><font size=1 color=#0000003f>Album</font></B></A></TD> - <TD align=center width="10"><font color='.$_COULEUR[FOND].'>/</TD> + <TD align=center width="10"><font color="{#COULEUR_FOND#}">/</TD> <TD align=center><A hRef="lecteuraudio.php?mode=bib&t=an&wf={$wherefield}&wl={$wherelike|urlencode}"><B><font size=1 color=#0000003f>Ann\xE9e</font></B></A></TD> - <TD align=center width="10"><font color='.$_COULEUR[FOND].'>/</TD> + <TD align=center width="10"><font color="{#COULEUR_FOND#}">/</TD> <TD align=center><A hRef="lecteuraudio.php?mode=bib&t=ge&wf={$wherefield}&wl={$wherelike|urlencode}"><B><font size=1 color=#0000003f>Genre</font></B></A></TD> - <TD align=center width="10"><font color='.$_COULEUR[FOND].'>/</TD> + <TD align=center width="10"><font color="{#COULEUR_FOND#}">/</TD> <TD align=center><A hRef="lecteuraudio.php?mode=bib&t={$type}&l={$lettre}"><B><font size=1 color=#0000003f>Tout</font></B></A></TD> </TR> </TABLE> Modified: trunk/module/seances/index1.php =================================================================== --- trunk/module/seances/index1.php 2006-12-15 13:53:02 UTC (rev 57) +++ trunk/module/seances/index1.php 2006-12-15 21:13:44 UTC (rev 58) @@ -5,8 +5,8 @@ $LINK['red']= $MODULE.'_menu/menu.php?cat=9'; -$CONTENT = '<font size=4>Veuillez tapper le code postal de votre ville</font><br> <br> <br>'; - +$smarty->assign('TITRE','Veuillez tapper le code postal de votre ville'); + if ($_GET['error']=='noville'){ $CONTENT .= "<u>Aucune ville trouv\xE9e</u><br> <br>"; }elseif($_GET['error']=='nosalle'){ Modified: trunk/skin/simple/avertissement.tpl =================================================================== --- trunk/skin/simple/avertissement.tpl 2006-12-15 13:53:02 UTC (rev 57) +++ trunk/skin/simple/avertissement.tpl 2006-12-15 21:13:44 UTC (rev 58) @@ -10,6 +10,7 @@ {if NOT $no_icone}<td align="center" width="80" height="80"> <img src="{$INTERFACE_REP}info.gif" border="0" width="80" height="80"> </td>{/if}<td align="center" valign="middle" width="460"> + {if $TITRE!=''}<font size=4>{$TITRE}</font><br> <br> <br>{/if} {eval var=$AVERTISSEMENT} </td> </tr></table> Deleted: trunk/skin/simple/sorties_cine.tpl =================================================================== --- trunk/skin/simple/sorties_cine.tpl 2006-12-15 13:53:02 UTC (rev 57) +++ trunk/skin/simple/sorties_cine.tpl 2006-12-15 21:13:44 UTC (rev 58) @@ -1,47 +0,0 @@ - {section name=sorties loop=$SORTIES max=8 start=$MIN} - {cycle name=place assign=place print=false values="3,2,1,0"} - {if $smarty.section.sorties.first} - {if $MIN!=0} - {assign var=temp value=$MIN-8} - {attribbouton touche="green" lien="index1.php?week=$week&start=$temp"} - <a href="index1.php?week={$week}&start={$temp}"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> Pr\xE9c\xE9dent</a> - {/if} - - <table border="0" cellpadding="0" cellspacing="0" width="500" height="360" align="center"><tr> - {/if} - - <td width="125" height="180"><a href="{$MODULE}films/fichefilm.php?film={$SORTIES[sorties].nom|urlencode}&idfilm={$SORTIES[sorties].index}"><table border="0" cellpadding="0" cellspacing="0" width="125" height="180" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="130"><td width="125" height="120" valign="middle" align="center"><img width="90" height="120" border="0" src="{$IMG2FBX}{$SORTIES[sorties].image|urlencode}&new_width=90&new_height=120&cache=1"></td></tr><tr height="50"><td width="125" height="50" valign="middle" align=center><font size="1">{$SORTIES[sorties].nom|truncate:30:''}</font><br><font size="1">{$SORTIES[sorties].comment}</font></td></tr></table></a></td> - - {if $smarty.section.sorties.iteration is div by 4 AND NOT $smarty.section.sorties.last} - </tr><tr> - {/if} - - {if $smarty.section.sorties.last} - {if $place >= 3} - <td> </td> - {/if} - {if $place >= 2} - <td> </td> - {/if} - {if $place >= 1} - <td> </td> - {/if} - - </tr> - </table> - {if $MIN+$smarty.section.sorties.total<count($SORTIES)} - {assign var=temp value=$MIN+8} - {attribbouton touche="blue" lien="index1.php?week=$week&start=$temp"} - <a href="index1.php?week={$week}&start={$temp}"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> Suivant</a> - {/if} - - {/if} - - {/section} - -{assign var=temp value=$week-1} -<br><br> <a href="index1.php?week={$temp}">Semaine pr\xE9c\xE9dente</a> -{if $week!=0} -{assign var=temp value=$week+1} - - <a href="index1.php?week={$week+1}">Semaine suivante</a> -{/if} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2006-12-03 14:06:16
|
Revision: 56 http://svn.sourceforge.net/easybox-mod/?rev=56&view=rev Author: aragornis Date: 2006-12-03 06:06:07 -0800 (Sun, 03 Dec 2006) Log Message: ----------- Modified Paths: -------------- trunk/_utilisateur/modules.db trunk/module/modules/modules.tpl Modified: trunk/_utilisateur/modules.db =================================================================== (Binary files differ) Modified: trunk/module/modules/modules.tpl =================================================================== --- trunk/module/modules/modules.tpl 2006-12-03 08:32:47 UTC (rev 55) +++ trunk/module/modules/modules.tpl 2006-12-03 14:06:07 UTC (rev 56) @@ -1,12 +1,12 @@ {if $action=="mod" OR $action=="skin"} {section name=mod loop=$MOD} {if $smarty.section.mod.first} - <table width="450" border="0" cellspacing="0" cellpadding="0"> + <table width="500" border="0" cellspacing="0" cellpadding="0"> <tr> <td><font size=2><b>Nom</b></font></td> - <td width="50"><font size=2><b>Version</b></font></td> + <td><font size=2><b>Version</b></font></td> <td><font size=2><b>Description</b></font></td> - <td><font size=2><b>D\xE9sinstaller</b></font></td> + <td><font size=2><b>Sup.</b></font></td> </tr> {/if} {cycle name=color assign=COLOR print=false values="`$smarty.config.COULEUR_INTERFACE1`,`$smarty.config.COULEUR_INTERFACE2`"} @@ -29,13 +29,13 @@ {elseif $action=="newmod" OR $action=="newskin"} {section name=mod loop=$MOD} {if $smarty.section.mod.first} - <table width="450" border="0" cellspacing="0" cellpadding="0"> + <table width="500" border="0" cellspacing="0" cellpadding="0"> <tr> <td><font size=2><b>Nom</b></font></td> - <td width="50"><font size=2><b>Version</b></font></td> + <td><font size=2><b>Version</b></font></td> <td><font size=2><b>Auteur</b></font></td> <td><font size=2><b>Description</b></font></td> - <td><font size=2><b>Installer</b></font></td> + <td><font size=2><b>Ins.</b></font></td> </tr> {/if} {cycle name=color assign=COLOR print=false values="`$smarty.config.COULEUR_INTERFACE1`,`$smarty.config.COULEUR_INTERFACE2`"} @@ -44,7 +44,7 @@ <td>{$MOD[mod].version}</td> <td>{$MOD[mod].auteur}</td> <td>{$MOD[mod].description}</td> - <td><a href="index1.php?install{$action}={$MOD[mod].nom|urlencode}&action={$action}">Installer</a></td> + <td><a href="index1.php?install{$action}={$MOD[mod].nom|urlencode}&action={$action}">Ins.</a></td> </tr> {if $smarty.section.mod.last}</table>{/if} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2006-12-03 08:32:50
|
Revision: 55 http://svn.sourceforge.net/easybox-mod/?rev=55&view=rev Author: aragornis Date: 2006-12-03 00:32:47 -0800 (Sun, 03 Dec 2006) Log Message: ----------- Suppression des espaces dans les chemins des dossiers module Modified Paths: -------------- trunk/_framework/dwl.php trunk/_utilisateur/modules.db trunk/module/modules/index1.php trunk/module/reseaufree/province.png Modified: trunk/_framework/dwl.php =================================================================== --- trunk/_framework/dwl.php 2006-12-01 21:40:22 UTC (rev 54) +++ trunk/_framework/dwl.php 2006-12-03 08:32:47 UTC (rev 55) @@ -29,11 +29,11 @@ $txt_dwl = "T\xE9l\xE9chargement de la skin termin\xE9e."; $nom = ''; }elseif($dwl == "Module"){ - $plus = 'module/'.strtolower(supprime_accents($nom)); + $plus = 'module/'.strtolower(str_replace(' ','',supprime_accents($nom))); if(module_exists($nom)){ sup_module(get_id_of_module($nom)); } - add_module($nom, strtolower(supprime_accents($nom)).'/', 'index1.php', '1', '1', '1', '1', '1', $version, $description, 'Module', 'Alone', get_id_of_categorie($categorie)); + add_module($nom, strtolower(str_replace(' ','',supprime_accents($nom))).'/', 'index1.php', '1', '1', '1', '1', '1', $version, $description, 'Module', 'Alone', get_id_of_categorie($categorie)); $txt_dwl = "T\xE9l\xE9chargement du module."; }else{ $plus = ''; Modified: trunk/_utilisateur/modules.db =================================================================== (Binary files differ) Modified: trunk/module/modules/index1.php =================================================================== --- trunk/module/modules/index1.php 2006-12-01 21:40:22 UTC (rev 54) +++ trunk/module/modules/index1.php 2006-12-03 08:32:47 UTC (rev 55) @@ -22,8 +22,8 @@ foreach($xml3->element as $element){ if(utf8_decode($element->nom)==urldecode($_GET['installnewmod'])){ - download_file($ini['download']['patch'].utf8_decode($element->fichier), $RACINE_REP.'module/'.strtolower(supprime_accents(utf8_decode($element->nom))).'/', $element->nom); - add_module(utf8_decode($element->nom), strtolower(supprime_accents(utf8_decode($element->nom))).'/', 'index1.php', '1', '1', '1', '1', '1', utf8_decode($element->version), utf8_decode($element->description), 'Module', 'Alone', get_id_of_categorie(utf8_decode($element->cat))); + download_file($ini['download']['patch'].utf8_decode($element->fichier), $RACINE_REP.'module/'.strtolower(str_replace(' ','',supprime_accents(utf8_decode($element->nom)))).'/', $element->nom); + add_module(utf8_decode($element->nom), strtolower(str_replace(' ','',supprime_accents(utf8_decode($element->nom)))).'/', 'index1.php', '1', '1', '1', '1', '1', utf8_decode($element->version), utf8_decode($element->description), 'Module', 'Alone', get_id_of_categorie(utf8_decode($element->cat))); } //-- R\xE9initialise la liste des modules get_module_list(); Modified: trunk/module/reseaufree/province.png =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2006-12-01 21:40:25
|
Revision: 54 http://svn.sourceforge.net/easybox-mod/?rev=54&view=rev Author: aragornis Date: 2006-12-01 13:40:22 -0800 (Fri, 01 Dec 2006) Log Message: ----------- Modif sur RC1 pour l'ajout de modules (problemes de caract?\195?\168res etc...) Le fichier icone.gif de chaque module est plac?\195?\169 dans le dossier du th?\195?\168me L'ajout de fichiers ?\195?\160 la playlist audio est beaucoup plus fonctionnelle, la chanson en cours continuant ?\195?\160 etre jou?\195?\169e... Modified Paths: -------------- trunk/_framework/dwl.php trunk/_framework/fonctions_partagees.inc.php trunk/_utilisateur/audiotemp.m3u trunk/_utilisateur/modules.db trunk/http-vlc/module/mp3/lecteuraudio.html trunk/module/modules/index1.php trunk/module/mp3/lecteuraudio.php trunk/module/mp3/playlist_audio.tpl trunk/version.html Added Paths: ----------- trunk/module/horoscope/a.gif trunk/module/horoscope/b.gif Modified: trunk/_framework/dwl.php =================================================================== --- trunk/_framework/dwl.php 2006-11-27 19:23:32 UTC (rev 53) +++ trunk/_framework/dwl.php 2006-12-01 21:40:22 UTC (rev 54) @@ -21,27 +21,29 @@ if($liens){ if ($dwl== "Skin") { - $plus = 'skin/'.$nom; + $plus = 'skin/'.strtolower(supprime_accents($nom)); if(module_exists($nom)){ sup_module(get_id_of_module($nom)); } add_module($nom, $nom.'/', '', '', '', '', '', '', $version, $description, 'Skin', 'Alone', ''); $txt_dwl = "T\xE9l\xE9chargement de la skin termin\xE9e."; + $nom = ''; }elseif($dwl == "Module"){ - $plus = 'module/'.$nom; + $plus = 'module/'.strtolower(supprime_accents($nom)); if(module_exists($nom)){ sup_module(get_id_of_module($nom)); } - add_module($nom, $nom.'/', 'index1.php', '1', '1', '1', '1', '1', $version, $description, 'Module', 'Alone', get_id_of_categorie($categorie)); + add_module($nom, strtolower(supprime_accents($nom)).'/', 'index1.php', '1', '1', '1', '1', '1', $version, $description, 'Module', 'Alone', get_id_of_categorie($categorie)); $txt_dwl = "T\xE9l\xE9chargement du module."; }else{ $plus = ''; $txt_dwl = "T\xE9l\xE9chargement du patch termin\xE9."; change_version('Easybox', $version); + $nom = ''; } ///////// T\xE9l\xE9chargement directe pour les skins - download_file($liens, $RACINE_REP.$plus); + download_file($liens, $RACINE_REP.$plus, $nom); echo "<center>"; echo $txt_dwl; Modified: trunk/_framework/fonctions_partagees.inc.php =================================================================== --- trunk/_framework/fonctions_partagees.inc.php 2006-11-27 19:23:32 UTC (rev 53) +++ trunk/_framework/fonctions_partagees.inc.php 2006-12-01 21:40:22 UTC (rev 54) @@ -257,10 +257,10 @@ switch($module->type){ case 'Skin': - $dir = 'skin/'.$module->nom; + $dir = 'skin/'.$module->repertoire; break; case 'Module': - $dir = 'module/'.$module->nom; + $dir = 'module/'.$module->repertoire; break; } @rmdirr($RACINE_REP.$dir); @@ -413,7 +413,7 @@ sqlite_close($db); } -function download_file($file, $dest_dir){ +function download_file($file, $dest_dir, $name=''){ // on supprime le fichier temp.zip si il existe deja if (file_exists('temp.zip')) { @@ -445,6 +445,11 @@ if ($archive->extract(PCLZIP_OPT_ADD_PATH, $dest_dir) == 0) { die("Erreur : ".$archive->errorInfo(true)); } + + if (file_exists(realpath($dest_dir).'/icone.gif')){ + copy($ICONE_REP.'/icone.gif', $ICONE_REP.str_replace(array('>',' !',' ','\xE9','\xEE','\xF4'),array('','','','e','i','o'),$name).'.gif'); + } + //// On supprime le fichier temporaire unlink("temp.zip"); } Modified: trunk/_utilisateur/audiotemp.m3u =================================================================== --- trunk/_utilisateur/audiotemp.m3u 2006-11-27 19:23:32 UTC (rev 53) +++ trunk/_utilisateur/audiotemp.m3u 2006-12-01 21:40:22 UTC (rev 54) @@ -1,2 +1,26 @@ -#EXTM3U - d:\Ma musique\Kill Bill Vol. 1 - Soundtrack\Kill Bill Vol. 1 Soundtrack - Al Hirt - 08 - Green Hornet.mp3 \ No newline at end of file +#EXTM3U + d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 01 - Vivement La Fin.mp3 + d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 02 - Plateau Tele.mp3 + d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 03 - Mathilde.mp3 + d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 04 - Cadaques.mp3 + d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 05 - Un Contrat Merveilleux.mp3 + d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 06 - Calculateurs.mp3 + d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 07 - Le Petit Chef.mp3 + d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 08 - Un Marriage T'reggae.mp3 + d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 09 - Le Manege (Live).mp3 + d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 10 - Tu T'amuses Quand (Live).mp3 + d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 11 - Besac (Live).mp3 + d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 12 - Vivement La Fin (Version Plage).mp3 + d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 01 - Saint'nitouche.mp3 + d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 02 - Tête En L'air.mp3 + d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 03 - La Méthode Couette.mp3 + d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 04 - Indélébile.mp3 + d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 05 - Rentrée Des Classes.mp3 + d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 06 - Sur Place Ou À Emporter.mp3 + d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 07 - La Dame Aux Camel Lights.mp3 + d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 08 - Casanova Ou Quasimodo.mp3 + d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 09 - Hypocondriaque.mp3 + d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 10 - Noctambule.mp3 + d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 11 - Rien Qu'un Été.mp3 + d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 12 - Petite Peine.mp3 + d:\Ma musique\fernando.mp3 \ No newline at end of file Modified: trunk/_utilisateur/modules.db =================================================================== (Binary files differ) Modified: trunk/http-vlc/module/mp3/lecteuraudio.html =================================================================== --- trunk/http-vlc/module/mp3/lecteuraudio.html 2006-11-27 19:23:32 UTC (rev 53) +++ trunk/http-vlc/module/mp3/lecteuraudio.html 2006-12-01 21:40:22 UTC (rev 54) @@ -1,64 +1,64 @@ - -<vlc id="rpn" param1="stream_length_H stream_length 3600 / store" /> -<vlc id="rpn" param1="stream_length_M stream_length 3600 % 60 / store" /> -<vlc id="rpn" param1="stream_length_S stream_length 60 % store" /> - -<vlc id="rpn" param1="stream_time_H stream_time 3600 / store" /> -<vlc id="rpn" param1="stream_time_M stream_time 3600 % 60 / store" /> -<vlc id="rpn" param1="stream_time_S stream_time 60 % store" /> - -<vlc id="rpn" param1="next 1 store" /> -<vlc id="rpn" param1="nr_nodes 0 store" /> -<vlc id="rpn" param1="nr_items 0 store" /> -<vlc id="foreach" param1="pl" param2="playlist" /> - <vlc id="if" param1="pl.type value 'Node' strcmp" /> - - - if(in_array(strtolower(substr("<vlc id="value" param1="pl.uri"; />",strrpos("<vlc id="value" param1="pl.uri"; />",'.'))),$extv) OR (eregi("://","<vlc id="value" param1="pl.uri"; />") AND "<vlc id="if" param1="pl.current" />1<vlc id="end" />" == 1)){ - $pl[]= array(extract_name('<vlc id="value" param1="pl.name value addslashes"; />'),"<vlc id="if" param1="pl.current" />1<vlc id="else" />0<vlc id="end" />",'<vlc id="value" param1="pl.uri value addslashes" />', "<vlc id="value" param1="pl.index" />"); - <vlc id="if" param1="pl.current" /> - $urlcourante = '<vlc id="value" param1="pl.uri value addslashes" />'; - $nomcourant = extract_name('<vlc id="value" param1="pl.name value addslashes"; />'); - <vlc id="end" /> - } - <vlc id="rpn" param1="nr_nodes nr_nodes 1 + store" /> - <vlc id="end" /> - <vlc id="rpn" param1="nr_items nr_items 1 + store" /> -<vlc id="end" /> -<vlc id="rpn" param1="prev_node_index current_node_index value 1 - store" /> -<vlc id="rpn" param1="next_node_index current_node_index value 1 + store" /> - - <vlc id="foreach" param1="cat" param2="information" /> - <vlc id="if" param1="cat.name value 'M\xE9ta-donn\xE9es' strcmp 0 =" /> - <vlc id="foreach" param1="info" param2="cat.info" /> - $info[$i]=array("<vlc id="value" param1="info.value" />","<vlc id="value" param1="info.name" />"); - $i++; - <vlc id="end" /> - <vlc id="end" /> - - <vlc id="if" param1="cat.name value 'Commentaires Vorbis' strcmp 0 =" /> - unset($info); - <vlc id="foreach" param1="info" param2="cat.info" /> - $info[$i]=array("<vlc id="value" param1="info.value" />","<vlc id="value" param1="info.name" />"); - $i++; - <vlc id="end" /> - <vlc id="end" /> - - <vlc id="end" /> - - - - - -$timetogo ="<vlc id="if" param1="stream_time_H 10 <" />0<vlc id="end" /><vlc id="value" param1="stream_time_H" />:<vlc id="if" param1="stream_time_M 10 <" />0<vlc id="end" /><vlc id="value" param1="stream_time_M" />:<vlc id="if" param1="stream_time_S 10 <" />0<vlc id="end" /><vlc id="value" param1="stream_time_S" /> / <vlc id="if" param1="stream_length_H 10 <" />0<vlc id="end" /><vlc id="value" param1="stream_length_H" />:<vlc id="if" param1="stream_length_M 10 <" />0<vlc id="end" /><vlc id="value" param1="stream_length_M" />:<vlc id="if" param1="stream_length_S 10 <" />0<vlc id="end" /><vlc id="value" param1="stream_length_S" />"; -$etat = "<vlc id="value" param1="stream_state" />"; - - $stream_time[M] = "<vlc id="value" param1="stream_time_M" />"; - $stream_time[S] = "<vlc id="value" param1="stream_time_S" />"; - $stream_length[M] = "<vlc id="value" param1="stream_length_M" />"; - $stream_length[S] = "<vlc id="value" param1="stream_length_S" />"; - -$statut['random'] = "<vlc id="value" param1="random 'VLC_OBJECT_PLAYLIST' vlc_var_get"/>"; -$statut['loop'] = "<vlc id="value" param1="loop 'VLC_OBJECT_PLAYLIST' vlc_var_get"/>"; -$statut['repeat'] = "<vlc id="value" param1="repeat 'VLC_OBJECT_PLAYLIST' vlc_var_get"/>"; - +$pl = array(); +<vlc id="rpn" param1="stream_length_H stream_length 3600 / store" /> +<vlc id="rpn" param1="stream_length_M stream_length 3600 % 60 / store" /> +<vlc id="rpn" param1="stream_length_S stream_length 60 % store" /> + +<vlc id="rpn" param1="stream_time_H stream_time 3600 / store" /> +<vlc id="rpn" param1="stream_time_M stream_time 3600 % 60 / store" /> +<vlc id="rpn" param1="stream_time_S stream_time 60 % store" /> + +<vlc id="rpn" param1="next 1 store" /> +<vlc id="rpn" param1="nr_nodes 0 store" /> +<vlc id="rpn" param1="nr_items 0 store" /> +<vlc id="foreach" param1="pl" param2="playlist" /> + <vlc id="if" param1="pl.type value 'Node' strcmp" /> + + + if(in_array(strtolower(substr("<vlc id="value" param1="pl.uri"; />",strrpos("<vlc id="value" param1="pl.uri"; />",'.'))),$extv) OR (eregi("://","<vlc id="value" param1="pl.uri"; />") AND "<vlc id="if" param1="pl.current" />1<vlc id="end" />" == 1)){ + $pl[]= array(extract_name('<vlc id="value" param1="pl.name value addslashes"; />'),"<vlc id="if" param1="pl.current" />1<vlc id="else" />0<vlc id="end" />",'<vlc id="value" param1="pl.uri value addslashes" />', "<vlc id="value" param1="pl.index" />"); + <vlc id="if" param1="pl.current" /> + $urlcourante = '<vlc id="value" param1="pl.uri value addslashes" />'; + $nomcourant = extract_name('<vlc id="value" param1="pl.name value addslashes"; />'); + <vlc id="end" /> + } + <vlc id="rpn" param1="nr_nodes nr_nodes 1 + store" /> + <vlc id="end" /> + <vlc id="rpn" param1="nr_items nr_items 1 + store" /> +<vlc id="end" /> +<vlc id="rpn" param1="prev_node_index current_node_index value 1 - store" /> +<vlc id="rpn" param1="next_node_index current_node_index value 1 + store" /> + + <vlc id="foreach" param1="cat" param2="information" /> + <vlc id="if" param1="cat.name value 'M\xE9ta-donn\xE9es' strcmp 0 =" /> + <vlc id="foreach" param1="info" param2="cat.info" /> + $info[$i]=array("<vlc id="value" param1="info.value" />","<vlc id="value" param1="info.name" />"); + $i++; + <vlc id="end" /> + <vlc id="end" /> + + <vlc id="if" param1="cat.name value 'Commentaires Vorbis' strcmp 0 =" /> + unset($info); + <vlc id="foreach" param1="info" param2="cat.info" /> + $info[$i]=array("<vlc id="value" param1="info.value" />","<vlc id="value" param1="info.name" />"); + $i++; + <vlc id="end" /> + <vlc id="end" /> + + <vlc id="end" /> + + + + + +$timetogo ="<vlc id="if" param1="stream_time_H 10 <" />0<vlc id="end" /><vlc id="value" param1="stream_time_H" />:<vlc id="if" param1="stream_time_M 10 <" />0<vlc id="end" /><vlc id="value" param1="stream_time_M" />:<vlc id="if" param1="stream_time_S 10 <" />0<vlc id="end" /><vlc id="value" param1="stream_time_S" /> / <vlc id="if" param1="stream_length_H 10 <" />0<vlc id="end" /><vlc id="value" param1="stream_length_H" />:<vlc id="if" param1="stream_length_M 10 <" />0<vlc id="end" /><vlc id="value" param1="stream_length_M" />:<vlc id="if" param1="stream_length_S 10 <" />0<vlc id="end" /><vlc id="value" param1="stream_length_S" />"; +$etat = "<vlc id="value" param1="stream_state" />"; + + $stream_time[M] = "<vlc id="value" param1="stream_time_M" />"; + $stream_time[S] = "<vlc id="value" param1="stream_time_S" />"; + $stream_length[M] = "<vlc id="value" param1="stream_length_M" />"; + $stream_length[S] = "<vlc id="value" param1="stream_length_S" />"; + +$statut['random'] = "<vlc id="value" param1="random 'VLC_OBJECT_PLAYLIST' vlc_var_get"/>"; +$statut['loop'] = "<vlc id="value" param1="loop 'VLC_OBJECT_PLAYLIST' vlc_var_get"/>"; +$statut['repeat'] = "<vlc id="value" param1="repeat 'VLC_OBJECT_PLAYLIST' vlc_var_get"/>"; + Added: trunk/module/horoscope/a.gif =================================================================== (Binary files differ) Property changes on: trunk/module/horoscope/a.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/horoscope/b.gif =================================================================== (Binary files differ) Property changes on: trunk/module/horoscope/b.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/module/modules/index1.php =================================================================== --- trunk/module/modules/index1.php 2006-11-27 19:23:32 UTC (rev 53) +++ trunk/module/modules/index1.php 2006-12-01 21:40:22 UTC (rev 54) @@ -22,8 +22,8 @@ foreach($xml3->element as $element){ if(utf8_decode($element->nom)==urldecode($_GET['installnewmod'])){ - download_file($ini['download']['patch'].utf8_decode($element->fichier), $RACINE_REP.'module/'.utf8_decode($element->nom).'/'); - add_module(utf8_decode($element->nom), utf8_decode($element->nom).'/', 'index1.php', '1', '1', '1', '1', '1', utf8_decode($element->version), utf8_decode($element->description), 'Module', 'Alone', get_id_of_categorie(utf8_decode($element->cat))); + download_file($ini['download']['patch'].utf8_decode($element->fichier), $RACINE_REP.'module/'.strtolower(supprime_accents(utf8_decode($element->nom))).'/', $element->nom); + add_module(utf8_decode($element->nom), strtolower(supprime_accents(utf8_decode($element->nom))).'/', 'index1.php', '1', '1', '1', '1', '1', utf8_decode($element->version), utf8_decode($element->description), 'Module', 'Alone', get_id_of_categorie(utf8_decode($element->cat))); } //-- R\xE9initialise la liste des modules get_module_list(); @@ -34,6 +34,8 @@ // Suppression d'un module ou d'un skin if(isset($_GET['delid'])){ sup_module($_GET['delid']); + get_module_list(); + list_templates(); } //Installation d'un nouveau skin Modified: trunk/module/mp3/lecteuraudio.php =================================================================== --- trunk/module/mp3/lecteuraudio.php 2006-11-27 19:23:32 UTC (rev 53) +++ trunk/module/mp3/lecteuraudio.php 2006-12-01 21:40:22 UTC (rev 54) @@ -15,6 +15,13 @@ //$LINK['rev']=$MODULE.'mp3/lecteuraudio.php?seek_value=moins'; //$LINK['fwd']=$MODULE.'mp3/lecteuraudio.php?seek_value=plus'; +$ext_audio = $ini[explorateur][ext_audio]; +$audio_defaut = $ini[explorateur][audio_defaut]; +$afficher_fichier_cache = $ini[explorateur][afficher_fichier_cache]; +$default = $audio_defaut; +$extv = explode(",",$ext_audio); + + if($pisteaudio=='TV'){ // $META['aud'] = '69(en,mp2)'; }elseif($pisteaudio=='AC3'){ @@ -31,8 +38,34 @@ $toplay=$_REQUEST['toplay']; play_fichier('type=0',$toplay,0,'mp3'); $reload='1'; + + $pagedinfo=file_get_contents('http://localhost:8081/module/mp3/lecteuraudio.html'); + eval($pagedinfo); + + foreach($pl as $morceau){ + if($morceau[3] == $toplay){ + if(array_pop(explode(".", $morceau[2]))=='m3u'){ + $supplement = '?toplaybis='.$_GET['url']; + } + } + } } +if (isset($_REQUEST['toplaybis'])){ + $toplaybis=$_REQUEST['toplaybis']; + + $pagedinfo=file_get_contents('http://localhost:8081/module/mp3/lecteuraudio.html'); + eval($pagedinfo); + + foreach($pl as $morceau){ + if(realpath($morceau[2]) == realpath(urldecode($toplaybis))){ + play_fichier('type=0',$morceau[3],0,'mp3'); + } + } + $reload='1'; + +} + if (isset($_REQUEST['control'])) { $control = $_REQUEST['control']; if($control!='seek') @@ -72,12 +105,6 @@ $i=0; -$ext_audio = $ini[explorateur][ext_audio]; -$audio_defaut = $ini[explorateur][audio_defaut]; -$afficher_fichier_cache = $ini[explorateur][afficher_fichier_cache]; -$default = $audio_defaut; -$extv = explode(",",$ext_audio); - $pagedinfo=file_get_contents('http://localhost:8081/module/mp3/lecteuraudio.html'); eval($pagedinfo); @@ -216,6 +243,7 @@ case 'delall': include('http://127.0.0.1:8081/lecteur/'.$ini[multimedia][qualite].'?type=999'); //-- Vide la playlist unset($pl); + unset($pl_transformed); unset($info); $VLC['etat']='stop'; break; @@ -274,7 +302,7 @@ } if($reload=='1'){ - $META['refresh']='2;url=lecteuraudio.php'; + $META['refresh']='1;url=lecteuraudio.php'.$supplement; } $smarty->assign('lastwebradio',get_variable('lastwebradio')); Modified: trunk/module/mp3/playlist_audio.tpl =================================================================== --- trunk/module/mp3/playlist_audio.tpl 2006-11-27 19:23:32 UTC (rev 53) +++ trunk/module/mp3/playlist_audio.tpl 2006-12-01 21:40:22 UTC (rev 54) @@ -1,9 +1,9 @@ -{if $VLC.type_current=='webradio'} +{if $VLC.type_current=='webradio' AND $VLC.etat!='stop'} <center><font size=3><u>Vous lisez actuellement la station de radio</font><br><font size=4>{$lastwebradio}</u></font><br><img src="jaquette.php?directory=&info={$lastwebradio|trim|urlencode}&w=400&h=250"></center> -{elseif $VLC.db_current_type=='podcast'} +{elseif $VLC.db_current_type=='podcast' AND $VLC.etat!='stop'} <font size=3><center><u>Podcast en cours de lecture</u></font></center><br> <br> Auteur : {$info.auteur_flux|strip_tags}<br> @@ -25,7 +25,7 @@ <img src="{$SKIN_REP}dossier/mp3.gif" width="16" height="16"> <a href=lecteuraudio.php?action=save&m3u_save=1&play_m3u={$playlists[pl]|realpath|urlencode}>{$playlists[pl]|realpath|extract_name|truncate:130:''}.m3u</a><br> {/section} -{elseif count($pl)==0 OR $action=='load'} +{elseif count($pl)==0 OR $action=='load' OR $VLC.etat=='stop'} {section name=pl loop=$playlists} {if $smarty.section.pl.first} @@ -52,7 +52,7 @@ <font size="1">{counter name=indice print=true}. </font> <font size="1"> {if $pl[playlist].1}<u>{/if} - <a href=lecteuraudio.php?toplay={$pl[playlist].3}>{$pl[playlist].0|truncate:130:''|strip_delimiters}</a> + <a href=lecteuraudio.php?toplay={$pl[playlist].3}&url={$pl[playlist].2|urlencode}>{$pl[playlist].0|truncate:130:''|strip_delimiters}</a> {if $pl[playlist].1}</u>{/if} </font><br> {/section} Modified: trunk/version.html =================================================================== --- trunk/version.html 2006-11-27 19:23:32 UTC (rev 53) +++ trunk/version.html 2006-12-01 21:40:22 UTC (rev 54) @@ -4,6 +4,6 @@ </head> <body> <h1>Easybox</h1> -<h2>3.4.11</h2> +<h2>3.4.15</h2> </body> </html> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2006-11-27 19:24:25
|
Revision: 53 http://svn.sourceforge.net/easybox-mod/?rev=53&view=rev Author: aragornis Date: 2006-11-27 11:23:32 -0800 (Mon, 27 Nov 2006) Log Message: ----------- Modified Paths: -------------- trunk/_framework/fonctions_partagees.inc.php trunk/_utilisateur/modules.db trunk/configuration/skin.php trunk/module/horoscope/index1.php trunk/module/modules/index1.php trunk/module/modules/modules.tpl Modified: trunk/_framework/fonctions_partagees.inc.php =================================================================== --- trunk/_framework/fonctions_partagees.inc.php 2006-11-26 19:40:53 UTC (rev 52) +++ trunk/_framework/fonctions_partagees.inc.php 2006-11-27 19:23:32 UTC (rev 53) @@ -553,7 +553,7 @@ } -function change_template($tpl){ +function change_skin($tpl){ global $RACINE_REP; function ClearDirectory($path){ @@ -588,6 +588,7 @@ $reini .=$subkey2.' = "'.$ini1[$key2][$subkey2]."\"\n"; } } + $handle = fopen($RACINE_REP.'_utilisateur/configuration.ini', "w"); fwrite($handle, $reini); fclose($handle); Modified: trunk/_utilisateur/modules.db =================================================================== (Binary files differ) Modified: trunk/configuration/skin.php =================================================================== --- trunk/configuration/skin.php 2006-11-26 19:40:53 UTC (rev 52) +++ trunk/configuration/skin.php 2006-11-27 19:23:32 UTC (rev 53) @@ -5,7 +5,7 @@ $RACINE_REP = "../"; if (isset($_GET['choiskin'])){ - change_template($_GET['choiskin']); + change_skin($_GET['choiskin']); } $skins = list_skin(); Modified: trunk/module/horoscope/index1.php =================================================================== --- trunk/module/horoscope/index1.php 2006-11-26 19:40:53 UTC (rev 52) +++ trunk/module/horoscope/index1.php 2006-11-27 19:23:32 UTC (rev 53) @@ -1,76 +1,571 @@ <?php - $RACINE_REP = "../../"; - require($RACINE_REP.'_framework/framework.php'); +$RACINE_REP = "../../"; +require($RACINE_REP.'_framework/framework.php'); + +$LINK['red']= $MODULE.'_menu/menu.php?cat=9'; + +global $affichage,$level, $nb_joueurs, $nb_win, $fini; + +if ($_GET['rep']) { + $level = $_GET['level']; +}else{ + $level=1; +} + + +$MENU_ALT=array( + array('lien'=>'index1.php?level=1', 'nom'=>'LEVEL 1', 'selected'=>$level=='1'), + array('lien'=>'index1.php?level=2', 'nom'=>'LEVEL 2', 'selected'=>$level=='2'), + array('lien'=>'index1.php?level=3', 'nom'=>'LEVEL 3', 'selected'=>$level=='3') + ); + + +$affichage=""; + +$nb_joueurs1=0; +$nb_joueurs2=0; +$nb_joueurs3=0; + + if(isset($_GET['level'])){ $level=$_GET['level']; } elseif(isset($_GET['level'])){ $level=$_GET['level']; } + if(!isset($_GET['tour'])) { $tour=0; } else { $tour=$_GET['tour']; } + if(isset($_GET['fini'])){ $fini = $_GET['fini']; } else { $fini=0; } + $joue=0; + $jouer_1=0; + $jouer_2=0; + $jouer_3=0; + + if(!isset($_GET['t11'])) { $tab[1][1]='-'; } elseif(isset($_GET['st11'])){ $tab[1][1] = 'b'; } else { $tab[1][1] = $_GET['t11']; } + if(!isset($_GET['t12'])) { $tab[1][2]='-'; } elseif(isset($_GET['st12'])){ $tab[1][2] = 'b'; } else { $tab[1][2] = $_GET['t12']; } + if(!isset($_GET['t13'])) { $tab[1][3]='-'; } elseif(isset($_GET['st13'])){ $tab[1][3] = 'b'; } else { $tab[1][3] = $_GET['t13']; } + if(!isset($_GET['t21'])) { $tab[2][1]='-'; } elseif(isset($_GET['st21'])){ $tab[2][1] = 'b'; } else { $tab[2][1] = $_GET['t21']; } + if(!isset($_GET['t22'])) { $tab[2][2]='-'; } elseif(isset($_GET['st22'])){ $tab[2][2] = 'b'; } else { $tab[2][2] = $_GET['t22']; } + if(!isset($_GET['t23'])) { $tab[2][3]='-'; } elseif(isset($_GET['st23'])){ $tab[2][3] = 'b'; } else { $tab[2][3] = $_GET['t23']; } + if(!isset($_GET['t31'])) { $tab[3][1]='-'; } elseif(isset($_GET['st31'])){ $tab[3][1] = 'b'; } else { $tab[3][1] = $_GET['t31']; } + if(!isset($_GET['t32'])) { $tab[3][2]='-'; } elseif(isset($_GET['st32'])){ $tab[3][2] = 'b'; } else { $tab[3][2] = $_GET['t32']; } + if(!isset($_GET['t33'])) { $tab[3][3]='-'; } elseif(isset($_GET['st33'])){ $tab[3][3] = 'b'; } else { $tab[3][3] = $_GET['t33']; } + + // on d\xE9finit les lignes qui seront test\xE9es lors du jeu + $row1 = $tab[1][1] . $tab[1][2] . $tab[1][3]; + $row2 = $tab[2][1] . $tab[2][2] . $tab[2][3]; + $row3 = $tab[3][1] . $tab[3][2] . $tab[3][3]; + $row4 = $tab[1][1] . $tab[2][2] . $tab[3][3]; + $row5 = $tab[3][1] . $tab[2][2] . $tab[1][3]; + $row6 = $tab[1][1] . $tab[2][1] . $tab[3][1]; + $row7 = $tab[1][2] . $tab[2][2] . $tab[3][2]; + $row8 = $tab[1][3] . $tab[2][3] . $tab[3][3]; + + // ces valeurs ne sont utiles que lors du d\xE9veloppement/ d\xE9buggage + $ligne[1][1] = '1-1'; + $ligne[1][2] = '1-2'; + $ligne[1][3] = '1-3'; + $ligne[2][1] = '2-1'; + $ligne[2][2] = '2-2'; + $ligne[2][3] = '2-3'; + $ligne[3][1] = '3-1'; + $ligne[3][2] = '3-2'; + $ligne[3][3] = '3-3'; + $ligne[4][1] = '1-1'; + $ligne[4][2] = '2-2'; + $ligne[4][3] = '3-3'; + $ligne[5][1] = '3-1'; + $ligne[5][2] = '2-2'; + $ligne[5][3] = '1-3'; + $ligne[6][1] = '1-1'; + $ligne[6][2] = '2-1'; + $ligne[6][3] = '3-1'; + $ligne[7][1] = '1-2'; + $ligne[7][2] = '2-2'; + $ligne[7][3] = '3-2'; + $ligne[8][1] = '1-3'; + $ligne[8][2] = '2-3'; + $ligne[8][3] = '3-3'; - if (isset($_REQUEST['sign'])) + //------------------- + // Fonction de conversion des lignes de type $tab[x][y] + // pour ressortir la coordonn\xE9e des cases (comprise entre 1 et 3) + //------------------- + + function cv($i, $j) { - // On a choisit un signe, afficher l'horoscope - - $liens = array('rss_horojour_belier.xml', 'rss_horojour_taureau.xml', 'rss_horojour_gemeaux.xml', 'rss_horojour_cancer.xml', 'rss_horojour_lion.xml', 'rss_horojour_vierge.xml', 'rss_horojour_balance.xml', 'rss_horojour_scorpion.xml', 'rss_horojour_sagittaire.xml', 'rss_horojour_capricorne.xml', 'rss_horojour_verseau.xml', 'rss_horojour_poissons.xml'); + // si $tab[6][2] alors val1C=2 val2c=1 + if($i>3) + { + if($i==4 && $j==1) { $valc1=1; $valc2=1; } + if($i==4 && $j==2) { $valc1=2; $valc2=2; } + if($i==4 && $j==3) { $valc1=3; $valc2=3; } + if($i==5 && $j==1) { $valc1=3; $valc2=1; } + if($i==5 && $j==2) { $valc1=2; $valc2=2; } + if($i==5 && $j==3) { $valc1=1; $valc2=3; } + if($i==8 && $j==1) { $valc1=1; $valc2=3; } + if($i==6 && $j==1) { $valc1=1; $valc2=1; } + if($i==6 && $j==2) { $valc1=2; $valc2=1; } + if($i==6 && $j==3) { $valc1=3; $valc2=1; } + if($i==7 && $j==1) { $valc1=1; $valc2=2; } + if($i==7 && $j==2) { $valc1=2; $valc2=2; } + if($i==7 && $j==3) { $valc1=3; $valc2=2; } + if($i==8 && $j==1) { $valc1=1; $valc2=3; } + if($i==8 && $j==2) { $valc1=2; $valc2=3; } + if($i==8 && $j==3) { $valc1=3; $valc2=3; } + } + else + { + $valc1=$i; + $valc2=$j; + } - if ($xml = file_get_contents('http://www.asiaflash.com/horoscope/'.$liens[$_REQUEST['sign']-1])) + return array($valc1,$valc2); + } + + + if($tour!=0 && $fini!=true) + { + if($tour==1) { - /* - * Je voulais faire ca en parsant le XML - * mais j'ai des probl\xE8mes de caract\xE8res accentu\xE9s :'( - * - if ($xml_table = simplexml_load_string($xml)) + /*--------*/ + /* TOUR 1 */ + /*--------*/ + + // si le joueur a jou\xE9 au centre alors on joue dans un coin + if($tab[2][2] == 'b' && $joue != true) { - echo '<html><body>'; - echo '<center>'.htmlspecialchars_decode($xml_table->channel[0]->item[0]->title).'</center>'; - echo '<br>'; - echo html_entity_decode($xml_table->channel[0]->item[0]->description); - echo '</body></html>'; + $valr1 = ((rand(1,2)*2)-1); + $valr2 = ((rand(1,2)*2)-1); + $tab[$valr1][$valr2] = 'a'; + $joue = true; } - */ + + // si le joueur a jou\xE9 dans un coin alors on joue au centre + if(($tab[1][1] == 'b' | $tab[1][3] == 'b' | $tab[3][1] == 'b' | $tab[3][3] == 'b') && $joue != true) + { + $tab[2][2] = 'a'; + $joue = true; + } + + // si le joueur a jou\xE9 au milieu d'une ligne alors on joue au centre + if(($tab[1][2] == 'b' | $tab[2][1] == 'b' | $tab[2][3] == 'b' | $tab[3][2] == 'b') && $joue != true) + { + $tab[2][2] = 'a'; + $joue = true; + } + } + + elseif($tour>1 | !$tour) + { + if($level==3) + { + /*----------------------------*/ + /* PHASE 1 : PEUT ON GAGNER ? */ + /*----------------------------*/ + + // Au d\xE9but de chaque tour, on regarde si il est possible de gagner + for($i=1;$i<9;$i++) + { + $var = 'row'.$i; + $combi = $$var; + + if($combi=='a-a' && $joue!=true) + { + $j=2; + list($val1, $val2) = cv($i, $j); + $tab[$val1][$val2] = 'a'; + $joue=true; + } + + if($combi=='aa-' && $joue!=true) + { + $j=3; + list($val1, $val2) = cv($i, $j); + $tab[$val1][$val2] = 'a'; + $joue=true; + } + + if($combi=='-aa' && $joue!=true) + { + $j=1; + list($val1, $val2) = cv($i, $j); + $tab[$val1][$val2] = 'a'; + $joue=true; + } + + } + + /*--------------------------------------*/ + /* PHASE 2 : LE JOUEUR PEUT IL GAGNER ? */ + /*--------------------------------------*/ + + // Au d\xE9but de chaque tour, on regarde si le joueur adverse peut gagner (b-b ou bb- ou -bb) + + for($i=1;$i<9;$i++) + { + $var = 'row'.$i; + $combi = $$var; + + if($combi=='b-b' && $joue!=true) + { + $j=2; + list($val1, $val2) = cv($i, $j); + $tab[$val1][$val2] = 'a'; + $joue=true; + } + + if($combi=='bb-' && $joue!=true) + { + $j=3; + list($val1, $val2) = cv($i, $j); + $tab[$val1][$val2] = 'a'; + $joue=true; + } + + if($combi=='-bb' && $joue!=true) + { + $j=1; + list($val1, $val2) = cv($i, $j); + $tab[$val1][$val2] = 'a'; + $joue=true; + } + } + + /*-------------------------------------------*/ + /* PHASE 3 : OU JOUER SI LA VOIE EST LIBRE ? */ + /*-------------------------------------------*/ + + // Si on ne peut pas gagner et que le joueur ne peut pas non plus gagner ce tour, alors on joue + // Mais attention, on joue "intelligemment". + + if($joue!=true) + { + for($i=1;$i<9;$i++) + { + $var = 'row'.$i; + $combi = $$var; + + if($tour==2 && $joue!=true && ($row4=='bab' | $row5=='bab')) + { + $tab[1][2] = 'a'; + $joue=true; + } + + // teste le cas o\xF9 on doit jouer coin \xE0 cot\xE9 des deux croix pour ne pas perdre + elseif($tour==2 && $joue!=true && ($row2=='ba-' | $row7=='-ab')) + { + $tab[3][1] = 'a'; + $joue=true; + } + elseif($tour==2 && $joue!=true && ($row2=='-ab' | $row7=='-ab')) + { + $tab[3][3] = 'a'; + $joue=true; + } + elseif($tour==2 && $joue!=true && ($row2=='ba-' | $row7=='ba-')) + { + $tab[1][1] = 'a'; + $joue=true; + } + elseif($tour==2 && $joue!=true && ($row2=='-ab' | $row7=='ba-')) + { + $tab[1][3] = 'a'; + $joue=true; + } + + $aab=0; + $baa=0; + + if($i<4) + { + // aab, donc il faut jouer coin haut-droite ou bas-droite + // baa, donc il faut jouer coin haut-gauche ou bas-gauche + if($tour==3 && $aab!=0 && $joue!=true) + { + $j = 3; + list($val1, $val2) = cv($i, $j); + $tab[$val1][$val2] = 'a'; + $joue=true; + } + if($tour==3 && $baa!=0 && $joue!=true) + { + $j=1; + list($val1, $val2) = cv($i, $j); + $tab[$val1][$val2] = 'a'; + $joue=true; + } + if($combi=='aab') + { + $aab++; + } + if($combi=='baa') + { + $baa++; + } + } + + if($combi=='-a-' && $tab[2][2]=='a' && $i==2 && $joue!=true) + { + if($tab[1][1]=='b') + { + $tab[3][1] = 'a'; + $joue=true; + } + elseif($tab[1][3]=='b') + { + $tab[3][3] = 'a'; + $joue=true; + } + elseif($tab[3][1]=='b') + { + $tab[1][1] = 'a'; + $joue=true; + } + elseif($tab[3][3]=='b') + { + $tab[1][3] = 'a'; + $joue=true; + } + } + + elseif($combi=='-a-' && $tab[2][2]=='a' && $i==7 && $joue!=true) + { + if($tab[1][1]=='b') + { + $tab[1][3] = 'a'; + $joue=true; + } + elseif($tab[1][3]=='b') + { + $tab[1][1] = 'a'; + $joue=true; + } + elseif($tab[3][1]=='b') + { + $tab[3][3] = 'a'; + $joue=true; + } + elseif($tab[3][3]=='b') + { + $tab[3][1] = 'a'; + $joue=true; + } + } + + elseif($combi=='--a' && $joue!=true) + { + $j=1; + list($val1, $val2) = cv($i, $j); + $tab[$val1][$val2] = 'a'; + $joue=true; + } + + // on regarde les cases vides pour jouer al\xE9atoirement si on a rien de mieux a faire + if($joue!=true) + { + + // peut-on jouer en case 1 ? Si oui on enregistre la case possible + if($combi=='-bb' | $combi=='-aa' | $combi=='-ab' | $combi=='-ba' | $combi=='---' | $combi=='--a' | $combi=='--b' | $combi=='-b-' | $combi=='-a-') + { + $jouer_1=true; + $val_1=$i; + } + + // peut-on jouer en case 2 ? Si oui on enregistre la case possible + if($combi=='b-b' | $combi=='a-a' | $combi=='a-b' | $combi=='b-a' | $combi=='---' | $combi=='--a' | $combi=='--b' | $combi=='b--' | $combi=='a--') + { + $jouer_2=true; + $val_2=$i; + } + + // peut-on jouer en case 3 ? Si oui on enregistre la case possible + if($combi=='bb-' | $combi=='aa-' | $combi=='ab-' | $combi=='ba-' | $combi=='---' | $combi=='-a-' | $combi=='-b-' | $combi=='b--' | $combi=='a--') + { + $jouer_3=true; + $val_3=$i; + } + + } + + } // for($i=1;$i<9;$i++) + + // si l'on a pas r\xE9ussi a jouer avec tous les tests pr\xE9c\xE9dents + // alors on joue al\xE9atoirement dans une case vide + // c'est la meilleure - et seule - solution ! + if($joue!=true) + { + // on joue case 1 si on a pas jou\xE9 + if($jouer_1==true && $joue!=true) + { + $j=1; + $i=$val_1; + list($val1, $val2) = cv($i, $j); + $tab[$val1][$val2] = 'a'; + $joue=true; + } + + // on joue case 2 si on a pas jou\xE9 + if($jouer_2==true && $joue!=true) + { + $j=2; + $i=$val_2; + list($val1, $val2) = cv($i, $j); + $tab[$val1][$val2] = 'a'; + $joue=true; + } + + // on joue case 3 si on a pas jou\xE9 + if($jouer_3==true && $joue!=true) + { + $j=3; + $i=$val_3; + list($val1, $val2) = cv($i, $j); + $tab[$val1][$val2] = 'a'; + $joue=true; + } + } // if $joue!=true + } // if($joue!=true) + } // if($level==3) + // si $level==2 n'est pas inhumain + // alors on joue l\xE0 ou on peut, sans r\xE9fl\xE9chir. + else + { + for($i=1;$i<4;$i++) + { + if($joue!=true) + { + for($j=1;$j<4;$j++) + { + if($tab[$i][$j]=='-' && $joue!=true) + { + $tab[$i][$j] = 'a'; + $joue=true; + } + } + } + } + } // else (if - // R\xE9cup de l'item - $posDeb = strpos($xml,"<item>")+6; - $posFin = strpos($xml,"</item>"); - $xml = substr($xml, $posDeb, $posFin-$posDeb); + + /*-------------------------------------*/ + /* PHASE 4 : PERDU, GAGNE, MATCH NUL ? */ + /*-------------------------------------*/ - - // R\xE9cup du titre - $posDeb = strpos($xml,"<title>")+7; - $posFin = strpos($xml,"</title>"); - $entete = substr($xml, $posDeb, $posFin-$posDeb); - $entete = html_entity_decode($entete); - - // R\xE9cup du texte principal - $posDeb = strpos($xml,"<description>")+13; - //$posFin = strpos($xml,"</description>"); - $posFin = strpos($xml,'<center><font size="-1">Consultez sur le site AsiaFlash.com'); - $description = substr($xml, $posDeb, $posFin-$posDeb); - $description = html_entity_decode($description); - - $description = str_replace('http://www.asiaflash.com/anh/bleu_', 'images/bleu_', $description); - $description = str_replace('<b>', '<u>', $description); - $description = str_replace('</b>', '</u>', $description); - $description = str_replace('<br><br>', '<br> <br>', $description); - /* - echo '<html><body>'; - echo '<center>'.$titre.'</center>'; - echo '<br>'; - echo $description; - echo '</body></html>'; - */ - } - - $LINK['red']= 'index1.php'; + // on red\xE9finit les lignes apr\xE8s le traitement + // du jeu du computer pour tester la victoire + + $row1 = $tab[1][1] . $tab[1][2] . $tab[1][3]; + $row2 = $tab[2][1] . $tab[2][2] . $tab[2][3]; + $row3 = $tab[3][1] . $tab[3][2] . $tab[3][3]; + $row4 = $tab[1][1] . $tab[2][2] . $tab[3][3]; + $row5 = $tab[3][1] . $tab[2][2] . $tab[1][3]; + $row6 = $tab[1][1] . $tab[2][1] . $tab[3][1]; + $row7 = $tab[1][2] . $tab[2][2] . $tab[3][2]; + $row8 = $tab[1][3] . $tab[2][3] . $tab[3][3]; + + if($fini!=true) + { + for($i=1;$i<9;$i++) + { + $var = 'row'.$i; + $combi = $$var; + if($combi == 'aaa') + { + $affichage.="<h2>PERDU !</h2>"; + $fini=true; + } + if($combi == 'bbb' && $fini!=true) + { + $affichage.="<h2>GAGNE !</H2>"; + $fini=true; + } + } + } // if fini!=true + } // if $tour>1 | !$tour + } // if($tour!=0 && $fini!=true) + + + // si on est au cinqui\xE8me tour et qu'il + // n'y a pas de vainqueur, alors match nul + if($tour==5 && $fini!=true) + { + $affichage.="<h2>MATCH NUL !</h2>"; + $fini=true; } - if (!isset($entete) || $entete == '') + // sinon on incr\xE9mente le compteur tour + // (jusqu'\xE0 ce que sa valeur soit 5) + else { - // Affichage de la table de choix - $entete = 'Choisissez un signe'; - $description = ''; - - $LINK['red']= $MODULE.'_menu/menu.php?cat=18'; + $tour++; } - - $smarty->assign('TITRE','Horoscope'); - $smarty->assign('entete',$entete); - $smarty->assign('description',$description); - $smarty->assign('CONTENT',$smarty->fetch('horoscope.tpl')); - $smarty->display('interface.tpl'); + + /*----------------*/ + /* AFFICHAGE HTML */ + /*----------------*/ + + $t11 = $tab[1][1]; + $t12 = $tab[1][2]; + $t13 = $tab[1][3]; + $t21 = $tab[2][1]; + $t22 = $tab[2][2]; + $t23 = $tab[2][3]; + $t31 = $tab[3][1]; + $t32 = $tab[3][2]; + $t33 = $tab[3][3]; + + $affichage.="<table border=\"1\" cellpadding=\"1\" cellspacing=\"1\" bgcolor=\"#FFFFFF22\" align=\"center\">"; + $affichage.="<tr>"; + + $affichage.="<tr>\n\r"; + + $query="level=$level"; + $query.="&tour=$tour"; + $query.="&fini=$fini"; + $query.="&t11=$t11"; + $query.="&t12=$t12"; + $query.="&t13=$t13"; + $query.="&t21=$t21"; + $query.="&t22=$t22"; + $query.="&t23=$t23"; + $query.="&t31=$t31"; + $query.="&t32=$t32"; + $query.="&t33=$t33"; + + if($t11=='-') { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><a href=\"index1.php?st11=b&$query\">X</a></td>\n"; } + else { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><img src=\"$t11.gif\" width=\"50\" height=\"54\">\n"; } + + if($t12=='-') { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><a href=\"index1.php?st12=1&$query\">X</a></td>\n"; } + else { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><img src=\"$t12.gif\" width=\"50\" height=\"54\"></td>\n"; } + + if($t13=='-') { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><a href=\"index1.php?st13=1&$query\">X</a></td>\n"; } + else { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><img src=\"$t13.gif\" width=\"50\" height=\"54\"></td>\n"; } + + $affichage.="</tr>\n<tr>\n"; + if($t21=='-') { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><a href=\"index1.php?st21=1&$query\">X</a></td>\n"; } + else { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><img src=\"$t21.gif\" width=\"50\" height=\"54\"></td>\n"; } + + if($t22=='-') { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><a href=\"index1.php?st22=1&$query\">X</a></td>\n"; } + else { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><img src=\"$t22.gif\" width=\"50\" height=\"54\"></td>\n"; } + + if($t23=='-') { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><a href=\"index1.php?st23=1&$query\">X</a></td>\n"; } + else { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><img src=\"$t23.gif\" width=\"50\" height=\"54\"></td>\n"; } + + $affichage.="</tr>\n<tr>\n"; + if($t31=='-') { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><a href=\"index1.php?st31=1&$query\">X</a></td>\n"; } + else { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><img src=\"$t31.gif\" width=\"50\" height=\"54\"></td>\n"; } + + if($t32=='-') { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><a href=\"index1.php?st32=1&$query\">X</a></td>\n"; } + else { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><img src=\"$t32.gif\" width=\"50\" height=\"54\"></td>\n"; } + + if($t33=='-') { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><a href=\"index1.php?st33=1&$query\">X</a></td>\n"; } + else { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><img src=\"$t33.gif\" width=\"50\" height=\"54\"></td>\n"; } + + $affichage.="</tr>\n</table> + <br> + <br><font size=\"1\"> + Jeu du Morpion adapt\xE9 pour EasyBox par InPhoVid (06/2006)<br> + Jeu du Morpion imbattable d\xE9velopp\xE9 en php. License GPL. Auteur : Matthieu Aubry + </font> + </center> + "; + +$smarty->assign('TITRE','MORPION'); +$smarty->assign('affichage',$affichage); +$smarty->assign('CONTENT',$smarty->fetch('generique.tpl')); +$smarty->display('interface.tpl'); ?> Modified: trunk/module/modules/index1.php =================================================================== --- trunk/module/modules/index1.php 2006-11-26 19:40:53 UTC (rev 52) +++ trunk/module/modules/index1.php 2006-11-27 19:23:32 UTC (rev 53) @@ -19,14 +19,15 @@ $xml_file = $ini['download']['xml'].'?cat=AllModule'; $xml3 = simplexml_load_file($xml_file); $MOD = array(); - + foreach($xml3->element as $element){ - if($element->nom==$_GET['installnewmod']){ - download_file($ini['download']['patch'].$element->fichier, $RACINE_REP.'module/'.$element->nom.'/'); - add_module($element->nom, $element->nom.'/', 'index1.php', '1', '1', '1', '1', '1', $element->version, $element->description, 'Module', 'Alone', get_id_of_categorie($element->cat)); + if(utf8_decode($element->nom)==urldecode($_GET['installnewmod'])){ + download_file($ini['download']['patch'].utf8_decode($element->fichier), $RACINE_REP.'module/'.utf8_decode($element->nom).'/'); + add_module(utf8_decode($element->nom), utf8_decode($element->nom).'/', 'index1.php', '1', '1', '1', '1', '1', utf8_decode($element->version), utf8_decode($element->description), 'Module', 'Alone', get_id_of_categorie(utf8_decode($element->cat))); } //-- R\xE9initialise la liste des modules get_module_list(); + list_templates(); } } @@ -42,12 +43,13 @@ $MOD = array(); foreach($xml3->element as $element){ - if($element->nom==$_GET['installnewskin']){ - download_file($ini['download']['patch'].$element->fichier, $RACINE_REP.'skin/'.$element->nom.'/'); + if(utf8_decode($element->nom)==$_GET['installnewskin']){ + download_file($ini['download']['patch'].utf8_decode($element->fichier), $RACINE_REP.'skin/'.utf8_decode($element->nom).'/'); add_module(utf8_decode($element->nom), utf8_decode($element->nom).'/', '', '', '', '', '', '', utf8_decode($element->version), utf8_decode($element->description), 'Skin', 'Alone', ''); } //-- R\xE9initialise la liste des modules get_module_list(); + list_templates(); } } @@ -62,7 +64,7 @@ $MOD = array(); foreach($xml3->element as $elem){ - if(!module_exists($elem->nom) and $elem->categorie=='Module'){ + if(!module_exists(utf8_decode($elem->nom)) and utf8_decode($elem->categorie)=='Module'){ $MOD[] = array('nom'=> utf8_decode($elem->nom),'version'=> utf8_decode($elem->version),'description'=> utf8_decode($elem->description),'auteur'=> utf8_decode($elem->auteur),'fichier'=> utf8_decode($elem->fichier)); } } @@ -80,7 +82,7 @@ $MOD = array(); foreach($xml3->element as $element){ - if(!module_exists($element->nom) and $element->categorie=='Skin'){ + if(!module_exists(utf8_decode($element->nom)) and utf8_decode($element->categorie)=='Skin'){ $MOD[] = array('nom'=>utf8_decode($element->nom),'version'=>utf8_decode($element->version),'description'=>utf8_decode($element->description),'auteur'=>utf8_decode($element->auteur),'fichier'=>utf8_decode($element->fichier)); } } Modified: trunk/module/modules/modules.tpl =================================================================== --- trunk/module/modules/modules.tpl 2006-11-26 19:40:53 UTC (rev 52) +++ trunk/module/modules/modules.tpl 2006-11-27 19:23:32 UTC (rev 53) @@ -44,7 +44,7 @@ <td>{$MOD[mod].version}</td> <td>{$MOD[mod].auteur}</td> <td>{$MOD[mod].description}</td> - <td><a href="index1.php?install{$action}={$MOD[mod].nom}&action={$action}">Installer</a></td> + <td><a href="index1.php?install{$action}={$MOD[mod].nom|urlencode}&action={$action}">Installer</a></td> </tr> {if $smarty.section.mod.last}</table>{/if} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2006-11-26 19:40:57
|
Revision: 52 http://svn.sourceforge.net/easybox-mod/?rev=52&view=rev Author: aragornis Date: 2006-11-26 11:40:53 -0800 (Sun, 26 Nov 2006) Log Message: ----------- RC1 Modified Paths: -------------- trunk/_utilisateur/modules.db trunk/_utilisateur/multiposte.m3u trunk/configuration/modules.php trunk/configuration/screensaver.php trunk/module/jt/flux.xml Added Paths: ----------- trunk/themes/icones/defaut/Recettes.gif Modified: trunk/_utilisateur/modules.db =================================================================== (Binary files differ) Modified: trunk/_utilisateur/multiposte.m3u =================================================================== --- trunk/_utilisateur/multiposte.m3u 2006-11-26 19:32:14 UTC (rev 51) +++ trunk/_utilisateur/multiposte.m3u 2006-11-26 19:40:53 UTC (rev 52) @@ -97,6 +97,8 @@ rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=216 #EXTINF:0,70 - Bloomberg TV rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=207 +#EXTINF:0,72 - Al Jazeera International +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=494 #EXTINF:0,73 - BBC World rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=240 #EXTINF:0,74 - Sky News International Modified: trunk/configuration/modules.php =================================================================== --- trunk/configuration/modules.php 2006-11-26 19:32:14 UTC (rev 51) +++ trunk/configuration/modules.php 2006-11-26 19:40:53 UTC (rev 52) @@ -25,7 +25,7 @@ sqlite_close($db); }elseif(isset($_GET['newmodule'])){ - add_module($_GET['nom'], $_GET['nom'].'/', '', '', '', '', '', '', $_GET['version'], $_GET['description'], 'Module', 'Alone', $_GET['categorie']); + add_module($_GET['nom'], $_GET['nom'].'/', 'index1.php', '1', '1', '1', '1', '1', $_GET['version'], $_GET['description'], 'Module', 'Alone', $_GET['categorie']); get_module_list(); } $ini = parse_ini_file($CONFIG_INI, TRUE); Modified: trunk/configuration/screensaver.php =================================================================== --- trunk/configuration/screensaver.php 2006-11-26 19:32:14 UTC (rev 51) +++ trunk/configuration/screensaver.php 2006-11-26 19:40:53 UTC (rev 52) @@ -1,6 +1,8 @@ +<? /* <center> <table width="700" style="border: thin outset;font-size: 9px;"> <tr><td> + <?php function imageajuste(&$image1,$image2,$largeur,$hauteur,$position){ $pourcent=min (($largeur/imagesx($image2)),($hauteur/imagesy($image2))); @@ -90,8 +92,6 @@ } $img = glob("../module/screensaver/image/*.gif"); $nn =count($img); - - ?> <center><b>Images de l'\xE9cran de veille</b> <form name="form1" method="get" action="index1.php"> @@ -123,5 +123,7 @@ </center> +*/ ?> +En travaux Modified: trunk/module/jt/flux.xml =================================================================== --- trunk/module/jt/flux.xml 2006-11-26 19:32:14 UTC (rev 51) +++ trunk/module/jt/flux.xml 2006-11-26 19:40:53 UTC (rev 52) @@ -28,10 +28,9 @@ <flux name="C'est notre affaire" jours="3" heure="12" datetype="Ymd"> mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/cnotreaffaire/cnotreaffaire_##.wmv</flux> <flux name="Le journal de blogue" jours="6" heure="22" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/journaldublog/journaldublog.wmv</flux> <flux name="Arr\xEAt sur image" jours="0" heure="20" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/asi/arretimages_##.wmv</flux> - <flux name="Les maternelles" jours="1,2,4,5" heure="22" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/asi/arretimages_##.wmv</flux> + <flux name="Les maternelles" jours="1,2,4,5" heure="22" datetype="Ymd">http://www.france5.fr/images/asx/maternelles/maternelles_##.asx</flux> <flux name="Chez F.O.G" jours="0" heure="22" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/chezfog/chezfog.wmv</flux> <flux name="L'emploi par le net" jours="1,2,3,4,5" heure="22" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/emploiparlenet/emploiparlenet.wmv</flux> - <flux name="L'oeil et la main" jours="6" heure="13" datetype="Ymd">mms://a988.v101995.c10199.e.vm.akamaistream.net/7/988/10199/3f97c7e6/ftvigrp.download.akamai.com/10199/sgv/diff/videotheque/france5/programmes/oeiletmain/6DF1F_unoeiletlamain_##.wmv</flux> <flux name="Dossier Scheffer" jours="0" heure="24" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/dossier-scheffer/dossier-scheffer.wmv</flux> <flux name="Le bateau livre" jours="4" heure="23" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/bateaulivre/bateaulivre.wmv</flux> <flux name="Echapp\xE9es belles" jours="6" heure="24" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/echappeesbelles/echappeesbelles_##.wmv</flux> Added: trunk/themes/icones/defaut/Recettes.gif =================================================================== (Binary files differ) Property changes on: trunk/themes/icones/defaut/Recettes.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2006-11-26 19:32:21
|
Revision: 51 http://svn.sourceforge.net/easybox-mod/?rev=51&view=rev Author: aragornis Date: 2006-11-26 11:32:14 -0800 (Sun, 26 Nov 2006) Log Message: ----------- Ajout du module recette Added Paths: ----------- trunk/module/recettes/ trunk/module/recettes/images/ trunk/module/recettes/images/10.gif trunk/module/recettes/images/11.gif trunk/module/recettes/images/12.gif trunk/module/recettes/images/13.gif trunk/module/recettes/images/14.gif trunk/module/recettes/images/15.gif trunk/module/recettes/images/1a.gif trunk/module/recettes/images/2.gif trunk/module/recettes/images/3.gif trunk/module/recettes/images/4.gif trunk/module/recettes/images/6.gif trunk/module/recettes/images/7.gif trunk/module/recettes/images/8.gif trunk/module/recettes/images/9.gif trunk/module/recettes/images/abricot.gif trunk/module/recettes/images/autres.gif trunk/module/recettes/images/bas.gif trunk/module/recettes/images/btbleu.gif trunk/module/recettes/images/btjaune.gif trunk/module/recettes/images/btrouge.gif trunk/module/recettes/images/btvert.gif trunk/module/recettes/images/cadreB.gif trunk/module/recettes/images/cadreBD.gif trunk/module/recettes/images/cadreBG.gif trunk/module/recettes/images/cadreD.gif trunk/module/recettes/images/cadreG.gif trunk/module/recettes/images/cadreH.gif trunk/module/recettes/images/cadreHD.gif trunk/module/recettes/images/citron.gif trunk/module/recettes/images/cube.gif trunk/module/recettes/images/fraise.gif trunk/module/recettes/images/incontournable.gif trunk/module/recettes/images/melon.gif trunk/module/recettes/images/photo.gif trunk/module/recettes/images/titreautres.gif trunk/module/recettes/images/titreclassement.gif trunk/module/recettes/index1.php trunk/module/recettes/recettes.php trunk/module/recettes/recettes.tpl trunk/module/recettes/recettes2.tpl Added: trunk/module/recettes/images/10.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/10.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/11.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/11.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/12.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/12.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/13.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/13.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/14.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/14.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/15.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/15.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/1a.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/1a.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/2.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/2.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/3.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/3.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/4.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/4.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/6.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/6.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/7.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/7.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/8.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/8.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/9.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/9.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/abricot.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/abricot.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/autres.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/autres.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/bas.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/bas.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/btbleu.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/btbleu.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/btjaune.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/btjaune.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/btrouge.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/btrouge.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/btvert.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/btvert.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/cadreB.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/cadreB.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/cadreBD.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/cadreBD.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/cadreBG.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/cadreBG.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/cadreD.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/cadreD.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/cadreG.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/cadreG.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/cadreH.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/cadreH.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/cadreHD.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/cadreHD.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/citron.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/citron.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/cube.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/cube.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/fraise.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/fraise.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/incontournable.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/incontournable.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/melon.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/melon.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/photo.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/photo.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/titreautres.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/titreautres.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/titreclassement.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/titreclassement.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/index1.php =================================================================== --- trunk/module/recettes/index1.php (rev 0) +++ trunk/module/recettes/index1.php 2006-11-26 19:32:14 UTC (rev 51) @@ -0,0 +1,155 @@ +<?php +/* +* Developp\xE9 par Duponcheel Alban +* Le 14 novembre 2006 +* Pour EasyBox " Le MOD graphique" +* Envoyez vos suggestions ou remarques sur le forum : +* http://www.easybox-mod.org/forums/index.php +* Source d'information : http://www.marmiton.org +*/ +$RACINE_REP = "../../"; +require ($RACINE_REP . '_framework/framework.php'); + +if(get_variable("urlf")){ +del_variable("urlf"); +} +if(get_variable("fromf")){ +del_variable("fromf"); +} + +//Si une categorie de recette est d\xE9finie +if (isset ($_REQUEST['categ'])) { + $categ = $_REQUEST['categ']; + $nomcat = $_REQUEST['nomcat']; + + $adrliens = 'recettes.php?etape=info&url=www.marmiton.org'; + $from2 = urldecode($_REQUEST['from']); + + if (isset ($_REQUEST['numliens'])) // Si Un numero de page de recette est definie le r\xE9cuperer + $numliens = $_REQUEST['numliens']; + else + $numliens = 1; // Sinon alller \xE0 la page 1 + + $fp = fopen($categ, "r"); //lecture du fichier + while (!feof($fp)) { //on parcoure toutes les lignes + $contenu .= fgets($fp, 4096); // lecture du contenu de la ligne + } + + if (isset ($_REQUEST['type'])) { // Si un type pr\xE9cis de liste est donn\xE9 + $type = $_REQUEST['type']; + if ($type == 'TOP') { // Liste TOP50 + $adresseMasque = '<TD><A HREF="..(.*)" class="lientexte"'; + $nomMasque = 'class="liennormal">(.*)<\/A><\/TD>'; + $numeroMasque = '"lientexte"><b>(.*).<\/b><\/A>'; + preg_match_all("/$nomMasque/", $contenu, $nomTabletemp); + preg_match_all("/$numeroMasque/", $contenu, $numeroTable); + + for ($i = 0; $i < 50; $i++) { + $nomTable[1][$i] = $numeroTable[1][$i] . ' - ' . $nomTabletemp[1][$i]; + } + $from = 'index1.php?categ=' . urlencode($categ) . '&numliens=' . $numliens . '&nomcat=' . urlencode($nomcat) . '&type=TOP&from=index1.php'; + + } + elseif ($type == 'INCONTOURNABLES') { //Liste Incontournables + $adrcourante = 'index1.php?categ=' . $categ . '&nomcat=' . $nomcat; + $adresseMasque = '<TD> <A HREF="..(.*)" class='; + $nomMasque = 'class="liennormal">(.*)<\/font><\/A><\/TD>'; + preg_match_all("/$nomMasque/", $contenu, $nomTable); + $adrliens = 'index1.php?nomcat=' . urlencode($nomcat) . '&type=INCONTOURNABLES2&categ=' . urlencode('http://www.marmiton.org'); + $from = 'index1.php?categ=' . urlencode($categ) . '&numliens=' . $numliens . '&nomcat=' . urlencode('Les incontournables') . '&type=INCONTOURNABLES&from=index1.php'; + } + elseif ($type == 'INCONTOURNABLES2') { //Liste Incontournables detaill\xE9s + $adresseMasque = '<LI><a href="(.*)"><b>'; + $nomMasque = 'recette=[0-9]+"><b>(.*)<\/b><\/a><\/LI>'; + preg_match_all("/$nomMasque/", $contenu, $nomTable); + $adresseinc = '/recettes/'; + $from2 = $_REQUEST['from']; + $from = 'index1.php?categ=' . urlencode($categ) . '&numliens=' . $numliens . '&nomcat=' . urlencode($nomcat) . '&type=INCONTOURNABLES2&from=' . urlencode($from2); + + } + elseif ($type == 'LISTE') { //Liste \xE0 partir des differents themes + $adresseMasque = 'bis"><a href="..(.*)">'; + $nomMasque = '">(.*)<\/a><\/div><\/li>'; + preg_match_all("/$nomMasque/", $contenu, $nomTable); + $from = 'index1.php?categ=' . urlencode($categ) . '&numliens=' . $numliens . '&nomcat=' . urlencode($nomcat) . '&type=LISTE&from=index1.php'; + } + } + preg_match_all("/$adresseMasque/", $contenu, $adresseTable); + + $taille = count($adresseTable[1]); + + if ($taille > 10) { // Si le nombre de recettes de la categorie est superieur \xE0 dix : cr\xE9er un index + for ($i = (($numliens * 10) - 10); $i < ($numliens * 10) && $i < $taille; $i++) { // Creation des liens + if (isset ($adresseinc)) + $adresse = stripslashes(urlencode($adresseinc . $adresseTable[1][$i])); + else + $adresse = stripslashes(urlencode($adresseTable[1][$i])); + + $nom = strip_tags(utf8_decode($nomTable[1][$i])); + $entrees .= '<a href="' . $adrliens . $adresse . '&nomcat=' . urlencode($nom) . '&from=' . stripslashes(urlencode($from)) . '">' . $nom .'</a><br>'; + } + + for ($i = 1; $i <= ceil($taille / 10); $i++) { // Cr\xE9ation de l'index + + if (isset ($type)) { + if ($i != $numliens) { // Si le numero du lien n'est pas celui de la page courante + if ($type == 'TOP') { + $lien .= '<a href="index1.php?categ=' . urlencode($categ) . '&nomcat=' . urlencode($nomcat). '&from=' . stripslashes(urlencode($from)) . '&numliens=' . $i . '&type=' . $type . '"><u>[' . (($i * 10) - 9) . '..' . ($i * 10) . ']</u></a> '; + }elseif($type == 'INCONTOURNABLES2') { + $lien .= '<a href="index1.php?categ=' . urlencode($categ) . '&nomcat=' . urlencode($nomcat). '&from=' . stripslashes(urlencode($from)) . '&numliens=' . $i . '&type=' . $type . '"><u>' . $i . '</u></a> '; + }else { + $lien .= '<a href="index1.php?categ=' . urlencode($categ) . '&nomcat=' . urlencode($nomcat). '&from=' . stripslashes(urlencode($from)) . '&numliens=' . $i . '&type=' . $type . '"><u>' . $i . '</u></a> '; + } + } else { // Si le numero du lien est celui de la page courante, le d\xE9sactiver + if ($type == 'TOP') { + $lien .= '[' . (($i * 10) - 9) . '..' . ($i * 10) . '] '; + } else { + $lien .= $numliens . ' '; + } + } + } else { + if ($i != $numliens) { + $lien .= '<a href="index1.php?categ=' . urlencode($categ) . '&nomcat=' . urlencode($nomcat). '&from=' . stripslashes(urlencode($from)) . '&numliens=' . $i . '"><u>' . $i . '</u></a> '; + } else { + $lien .= $numliens . ' '; + } + } + } + } else { // Si le nombre de recettes de la categorie est inferieur \xE0 dix : pas d'index + for ($i = 0; $i <= $taille; $i++) { + if (isset ($adresseinc)) + $adresse = stripslashes(urlencode($adresseinc . $adresseTable[1][$i])); + else + $adresse = stripslashes(urlencode($adresseTable[1][$i])); + + $nom = strip_tags(utf8_decode($nomTable[1][$i])); + $entrees .= '<a href="' . $adrliens . $adresse . '&nomcat=' . urlencode($nom) . '&from=' . stripslashes(urlencode($from)) . '">' . $nom . '</a><br>'; + } + } + + $LINK['red'] = $from2; + +} else { + $categ = ''; + if (isset ($_REQUEST['menu'])) { // Menu \xE0 afficher pass\xE9 en adresse + $menu = $_REQUEST['menu']; + $LINK['red'] = 'index1.php?menu=principal'; + } else { // Menu principal + $menu = 'principal'; + $LINK['red'] = $MODULE . '_menu/menu.php?cat=29'; + } +} + +$smarty->assign('from', $from2); +$smarty->assign('menu', $menu); +$smarty->assign('taille', $taille); +$smarty->assign('lien', $lien); +$smarty->assign('categ', $categ); +$smarty->assign('nomcat', $nomcat); +$smarty->assign('entrees', $entrees); +$smarty->assign('TITRE', 'Recettes'); +$smarty->assign('CONTENT', $smarty->fetch('recettes.tpl')); +$smarty->display('interface.tpl'); +?> + + Added: trunk/module/recettes/recettes.php =================================================================== --- trunk/module/recettes/recettes.php (rev 0) +++ trunk/module/recettes/recettes.php 2006-11-26 19:32:14 UTC (rev 51) @@ -0,0 +1,131 @@ +<?php +$RACINE_REP = "../../"; +require ($RACINE_REP . '_framework/framework.php'); + +//Recuperation de la variable URL pass\xE9 par l'adresse +$urlrecup = $_GET['url']; +$fromrecup = $_GET['from']; +$etape = $_GET['etape']; +$nom = $_GET['nomcat']; + + + +if(!get_variable("urlf")){ + save_variable("urlf", $urlrecup); + +} +if(!get_variable("fromf")){ + save_variable("fromf", $fromrecup); +} + +$url = get_variable("urlf"); +$from = get_variable("fromf"); + + +// Creation de l'URL de l'image associ\xE9e a la recette +$urlimg = urlencode('http://' . str_replace("recettes/recette.cfm?num_recette=", "pix/recettes/photos/normal/", $url) . '.jpg'); + +$fp = fopen('http://' . urldecode($url), "r"); //lecture du fichier +while (!feof($fp)) { //on parcoure toutes les lignes + $contenu .= fgets($fp, 4096); // lecture du contenu de la ligne +} + +// Si le le visiteur demande les informations sur la recette +if ($etape == 'info') { + + // R\xE9cuperation du type de plat + $ereg = 'vspace=5 \/><IMG SRC="..\/pix\/recettes\/recette\/(.{1,15}).gif" BORDER="0"'; + preg_match("/$ereg/s", $contenu, $valeur); + $type = strip_tags(utf8_decode($valeur[1])); + + // R\xE9cuperation de la difficult\xE9e + $ereg = '<table><tr valign="middle"><td><IMG SRC="..\/pix\/recettes\/recette\/(.{1,16}).gif" WIDTH='; + preg_match("/$ereg/s", $contenu, $valeur); + $difficultee = str_replace('_',' ',strip_tags(utf8_decode($valeur[1]))); + + // R\xE9cuperation du cout de la recette + $ereg = 'WIDTH="18" HEIGHT="18" BORDER="0" ALT="(.{1,25})"><\/td><\/tr><\/table>'; + preg_match("/$ereg/s", $contenu, $valeur); + $cout = strip_tags(utf8_decode($valeur[1])); + + // R\xE9cup\xE9ration du temps de pr\xE9paration + $ereg = 'paration :(.{1,20})<BR>'; + preg_match("/$ereg/s", $contenu, $valeur); + $tpsprepa = utf8_decode($valeur[1]); + + // R\xE9cup\xE9ration du temps de cuisson + $ereg = 'Cuisson : (.{1,20})[(<BR><BR>)($)]'; + preg_match("/$ereg/s", $contenu, $valeur); + $tpscui = strip_tags(utf8_decode($valeur[1])); + + // Test si la recette est associ\xE9e \xE0 une image + if (preg_match("/photo.gif/", $contenu)) { + $smarty->assign('urlimg', $urlimg); // Si oui + } else { + $smarty->assign('urlimg', "false"); // Si non + } + + $smarty->assign('nom', $nom); + $smarty->assign('type', $type); + $smarty->assign('difficultee', $difficultee); + $smarty->assign('cout', $cout); + $smarty->assign('tpsprepa', $tpsprepa); + $smarty->assign('tpscui', $tpscui); + +} + +Else { + // Si le visiteur demande les ingredients de la recette + if ($etape == 'ingr') { + $ereg = 'dients (.*)....paration :'; + preg_match("/$ereg/s", $contenu, $valeur); + $ingredients = 'ingr\xE9dients ' . utf8_decode($valeur[1]); + $smarty->assign('ingredients', $ingredients); + } Else { + // Si le visiteur demande la pr\xE9paration de la recette + if ($etape == 'prepa') { + $ereg = 'paration :<BR>(.*). +<\/span><\/TD>'; + preg_match("/$ereg/s", $contenu, $valeur); + $preparation = '<div style="text-align: left">' . utf8_decode($valeur[1]) . '.<\/div>'; + $smarty->assign('preparation', $preparation); + } Else { + // Si le visiteur veux voir la photo de la recette + if ($etape == 'photo') { + $smarty->assign('urlimg', $urlimg); + } + } + } + +} + +$urlphoto = 'recettes.php?etape=photo&url=' . $url; +$urlprepa = 'recettes.php?etape=prepa&from=' . $from . '&url=' . $url; +$urlinfo = 'recettes.php?etape=info&from=' . $from . '&url=' . $url; +$urlingr = 'recettes.php?etape=ingr&from=' . $from . '&url=' . $url; + +if ($etape == 'photo') { + $urlretour = $urlinfo; +} else { + $urlretour = $from; +} + + +$LINK['red'] = $urlretour; +$LINK['blue'] = $urlingr; +$LINK['green'] = $urlprepa; +$LINK['yellow'] = $urlinfo; +$smarty->assign('from', $from); +$smarty->assign('nom', $nom); +$smarty->assign('urlphoto', $urlphoto); +$smarty->assign('urlinfo', $urlinfo); +$smarty->assign('urlprepa', $urlprepa); +$smarty->assign('urlingr', $urlingr); +$smarty->assign('urlretour', $urlretour); +$smarty->assign('etape', $etape); +$smarty->assign('TITRE', $nom); +$smarty->assign('CONTENT', $smarty->fetch('recettes2.tpl')); +$smarty->display('interface.tpl'); +?> + + Added: trunk/module/recettes/recettes.tpl =================================================================== --- trunk/module/recettes/recettes.tpl (rev 0) +++ trunk/module/recettes/recettes.tpl 2006-11-26 19:32:14 UTC (rev 51) @@ -0,0 +1,223 @@ + +{if $categ!=''} + + + +<table border="0" cellpadding="0" cellspacing="0" height="373" width="490"> + <tr> + <td><img src="images/1a.gif" border="0" width="22" height="15" alt=""></td> + <td><img src="images/2.gif" border="0" width="450" height="15" alt=""></td> + <td><img src="images/3.gif" border="0" width="18" height="15" alt=""></td> + </tr> + <tr> + <td><img src="images/4.gif" border="0" width="22" height="24" alt=""></td> + <td height="23" width="450" bgcolor="#ECBF4A" align=center> + <font face="Arial" color="#800000">{$nomcat} ({$taille} recettes)</font></td> + <td><img src="images/6.gif" border="0" width="18" height="24" alt=""></td> + </tr> + <tr> + <td><img src="images/7.gif" border="0" width="22" height="7" alt=""></td> + <td><img src="images/8.gif" border="0" width="450" height="7" alt=""></td> + <td><img src="images/9.gif" border="0" width="18" height="7" alt=""></td> + </tr> + <tr> + <td><img src="images/10.gif" border="0" width="22" height="311" alt=""></td> + <td height="311" width="450" background="images/11.gif"> + <table border="0" width="450" height="275"> + <tr> + <td valign="top" height="275"> +<TABLE class=normal cellSpacing=5 cellPadding=0 align=center border=0 valign="middle"> +<TBODY> +<TR> +<td valign="top" align="left"> +<font face="Arial" size="4"> + +{$entrees} +</font><br /> +</TD></TR> +<TR> +<td valign="bottom" align="center" height=100%> +{$lien} + +</TD></TR></TABLE> + + +</td> + </tr> +</table> +</td> + <td><img src="images/12.gif" border="0" width="18" height="311" alt=""></td> + </tr> + <tr> + <td><img src="images/13.gif" border="0" width="22" height="16" alt=""></td> + <td><img src="images/14.gif" border="0" width="450" height="16" alt=""></td> + <td><img src="images/15.gif" border="0" width="18" height="16" alt=""></td> + </tr> +</table> + + + + + +{else} +{if $menu=='liste'} + +<table border="0" cellpadding="0" cellspacing="0"> + <tr> + <td><img src="images/cube.gif" border="0" width="37" height="38" alt=""></td> + <td background="images/cadreH.gif" height="38"><img src="images/titreautres.gif" border="0" alt=""></td> + <td><img src="images/cadreHD.gif" border="0" width="37" height="38" alt=""></td> + </tr> + <tr> + <td background="images/cadreG.gif" width="37"> </td> + <td> +<table border=0 cellpadding=2 summary=""> + <tr> + <td bgcolor=#FFFF00 align=center>Occasion</td> + <td bgcolor=#FFFF00 align=center>Profil</td> + </tr> + <tr> + <td bgcolor=gray> <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_buffet.cfm'|urlencode}&nomcat={'Buffet'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Buffet</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_petit_dejeuner.cfm'|urlencode}&nomcat={'Brunch et Petit D\xE9jeuner'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Brunch et Petit D\xE9jeuner</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_second_service.cfm'|urlencode}&nomcat={'Second service'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Second service</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_barbecue.cfm'|urlencode}&nomcat={'Do you Barbecue ?'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Do you Barbecue ?</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_chandeleur.cfm'|urlencode}&nomcat={'Chandeleur'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Chandeleur</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_saint_valentin_romeo_et_juliette.cfm'|urlencode}&nomcat={'Saint Valentin'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Saint Valentin</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_mardi_gras.cfm'|urlencode}&nomcat={'Mardi Gras'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Mardi Gras</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_paques.cfm'|urlencode}&nomcat={'P\xE2ques'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">P\xE2ques</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_fete_des_meres.cfm'|urlencode}&nomcat={'F\xEAte des M\xE8res'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">F\xEAte des M\xE8res</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_halloween.cfm'|urlencode}&nomcat={'Halloween'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Halloween</a><br> + <td bgcolor=gray valign=top> <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_debutant.cfm'|urlencode}&nomcat={'Je d\xE9bute'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Je d\xE9bute</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_mincealors.cfm'|urlencode}&nomcat={'Mince alors !'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Mince alors !</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_vegetarien.cfm'|urlencode}&nomcat={'V\xE9g\xE9tarien'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">V\xE9g\xE9tarien</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_pleinlavue.cfm'|urlencode}&nomcat={'Plein la vue !'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Plein la vue !</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_etudiant.cfm'|urlencode}&nomcat={'Etudiant fauch\xE9'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Etudiant fauch\xE9</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_citadin.cfm'|urlencode}&nomcat={'Citadin stress\xE9'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Citadin stress\xE9</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_flemme.cfm'|urlencode}&nomcat={'Flemme'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Flemme</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_enfants.cfm'|urlencode}&nomcat={'Coin Enfant'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Coin Enfant</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_gastronome_econome.cfm'|urlencode}&nomcat={'Gastronome \xE9conome'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Gastronome \xE9conome</a></td> + </tr> + <tr> + <td bgcolor=#FFFF00 align=center>Region</td> + <td bgcolor=#FFFF00 align=center>Pays</td> + </tr> + <tr> + <td bgcolor=gray> <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_alsace.cfm'|urlencode}&nomcat={'Alsace'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Alsace</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_midi.cfm'|urlencode}&nomcat={'Midi'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Midi</a></td> + <td bgcolor=gray rowspan=3> <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_asie.cfm'|urlencode}&nomcat={'Asie'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Asie</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_indienne.cfm'|urlencode}&nomcat={'Indes'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Indes</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_belgique.cfm'|urlencode}&nomcat={'Belgique'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Belgique</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_texmex.cfm'|urlencode}&nomcat={'Tex-Mex'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Tex-Mex</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_iles.cfm'|urlencode}&nomcat={'Tex-Mex'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Iles</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_oasis.cfm'|urlencode}&nomcat={'Oasis'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Oasis</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_italienne.cfm'|urlencode}&nomcat={'Italie'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Italie</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_american_dream.cfm'|urlencode}&nomcat={'Amerique'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Amerique</a> + </td> + </tr> + <tr> + <td bgcolor=#FFFF00 align=center>Saison</td> + </tr> + <tr> + <td bgcolor=gray> <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_printemps.cfm'|urlencode}&nomcat={'Printemps'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Printemps</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_ete.cfm'|urlencode}&nomcat={'Et\xE9'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Et\xE9</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_automne.cfm'|urlencode}&nomcat={'Automne'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Automne</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_hiver.cfm'|urlencode}&nomcat={'Hiver'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Hiver</a></td> + </tr> +</table> + </td> + <td background="images/cadreD.gif" width="37"> </td> + </tr> + <tr> + <td><img src="images/cadreBG.gif" border="0" width="37" height="38" alt=""></td> + <td background="images/cadreB.gif" height="38"> </td> + <td><img src="images/cadreBD.gif" border="0" width="37" height="38" alt=""></td> + </tr> +</table> + + +{elseif $menu=='principal'} +<table border="0" cellpadding="0" cellspacing="0"> + <tr> + <td><img src="images/cube.gif" border="0" width="37" height="38" alt=""></td> + <td background="images/cadreH.gif" height="38"><img src="images/titreclassement.gif" border="0" alt=""></td> + <td><img src="images/cadreHD.gif" border="0" width="37" height="38" alt=""></td> + </tr> + <tr> + <td background="images/cadreG.gif" width="37"> </td> + <td> +<table summary="" border="0"> + <tr> + <td align="center"><img src="images/citron.gif" border="0"></td> + <td align="center"><img src="images/melon.gif" border="0"></td> + <td align="center"><img src="images/fraise.gif" border="0"></td> + <td align="center"><img src="images/abricot.gif" border="0"></td> + </tr> + <tr> + <td align="center"><a href="index1.php?categ={'http://www.marmiton.org/recettes/top_50_internautes.cfm'|urlencode}&nomcat={'TOP 50 toutes categories'|urlencode}&type=TOP&from=index1.php">General</a> </td> + <td align="center"><a href="index1.php?categ={'http://www.marmiton.org/recettes/top_50_internautes_entrees.cfm'|urlencode}&nomcat={'TOP 50 des entr\xE9es'|urlencode}&type=TOP&from=index1.php">Entr\xE9es</a> </td> + <td align="center"><a href="index1.php?categ={'http://www.marmiton.org/recettes/top_50_internautes_plats.cfm'|urlencode}&nomcat={'TOP 50 des plats'|urlencode}&type=TOP&from=index1.php">Plats</a> </td> + <td align="center"><a href="index1.php?categ={'http://www.marmiton.org/recettes/top_50_internautes_desserts.cfm'|urlencode}&nomcat={'TOP 50 des desserts'|urlencode}&type=TOP&from=index1.php">Desserts</a> </td> + </tr> + </table> + + </td> + <td background="images/cadreD.gif" width="37"> </td> + </tr> + <tr> + <td><img src="images/cadreBG.gif" border="0" width="37" height="38" alt=""></td> + <td background="images/cadreB.gif" height="38"> </td> + <td><img src="images/cadreBD.gif" border="0" width="37" height="38" alt=""></td> + </tr> +</table> + + + + <table border="0" cellpadding="0" cellspacing="0"> + <tr> + <td><img src="images/cube.gif" border="0" width="37" height="38" alt=""></td> + <td background="images/cadreH.gif" height="38"><img src="images/titreautres.gif" border="0" alt=""></td> + <td><img src="images/cadreHD.gif" border="0" width="37" height="38" alt=""></td> + </tr> + <tr> + <td background="images/cadreG.gif" width="37"> </td> + <td> + + <table summary="" border="0"> + <tr> + <td align="center"><img src="images/incontournable.gif" border="0"></td> + <td align="center"><img src="images/autres.gif" border="0"></td> + </tr> + <tr> + <td align="center"><a href="index1.php?categ={'http://www.marmiton.org/recettes/recettes_incontournables.cfm'|urlencode}&nomcat={'Les incontournables'|urlencode}&type=INCONTOURNABLES&from=index1.php">Incontournables</a></td> + <td align="center"><a href="index1.php?menu=liste">Themes</a></td> + </tr> +</table> + </td> + <td background="images/cadreD.gif" width="37"> </td> + </tr> + <tr> + <td><img src="images/cadreBG.gif" border="0" width="37" height="38" alt=""></td> + <td background="images/cadreB.gif" height="38"> </td> + <td><img src="images/cadreBD.gif" border="0" width="37" height="38" alt=""></td> + </tr> +</table> + +{/if} +{/if} + + + + + + + + + + + + + + + + + Added: trunk/module/recettes/recettes2.tpl =================================================================== --- trunk/module/recettes/recettes2.tpl (rev 0) +++ trunk/module/recettes/recettes2.tpl 2006-11-26 19:32:14 UTC (rev 51) @@ -0,0 +1,130 @@ +{if $etape!='photo'} +<table border="0" cellpadding="0" cellspacing="0" height="373" width="490"> + <tr> + <td><img src="images/1a.gif" border="0" width="22" height="15" alt=""></td> + <td><img src="images/2.gif" border="0" width="450" height="15" alt=""></td> + <td><img src="images/3.gif" border="0" width="18" height="15" alt=""></td> + </tr> + <tr> + <td><img src="images/4.gif" border="0" width="22" height="24" alt=""></td> + <td height="23" width="450" bgcolor="#ECBF4A"> + + + <table width=450 border=0 summary=""> + <tr> + <td width=113><img src="images/btjaune.gif" border="0" align="left"> <a href="{$urlinfo}">Information</a></td> + <td width=113><img src="images/btbleu.gif" border="0" align="left"> <a href="{$urlingr}">Ingr\xE9dients</a></td> + <td width=115><img src="images/btvert.gif" border="0" lign="left"> <a href="{$urlprepa}">Pr\xE9paration</a></td> + <td width=109><img src="images/btrouge.gif" border="0" align="left"> <a href="{$urlretour}">Retour</a></td> + </tr> +</table> + + + </td> + <td><img src="images/6.gif" border="0" width="18" height="24" alt=""></td> + </tr> + <tr> + <td><img src="images/7.gif" border="0" width="22" height="7" alt=""></td> + <td><img src="images/8.gif" border="0" width="450" height="7" alt=""></td> + <td><img src="images/9.gif" border="0" width="18" height="7" alt=""></td> + </tr> + <tr> + <td background="images/10.gif"></td> + <td height="311" width="450" background="images/11.gif"> + <table border="0" width="450" height="275"> + <tr> + <td valign="top" height="275"> + +{if $etape=='info'} +<font face="Arial" size="4"> + + {if $urlimg!="false"} + <table cellpadding="0" cellspacing="0" border="0"> + <tr> +<td valign="top" width=450 height="275"> +<table border="0" width="450" border="0" cellpadding="0" cellspacing="0"> + <tr> + <td width="100" height="49" align=center><img src="images/photo.gif" border="0" width="53" height="49" alt=""> + </td> + </tr> + <tr> + <td align="center" width="100" height="49"> + <a href="{$urlphoto}"><u>Photo</u></a></td> + </tr> + <tr> + <td align="center" width="100" height="30"> </td> + </tr> +</table> + {/if} + + <font face="Arial" size="34"> + +<table summary="" border="0"> + <tr> + <td><b>Type :</b></td> + <td>{$type}</td> + </tr> + <tr> + <td><b>Difficult\xE9e :</b></td> + <td>{$difficultee}</td> + </tr> + <tr> + <td><b>Co\xFBt :</b></td> + <td>{$cout}</td> + </tr> + <tr> + <td><b>Temps de pr\xE9paration :</b></td> + <td><font color="#CC0000">{$tpsprepa}</font></td> + </tr> + <tr> + <td><b>Temps de cuisson :</b></td> + <td><font color="#CC0000">{$tpscui}</font></td> + </tr> +</table> + {if $urlimg!="false"} + + </td> + </tr> +</table> +{/if} + +</font> +{/if} +{if $etape=='ingr'} +<font face="Arial" size="4"> +<div style="text-align: left">{$ingredients}</div> + </font> +{/if} +{if $etape=='prepa'} +<font face="Arial" size="4"> +{$preparation} + </font> +{/if} + + + + +</td> + </tr> +</table> +</td> + <td background="images/12.gif"> </td> + </tr> + <tr> + <td><img src="images/13.gif" border="0" width="22" height="16" alt=""></td> + <td><img src="images/14.gif" border="0" width="450" height="16" alt=""></td> + <td><img src="images/15.gif" border="0" width="18" height="16" alt=""></td> + </tr> +</table> +{else} +<img src="{$IMG2FBX}{$urlimg}" border="0" alt="" width="512" height="384"> +{/if} + + + + + + + + + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2006-11-26 15:38:33
|
Revision: 50 http://svn.sourceforge.net/easybox-mod/?rev=50&view=rev Author: aragornis Date: 2006-11-26 07:38:30 -0800 (Sun, 26 Nov 2006) Log Message: ----------- Possibilit?\195?\169 de modifier sa skin depuis la configuration Modif sur le module "modules" Modified Paths: -------------- trunk/_framework/fonctions_partagees.inc.php trunk/_framework/framework.php trunk/_utilisateur/modules.db trunk/configuration/skin.php trunk/module/modules/modules.tpl trunk/module/mp3/playdb.php trunk/module/reseaufree/province.png Modified: trunk/_framework/fonctions_partagees.inc.php =================================================================== --- trunk/_framework/fonctions_partagees.inc.php 2006-11-19 08:37:18 UTC (rev 49) +++ trunk/_framework/fonctions_partagees.inc.php 2006-11-26 15:38:30 UTC (rev 50) @@ -537,4 +537,59 @@ sqlite_close($db); } + +function list_skin(){ +global $RACINE_REP; + $db = sqlite_open($RACINE_REP.'_utilisateur/modules.db', 0666); + + $res = sqlite_query($db,'SELECT * FROM modules WHERE type="Skin"'); + + $SKINS = array(); + while($element = sqlite_fetch_object($res)){ + $SKINS[] = array('nom'=>$element->nom,'repertoire'=>$element->repertoire,'description'=>$element->description,'version'=>$element->version); + } + sqlite_close($db); + return $SKINS; +} + + +function change_template($tpl){ +global $RACINE_REP; + +function ClearDirectory($path){ + if($dir_handle = opendir($path)){ + while($file = readdir($dir_handle)){ + if($file == "." || $file == ".."){ + if(!@unlink($path."/".$file)){ + continue; + } + }else{ + @unlink($path."/".$file); + } + } + closedir($dir_handle); + return true; +// all files deleted + }else{ + return false; +// directory doesn?t exist + } +} + +ClearDirectory(realpath($RACINE_REP.'_framework/lib/cache/')); + + $ini1 = parse_ini_file($RACINE_REP.'_utilisateur/configuration.ini', TRUE); + foreach($ini1 as $key2=>$inisec2){ + $reini .="\n[".$key2."]\n"; + foreach($inisec2 as $subkey2=>$entry2){ + if($subkey2=="skin" && $key2=="skin") + $reini .=$subkey2.' = "'.$tpl."\"\n"; + else + $reini .=$subkey2.' = "'.$ini1[$key2][$subkey2]."\"\n"; + } + } +$handle = fopen($RACINE_REP.'_utilisateur/configuration.ini', "w"); +fwrite($handle, $reini); +fclose($handle); +} ?> Modified: trunk/_framework/framework.php =================================================================== --- trunk/_framework/framework.php 2006-11-19 08:37:18 UTC (rev 49) +++ trunk/_framework/framework.php 2006-11-26 15:38:30 UTC (rev 50) @@ -70,7 +70,7 @@ $xml_aide = simplexml_load_file($AIDE_REP."help.xml"); //-- R\xE9pertoire de la skin - $SKIN_REP = $RACINE_REP.'skin/'.$ini[skin][skin]."/"; + $SKIN_REP = $RACINE_REP.'skin/'.$ini['skin']['skin']."/"; $smarty->assign('SKIN_REP',$SKIN_REP); $THEME_REP = $RACINE_REP.'themes/'; $smarty->assign('THEME_REP',$THEME_REP); Modified: trunk/_utilisateur/modules.db =================================================================== (Binary files differ) Modified: trunk/configuration/skin.php =================================================================== --- trunk/configuration/skin.php 2006-11-19 08:37:18 UTC (rev 49) +++ trunk/configuration/skin.php 2006-11-26 15:38:30 UTC (rev 50) @@ -2,55 +2,24 @@ <table width="700" style="border: thin outset;font-size: 9px;"> <tr><td> <?php -function ClearDirectory($path){ - if($dir_handle = opendir($path)){ - while($file = readdir($dir_handle)){ - if($file == "." || $file == ".."){ - if(!@unlink($path."/".$file)){ - continue; - } - }else{ - @unlink($path."/".$file); - } - } - closedir($dir_handle); - return true; -// all files deleted - }else{ - return false; -// directory doesn?t exist - } -} -ClearDirectory(realpath('./../_framework/lib/cache/')); - +$RACINE_REP = "../"; if (isset($_GET['choiskin'])){ - $ini1 = parse_ini_file("../_utilisateur/configuration.ini", TRUE); - foreach($ini1 as $key2=>$inisec2){ - $reini .="\n[".$key2."]\n"; - foreach($inisec2 as $subkey2=>$entry2){ - if($subkey2=="skin" && $key2=="skin") - $reini .=$subkey2.' = "'.$_GET['choiskin']."\"\n"; - else - $reini .=$subkey2.' = "'.$ini1[$key2][$subkey2]."\"\n"; - } - } -$handle = fopen("../_utilisateur/configuration.ini", "w"); -fwrite($handle, $reini); -fclose($handle); + change_template($_GET['choiskin']); } +$skins = list_skin(); + // Chargement du fichier INI de configuration $ini = parse_ini_file("../_utilisateur/configuration.ini", TRUE); -$skincfg = $ini[skin][skin]; -$dir= scandir('../skin'); +$skincfg = $ini['skin']['skin']; ?> <form action="index1.php" method="get"> <?php - foreach($dir as $skin){ - if(is_dir('../skin/'.$skin) && substr($skin,0,1)!="." && $skin!="_commun"){ + foreach($skins as $skin){ + if(is_dir('../skin/'.$skin['repertoire'])){ ?> <table width="100%" border="0" cellspacing="0" cellpadding="3"> @@ -61,36 +30,29 @@ <td colspan="2" align="right"><table width="100%" border="0" cellspacing="3" cellpadding="1"> <tr> <td width="85%"><font><b> - <input type="radio" name="choiskin" value="<?= $skin; ?>" <?php if($skincfg==$skin) {echo' checked="checked" '; } ?>> - Skin : <?= $skin ?> + <input type="radio" name="choiskin" value="<?= $skin['nom']; ?>" <?php if(strtolower($skincfg)==strtolower($skin['nom'])) {echo' checked="checked" '; } ?>> + Skin : <?= $skin['nom'] ?> </b></font></td> </tr> </table></td> </tr> <tr> <td align="right" width=200> - <img style="height: 128px; border:0px;" src="../skin/<?= $skin; ?>/vuedensemble.gif" alt="<?= $skin; ?>"> + <img style="height: 128px; border:0px;" src="../skin/<?= $skin['repertoire']; ?>/vuedensemble.gif" alt="<?= $skin['nom']; ?>"> </td> <td width="783" valign="top"> <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td> - <?php - if (file_exists("../skin/".$skin."/info.php")) { - include ("../skin/".$skin."/info.php"); - } ?> - - <b>Auteur : </b> <?= $auteur; ?> <br> - <br> <b>Description :</b><br> - <?= $description; ?><br> + <?= $skin['nom']; ?><br> <br> - <b>Version : </b> <?= $version; ?></td> + <b>Version : </b> <?= $skin['version']; ?></td> </tr> <tr> <td align="right"> - <?php if (file_exists("../skin/".$skin."/config_skin.php")) { ?> - <a href="?<?= $_SERVER['QUERY_STRING']; ?>&act=config&skin=<?= $skin; ?>">Configurer la skin : <?= $skin; ?></a> + <?php if (file_exists("../skin/".$skin['nom']."/config_skin.php")) { ?> + <a href="?<?= $_SERVER['QUERY_STRING']; ?>&act=config&skin=<?= $skin['nom']; ?>">Configurer la skin : <?= $skin['nom']; ?></a> <?php }else{ echo "Pas d'options de configuration"; } ?> Modified: trunk/module/modules/modules.tpl =================================================================== --- trunk/module/modules/modules.tpl 2006-11-19 08:37:18 UTC (rev 49) +++ trunk/module/modules/modules.tpl 2006-11-26 15:38:30 UTC (rev 50) @@ -14,13 +14,17 @@ <td>{$MOD[mod].nom}</td> <td>{$MOD[mod].version}</td> <td>{$MOD[mod].description}</td> - <td width="20" bgcolor="{$COLOR}"><a href="index1.php?delid={$MOD[mod].id}"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{$COLOR}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}delete.gif" border="0" width="20" height="20"></td></tr></table></a></td> + <td width="20" bgcolor="{$COLOR}"><a href="index1.php?delid={$MOD[mod].id}&action={$action}"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{$COLOR}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}delete.gif" border="0" width="20" height="20"></td></tr></table></a></td> </tr> {if $smarty.section.mod.last}</table>{/if} {sectionelse} - Aucun module suppl\xE9mentaire n'est install\xE9. Pour installer, rendez-vous dans la partie "Nouveaux modules". + {if $action=="skin"} + Aucune skin suppl\xE9mentaire n'est install\xE9e. Pour en installer, rendez-vous dans la partie "Nouvelles skins". + {else} + Aucun module suppl\xE9mentaire n'est install\xE9. Pour en installer, rendez-vous dans la partie "Nouveaux modules". + {/if} {/section} {elseif $action=="newmod" OR $action=="newskin"} {section name=mod loop=$MOD} @@ -44,9 +48,12 @@ </tr> {if $smarty.section.mod.last}</table>{/if} - {sectionelse} - Aucun autre module n'est disponible. + {if $action=="newskin"} + Aucun skin n'est disponible. + {else} + Aucun autre module n'est disponible. + {/if} {/section} {/if} Modified: trunk/module/mp3/playdb.php =================================================================== --- trunk/module/mp3/playdb.php 2006-11-19 08:37:18 UTC (rev 49) +++ trunk/module/mp3/playdb.php 2006-11-26 15:38:30 UTC (rev 50) @@ -1,177 +1,177 @@ -<?php -$RACINE_REP = "../../"; - -require($RACINE_REP.'_framework/framework.php'); - -function sqlite_table_exists(&$db, $table){ - $result = sqlite_query($db, "SELECT name FROM sqlite_master WHERE type='table' AND name='$table'"); - return (sqlite_num_rows($result)!=0); -} - -$db = sqlite_open($USER.'audio.db', 0666); - -// On teste si la base des fichiers mp3/ogg existe bien -if (sqlite_table_exists($db, 'music')) { - -$ext_audio = $ini[explorateur][ext_audio]; -$audio_defaut = $ini[explorateur][audio_defaut]; -$afficher_fichier_cache = $ini[explorateur][afficher_fichier_cache]; -$default = $audio_defaut; -$extv = explode(",",$ext_audio); - -/* -//Construction de la playlist actuelle -$pagedinfo=file_get_contents('http://localhost:8081/module/mp3/lecteuraudio.html'); -eval($pagedinfo); - - if (is_array($pl)){ - foreach($pl as $key => $value) { - $variable .= '#EXTINF:0,'.utf8_encode($value[0]).' - '.utf8_encode($value[2]).' - '; - } - } -*/ - -//D\xE9finition du mode de lecture -$pisteaudio = $ini[multimedia][sortiefreebox]; -$decallage = $ini[multimedia][compensation]; -$file2 = @readfile('http://127.0.0.1:8081/lecteur/modif-config.html?type=0&var=audio-desync&value='.$decallage); - -if($pisteaudio=='TV'){ -// $META['aud'] = '69(en,mp2)'; - $add = 'type=2'; - $play = 'type=1'; - if($_GET['type']=="radio") { - $play = 'type=41'; - } - if ($_GET['type']=="m3u") { - $play = 'type=1'; - } - -}elseif($pisteaudio=='PC'){ - $add = 'type=4'; - $play = 'type=3'; - $decallage = $ini[multimedia][compensation]; - $file2 = @readfile('http://127.0.0.1:8081/lecteur/modif-config.html?type=0&var=audio-desync&value='.$decallage); - if($_GET['type']=="radio") { - $play = 'type=42'; - } - if ($_GET['type']=="m3u") { - $play = 'type=3'; - } - -}elseif($pisteaudio=='AC3'){ -// $META['aud'] = '69(en,ac3)'; - $add = 'type=6'; - $play = 'type=5'; - if($_GET['type']=="radio") { - $play = 'type=43'; - } - if ($_GET['type']=="m3u") { - $play = 'type=5'; - } - -} - -if (isset($_GET['option'])){ - $page = $add; -}else{ - $page = $play; -} - - -//Lecture en mode biblioth\xE8que - (isset($_GET['wf'])?$wherefield=$_GET['wf']:$wherefield=''); - (isset($_GET['wl'])?$wherelike=$_GET['wl']:$wherelike=''); - if ($wherefield!=''){ - $sqllike=$wherefield." LIKE \"".urldecode($wherelike)."%\""; - - $query = "SELECT * FROM music WHERE ".stripslashes($sqllike); - - $result=sqlite_query($db, $query); - while ($row = sqlite_fetch_array($result)) { - $basename = $row[filename]; - $variable .= " - ".utf8_encode(realpath($basename)); - } - } - - -//Lecture en mode explorateur seul -if(isset($_GET['toplay_rep']) && isset($_GET['toplay_file'])){ - $basename=$_GET['toplay_rep'].'/'.$_GET['toplay_file']; - /*$variable .= " - ".utf8_encode(realpath(stripslashes($basename))); */ - $variable .= '#EXTINF:0,'.utf8_encode($_GET['toplay_file']).' - '.utf8_encode(realpath(stripslashes($basename))).' - '; - -} - -//Lecture en mode explorateur dossier entier - if($_GET['type']=="playrep"){ - - function add_recursive($handle){ - global $extv, $variable; - $handle2=@opendir($handle); - while (false !== ($file = readdir($handle2))){ - if(in_array(strtolower(substr($file,strrpos($file,'.'))),$extv) && $file!='.'){ - $basename = $handle.'/'.$file; - $variable .= " - ".utf8_encode(realpath($basename)); - }elseif(is_dir($handle.'/'.$file) && $file!='.' && $file!='..'){ - add_recursive($handle.'/'.$file); - } - } - } - add_recursive(realpath(stripslashes($_REQUEST['toplay']))); -} - -//Lecture d'une webradio -if($_GET['type']=="webradio"){ - $basename = $_REQUEST['play']; - $nom = $_REQUEST['nom']; - save_variable('lastwebradio', urldecode($nom)); - play_fichier('type=40',$basename,0,'webradio'); -}elseif($_GET['type']=="m3u"){ - $basename = $_REQUEST['play']; - play_fichier($play,$basename,0,'mp3'); -}elseif($_GET['type']=="podcast"){ - save_variable('current_pod', urldecode($_GET['setlect'])); - $basename = $_REQUEST['play']; - play_fichier($play,$basename,0,'podcast'); -}elseif($_GET['type']=="cdda"){ - $basename = 'cdda://'.strtoupper($_REQUEST['disque']).':'; - play_fichier($play,$basename,0,'cd'); -}else{ - if(isset($_GET['toplay']) && $_GET['type']!="playrep"){ - $basename=$_GET['toplay']; - $variable .= " - ".utf8_encode(realpath(stripslashes($basename))); - } - //Cr\xE9ation de la playlist temporaire - $fp = fopen($USER.'audiotemp'.get_variable('num_playlist').'.m3u',"w+"); - fputs($fp,"#EXTM3U"); - fputs($fp,$variable); - fclose($fp); - play_fichier($page,$USER.'audiotemp'.get_variable('num_playlist').'.m3u',1,'mp3'); - save_variable('num_playlist', get_variable('num_playlist')+1); -} - -} -?> -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> -<html> -<head> -<?php -echo '<meta name="refresh" content="2;url=lecteuraudio.php">'; -?> -<flags volume_key=true> -</head> -<body background="ts://127.0.0.1" text="#f0f0f03f" link="#f0f0f03f" alink="#FCBE033f" vlink="#cc00003f"> -<script language="javascript" src="/fb2ie.js"> -</script> -</body> -</html> - +<?php +$RACINE_REP = "../../"; + +require($RACINE_REP.'_framework/framework.php'); + +function sqlite_table_exists(&$db, $table){ + $result = sqlite_query($db, "SELECT name FROM sqlite_master WHERE type='table' AND name='$table'"); + return (sqlite_num_rows($result)!=0); +} + +$db = sqlite_open($USER.'audio.db', 0666); + +// On teste si la base des fichiers mp3/ogg existe bien +if (sqlite_table_exists($db, 'music')) { + +$ext_audio = $ini[explorateur][ext_audio]; +$audio_defaut = $ini[explorateur][audio_defaut]; +$afficher_fichier_cache = $ini[explorateur][afficher_fichier_cache]; +$default = $audio_defaut; +$extv = explode(",",$ext_audio); + +/* +//Construction de la playlist actuelle +$pagedinfo=file_get_contents('http://localhost:8081/module/mp3/lecteuraudio.html'); +eval($pagedinfo); + + if (is_array($pl)){ + foreach($pl as $key => $value) { + $variable .= '#EXTINF:0,'.utf8_encode($value[0]).' + '.utf8_encode($value[2]).' + '; + } + } +*/ + +//D\xE9finition du mode de lecture +$pisteaudio = $ini[multimedia][sortiefreebox]; +$decallage = $ini[multimedia][compensation]; +$file2 = @readfile('http://127.0.0.1:8081/lecteur/modif-config.html?type=0&var=audio-desync&value='.$decallage); + +if($pisteaudio=='TV'){ +// $META['aud'] = '69(en,mp2)'; + $add = 'type=2'; + $play = 'type=1'; + if($_GET['type']=="radio") { + $play = 'type=40'; + } + if ($_GET['type']=="m3u" OR $_GET['type']=="webradio") { + $play = 'type=1'; + } + +}elseif($pisteaudio=='PC'){ + $add = 'type=4'; + $play = 'type=3'; + $decallage = $ini[multimedia][compensation]; + $file2 = @readfile('http://127.0.0.1:8081/lecteur/modif-config.html?type=0&var=audio-desync&value='.$decallage); + if($_GET['type']=="radio") { + $play = 'type=41'; + } + if ($_GET['type']=="m3u" OR $_GET['type']=="webradio") { + $play = 'type=3'; + } + +}elseif($pisteaudio=='AC3'){ +// $META['aud'] = '69(en,ac3)'; + $add = 'type=6'; + $play = 'type=5'; + if($_GET['type']=="radio" OR $_GET['type']=="webradio") { + $play = 'type=42'; + } + if ($_GET['type']=="m3u") { + $play = 'type=5'; + } + +} + +if (isset($_GET['option'])){ + $page = $add; +}else{ + $page = $play; +} + + +//Lecture en mode biblioth\xE8que + (isset($_GET['wf'])?$wherefield=$_GET['wf']:$wherefield=''); + (isset($_GET['wl'])?$wherelike=$_GET['wl']:$wherelike=''); + if ($wherefield!=''){ + $sqllike=$wherefield." LIKE \"".urldecode($wherelike)."%\""; + + $query = "SELECT * FROM music WHERE ".stripslashes($sqllike); + + $result=sqlite_query($db, $query); + while ($row = sqlite_fetch_array($result)) { + $basename = $row[filename]; + $variable .= " + ".utf8_encode(realpath($basename)); + } + } + + +//Lecture en mode explorateur seul +if(isset($_GET['toplay_rep']) && isset($_GET['toplay_file'])){ + $basename=$_GET['toplay_rep'].'/'.$_GET['toplay_file']; + /*$variable .= " + ".utf8_encode(realpath(stripslashes($basename))); */ + $variable .= '#EXTINF:0,'.utf8_encode($_GET['toplay_file']).' + '.utf8_encode(realpath(stripslashes($basename))).' + '; + +} + +//Lecture en mode explorateur dossier entier + if($_GET['type']=="playrep"){ + + function add_recursive($handle){ + global $extv, $variable; + $handle2=@opendir($handle); + while (false !== ($file = readdir($handle2))){ + if(in_array(strtolower(substr($file,strrpos($file,'.'))),$extv) && $file!='.'){ + $basename = $handle.'/'.$file; + $variable .= " + ".utf8_encode(realpath($basename)); + }elseif(is_dir($handle.'/'.$file) && $file!='.' && $file!='..'){ + add_recursive($handle.'/'.$file); + } + } + } + add_recursive(realpath(stripslashes($_REQUEST['toplay']))); +} + +//Lecture d'une webradio +if($_GET['type']=="webradio"){ + $basename = $_REQUEST['play']; + $nom = $_REQUEST['nom']; + save_variable('lastwebradio', urldecode($nom)); + play_fichier($play,$basename,0,'webradio'); +}elseif($_GET['type']=="m3u"){ + $basename = $_REQUEST['play']; + play_fichier($play,$basename,0,'mp3'); +}elseif($_GET['type']=="podcast"){ + save_variable('current_pod', urldecode($_GET['setlect'])); + $basename = $_REQUEST['play']; + play_fichier($play,$basename,0,'podcast'); +}elseif($_GET['type']=="cdda"){ + $basename = 'cdda://'.strtoupper($_REQUEST['disque']).':'; + play_fichier($play,$basename,0,'cd'); +}else{ + if(isset($_GET['toplay']) && $_GET['type']!="playrep"){ + $basename=$_GET['toplay']; + $variable .= " + ".utf8_encode(realpath(stripslashes($basename))); + } + //Cr\xE9ation de la playlist temporaire + $fp = fopen($USER.'audiotemp'.get_variable('num_playlist').'.m3u',"w+"); + fputs($fp,"#EXTM3U"); + fputs($fp,$variable); + fclose($fp); + play_fichier($page,$USER.'audiotemp'.get_variable('num_playlist').'.m3u',1,'mp3'); + save_variable('num_playlist', get_variable('num_playlist')+1); +} + +} +?> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<html> +<head> +<?php +echo '<meta name="refresh" content="2;url=lecteuraudio.php">'; +?> +<flags volume_key=true> +</head> +<body background="ts://127.0.0.1" text="#f0f0f03f" link="#f0f0f03f" alink="#FCBE033f" vlink="#cc00003f"> +<script language="javascript" src="/fb2ie.js"> +</script> +</body> +</html> + Modified: trunk/module/reseaufree/province.png =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2006-11-19 08:37:22
|
Revision: 49 http://svn.sourceforge.net/easybox-mod/?rev=49&view=rev Author: aragornis Date: 2006-11-19 00:37:18 -0800 (Sun, 19 Nov 2006) Log Message: ----------- Correction du bug lors de la mise en pause (cf http://www.easybox-mod.org/forums/viewtopic.php?id=1180) Modified Paths: -------------- trunk/module/films/lecture.php Modified: trunk/module/films/lecture.php =================================================================== --- trunk/module/films/lecture.php 2006-11-18 11:09:10 UTC (rev 48) +++ trunk/module/films/lecture.php 2006-11-19 08:37:18 UTC (rev 49) @@ -11,7 +11,9 @@ $META['front_panel'] = strtoupper($VLC['etat']); //Si aucune frame vid\xE9o n'est affich\xE9e : -$META['nopicture'] = '20;url=lecture.php?control=stop&signet=noload&errorload=1'; +if($VLC['etat']!='pause'){ + $META['nopicture'] = '20;url=lecture.php?control=stop&signet=noload&errorload=1'; +} $affiche =""; if (isset($_REQUEST['control'])) @@ -175,8 +177,7 @@ $file1 = file_get_contents('http://127.0.0.1:8081/lecteur/action.html?control=seek&seek_value='.$value); } -if($VLC['etat']=='pause') -{ +if($VLC['etat']=='pause'){ $OSD .= ' Pause '; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2006-11-18 11:09:12
|
Revision: 48 http://svn.sourceforge.net/easybox-mod/?rev=48&view=rev Author: aragornis Date: 2006-11-18 03:09:10 -0800 (Sat, 18 Nov 2006) Log Message: ----------- Nouvelles ?\195?\169missions de France t?\195?\169l?\195?\169vision Passage en version 3.4.11 Modified Paths: -------------- trunk/_utilisateur/modules.db trunk/module/jt/flux.xml trunk/version.html Modified: trunk/_utilisateur/modules.db =================================================================== (Binary files differ) Modified: trunk/module/jt/flux.xml =================================================================== --- trunk/module/jt/flux.xml 2006-11-17 19:49:18 UTC (rev 47) +++ trunk/module/jt/flux.xml 2006-11-18 11:09:10 UTC (rev 48) @@ -9,12 +9,15 @@ <flux name="Journal de 8h" jours="1,2,3,4,5,6" heure="9" datetype="Ymd">mms://sdmc.contents.edgestreams.net/horsgv/regions/siege/infos/f2/8h/HD_8h_##.wmv</flux> <flux name="Journal de 13h" jours="0,1,2,3,4,5,6" heure="15" datetype="Ymd">mms://sdmc.contents.edgestreams.net/horsgv/regions/siege/infos/f2/13h/HD_13h_##.wmv</flux> <flux name="Journal de 20h" jours="0,1,2,3,4,5,6" heure="21" datetype="Ymd">mms://sdmc.contents.edgestreams.net/horsgv/regions/siege/infos/f2/20h/HD_20h_##.wmv</flux> + <flux name="Compl\xE9ment d'enqu\xEAte" jours="2" heure="24" datetype="Ymd">mms://a988.v101995.c10199.e.vm.akamaistream.net/7/988/10199/3f97c7e6/ftvigrp.download.akamai.com/10199/sgv/diff/videotheque/info/videosemissions/videocomplement/18F52_complement-enuete.wmv</flux> </chaine> <chaine name="France 3"> <flux name="Le 12/13" jours="0,1,2,3,4,5,6" heure="15" datetype="Ymd">mms://sdmc.contents.edgestreams.net/horsgv/regions/siege/infos/f3/1214/HD_1214_##.wmv</flux> <flux name="Le 19/20" jours="0,1,2,3,4,5,6" heure="21" datetype="Ymd">mms://sdmc.contents.edgestreams.net/horsgv/regions/siege/infos/f3/1920/HD_1920_##.wmv</flux> <flux name="Soir 3" jours="0,1,2,3,4,5,6" heure="24" datetype="Ymd">mms://sdmc.contents.edgestreams.net/horsgv/regions/siege/infos/f3/soir3/HD_soir3_##.wmv</flux> - </chaine> + <flux name="Ce soir ou jamais" jours="1,2,3,4" heure="24" datetype="Ymd">mms://a988.v101995.c10199.e.vm.akamaistream.net/7/988/10199/3f97c7e6/ftvigrp.download.akamai.com//10199/horsgv/regions/siege/france3/cesoiroujamais/##_csoj.wmv</flux> + <flux name="France Europe Express" jours="0" heure="24" datetype="dmy">mms://a988.v101995.c10199.e.vm.akamaistream.net/7/988/10199/3f97c7e6/ftvigrp.download.akamai.com/10199/sgv/diff/videotheque/info/videosemissions/videos_fee/46169_fee_##.wmv</flux> + </chaine> <chaine name="France 5"> <flux name="Ca ne va pas durer" jours="5" heure="24" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/ca-ne-va-pas-durer/canevapasdurer.wmv</flux> <flux name="C dans l'air" jours="1,2,3,4,5" heure="20" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/cdanslair/cdanslair_##.wmv</flux> @@ -32,8 +35,7 @@ <flux name="Dossier Scheffer" jours="0" heure="24" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/dossier-scheffer/dossier-scheffer.wmv</flux> <flux name="Le bateau livre" jours="4" heure="23" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/bateaulivre/bateaulivre.wmv</flux> <flux name="Echapp\xE9es belles" jours="6" heure="24" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/echappeesbelles/echappeesbelles_##.wmv</flux> - - + <flux name="L'escapade de Petitrenaud" jours="0" heure="15" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/escapades/escapades_##.wmv</flux> </chaine> <chaine name="RFO"> <flux name="JT RFO" jours="0,1,2,3,4,5,6" heure="24" datetype="Ymd">mms://a1977.v107941105128907.c10794.g.vm.akamaistream.net/7/1977/10794/1105128907/rfosat.download.akamai.com/10794/rfo_sat/jt_##-150k.wmv</flux> Modified: trunk/version.html =================================================================== --- trunk/version.html 2006-11-17 19:49:18 UTC (rev 47) +++ trunk/version.html 2006-11-18 11:09:10 UTC (rev 48) @@ -4,6 +4,6 @@ </head> <body> <h1>Easybox</h1> -<h2>3.4.10</h2> +<h2>3.4.11</h2> </body> </html> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2006-11-17 19:49:21
|
Revision: 47 http://svn.sourceforge.net/easybox-mod/?rev=47&view=rev Author: aragornis Date: 2006-11-17 11:49:18 -0800 (Fri, 17 Nov 2006) Log Message: ----------- Modified Paths: -------------- trunk/_utilisateur/audiotemp.m3u trunk/_utilisateur/multiposte.m3u trunk/module/jt/flux.xml trunk/module/mp3/lecteuraudio.php trunk/module/mp3/playdb.php Removed Paths: ------------- trunk/module/mp3/play.php Modified: trunk/_utilisateur/audiotemp.m3u =================================================================== --- trunk/_utilisateur/audiotemp.m3u 2006-11-01 22:41:54 UTC (rev 46) +++ trunk/_utilisateur/audiotemp.m3u 2006-11-17 19:49:18 UTC (rev 47) @@ -1,3 +1,2 @@ -#EXTM3U#EXTINF:0,Wyclef Jean{test} - 911.mp3 - d:\Ma musique\Wyclef Jean{test} - 911.mp3 - \ No newline at end of file +#EXTM3U + d:\Ma musique\Kill Bill Vol. 1 - Soundtrack\Kill Bill Vol. 1 Soundtrack - Al Hirt - 08 - Green Hornet.mp3 \ No newline at end of file Modified: trunk/_utilisateur/multiposte.m3u =================================================================== --- trunk/_utilisateur/multiposte.m3u 2006-11-01 22:41:54 UTC (rev 46) +++ trunk/_utilisateur/multiposte.m3u 2006-11-17 19:49:18 UTC (rev 47) @@ -45,6 +45,12 @@ rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=206 #EXTINF:0,24 - France ô rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=238 +#EXTINF:0,25 - RTBF Sat +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=448 +#EXTINF:0,26 - France Télévisions HD +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=491 +#EXTINF:0,36 - Mangas +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=253 #EXTINF:0,37 - Game One rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=220 #EXTINF:0,40 - M6 Music Hits @@ -63,26 +69,42 @@ rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=230 #EXTINF:0,47 - MTV Hits rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=231 +#EXTINF:0,48 - VH1 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=233 +#EXTINF:0,49 - VH1 Classic +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=232 +#EXTINF:0,50 - Télé Mélody +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=237 #EXTINF:0,51 - Trace TV rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=228 #EXTINF:0,52 - ZIK rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=218 +#EXTINF:0,53 - Mezzo +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=265 +#EXTINF:0,54 - Musique Classique +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=254 #EXTINF:0,57 - Mizik Tropical rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=468 -#EXTINF:0,60 - L'Equipe TV -rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=209 +#EXTINF:0,58 - Star Academy 6 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=406 #EXTINF:0,61 - Equidia rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=212 #EXTINF:0,62 - ESPN Classic Sport rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=264 #EXTINF:0,63 - AB Moteurs rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=222 +#EXTINF:0,64 - Motors TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=216 #EXTINF:0,70 - Bloomberg TV rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=207 -#EXTINF:0,72 - CNBC -rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=208 +#EXTINF:0,73 - BBC World +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=240 #EXTINF:0,74 - Sky News International rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=355 +#EXTINF:0,78 - TNA +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=482 +#EXTINF:0,79 - Zalea TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=483 #EXTINF:0,80 - KTO rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=223 #EXTINF:0,81 - TFJ @@ -93,18 +115,46 @@ rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=227 #EXTINF:0,84 - Fashion TV rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=221 +#EXTINF:0,85 - F Men +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=454 +#EXTINF:0,86 - Sailing Channel +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=255 #EXTINF:0,87 - Liberty TV rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=215 +#EXTINF:0,88 - Animaux +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=248 +#EXTINF:0,89 - Chasse et pêche +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=249 +#EXTINF:0,90 - Encyclopédia +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=251 +#EXTINF:0,91 - Escales +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=252 +#EXTINF:0,92 - Toute l'Histoire +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=250 +#EXTINF:0,93 - Histoire +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=235 +#EXTINF:0,94 - Berbère TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=256 +#EXTINF:0,95 - 3A Telesud +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=356 #EXTINF:0,96 - Teleplaisance.org rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=320 #EXTINF:0,97 - Luxe.TV rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=460 #EXTINF:0,98 - Freenews TV rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=428 +#EXTINF:0,110 - Action +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=242 +#EXTINF:0,111 - Ciné Polar +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=244 +#EXTINF:0,112 - Ciné FX +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=243 #EXTINF:0,130 - Best of Shopping rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=358 #EXTINF:0,131 - M6 Boutique rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=359 +#EXTINF:0,132 - Ark-TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=492 #EXTINF:0,133 - Astro Center TV rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=415 #EXTINF:0,150 - TLM @@ -129,26 +179,84 @@ rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=414 #EXTINF:0,160 - Clermont Première rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=438 +#EXTINF:0,161 - TV Tours +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=493 +#EXTINF:0,180 - CCTV4 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=469 #EXTINF:0,181 - CCTV 9 rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=479 #EXTINF:0,182 - CCTV E&F rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=480 +#EXTINF:0,183 - CCTV Divertissement +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=470 +#EXTINF:0,185 - Beijing TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=472 +#EXTINF:0,186 - Shangai Dragon TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=473 +#EXTINF:0,187 - La chaîne internationale de Jiangsu +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=474 +#EXTINF:0,188 - Hunan Satellite TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=475 +#EXTINF:0,189 - Xiamen Star TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=476 +#EXTINF:0,190 - Zhejiang Star TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=477 +#EXTINF:0,191 - Guangdong Southern TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=478 +#EXTINF:0,192 - Phoenix Infonews +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=481 #EXTINF:0,193 - Phoenix Chinese News and Entertainment rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=266 +#EXTINF:0,195 - Zee TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=420 +#EXTINF:0,196 - Zee Cinema +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=421 +#EXTINF:0,197 - Alpha ETC Punjabi +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=422 +#EXTINF:0,200 - Euronews English +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=259 +#EXTINF:0,201 - Euronews Deutsch +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=260 +#EXTINF:0,202 - Euronews Portugais +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=261 +#EXTINF:0,203 - Euronews Russe +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=262 +#EXTINF:0,204 - Euronews Espagnol +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=263 +#EXTINF:0,205 - Euronews Italien +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=269 #EXTINF:0,209 - T.TV rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=385 +#EXTINF:0,212 - BBC Prime Europe +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=413 #EXTINF:0,219 - God TV rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=386 #EXTINF:0,220 - Arte Allemand rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=270 #EXTINF:0,224 - DW-TV rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=312 +#EXTINF:0,225 - Ritmoson Latino +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=407 +#EXTINF:0,226 - De pelicula +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=408 +#EXTINF:0,227 - TL Novelas +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=409 +#EXTINF:0,228 - Canal de las Estrellas +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=410 +#EXTINF:0,229 - Telehit +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=411 +#EXTINF:0,230 - TVE I +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=306 +#EXTINF:0,231 - Canal 24 Horas +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=307 #EXTINF:0,232 - ETB Sat rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=371 #EXTINF:0,233 - Real Madrid TV rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=387 #EXTINF:0,234 - TVCi rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=461 +#EXTINF:0,238 - SIC +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=484 #EXTINF:0,239 - RTPi rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=388 #EXTINF:0,240 - Rai Uno @@ -157,34 +265,94 @@ rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=314 #EXTINF:0,242 - Rai Tre rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=315 -#EXTINF:0,250 - TV Polonia -rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=278 +#EXTINF:0,244 - RTR Planeta +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=317 +#EXTINF:0,245 - ORTi +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=357 +#EXTINF:0,246 - Nashe Kino +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=441 +#EXTINF:0,247 - Detski Mir/Teleclub +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=442 +#EXTINF:0,248 - RTVI +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=443 +#EXTINF:0,249 - RTVI-M +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=444 +#EXTINF:0,250 - TV Romania +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=318 #EXTINF:0,251 - Bulgaria TV rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=321 -#EXTINF:0,252 - TV Romania -rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=318 -#EXTINF:0,253 - RTR Planeta -rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=317 +#EXTINF:0,252 - Georgian TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=487 #EXTINF:0,254 - Adjara TV rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=316 +#EXTINF:0,255 - Imedi TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=488 +#EXTINF:0,256 - NTV Hayat +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=429 +#EXTINF:0,257 - RTV Pink Plus +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=439 +#EXTINF:0,258 - RTV Pink Extra +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=440 #EXTINF:0,259 - TV Biznes rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=450 -#EXTINF:0,260 - 2M Maroc +#EXTINF:0,260 - TV Polonia +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=278 +#EXTINF:0,261 - TVP Kultura +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=485 +#EXTINF:0,262 - TVP 3 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=486 +#EXTINF:0,265 - Armenia Public TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=380 +#EXTINF:0,266 - 2M Maroc rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=272 -#EXTINF:0,261 - RTM Maroc +#EXTINF:0,267 - RTM Maroc rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=273 -#EXTINF:0,262 - Canal Algérie +#EXTINF:0,268 - Canal Algérie rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=274 -#EXTINF:0,263 - TV7 Tunisia +#EXTINF:0,269 - TV7 Tunisia rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=277 -#EXTINF:0,269 - Armenia Public TV -rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=380 #EXTINF:0,270 - Al Masriya rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=275 #EXTINF:0,271 - Al Jazeera rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=276 #EXTINF:0,272 - Al Jazeera Children rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=412 +#EXTINF:0,273 - ART Variety Europe +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=326 +#EXTINF:0,274 - ART Teenz/Tarab +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=327 +#EXTINF:0,275 - ART Movies +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=328 +#EXTINF:0,277 - Al Hekayat +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=330 +#EXTINF:0,278 - Iqra +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=331 +#EXTINF:0,279 - ART Aflam 2 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=332 +#EXTINF:0,280 - Future TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=333 +#EXTINF:0,281 - MBC +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=334 +#EXTINF:0,282 - LBC Europe +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=335 +#EXTINF:0,283 - Nile Drama +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=336 +#EXTINF:0,284 - The Israeli Network +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=462 +#EXTINF:0,286 - Powertürk TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=489 +#EXTINF:0,287 - TRT1 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=490 +#EXTINF:0,288 - Kanal D +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=463 +#EXTINF:0,289 - Star TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=464 +#EXTINF:0,290 - TGRT +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=465 +#EXTINF:0,291 - NTV Avrupa +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=466 +#EXTINF:0,292 - ATV Avrupa +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=467 #EXTINF:0,293 - TD1 rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=435 #EXTINF:0,294 - TRT INT @@ -247,7 +415,5 @@ rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=302 #EXTINF:0,324 - France 3 Rhône-Alpes rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=303 -#EXTINF:0,531 - PARIS Première -rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=1020 #EXTINF:0,999 - Mire FREEBOX rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=308 Modified: trunk/module/jt/flux.xml =================================================================== --- trunk/module/jt/flux.xml 2006-11-01 22:41:54 UTC (rev 46) +++ trunk/module/jt/flux.xml 2006-11-17 19:49:18 UTC (rev 47) @@ -24,6 +24,16 @@ <flux name="Carte postale gourmande" jours="0" heure="14" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/cartepostale/cartepostale.wmv</flux> <flux name="C'est notre affaire" jours="3" heure="12" datetype="Ymd"> mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/cnotreaffaire/cnotreaffaire_##.wmv</flux> <flux name="Le journal de blogue" jours="6" heure="22" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/journaldublog/journaldublog.wmv</flux> + <flux name="Arr\xEAt sur image" jours="0" heure="20" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/asi/arretimages_##.wmv</flux> + <flux name="Les maternelles" jours="1,2,4,5" heure="22" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/asi/arretimages_##.wmv</flux> + <flux name="Chez F.O.G" jours="0" heure="22" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/chezfog/chezfog.wmv</flux> + <flux name="L'emploi par le net" jours="1,2,3,4,5" heure="22" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/emploiparlenet/emploiparlenet.wmv</flux> + <flux name="L'oeil et la main" jours="6" heure="13" datetype="Ymd">mms://a988.v101995.c10199.e.vm.akamaistream.net/7/988/10199/3f97c7e6/ftvigrp.download.akamai.com/10199/sgv/diff/videotheque/france5/programmes/oeiletmain/6DF1F_unoeiletlamain_##.wmv</flux> + <flux name="Dossier Scheffer" jours="0" heure="24" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/dossier-scheffer/dossier-scheffer.wmv</flux> + <flux name="Le bateau livre" jours="4" heure="23" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/bateaulivre/bateaulivre.wmv</flux> + <flux name="Echapp\xE9es belles" jours="6" heure="24" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/echappeesbelles/echappeesbelles_##.wmv</flux> + + </chaine> <chaine name="RFO"> <flux name="JT RFO" jours="0,1,2,3,4,5,6" heure="24" datetype="Ymd">mms://a1977.v107941105128907.c10794.g.vm.akamaistream.net/7/1977/10794/1105128907/rfosat.download.akamai.com/10794/rfo_sat/jt_##-150k.wmv</flux> Modified: trunk/module/mp3/lecteuraudio.php =================================================================== --- trunk/module/mp3/lecteuraudio.php 2006-11-01 22:41:54 UTC (rev 46) +++ trunk/module/mp3/lecteuraudio.php 2006-11-17 19:49:18 UTC (rev 47) @@ -81,6 +81,26 @@ $pagedinfo=file_get_contents('http://localhost:8081/module/mp3/lecteuraudio.html'); eval($pagedinfo); +function parse_m3u($element, $ind){ +global $pl_transformed; + $fp = fopen(realpath($element),"r"); + while (!feof($fp)){ + $page = utf8_decode(trim(fgets($fp, 4096))); + if (!(eregi('#EXTM3U', $page) or $page=='')){ + $pl_transformed[] = array(extract_name($page), 0, $page, $ind); + } + } +} + +if(count($pl)>0){ + foreach($pl as $element){ + if (eregi('audiotemp',$element[0])){ + parse_m3u($element[2], $element[3]); + }else{ + $pl_transformed[] = $element; + } + } +} if($mode=='pla'){ $smarty->assign('min',$_GET['min']); }elseif($mode=='bib'){ @@ -135,7 +155,6 @@ } break; } - //Gestion des actions demandes if (isset($_REQUEST['action'])){ @@ -245,9 +264,9 @@ break; } - if(!$hidden){ - $informations[]=array($inf[1],$inf[0]); - } + if(!$hidden){ + $informations[]=array($inf[1],$inf[0]); + } } $smarty->assign('informations',$informations); $smarty->assign('search',$search); @@ -285,9 +304,8 @@ if($mode=='pla'){ - $smarty->assign('playlists',glob($PLAYLIST."*.m3u")); - $smarty->assign('pl',$pl); + $smarty->assign('pl',$pl_transformed); $LINK['red']=$MODULE.'_menu/menu.php'; $smarty->assign('need_m3u_name',$need_m3u_name); $smarty->assign('CONTENT',$smarty->fetch('playlist_audio.tpl')); Deleted: trunk/module/mp3/play.php =================================================================== --- trunk/module/mp3/play.php 2006-11-01 22:41:54 UTC (rev 46) +++ trunk/module/mp3/play.php 2006-11-17 19:49:18 UTC (rev 47) @@ -1,84 +0,0 @@ -<?php -$RACINE_REP = "../../"; - -require($RACINE_REP.'_framework/framework.php'); - -//include($LOAD); - -$basename = $_REQUEST['toplay_rep']."/".$_REQUEST['toplay_file']; -$basename = ereg_replace ("\\\'", "'", $basename); -$first=1; - -$pisteaudio = $ini[multimedia][sortiefreebox]; -$decallage = $ini[multimedia][compensation]; - -$file2 = @readfile('http://127.0.0.1:8081/lecteur/modif-config.html?type=0&var=audio-desync&value='.$decallage); - -if($pisteaudio=='TV'){ -// $META['aud'] = '69(en,mp2)'; - $add = 'type=2'; - $play = 'type=1'; - if($_GET['type']=="radio") { - $play = 'type=41'; - } - if ($_GET['type']=="m3u") { - $play = 'type=1'; - } - -}elseif($pisteaudio=='PC'){ - $add = 'type=4'; - $play = 'type=3'; - $decallage = $ini[multimedia][compensation]; - $file2 = @readfile('http://127.0.0.1:8081/lecteur/modif-config.html?type=0&var=audio-desync&value='.$decallage); - if($_GET['type']=="radio") { - $play = 'type=42'; - } - if ($_GET['type']=="m3u") { - $play = 'type=3'; - } - -}elseif($pisteaudio=='AC3'){ -// $META['aud'] = '69(en,ac3)'; - $add = 'type=6'; - $play = 'type=5'; - if($_GET['type']=="radio") { - $play = 'type=43'; - } - if ($_GET['type']=="m3u") { - $play = 'type=5'; - } -} - -if (isset($_GET['option'])){ - $page = $add; -}else{ - $page = $play; -} - - -if(eregi("http://",$basename) || eregi("mms://",$basename) || eregi("dvdsimple://",$basename) || eregi("cdda://",$basename)){ - play_fichier($page,$basename,0); -}else{ - play_fichier($page,$basename); -} - -if (isset($_GET['togo']) and $_GET['togo']=='mp3'){ - echo '<meta name="refresh" content="0;url=lecteuraudio.php">'; -} - - -?> -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> -<html> -<head> -<?php - -BOUTON(); -?> -<flags volume_key=true> -</head> -<body background="ts://127.0.0.1" text="#f0f0f03f" link="#f0f0f03f" alink="#FCBE033f" vlink="#cc00003f"> - -</body> -</html> - Modified: trunk/module/mp3/playdb.php =================================================================== --- trunk/module/mp3/playdb.php 2006-11-01 22:41:54 UTC (rev 46) +++ trunk/module/mp3/playdb.php 2006-11-17 19:49:18 UTC (rev 47) @@ -19,6 +19,7 @@ $default = $audio_defaut; $extv = explode(",",$ext_audio); +/* //Construction de la playlist actuelle $pagedinfo=file_get_contents('http://localhost:8081/module/mp3/lecteuraudio.html'); eval($pagedinfo); @@ -30,8 +31,9 @@ '; } } +*/ -//D\xE9finition du mode de lecteur +//D\xE9finition du mode de lecture $pisteaudio = $ini[multimedia][sortiefreebox]; $decallage = $ini[multimedia][compensation]; $file2 = @readfile('http://127.0.0.1:8081/lecteur/modif-config.html?type=0&var=audio-desync&value='.$decallage); @@ -72,11 +74,11 @@ } - if (isset($_GET['option'])){ - $page = $add; - }else{ - $page = $play; - } +if (isset($_GET['option'])){ + $page = $add; +}else{ + $page = $play; +} //Lecture en mode biblioth\xE8que @@ -149,11 +151,12 @@ ".utf8_encode(realpath(stripslashes($basename))); } //Cr\xE9ation de la playlist temporaire - $fp = fopen($USER.'audiotemp.m3u',"w+"); + $fp = fopen($USER.'audiotemp'.get_variable('num_playlist').'.m3u',"w+"); fputs($fp,"#EXTM3U"); fputs($fp,$variable); fclose($fp); - play_fichier($play,$USER.'audiotemp.m3u',1,'mp3'); + play_fichier($page,$USER.'audiotemp'.get_variable('num_playlist').'.m3u',1,'mp3'); + save_variable('num_playlist', get_variable('num_playlist')+1); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bed...@us...> - 2006-11-01 22:42:38
|
Revision: 44 http://svn.sourceforge.net/easybox-mod/?rev=44&view=rev Author: bedelaitre Date: 2006-11-01 13:51:20 -0800 (Wed, 01 Nov 2006) Log Message: ----------- RequestID 1588902 - Navigation dans les playlists Modified Paths: -------------- trunk/http-vlc/lecteur/action.html trunk/module/films/lecture.php trunk/module/mp3/lecteuraudio.php Modified: trunk/http-vlc/lecteur/action.html =================================================================== --- trunk/http-vlc/lecteur/action.html 2006-10-29 16:00:36 UTC (rev 43) +++ trunk/http-vlc/lecteur/action.html 2006-11-01 21:51:20 UTC (rev 44) @@ -1,7 +1,7 @@ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> - <vlc id="control" param1="stop,pause,previous,next,add,sout,play,delete,empty,seek,fullscreen,keep,volume,sort,move,shutdown" /> + <vlc id="control" param1="stop,pause,faster,slower,previous,next,add,sout,play,delete,empty,seek,fullscreen,keep,volume,sort,move,shutdown" /> </head> <body> Modified: trunk/module/films/lecture.php =================================================================== --- trunk/module/films/lecture.php 2006-10-29 16:00:36 UTC (rev 43) +++ trunk/module/films/lecture.php 2006-11-01 21:51:20 UTC (rev 44) @@ -225,7 +225,7 @@ } $LINK['stop']=$MODULE.'films/lecture.php?control=stop'; -$LINK['play']=$MODULE.'films/lecture.php?control=pause'; +$LINK['play']=$MODULE.'films/lecture.php?control=play'; $LINK['pause']=$MODULE.'films/lecture.php?control=pause'; $LINK['info']=$MODULE.'films/info.php'; $LINK['options']=$RACINE_REP.'lecteur/options.php?module=video'; @@ -235,8 +235,14 @@ $LINK['up']=$MODULE.'films/lecture.php?seek_value=plus'; $LINK['down']=$MODULE.'films/lecture.php?seek_value=moins'; +// BDE - RequestID 1588902 +$LINK['next']=$MODULE.'films/lecture.php?control=next'; +$LINK['prev']=$MODULE.'films/lecture.php?control=previous'; +$LINK['rev']=$MODULE.'films/lecture.php?seek_value=moins'; +$LINK['fwd']=$MODULE.'films/lecture.php?seek_value=plus'; + if(isset($message)) { $smarty->assign('AVERTISSEMENT',$message); Modified: trunk/module/mp3/lecteuraudio.php =================================================================== --- trunk/module/mp3/lecteuraudio.php 2006-10-29 16:00:36 UTC (rev 43) +++ trunk/module/mp3/lecteuraudio.php 2006-11-01 21:51:20 UTC (rev 44) @@ -8,6 +8,12 @@ $LINK['play']=$MODULE.'mp3/lecteuraudio.php?control=pause'; $LINK['pause']=$MODULE.'mp3/lecteuraudio.php?control=pause'; +// BDE - RequestID 1588902 +$LINK['next']=$MODULE.'mp3/lecteuraudio.php?control=next'; +$LINK['prev']=$MODULE.'mp3/lecteuraudio.php?control=previous'; +// Ces deux lignes bug chez moi car VLC ne r\xE9cup\xE8re pas la dur\xE9e du MP3 ??!!?? +//$LINK['rev']=$MODULE.'mp3/lecteuraudio.php?seek_value=moins'; +//$LINK['fwd']=$MODULE.'mp3/lecteuraudio.php?seek_value=plus'; if($pisteaudio=='TV'){ // $META['aud'] = '69(en,mp2)'; @@ -29,8 +35,11 @@ if (isset($_REQUEST['control'])) { $control = $_REQUEST['control']; - $file1 = file_get_contents("http://127.0.0.1:8081/lecteur/action.html?control=$control"); - $reload='1'; + if($control!='seek') + { + $file1 = file_get_contents("http://127.0.0.1:8081/lecteur/action.html?control=$control"); + $reload='1'; + } } if ($_REQUEST['mode']!=''){ @@ -39,6 +48,28 @@ $mode="pla"; } +//-- Avancer ou reculer +if (isset($_REQUEST['seek_value'])) +{ + if($_REQUEST['seek_value']=="moins") + { + $value='-1m'; + $OSD .= 'Recul de une minute'; + $META['front_panel'] = '-1min'; + } elseif($_REQUEST['seek_value']=="plus") + { + $value='%2B1m'; + $OSD .= 'Avanc\xDAe de une minute'; + $META['front_panel'] = '+1min'; + } else + { + $value=$_REQUEST['seek_value']; + $OSD .= 'Avanc\xDAe \xD3 '.$value; + } + $file1 = file_get_contents('http://127.0.0.1:8081/lecteur/action.html?control=seek&seek_value='.$value); + $reload='1'; +} + $i=0; $ext_audio = $ini[explorateur][ext_audio]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bed...@us...> - 2006-11-01 22:42:05
|
Revision: 46 http://svn.sourceforge.net/easybox-mod/?rev=46&view=rev Author: bedelaitre Date: 2006-11-01 14:41:54 -0800 (Wed, 01 Nov 2006) Log Message: ----------- [ 1586222 ] Retour ?\195?\160 l'explorateur des photos ?\195?\160 la fin du diaporama Modified Paths: -------------- trunk/_framework/fonctions_partagees.inc.php trunk/module/diaporama/index1.php Modified: trunk/_framework/fonctions_partagees.inc.php =================================================================== --- trunk/_framework/fonctions_partagees.inc.php 2006-11-01 21:55:13 UTC (rev 45) +++ trunk/_framework/fonctions_partagees.inc.php 2006-11-01 22:41:54 UTC (rev 46) @@ -89,6 +89,8 @@ RETURN($RACINE_REP.'module/dvd/index1.php'); }elseif($retour=='webtv'){ RETURN($RACINE_REP.'module/webmedia/index1.php?start='.get_variable('webmedia_min')); + }elseif($retour=='photo'){ + RETURN($RACINE_REP.'module/diaporama/index1.php?start='.get_variable('photomin').'&rep='.urlencode(get_variable('lastrep'))); }else{ RETURN($RACINE_REP.'module/_menu/menu.php'); } Modified: trunk/module/diaporama/index1.php =================================================================== --- trunk/module/diaporama/index1.php 2006-11-01 21:55:13 UTC (rev 45) +++ trunk/module/diaporama/index1.php 2006-11-01 22:41:54 UTC (rev 46) @@ -5,6 +5,7 @@ $FORCED = 1; } + $extension = $ini[explorateur][ext_photo]; $ext_ok = explode(",",$extension); $ext = $ext_ok; @@ -160,10 +161,19 @@ if (isset($_GET['delais']) AND $aff+1 < count($files)) { $delais = $_GET['delais']; -}else{ +} elseif (isset($_GET['delais']) AND ($aff+1 == count($files))) + { + $message = 'Redirection vers les photos ...'; + set_refresh(2,'2;url='.page_retour_film(),true); + } +else{ $delais = 0; } +//Ajout dans la base de donn\xE9e pour les retours +save_variable('lastexpl', 'photo'); +save_variable('lastrep', $rep); +save_variable('photomin', $min); if(isset($aff)){ @@ -179,7 +189,12 @@ $smarty->assign('aff',$aff); $smarty->display('photo.tpl'); -}else{ +}elseif(isset($message)) +{ + $smarty->assign('AVERTISSEMENT',$message); + $smarty->display('avertissement.tpl'); +} else +{ $LINK['red']= $MODULE.'_menu/menu.php'; $smarty->assign('CONTENT',$smarty->fetch('explorateur_photo.tpl')); $smarty->display('interface.tpl'); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bed...@us...> - 2006-11-01 22:11:53
|
Revision: 45 http://svn.sourceforge.net/easybox-mod/?rev=45&view=rev Author: bedelaitre Date: 2006-11-01 13:55:13 -0800 (Wed, 01 Nov 2006) Log Message: ----------- [ 1564081 ] Le navigateur html light ne semble pas fonctionner Modified Paths: -------------- trunk/module/htmllight/index1.php Added Paths: ----------- trunk/module/htmllight/htmllight.tpl Added: trunk/module/htmllight/htmllight.tpl =================================================================== --- trunk/module/htmllight/htmllight.tpl (rev 0) +++ trunk/module/htmllight/htmllight.tpl 2006-11-01 21:55:13 UTC (rev 45) @@ -0,0 +1,27 @@ +<BR> +<table cellspacing="2" align="center" width="498" valign="middle" border="0"> + <tr> + <td align="center"> + Pour modifier la liste des flux modifier le fichier _Utilisateur/site_html.txt + </td> + </tr> +</table> +<BR> +{section name=feedSection loop=$T_nonfeed} + {if $smarty.section.feedSection.first} + <table cellspacing="2" align="center" width="498" valign="middle" border="0"> + {/if} + <tr valign="middle"> + <td align="center"> + {if $T_nonfeed[feedSection][1]==''} + <u>{$T_nonfeed[feedSection][0]}</u> + {else} + {assign var=rep_encoded value=$T_nonfeed[feedSection][1]|urlencode} + <a href="index1.php?url={$rep_encoded}">{$T_nonfeed[feedSection][0]}</a> + {/if} + </td> + </tr> + {if $smarty.section.feedSection.last} + </table> + {/if} + {/section} Modified: trunk/module/htmllight/index1.php =================================================================== --- trunk/module/htmllight/index1.php 2006-11-01 21:51:20 UTC (rev 44) +++ trunk/module/htmllight/index1.php 2006-11-01 21:55:13 UTC (rev 45) @@ -1,26 +1,38 @@ <?php $RACINE_REP = "../../"; require($RACINE_REP.'_framework/framework.php'); - $image = $ini[htmllight][image]; -?> -<body text="<?= $_COULEUR[HTML_TEXT]; ?>" link="<?= $_COULEUR[HTML_LINK]; ?>" alink="<?= $_COULEUR[HTML_ALINK]; ?>" vlink="<?= $_COULEUR[HTML_VLINK]; ?>"> -<center><table width="600" bgcolor="<?= $_COULEUR[HTML_FOND]; ?>"><tr><td><center> -<? +$nonfeed=array(); +if (!isset($_GET['url'])){ -if (!isset($_GET['url'])){ $contents =file_get_contents($RACINE_REP."_utilisateur/site_html.txt"); $feed = explode("\r",$contents); - echo '<font size="4">Navigateur html light</font> <br \> <br \>Pour modifier la liste des flux modifier le fichier _Utilisateur/site_html.txt<br \> '; for($i="0"; $i<=(count($feed)-1); $i++){ - $nonfeed = explode("|",$feed[$i]); - if(isset($nonfeed[1])) { - echo '<a href="index1.php?url='.urlencode($nonfeed[1]).'">'.$nonfeed[0].'</a>'; - }else{ - echo ' <br \><u>'.$nonfeed[0].'</u>'; + $toto = explode("|",$feed[$i]); + if(!isset($toto[1])) { + $nonfeed[] = array($toto[0],""); } + else + { + $nonfeed[] = array($toto[0],$toto[1]); + } } -}else{ + + $LINK['red']= $MODULE.'_menu/menu.php?cat=29'; + $META['front_panel'] = 'HTML-LIGHT'; + $smarty->debugging = False; + $smarty->assign('TITRE','Navigateur HTML Light'); + $smarty->assign('T_nonfeed',$nonfeed); + $smarty->assign('CONTENT', $smarty->fetch('htmllight.tpl')); + $smarty->display('interface.tpl'); + + +} + +else{ + + $LINK['red']= $MODULE.'htmllight/index1.php'; + //include($LOAD); $url = rawurldecode($_GET['url']); ini_set('user_agent','MSIE 4\.0b2;'); @@ -77,5 +89,4 @@ echo "Impossible d'ouvrir la page"; } } -echo "</center></td></tr><tr><td align=center><a href=\"/module/_menu/menu.php\">Retour au mod</a></td></tr></table></center>"; ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bed...@us...> - 2006-10-29 16:00:51
|
Revision: 43 http://svn.sourceforge.net/easybox-mod/?rev=43&view=rev Author: bedelaitre Date: 2006-10-29 08:00:36 -0800 (Sun, 29 Oct 2006) Log Message: ----------- Ajout d'un index dans l'explorateur quand n?\195?\169cessaire. Cet index comporte des lignes de 10 cellules maximum. Le nombre d'?\195?\169lements est ramen?\195?\169 ?\195?\160 14 pour laisser la place ?\195?\160 l'affichage. Modified Paths: -------------- trunk/module/_explorateur/explorateur.tpl Modified: trunk/module/_explorateur/explorateur.tpl =================================================================== --- trunk/module/_explorateur/explorateur.tpl 2006-10-28 21:18:18 UTC (rev 42) +++ trunk/module/_explorateur/explorateur.tpl 2006-10-29 16:00:36 UTC (rev 43) @@ -1 +1 @@ -{assign var=rep_encoded value=$REP|urlencode} {section name=disques loop=$DISQUES} {if $smarty.section.disques.first} <table cellspacing="2" align="center" width="498" valign="middle"><tr valign="middle"> {/if} {if $DISQUES[disques].path == 'reload'} <td valign="middle" width="50"><img src="{$SKIN_REP}dossier/{$DISQUES[disques].gif}.gif" width="16" height="16"><font size='1'><a href="{$PAGE_EXPLO}?directory={$REP|urlencode}&mode={$MODE}&reload=1&start={$MIN}">Rafr.</a></font></td> {else} <td valign="middle"><img src="{$SKIN_REP}dossier/{$DISQUES[disques].gif}.gif" width="16" height="16"><font size='1'><a href="{$PAGE_EXPLO}?directory={$DISQUES[disques].path|urlencode}&mode={$MODE}">{$DISQUES[disques].lettre|strtolower}</a></font></td> {/if} {if $smarty.section.disques.last} </tr></table> {/if} {/section} {section name=path loop=$CHEMIN_REP} {if $smarty.section.path.first} <center><font size="1"> {/if} <a href="{$PAGE_EXPLO}?directory={$CHEMIN_REP[path].0}&mode={$MODE}">{$CHEMIN_REP[path].1|strip_delimiters}/</a> {if $smarty.section.path.last} </font></center> {/if} {/section} {if $AFF_CDDA} <a href="playdb.php?type=cdda&disque={$LETTRE_CDDA}">Lire {$LETTRE_CDDA}: en tant que cd</a> {/if} {assign var=NUM_ROW_AFFICH value=10} <table width="498" cellpadding="0" cellspacing="0" align="center" valign="middle"> {if $PLAYREP OR $AFF_FAVORIS} <tr><td colspan="2"><center> {/if} {if $PLAYREP} <img src="{$SKIN_REP}dossier/rep_all.gif" border="0" width="20" height="20"><a href="{$PAGE_LECT_REP}?toplay={$REP|urlencode}&type=playrep"> {$PLAYREP_TEXT|default:"Lire le r\xE9pertoire complet"}</a> {/if} {if $PLAYREP AND $AFF_FAVORIS} - {/if} {if $AFF_FAVORIS} <img src="{$SKIN_REP}dossier/favoris.gif" width="20" height="20"> <a href="{$RACINE_REP}module/favoris/index1.php?ajout={$REP|urlencode}&nom={$REP}">Ajouter aux favoris</a> {/if} {if $PLAYREP OR $AFF_FAVORIS} </center></td></tr> {/if} {assign var=curIndex value=1} {assign var=curTD value=0} {assign var=FromValue value=""} {assign var=ToValue value=""} {section name=quickjump loop=$T_affich start=$MIN} {if $smarty.section.quickjump.first} <tr><td> </td></tr><tr><td><table cellspacing="2" align="center" width="600" valign="middle"><tr valign="middle"> {/if} {if $curIndex==1} {assign var=FromValue value=""} {if $T_affich[quickjump]|in_array:$T_rep} {assign var=FromValue value="[rep] "} {/if} {assign var=FromValue value=$FromValue|cat:$T_affich[quickjump]|strip_delimiters|truncate:20} {/if} {assign var=ToValue value=""} {if $T_affich[quickjump]|in_array:$T_rep} {assign var=ToValue value="[rep] "} {/if} {assign var=ToValue value=$ToValue|cat:$T_affich[quickjump]|strip_delimiters|truncate:20} {if $curIndex==$NUM_ROW_AFFICH OR $smarty.section.quickjump.last} {if $curTD<=3} <td valign="middle" border=1><font size='2'><a href="{$PAGE_EXPLO}?start={$MIN+$curTD*$NUM_ROW_AFFICH}&directory={$REP|urlencode}&mode={$MODE}">{$FromValue}-><BR>{$ToValue}</a></font></td> {/if} {assign var=curTD value=$curTD+1} {assign var=curIndex value=0} {/if} {assign var=curIndex value=$curIndex+1} {if $smarty.section.quickjump.last} </tr></table></td></tr><tr><td> </td></tr> {/if} {/section} {if $MIN!=0} {assign var=temp value=$MIN-$NUM_ROW_AFFICH|max:0} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> <a href="{$PAGE_EXPLO}?start={$MIN-$NUM_ROW_AFFICH|max:0}&directory={$REP|urlencode}&mode={$MODE}"><font size=2>Pr\xE9c\xE9dent</font></a> <a href="{$PAGE_EXPLO}?start=0&directory={$REP|urlencode}&mode={$MODE}"><font size=2>D\xE9but du r\xE9pertoire</font></a></td></tr> {attribbouton touche="green" lien="$PAGE_EXPLO?start=$temp&directory=$rep_encoded&mode=$MODE"} {/if} {if $Nb_rep_path >='2' AND $MIN==0} {assign var=temp value=$REP|dirname|realpath|urlencode} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_jaune.gif" border="0"> <a focused href="{$PAGE_EXPLO}?directory={$REP|dirname|realpath|urlencode}&mode={$MODE}">Dossier parent</a></td></tr> {attribbouton touche="yellow" lien="$PAGE_EXPLO?directory=$temp&mode=$MODE"} {elseif $Nb_rep_path >='2'} {assign var=temp value=$REP|dirname|realpath|urlencode} {attribbouton touche="yellow" lien="$PAGE_EXPLO?directory=$temp&mode=$MODE"} {/if} {section name=files loop=$T_affich max=$NUM_ROW_AFFICH start=$MIN} {if $T_affich[files]|in_array:$T_rep} {assign var="rep_a_affich" value=$REP|cat:'/'|cat:$T_affich[files]} <tr><td colspan="2"><img src="{$SKIN_REP}dossier/folder.gif"> <font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_EXPLO}?directory={$rep_a_affich|realpath|urlencode}&mode={$MODE}">{$T_affich[files]|truncate:55|strip_delimiters}</a></font></td></tr> {else} <tr><td><img src="{$SKIN_REP}dossier/{$ICONE_FICHIER}" width="16" height="16"> <font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_LECT}?{$OPT_LIENS}toplay_file={$T_affich[files]|urlencode}&toplay_rep={$REP|urlencode}">{$T_affich[files]|strip_delimiters|truncate:52}</a> </font></td><td width="35"> {if $AFF_INFO} {assign var="nb" value=$T_affich[files]|strrpos:"."} <a href="fichefilm.php?start={$MIN}&comeback=expl&film={$T_affich[files]|substr:0:$nb|urlencode}&fichier={$REP|cat:'/'|cat:$T_affich[files]|realpath|urlencode}"><font size="1">info</font></a> {/if} </td></tr> {/if} {/section} {assign var=N_affich value=$T_affich|@count} {assign var=N_affich_reste value=$NUM_ROW_AFFICH|max:15} {if $MIN+$smarty.section.files.total<count($T_affich)} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> <a href="{$PAGE_EXPLO}?start={$MIN+$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}"><font size=2>Suivant</font></a> - <font size=2><a href="{$PAGE_EXPLO}?start={$N_affich-$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}">Fin du r\xE9pertoire</a> - Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td></tr> {assign var=temp value=$MIN+$smarty.section.files.total} {attribbouton touche="blue" lien="$PAGE_EXPLO?start=$temp&directory=$rep_encoded&mode=$MODE"} {else} <tr><td colspan="2"><font size=2>Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td></tr> {/if} </table> {$FOOTER} \ No newline at end of file +{assign var=rep_encoded value=$REP|urlencode} {section name=disques loop=$DISQUES} {if $smarty.section.disques.first} <table cellspacing="2" align="center" width="498" valign="middle"><tr valign="middle"> {/if} {if $DISQUES[disques].path == 'reload'} <td valign="middle" width="50"><img src="{$SKIN_REP}dossier/{$DISQUES[disques].gif}.gif" width="16" height="16"><font size='1'><a href="{$PAGE_EXPLO}?directory={$REP|urlencode}&mode={$MODE}&reload=1&start={$MIN}">Rafr.</a></font></td> {else} <td valign="middle"><img src="{$SKIN_REP}dossier/{$DISQUES[disques].gif}.gif" width="16" height="16"><font size='1'><a href="{$PAGE_EXPLO}?directory={$DISQUES[disques].path|urlencode}&mode={$MODE}">{$DISQUES[disques].lettre|strtolower}</a></font></td> {/if} {if $smarty.section.disques.last} </tr></table> {/if} {/section} {section name=path loop=$CHEMIN_REP} {if $smarty.section.path.first} <table align="center" cellpadding="0" cellspacing="0" width="498" valign="middle"><tr valign="middle"><tr><td align="center"><font size="1"> {/if} <a href="{$PAGE_EXPLO}?directory={$CHEMIN_REP[path].0}&mode={$MODE}">{$CHEMIN_REP[path].1|strip_delimiters|truncate:20:"...":true:true}/</a> {if $smarty.section.path.last} </td></tr></table></font></center> {/if} {/section} {if $AFF_CDDA} <a href="playdb.php?type=cdda&disque={$LETTRE_CDDA}">Lire {$LETTRE_CDDA}: en tant que cd</a> {/if} {assign var=NUM_ROW_AFFICH value=14} <table width="498" cellpadding="0" cellspacing="0" align="center" valign="middle"> {if $PLAYREP OR $AFF_FAVORIS} <tr><td colspan="2"><center> {/if} {if $PLAYREP} <img src="{$SKIN_REP}dossier/rep_all.gif" border="0" width="20" height="20"><a href="{$PAGE_LECT_REP}?toplay={$REP|urlencode}&type=playrep"> {$PLAYREP_TEXT|default:"Lire le r\xE9pertoire complet"}</a> {/if} {if $PLAYREP AND $AFF_FAVORIS} - {/if} {if $AFF_FAVORIS} <img src="{$SKIN_REP}dossier/favoris.gif" width="20" height="20"> <a href="{$RACINE_REP}module/favoris/index1.php?ajout={$REP|urlencode}&nom={$REP}">Ajouter aux favoris</a> {/if} {if $PLAYREP OR $AFF_FAVORIS} </center></td></tr> {/if} {assign var=curIndex value=1} {assign var=curTD value=0} {assign var=curTR value=0} {assign var=FromValue value=""} {assign var=ToValue value=""} {* Il faut d\xE9terminer le nombre de caract\xE8re pour afficher le nom des fichiers dans les blocs d'index*} {if $T_affich|@count/$NUM_ROW_AFFICH<=1} {assign var=indexLength value=0} {elseif $T_affich|@count/$NUM_ROW_AFFICH<=3} {assign var=indexLength value=8} {elseif $T_affich|@count/$NUM_ROW_AFFICH<=5} {assign var=indexLength value=5} {elseif $T_affich|@count/$NUM_ROW_AFFICH<=7} {assign var=indexLength value=2} {else} {assign var=indexLength value=1} {/if} {if $indexLength>0} {section name=quickjump loop=$T_affich start=$0} {if $smarty.section.quickjump.first} <tr><td><table cellspacing="2" align="center" width="498" valign="middle" border="0"><tr valign="middle"> {/if} {if $curIndex==1} {assign var=FromValue value=$T_affich[quickjump]|strip_delimiters|truncate:$indexLength:"":true} {if $T_affich[quickjump]|in_array:$T_rep} {assign var=FromValue value=$FromValue|upper} {else} {assign var=FromValue value=$FromValue|lower} {/if} {/if} {assign var=ToValue value=$T_affich[quickjump]|strip_delimiters|truncate:$indexLength:"":true} {if $T_affich[quickjump]|in_array:$T_rep} {assign var=ToValue value=$ToValue|upper} {else} {assign var=ToValue value=$ToValue|lower} {/if} {* Si l'on a le nombre de fichier par page ou que c'est le dernier, alors il faut \xE9crire le bloc*} {if $curIndex==$NUM_ROW_AFFICH OR $smarty.section.quickjump.last} <td valign="middle" border="1" align="center"><font size='1'><a href="{$PAGE_EXPLO}?start={$curTR*10+$curTD*$NUM_ROW_AFFICH}&directory={$REP|urlencode}&mode={$MODE}">{$FromValue} .. {$ToValue}</a></font></td> {assign var=curTD value=$curTD+1} {* Chaque ligne du tableau ne peut pas d\xE9passer 10 cellules *} {if $curTD==10} </tr><tr> {assign var=curTR value=$curTR+1} {assign var=curTD value=0} {/if} {assign var=curIndex value=0} {/if} {* On incr\xE9mente l'index du fichier trait\xE9*} {assign var=curIndex value=$curIndex+1} {if $smarty.section.quickjump.last} </tr></table></td></tr> {/if} {/section} {/if} {if $MIN!=0} {assign var=temp value=$MIN-$NUM_ROW_AFFICH|max:0} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> <a href="{$PAGE_EXPLO}?start={$MIN-$NUM_ROW_AFFICH|max:0}&directory={$REP|urlencode}&mode={$MODE}"><font size=2>Pr\xE9c\xE9dent</font></a> <a href="{$PAGE_EXPLO}?start=0&directory={$REP|urlencode}&mode={$MODE}"><font size=2>D\xE9but du r\xE9pertoire</font></a></td></tr> {attribbouton touche="green" lien="$PAGE_EXPLO?start=$temp&directory=$rep_encoded&mode=$MODE"} {/if} {if $Nb_rep_path >='2' AND $MIN==0} {assign var=temp value=$REP|dirname|realpath|urlencode} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_jaune.gif" border="0"> <a focused href="{$PAGE_EXPLO}?directory={$REP|dirname|realpath|urlencode}&mode={$MODE}"><font size="2">Dossier parent</font></a></td></tr> {attribbouton touche="yellow" lien="$PAGE_EXPLO?directory=$temp&mode=$MODE"} {elseif $Nb_rep_path >='2'} {assign var=temp value=$REP|dirname|realpath|urlencode} {attribbouton touche="yellow" lien="$PAGE_EXPLO?directory=$temp&mode=$MODE"} {/if} {section name=files loop=$T_affich max=$NUM_ROW_AFFICH start=$MIN} {if $T_affich[files]|in_array:$T_rep} {assign var="rep_a_affich" value=$REP|cat:'/'|cat:$T_affich[files]} <tr><td colspan="2"><img src="{$SKIN_REP}dossier/folder.gif"> <font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_EXPLO}?directory={$rep_a_affich|realpath|urlencode}&mode={$MODE}">{$T_affich[files]|truncate:55|strip_delimiters}</a></font></td></tr> {else} <tr><td><img src="{$SKIN_REP}dossier/{$ICONE_FICHIER}" width="16" height="16"> <font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_LECT}?{$OPT_LIENS}toplay_file={$T_affich[files]|urlencode}&toplay_rep={$REP|urlencode}">{$T_affich[files]|strip_delimiters|truncate:52}</a> </font></td><td width="35"> {if $AFF_INFO} {assign var="nb" value=$T_affich[files]|strrpos:"."} <a href="fichefilm.php?start={$MIN}&comeback=expl&film={$T_affich[files]|substr:0:$nb|urlencode}&fichier={$REP|cat:'/'|cat:$T_affich[files]|realpath|urlencode}"><font size="1">info</font></a> {/if} </td></tr> {/if} {/section} {assign var=N_affich value=$T_affich|@count} {assign var=N_affich_reste value=$NUM_ROW_AFFICH|max:15} {if $MIN+$smarty.section.files.total<count($T_affich)} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> <a href="{$PAGE_EXPLO}?start={$MIN+$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}"><font size=2>Suivant</font></a> - <font size=2><a href="{$PAGE_EXPLO}?start={$N_affich-$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}">Fin du r\xE9pertoire</a> - Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td></tr> {assign var=temp value=$MIN+$smarty.section.files.total} {attribbouton touche="blue" lien="$PAGE_EXPLO?start=$temp&directory=$rep_encoded&mode=$MODE"} {else} <tr><td colspan="2"><font size=2>Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td></tr> {/if} </table> {$FOOTER} \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bed...@us...> - 2006-10-28 21:18:33
|
Revision: 42 http://svn.sourceforge.net/easybox-mod/?rev=42&view=rev Author: bedelaitre Date: 2006-10-28 14:18:18 -0700 (Sat, 28 Oct 2006) Log Message: ----------- [ 1564092 ] Navigation par lettre un d?\195?\169but d'embryon de qque chose. A apporfondir ou oublier .... Modified Paths: -------------- trunk/module/_explorateur/explorateur.tpl Modified: trunk/module/_explorateur/explorateur.tpl =================================================================== --- trunk/module/_explorateur/explorateur.tpl 2006-10-27 10:45:42 UTC (rev 41) +++ trunk/module/_explorateur/explorateur.tpl 2006-10-28 21:18:18 UTC (rev 42) @@ -1 +1 @@ -{assign var=rep_encoded value=$REP|urlencode} {section name=disques loop=$DISQUES} {if $smarty.section.disques.first} <table cellspacing="2" align="center" width="498" valign="middle"><tr valign="middle"> {/if} {if $DISQUES[disques].path == 'reload'} <td valign="middle" width="50"><img src="{$SKIN_REP}dossier/{$DISQUES[disques].gif}.gif" width="16" height="16"><font size='1'><a href="{$PAGE_EXPLO}?directory={$REP|urlencode}&mode={$MODE}&reload=1&start={$MIN}">Rafr.</a></font></td> {else} <td valign="middle"><img src="{$SKIN_REP}dossier/{$DISQUES[disques].gif}.gif" width="16" height="16"><font size='1'><a href="{$PAGE_EXPLO}?directory={$DISQUES[disques].path|urlencode}&mode={$MODE}">{$DISQUES[disques].lettre|strtolower}</a></font></td> {/if} {if $smarty.section.disques.last} </tr></table> {/if} {/section} {section name=path loop=$CHEMIN_REP} {if $smarty.section.path.first} <center><font size="1"> {/if} <a href="{$PAGE_EXPLO}?directory={$CHEMIN_REP[path].0}&mode={$MODE}">{$CHEMIN_REP[path].1|strip_delimiters}/</a> {if $smarty.section.path.last} </font></center> {/if} {/section} {if $AFF_CDDA} <a href="playdb.php?type=cdda&disque={$LETTRE_CDDA}">Lire {$LETTRE_CDDA}: en tant que cd</a> {/if} {assign var=NUM_ROW_AFFICH value=15} <table width="498" cellpadding="0" cellspacing="0" align="center" valign="middle"> {if $PLAYREP OR $AFF_FAVORIS} <tr><td colspan="2"><center> {/if} {if $PLAYREP} <img src="{$SKIN_REP}dossier/rep_all.gif" border="0" width="20" height="20"><a href="{$PAGE_LECT_REP}?toplay={$REP|urlencode}&type=playrep"> {$PLAYREP_TEXT|default:"Lire le r\xE9pertoire complet"}</a> {/if} {if $PLAYREP AND $AFF_FAVORIS} - {/if} {if $AFF_FAVORIS} <img src="{$SKIN_REP}dossier/favoris.gif" width="20" height="20"> <a href="{$RACINE_REP}module/favoris/index1.php?ajout={$REP|urlencode}&nom={$REP}">Ajouter aux favoris</a> {/if} {if $PLAYREP OR $AFF_FAVORIS} </center></td></tr> {/if} {if $MIN!=0} {assign var=temp value=$MIN-$NUM_ROW_AFFICH|max:0} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> <a href="{$PAGE_EXPLO}?start={$MIN-$NUM_ROW_AFFICH|max:0}&directory={$REP|urlencode}&mode={$MODE}"><font size=2>Pr\xE9c\xE9dent</font></a> <a href="{$PAGE_EXPLO}?start=0&directory={$REP|urlencode}&mode={$MODE}"><font size=2>D\xE9but du r\xE9pertoire</font></a></td></tr> {attribbouton touche="green" lien="$PAGE_EXPLO?start=$temp&directory=$rep_encoded&mode=$MODE"} {/if} {if $Nb_rep_path >='2' AND $MIN==0} {assign var=temp value=$REP|dirname|realpath|urlencode} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_jaune.gif" border="0"> <a focused href="{$PAGE_EXPLO}?directory={$REP|dirname|realpath|urlencode}&mode={$MODE}">Dossier parent</a></td></tr> {attribbouton touche="yellow" lien="$PAGE_EXPLO?directory=$temp&mode=$MODE"} {elseif $Nb_rep_path >='2'} {assign var=temp value=$REP|dirname|realpath|urlencode} {attribbouton touche="yellow" lien="$PAGE_EXPLO?directory=$temp&mode=$MODE"} {/if} {section name=files loop=$T_affich max=$NUM_ROW_AFFICH start=$MIN} {if $T_affich[files]|in_array:$T_rep} {assign var="rep_a_affich" value=$REP|cat:'/'|cat:$T_affich[files]} <tr><td colspan="2"><img src="{$SKIN_REP}dossier/folder.gif"> <font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_EXPLO}?directory={$rep_a_affich|realpath|urlencode}&mode={$MODE}">{$T_affich[files]|truncate:55|strip_delimiters}</a></font></td></tr> {else} <tr><td><img src="{$SKIN_REP}dossier/{$ICONE_FICHIER}" width="16" height="16"> <font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_LECT}?{$OPT_LIENS}toplay_file={$T_affich[files]|urlencode}&toplay_rep={$REP|urlencode}">{$T_affich[files]|strip_delimiters|truncate:52}</a> </font></td><td width="35"> {if $AFF_INFO} {assign var="nb" value=$T_affich[files]|strrpos:"."} <a href="fichefilm.php?start={$MIN}&comeback=expl&film={$T_affich[files]|substr:0:$nb|urlencode}&fichier={$REP|cat:'/'|cat:$T_affich[files]|realpath|urlencode}"><font size="1">info</font></a> {/if} </td></tr> {/if} {/section} {assign var=N_affich value=$T_affich|@count} {assign var=N_affich_reste value=$NUM_ROW_AFFICH|max:15} {if $MIN+$smarty.section.files.total<count($T_affich)} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> <a href="{$PAGE_EXPLO}?start={$MIN+$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}"><font size=2>Suivant</font></a> - <font size=2><a href="{$PAGE_EXPLO}?start={$N_affich-$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}">Fin du r\xE9pertoire</a> - Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td></tr> {assign var=temp value=$MIN+$smarty.section.files.total} {attribbouton touche="blue" lien="$PAGE_EXPLO?start=$temp&directory=$rep_encoded&mode=$MODE"} {else} <tr><td colspan="2"><font size=2>Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td></tr> {/if} </table> {$FOOTER} \ No newline at end of file +{assign var=rep_encoded value=$REP|urlencode} {section name=disques loop=$DISQUES} {if $smarty.section.disques.first} <table cellspacing="2" align="center" width="498" valign="middle"><tr valign="middle"> {/if} {if $DISQUES[disques].path == 'reload'} <td valign="middle" width="50"><img src="{$SKIN_REP}dossier/{$DISQUES[disques].gif}.gif" width="16" height="16"><font size='1'><a href="{$PAGE_EXPLO}?directory={$REP|urlencode}&mode={$MODE}&reload=1&start={$MIN}">Rafr.</a></font></td> {else} <td valign="middle"><img src="{$SKIN_REP}dossier/{$DISQUES[disques].gif}.gif" width="16" height="16"><font size='1'><a href="{$PAGE_EXPLO}?directory={$DISQUES[disques].path|urlencode}&mode={$MODE}">{$DISQUES[disques].lettre|strtolower}</a></font></td> {/if} {if $smarty.section.disques.last} </tr></table> {/if} {/section} {section name=path loop=$CHEMIN_REP} {if $smarty.section.path.first} <center><font size="1"> {/if} <a href="{$PAGE_EXPLO}?directory={$CHEMIN_REP[path].0}&mode={$MODE}">{$CHEMIN_REP[path].1|strip_delimiters}/</a> {if $smarty.section.path.last} </font></center> {/if} {/section} {if $AFF_CDDA} <a href="playdb.php?type=cdda&disque={$LETTRE_CDDA}">Lire {$LETTRE_CDDA}: en tant que cd</a> {/if} {assign var=NUM_ROW_AFFICH value=10} <table width="498" cellpadding="0" cellspacing="0" align="center" valign="middle"> {if $PLAYREP OR $AFF_FAVORIS} <tr><td colspan="2"><center> {/if} {if $PLAYREP} <img src="{$SKIN_REP}dossier/rep_all.gif" border="0" width="20" height="20"><a href="{$PAGE_LECT_REP}?toplay={$REP|urlencode}&type=playrep"> {$PLAYREP_TEXT|default:"Lire le r\xE9pertoire complet"}</a> {/if} {if $PLAYREP AND $AFF_FAVORIS} - {/if} {if $AFF_FAVORIS} <img src="{$SKIN_REP}dossier/favoris.gif" width="20" height="20"> <a href="{$RACINE_REP}module/favoris/index1.php?ajout={$REP|urlencode}&nom={$REP}">Ajouter aux favoris</a> {/if} {if $PLAYREP OR $AFF_FAVORIS} </center></td></tr> {/if} {assign var=curIndex value=1} {assign var=curTD value=0} {assign var=FromValue value=""} {assign var=ToValue value=""} {section name=quickjump loop=$T_affich start=$MIN} {if $smarty.section.quickjump.first} <tr><td> </td></tr><tr><td><table cellspacing="2" align="center" width="600" valign="middle"><tr valign="middle"> {/if} {if $curIndex==1} {assign var=FromValue value=""} {if $T_affich[quickjump]|in_array:$T_rep} {assign var=FromValue value="[rep] "} {/if} {assign var=FromValue value=$FromValue|cat:$T_affich[quickjump]|strip_delimiters|truncate:20} {/if} {assign var=ToValue value=""} {if $T_affich[quickjump]|in_array:$T_rep} {assign var=ToValue value="[rep] "} {/if} {assign var=ToValue value=$ToValue|cat:$T_affich[quickjump]|strip_delimiters|truncate:20} {if $curIndex==$NUM_ROW_AFFICH OR $smarty.section.quickjump.last} {if $curTD<=3} <td valign="middle" border=1><font size='2'><a href="{$PAGE_EXPLO}?start={$MIN+$curTD*$NUM_ROW_AFFICH}&directory={$REP|urlencode}&mode={$MODE}">{$FromValue}-><BR>{$ToValue}</a></font></td> {/if} {assign var=curTD value=$curTD+1} {assign var=curIndex value=0} {/if} {assign var=curIndex value=$curIndex+1} {if $smarty.section.quickjump.last} </tr></table></td></tr><tr><td> </td></tr> {/if} {/section} {if $MIN!=0} {assign var=temp value=$MIN-$NUM_ROW_AFFICH|max:0} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> <a href="{$PAGE_EXPLO}?start={$MIN-$NUM_ROW_AFFICH|max:0}&directory={$REP|urlencode}&mode={$MODE}"><font size=2>Pr\xE9c\xE9dent</font></a> <a href="{$PAGE_EXPLO}?start=0&directory={$REP|urlencode}&mode={$MODE}"><font size=2>D\xE9but du r\xE9pertoire</font></a></td></tr> {attribbouton touche="green" lien="$PAGE_EXPLO?start=$temp&directory=$rep_encoded&mode=$MODE"} {/if} {if $Nb_rep_path >='2' AND $MIN==0} {assign var=temp value=$REP|dirname|realpath|urlencode} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_jaune.gif" border="0"> <a focused href="{$PAGE_EXPLO}?directory={$REP|dirname|realpath|urlencode}&mode={$MODE}">Dossier parent</a></td></tr> {attribbouton touche="yellow" lien="$PAGE_EXPLO?directory=$temp&mode=$MODE"} {elseif $Nb_rep_path >='2'} {assign var=temp value=$REP|dirname|realpath|urlencode} {attribbouton touche="yellow" lien="$PAGE_EXPLO?directory=$temp&mode=$MODE"} {/if} {section name=files loop=$T_affich max=$NUM_ROW_AFFICH start=$MIN} {if $T_affich[files]|in_array:$T_rep} {assign var="rep_a_affich" value=$REP|cat:'/'|cat:$T_affich[files]} <tr><td colspan="2"><img src="{$SKIN_REP}dossier/folder.gif"> <font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_EXPLO}?directory={$rep_a_affich|realpath|urlencode}&mode={$MODE}">{$T_affich[files]|truncate:55|strip_delimiters}</a></font></td></tr> {else} <tr><td><img src="{$SKIN_REP}dossier/{$ICONE_FICHIER}" width="16" height="16"> <font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_LECT}?{$OPT_LIENS}toplay_file={$T_affich[files]|urlencode}&toplay_rep={$REP|urlencode}">{$T_affich[files]|strip_delimiters|truncate:52}</a> </font></td><td width="35"> {if $AFF_INFO} {assign var="nb" value=$T_affich[files]|strrpos:"."} <a href="fichefilm.php?start={$MIN}&comeback=expl&film={$T_affich[files]|substr:0:$nb|urlencode}&fichier={$REP|cat:'/'|cat:$T_affich[files]|realpath|urlencode}"><font size="1">info</font></a> {/if} </td></tr> {/if} {/section} {assign var=N_affich value=$T_affich|@count} {assign var=N_affich_reste value=$NUM_ROW_AFFICH|max:15} {if $MIN+$smarty.section.files.total<count($T_affich)} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> <a href="{$PAGE_EXPLO}?start={$MIN+$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}"><font size=2>Suivant</font></a> - <font size=2><a href="{$PAGE_EXPLO}?start={$N_affich-$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}">Fin du r\xE9pertoire</a> - Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td></tr> {assign var=temp value=$MIN+$smarty.section.files.total} {attribbouton touche="blue" lien="$PAGE_EXPLO?start=$temp&directory=$rep_encoded&mode=$MODE"} {else} <tr><td colspan="2"><font size=2>Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td></tr> {/if} </table> {$FOOTER} \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2006-10-27 10:45:56
|
Revision: 41 http://svn.sourceforge.net/easybox-mod/?rev=41&view=rev Author: aragornis Date: 2006-10-27 03:45:42 -0700 (Fri, 27 Oct 2006) Log Message: ----------- Ajout de la table "templates" Correction d'un bug graphique dans l'explorateur Correction d'un bug sur l'appel du template pour l'arret d'un film Modified Paths: -------------- trunk/configuration/bases.xml trunk/module/_explorateur/explorateur.tpl trunk/module/films/lecture.php Modified: trunk/configuration/bases.xml =================================================================== --- trunk/configuration/bases.xml 2006-10-26 19:33:36 UTC (rev 40) +++ trunk/configuration/bases.xml 2006-10-27 10:45:42 UTC (rev 41) @@ -83,6 +83,10 @@ <syntax>CREATE TABLE var (var VARCHAR, value LONGTEXT)</syntax> </table> <table> + <name>templates</name> + <syntax>CREATE TABLE templates (template VARCHAR, url TEXT)</syntax> + </table> + <table> <name>cinemas</name> <syntax>CREATE TABLE cinemas ( timestamp INT, cinema LONGTEXT, page VARCHAR )</syntax> </table> Modified: trunk/module/_explorateur/explorateur.tpl =================================================================== --- trunk/module/_explorateur/explorateur.tpl 2006-10-26 19:33:36 UTC (rev 40) +++ trunk/module/_explorateur/explorateur.tpl 2006-10-27 10:45:42 UTC (rev 41) @@ -1 +1 @@ -{assign var=rep_encoded value=$REP|urlencode} {section name=disques loop=$DISQUES} {if $smarty.section.disques.first} <table cellspacing="2" align="center" width="498" valign="middle"><tr valign="middle"> {/if} {if $DISQUES[disques].path == 'reload'} <td valign="middle"><img src="{$SKIN_REP}dossier/{$DISQUES[disques].gif}.gif" width="16" height="16"><font size='1'><a href="{$PAGE_EXPLO}?directory={$REP|urlencode}&mode={$MODE}&reload=1&start={$MIN}">Rafra\xEEchir</a></font></td> {else} <td valign="middle"><img src="{$SKIN_REP}dossier/{$DISQUES[disques].gif}.gif" width="16" height="16"><font size='1'><a href="{$PAGE_EXPLO}?directory={$DISQUES[disques].path|urlencode}&mode={$MODE}">{$DISQUES[disques].lettre|strtolower}</a></font></td> {/if} {if $smarty.section.disques.last} </tr></table> {/if} {/section} {section name=path loop=$CHEMIN_REP} {if $smarty.section.path.first} <center><font size="1"> {/if} <a href="{$PAGE_EXPLO}?directory={$CHEMIN_REP[path].0}&mode={$MODE}">{$CHEMIN_REP[path].1|strip_delimiters}/</a> {if $smarty.section.path.last} </font></center> {/if} {/section} {if $AFF_CDDA} <a href="playdb.php?type=cdda&disque={$LETTRE_CDDA}">Lire {$LETTRE_CDDA}: en tant que cd</a> {/if} {assign var=NUM_ROW_AFFICH value=15} <table width="498" cellpadding="0" cellspacing="0" align="center" valign="middle"> {if $PLAYREP OR $AFF_FAVORIS} <tr><td colspan="2"><center> {/if} {if $PLAYREP} <img src="{$SKIN_REP}dossier/rep_all.gif" border="0" width="20" height="20"><a href="{$PAGE_LECT_REP}?toplay={$REP|urlencode}&type=playrep"> {$PLAYREP_TEXT|default:"Lire le r\xE9pertoire complet"}</a> {/if} {if $PLAYREP AND $AFF_FAVORIS} - {/if} {if $AFF_FAVORIS} <img src="{$SKIN_REP}dossier/favoris.gif" width="20" height="20"> <a href="{$RACINE_REP}module/favoris/index1.php?ajout={$REP|urlencode}&nom={$REP}">Ajouter aux favoris</a> {/if} {if $PLAYREP OR $AFF_FAVORIS} </center></td></tr> {/if} {if $MIN!=0} {assign var=temp value=$MIN-$NUM_ROW_AFFICH|max:0} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> <a href="{$PAGE_EXPLO}?start={$MIN-$NUM_ROW_AFFICH|max:0}&directory={$REP|urlencode}&mode={$MODE}"><font size=2>Pr\xE9c\xE9dent</font></a> <a href="{$PAGE_EXPLO}?start=0&directory={$REP|urlencode}&mode={$MODE}"><font size=2>D\xE9but du r\xE9pertoire</font></a></td></tr> {attribbouton touche="green" lien="$PAGE_EXPLO?start=$temp&directory=$rep_encoded&mode=$MODE"} {/if} {if $Nb_rep_path >='2' AND $MIN==0} {assign var=temp value=$REP|dirname|realpath|urlencode} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_jaune.gif" border="0"> <a focused href="{$PAGE_EXPLO}?directory={$REP|dirname|realpath|urlencode}&mode={$MODE}">Dossier parent</a></td></tr> {attribbouton touche="yellow" lien="$PAGE_EXPLO?directory=$temp&mode=$MODE"} {elseif $Nb_rep_path >='2'} {assign var=temp value=$REP|dirname|realpath|urlencode} {attribbouton touche="yellow" lien="$PAGE_EXPLO?directory=$temp&mode=$MODE"} {/if} {section name=files loop=$T_affich max=$NUM_ROW_AFFICH start=$MIN} {if $T_affich[files]|in_array:$T_rep} {assign var="rep_a_affich" value=$REP|cat:'/'|cat:$T_affich[files]} <tr><td colspan="2"><img src="{$SKIN_REP}dossier/folder.gif"> <font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_EXPLO}?directory={$rep_a_affich|realpath|urlencode}&mode={$MODE}">{$T_affich[files]|truncate:55|strip_delimiters}</a></font></td></tr> {else} <tr><td><img src="{$SKIN_REP}dossier/{$ICONE_FICHIER}" width="16" height="16"> <font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_LECT}?{$OPT_LIENS}toplay_file={$T_affich[files]|urlencode}&toplay_rep={$REP|urlencode}">{$T_affich[files]|strip_delimiters|truncate:52}</a> </font></td><td width="35"> {if $AFF_INFO} {assign var="nb" value=$T_affich[files]|strrpos:"."} <a href="fichefilm.php?start={$MIN}&comeback=expl&film={$T_affich[files]|substr:0:$nb|urlencode}&fichier={$REP|cat:'/'|cat:$T_affich[files]|realpath|urlencode}"><font size="1">info</font></a> {/if} </td></tr> {/if} {/section} {assign var=N_affich value=$T_affich|@count} {assign var=N_affich_reste value=$NUM_ROW_AFFICH|max:15} {if $MIN+$smarty.section.files.total<count($T_affich)} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> <a href="{$PAGE_EXPLO}?start={$MIN+$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}"><font size=2>Suivant</font></a> - <font size=2><a href="{$PAGE_EXPLO}?start={$N_affich-$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}">Fin du r\xE9pertoire</a> - Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td></tr> {assign var=temp value=$MIN+$smarty.section.files.total} {attribbouton touche="blue" lien="$PAGE_EXPLO?start=$temp&directory=$rep_encoded&mode=$MODE"} {else} <tr><td colspan="2"><font size=2>Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td></tr> {/if} </table> {$FOOTER} \ No newline at end of file +{assign var=rep_encoded value=$REP|urlencode} {section name=disques loop=$DISQUES} {if $smarty.section.disques.first} <table cellspacing="2" align="center" width="498" valign="middle"><tr valign="middle"> {/if} {if $DISQUES[disques].path == 'reload'} <td valign="middle" width="50"><img src="{$SKIN_REP}dossier/{$DISQUES[disques].gif}.gif" width="16" height="16"><font size='1'><a href="{$PAGE_EXPLO}?directory={$REP|urlencode}&mode={$MODE}&reload=1&start={$MIN}">Rafr.</a></font></td> {else} <td valign="middle"><img src="{$SKIN_REP}dossier/{$DISQUES[disques].gif}.gif" width="16" height="16"><font size='1'><a href="{$PAGE_EXPLO}?directory={$DISQUES[disques].path|urlencode}&mode={$MODE}">{$DISQUES[disques].lettre|strtolower}</a></font></td> {/if} {if $smarty.section.disques.last} </tr></table> {/if} {/section} {section name=path loop=$CHEMIN_REP} {if $smarty.section.path.first} <center><font size="1"> {/if} <a href="{$PAGE_EXPLO}?directory={$CHEMIN_REP[path].0}&mode={$MODE}">{$CHEMIN_REP[path].1|strip_delimiters}/</a> {if $smarty.section.path.last} </font></center> {/if} {/section} {if $AFF_CDDA} <a href="playdb.php?type=cdda&disque={$LETTRE_CDDA}">Lire {$LETTRE_CDDA}: en tant que cd</a> {/if} {assign var=NUM_ROW_AFFICH value=15} <table width="498" cellpadding="0" cellspacing="0" align="center" valign="middle"> {if $PLAYREP OR $AFF_FAVORIS} <tr><td colspan="2"><center> {/if} {if $PLAYREP} <img src="{$SKIN_REP}dossier/rep_all.gif" border="0" width="20" height="20"><a href="{$PAGE_LECT_REP}?toplay={$REP|urlencode}&type=playrep"> {$PLAYREP_TEXT|default:"Lire le r\xE9pertoire complet"}</a> {/if} {if $PLAYREP AND $AFF_FAVORIS} - {/if} {if $AFF_FAVORIS} <img src="{$SKIN_REP}dossier/favoris.gif" width="20" height="20"> <a href="{$RACINE_REP}module/favoris/index1.php?ajout={$REP|urlencode}&nom={$REP}">Ajouter aux favoris</a> {/if} {if $PLAYREP OR $AFF_FAVORIS} </center></td></tr> {/if} {if $MIN!=0} {assign var=temp value=$MIN-$NUM_ROW_AFFICH|max:0} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> <a href="{$PAGE_EXPLO}?start={$MIN-$NUM_ROW_AFFICH|max:0}&directory={$REP|urlencode}&mode={$MODE}"><font size=2>Pr\xE9c\xE9dent</font></a> <a href="{$PAGE_EXPLO}?start=0&directory={$REP|urlencode}&mode={$MODE}"><font size=2>D\xE9but du r\xE9pertoire</font></a></td></tr> {attribbouton touche="green" lien="$PAGE_EXPLO?start=$temp&directory=$rep_encoded&mode=$MODE"} {/if} {if $Nb_rep_path >='2' AND $MIN==0} {assign var=temp value=$REP|dirname|realpath|urlencode} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_jaune.gif" border="0"> <a focused href="{$PAGE_EXPLO}?directory={$REP|dirname|realpath|urlencode}&mode={$MODE}">Dossier parent</a></td></tr> {attribbouton touche="yellow" lien="$PAGE_EXPLO?directory=$temp&mode=$MODE"} {elseif $Nb_rep_path >='2'} {assign var=temp value=$REP|dirname|realpath|urlencode} {attribbouton touche="yellow" lien="$PAGE_EXPLO?directory=$temp&mode=$MODE"} {/if} {section name=files loop=$T_affich max=$NUM_ROW_AFFICH start=$MIN} {if $T_affich[files]|in_array:$T_rep} {assign var="rep_a_affich" value=$REP|cat:'/'|cat:$T_affich[files]} <tr><td colspan="2"><img src="{$SKIN_REP}dossier/folder.gif"> <font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_EXPLO}?directory={$rep_a_affich|realpath|urlencode}&mode={$MODE}">{$T_affich[files]|truncate:55|strip_delimiters}</a></font></td></tr> {else} <tr><td><img src="{$SKIN_REP}dossier/{$ICONE_FICHIER}" width="16" height="16"> <font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_LECT}?{$OPT_LIENS}toplay_file={$T_affich[files]|urlencode}&toplay_rep={$REP|urlencode}">{$T_affich[files]|strip_delimiters|truncate:52}</a> </font></td><td width="35"> {if $AFF_INFO} {assign var="nb" value=$T_affich[files]|strrpos:"."} <a href="fichefilm.php?start={$MIN}&comeback=expl&film={$T_affich[files]|substr:0:$nb|urlencode}&fichier={$REP|cat:'/'|cat:$T_affich[files]|realpath|urlencode}"><font size="1">info</font></a> {/if} </td></tr> {/if} {/section} {assign var=N_affich value=$T_affich|@count} {assign var=N_affich_reste value=$NUM_ROW_AFFICH|max:15} {if $MIN+$smarty.section.files.total<count($T_affich)} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> <a href="{$PAGE_EXPLO}?start={$MIN+$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}"><font size=2>Suivant</font></a> - <font size=2><a href="{$PAGE_EXPLO}?start={$N_affich-$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}">Fin du r\xE9pertoire</a> - Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td></tr> {assign var=temp value=$MIN+$smarty.section.files.total} {attribbouton touche="blue" lien="$PAGE_EXPLO?start=$temp&directory=$rep_encoded&mode=$MODE"} {else} <tr><td colspan="2"><font size=2>Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td></tr> {/if} </table> {$FOOTER} \ No newline at end of file Modified: trunk/module/films/lecture.php =================================================================== --- trunk/module/films/lecture.php 2006-10-26 19:33:36 UTC (rev 40) +++ trunk/module/films/lecture.php 2006-10-27 10:45:42 UTC (rev 41) @@ -70,11 +70,7 @@ } else { // Micht : Utilisation d'une page de skin - if (($message = file_get_contents($SKIN_REP.'signet_ask.tpl')) === FALSE) - { - $message.= '<center>Le film n\'est pas fini ! <br>Voulez-vous placer un signet pour y revenir rapidement plus tard ?<br><br>'; - $message.= '<a href="lecture.php?control=stop&signet=load"><box border=2 width=35 height=18 align=center text="Oui"></a> <a href="lecture.php?control=stop&signet=noload"><box border=2 width=35 height=18 align=center text="Non"></a></center>'; - } + $message = $smarty->fetch('signet_ask.tpl'); } } elseif($control!='seek') { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2006-10-26 19:33:52
|
Revision: 40 http://svn.sourceforge.net/easybox-mod/?rev=40&view=rev Author: aragornis Date: 2006-10-26 12:33:36 -0700 (Thu, 26 Oct 2006) Log Message: ----------- Suppression des salet?\195?\169s de fichier windows qui servent ?\195?\160 rien Removed Paths: ------------- trunk/module/agenda/images/Thumbs.db trunk/module/agenda/images/heures/Thumbs.db trunk/skin/simple/dossier/Thumbs.db trunk/skin/simple/interface/Thumbs.db trunk/themes/chaines/defaut/Thumbs.db Deleted: trunk/module/agenda/images/Thumbs.db =================================================================== (Binary files differ) Deleted: trunk/module/agenda/images/heures/Thumbs.db =================================================================== (Binary files differ) Deleted: trunk/skin/simple/dossier/Thumbs.db =================================================================== (Binary files differ) Deleted: trunk/skin/simple/interface/Thumbs.db =================================================================== (Binary files differ) Deleted: trunk/themes/chaines/defaut/Thumbs.db =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2006-10-26 19:29:40
|
Revision: 39 http://svn.sourceforge.net/easybox-mod/?rev=39&view=rev Author: aragornis Date: 2006-10-26 12:29:22 -0700 (Thu, 26 Oct 2006) Log Message: ----------- Optimisation de la recherche des bandes annonce Correction des probl?\195?\168mes sur la playlist multiposte et des enregistrements de taille 0 Modified Paths: -------------- trunk/_framework/lib/get_info.php trunk/module/guidetv/tvprogram.php trunk/module/multiposte/add.php Modified: trunk/_framework/lib/get_info.php =================================================================== --- trunk/_framework/lib/get_info.php 2006-10-26 18:00:27 UTC (rev 38) +++ trunk/_framework/lib/get_info.php 2006-10-26 19:29:22 UTC (rev 39) @@ -1 +1 @@ -<? function info_allocine($file, $forced=false, $id=0){ global $USER; //Initialisation $res['synopsis'] = "Aucune information"; $file = ucwords($file); $db = sqlite_open($USER.'video.db', 0666, $mon_message_erreur); $result=sqlite_query($db, 'SELECT * FROM film WHERE name=\''.sqlite_escape_string($file).'\''); $rows = sqlite_num_rows($result); $db2 = sqlite_open($USER.'cache.db', 0666, $mon_message_erreur); $result2=sqlite_query($db2, 'SELECT * FROM film WHERE name = \''.sqlite_escape_string($file).'\' AND file LIKE \'%'.sqlite_escape_string($file).'%\''); $rows2 = sqlite_num_rows($result2); if($rows!="0" AND !$forced){ // R\xE9cup\xE9ration depuis la base de donn\xE9es des films $row = sqlite_fetch_array($result); $res['nom'] = $row['name']; $res['dir'] = $row['dir']; $res['critique_visiteurs'] = $row['critique_visiteurs']; $res['critique_presse'] = $row['critique_presse']; $res['image'] = $row['img']; $res['synopsis'] = $row['Synopsis']; $res['date_sortie'] = $row['sortie']; $res['realisateur'] = $row['realisateur']; $res['acteurs'] = $row['avec']; $res['nationalite'] = $row['film']; $res['genre'] = $row['genre']; $res['duree'] = $row['Duree']; $res['anne_prod'] = $row['production']; $res['ba'] = $row['ba']; $res['inbdd'] = true; }elseif($rows2!="0" AND !$forced){ // R\xE9cup\xE9ration depuis le cache allocin\xE9 $row = sqlite_fetch_array($result2); $res['nom'] = $row['name']; $res['critique_visiteurs'] = $row['critique_visiteurs']; $res['critique_presse'] = $row['critique_presse']; $res['image'] = $row['img']; $res['synopsis'] = $row['Synopsis']; $res['date_sortie'] = $row['sortie']; $res['realisateur'] = $row['realisateur']; $res['acteurs'] = $row['avec']; $res['nationalite'] = $row['film']; $res['genre'] = $row['genre']; $res['duree'] = $row['Duree']; $res['anne_prod'] = $row['production']; $res['ba'] = $row['ba']; $res['inbdd'] = false; }else{ if($id==0){ // Recherche de l'id sur Allocin\xE9 if($pagerecherche = @file_get_contents('http://www.allocine.fr/recherche/?motcle='.urlencode($file).'&f=3&rub=1')){ //Critique presse (nouvelle notation et ancienne) $ereg = '<h4><a href="\/film\/fichefilm_gen_cfilm=(.{1,7}).html" class="link1">(.{1,100})<\/a><\/h4>'; preg_match_all("/$ereg/s", $pagerecherche, $valeur); $mini = -1; $filebis = strtolower($file); foreach($valeur[1] as $key=>$val){ $leven = levenshtein($filebis, strtolower(strip_tags($valeur[2][$key]))); if($leven<$mini or $mini==-1){ $id = $valeur[1][$key]; $mini = $leven; } if($mini==0){ break; } } }else{ $res = "Erreur"; } } if($res != "Erreur"){ $res = info_allocineById($id); } $res['inbdd'] = false; sqlite_query($db2, 'DELETE FROM film WHERE name LIKE \'%'.sqlite_escape_string($file).'%\' OR file LIKE \'%'.sqlite_escape_string($file).'%\''); sqlite_query($db2, 'INSERT INTO film VALUES(NULL, \''.sqlite_escape_string($file).'\', \''.sqlite_escape_string($res['nom']).'\', \''.sqlite_escape_string($res['synopsis']).'\', \''.sqlite_escape_string($res['image']).'\' , \''.sqlite_escape_string($res['date_sortie']).'\' , \''.sqlite_escape_string($res['realisateur']).'\' , \''.sqlite_escape_string($res['acteurs']).'\' , \''.sqlite_escape_string($res['nationalite']).'\' , \''.sqlite_escape_string($res['genre']).'\' , \''.sqlite_escape_string($res['duree']).'\' , \''.sqlite_escape_string($res['anne_prod']).'\' , \''.sqlite_escape_string($res['critique_visiteurs']).'\' , \''.sqlite_escape_string($res['critique_presse']).'\' , \''.sqlite_escape_string($res['ba']).'\')'); } sqlite_close($db); sqlite_close($db2); RETURN $res; } // Fonction renvoyant les infos d'un film d\xE9sign\xE9 par son ID allocin\xE9 function info_allocineById($id){ //Initialisation $res['synopsis'] = "Aucune information"; if($filmrecherche = @file_get_contents('http://www.allocine.fr/film/fichefilm_gen_cfilm='.$id.'.html')) { //R\xE9cup\xE9ration du nom du film $ereg = '<title>(.{1,150})<\/title>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['nom'] = ucwords($valeur[1]); //Critique visiteurs $ereg = 'notepresse=(.{0,10})¬epublic=(.{0,10})" marginwidth'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['critique_visiteurs'] = round(ereg_replace(",", ".", $valeur[1])); $res['critique_presse'] = round(ereg_replace(",", ".", $valeur[2])); //R\xE9cup\xE9ration de l'adresse de l'image $ereg = '<img src="http:\/\/a69.g.akamai.net\/n\/69\/10688\/v1\/img5.allocine.fr\/(.{1,70})" border="0" alt="" \/>'; preg_match("/$ereg/s", $filmrecherche, $valeur); if(trim($valeur[1])==''){ $res['image'] = 'http://a69.g.akamai.net/n/69/10688/v1/img5.allocine.fr/acmedia/skin/AlloCineV5/habillage/AffichetteAllocine.gif'; }else{ $res['image'] = 'http://a69.g.akamai.net/n/69/10688/v1/img5.allocine.fr/'.$valeur[1]; } //R\xE9cup\xE9ration du synopsis $ereg = '<td valign="top" style="padding:10 0 0 0"><div align="justify"><h4>(.{1,1000})<\/h4><\/div><\/td>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['synopsis'] = trim(strip_tags($valeur[1])); if($res['synopsis']=='') $res['synopsis'] = "Aucune information"; //R\xE9cup\xE9ration de la date $ereg = 'Date de sortie : <b>(.{1,30})<\/b>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $monthes = array('Janvier'=>'1', 'F\xE9vrier'=>'2', 'Mars'=>'3', 'Avril'=>'4', 'Mai'=>'5', 'Juin'=>'6', 'Juillet'=>'7','Ao\xFBt'=>'8', 'Septembre'=>'9', 'Octobre'=>'10', 'Novembre'=>'11', 'D\xE9cembre'=>'12'); $expl=explode(" ",$valeur[1]); if(count($expl)==3) $res['date_sortie'] = mktime(0,0,0,$monthes[$expl[1]],$expl[0],$expl[2]); else $res['date_sortie'] = 2; //R\xE9cup\xE9ration du r\xE9alisateur $ereg = '<h4>R\xE9alis\xE9 par <a class="link1" href=(.{1,150})>(.{1,40})<\/a><\/h4> '; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['realisateur'] = $valeur[2]; //R\xE9cup\xE9ration des acteurs $ereg = '<h4>Avec(.{1,1000})<\/a><\/h4><br \/><div style="padding:2 0 2 0"><h4>Film'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['acteurs'] = trim(strip_tags($valeur[1])); //Nationalit\xE9 $ereg = '<h4>Film (.{1,40}).<\/h4> <h4>Genre'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['nationalite'] = $valeur[1]; //Genre $ereg = '<h4>Genre : (.{1,450})<\/a><\/h4><br \/><h4>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['genre'] = trim(strip_tags($valeur[1])); //Dur\xE9e $ereg = '<h4>Dur\xE9e : (.{1,15}).<\/h4> '; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['duree'] = $valeur[1]; //Ann\xE9e de production $ereg = '<h4>Ann\xE9e de production : (.{1,7})<\/h4>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['anne_prod'] = $valeur[1]; // R\xE9cup\xE9ration des bandes annonces $ba=array(); if($pagerecherche = @file_get_contents('http://www.cinemovies.fr/resultat_recherche.php?cherche='.urlencode($res['nom']))){ $ereg = '<a href="fiche_film.php\?IDfilm=(.{1,6})" class="bodyFont5">'; preg_match_all("/$ereg/s", $pagerecherche, $valeur); $str2=$valeur[1][0]; if($filmrecherche = @file_get_contents('http://www.cinemovies.fr/players/media.php?IDfilm='.$str2)){ if(PHP_OS == "WIN32" || PHP_OS == "WINNT"){ $ereg = 'align="absmiddle" width="25" height="11">(.{1,25})<\/b>(.{1,2200})windows player(.{1,1300})<\/table><\/td><\/tr><tr><td'; preg_match_all("/$ereg/s", $filmrecherche, $value); }else{ $ereg = 'align="absmiddle" width="25" height="11">(.{1,25})<\/b>(.{1,1200})real(.{1,2500})<\/table><\/td><\/tr><tr><td'; preg_match_all("/$ereg/s", $filmrecherche, $value); $value[3]=$value[2]; } foreach($value[1] as $key=>$video){ $ereg = 'hd.php\?IDBA=(.{1,6})&ID'; preg_match("/$ereg/s", $value[3][$key], $flux); if(isset($flux[1])){ $ba[]=array(trim($video),'HQ',$flux[1]); }else{ $ereg = 'IDBA=(.{1,6})\';"><img border="0" src="..\/images\/v2\/div\/petite_fleche.gif" width="6" height="6">haute r'; preg_match("/$ereg/s", $value[3][$key], $flux); if(isset($flux[1])) $ba[]=array(trim($video),'N',$flux[1]); } } } } foreach($ba as $bande){ $res['ba']=str_replace('Bande annonce','BA',$res['ba'].$bande[0]).','.$bande[1].','.$bande[2].';'; } RETURN $res; }else{ RETURN "Aucun film trouv\xE9"; } } function info_personnalite($acteur){ if($pagerecherche = @file_get_contents('http://www.allocine.fr/recherche/?motcle='.urlencode($acteur).'&f=3&rub=2')){ $ereg = '<h4><a href="\/personne\/fichepersonne_gen_cpersonne=(.{1,15})" class="link1'; preg_match("/$ereg/s", $pagerecherche, $valeur); if($acteurrecherche = @file_get_contents('http://www.allocine.fr/personne/fichepersonne_gen_cpersonne='.$valeur[1])){ //R\xE9cup\xE9ration du nom "officiel" de la personnalit\xE9 $ereg = '<title>(.{1,150})<\/title>'; preg_match("/$ereg/s", $acteurrecherche, $valeur); $res['nom'] = $valeur[1]; //R\xE9cup\xE9ration de la date de naissance $ereg = '<h4><div style="padding:10 0 0 0">(.{1,100})<\/h4><\/div><div style="padding:15 0 0 0">'; preg_match("/$ereg/s", $acteurrecherche, $valeur); $expl=explode(" ",trim($valeur[1])); foreach($expl as $exp){ $new.=trim($exp).' '; } $ereg = 'N\xE9 le (.{1,18}) \xE0 (.{1,150})<br \/>'; preg_match("/$ereg/s", trim($new), $valeur); $monthes = array('Janvier'=>'1', 'F\xE9vrier'=>'2', 'Mars'=>'3', 'Avril'=>'4', 'Mai'=>'5', 'Juin'=>'6', 'Juillet'=>'7','Ao\xFBt'=>'8', 'Septembre'=>'9', 'Octobre'=>'10', 'Novembre'=>'11', 'D\xE9cembre'=>'12'); $expl=explode(" ",trim($valeur[1])); if(count($expl)==3) $res['date_naissance'] = mktime(0,0,0,$monthes[$expl[1]],$expl[0],$expl[2]); else $res['date_naissance'] = 2; $res['lieu_naissance'] = $valeur[2]; // Photo de la personnalit\xE9 $ereg = '<td valign="top" style="padding:0 10 10 0" width="120"><img src="(.{1,200})" width="120" height="160" border="0">'; preg_match("/$ereg/s", $acteurrecherche, $valeur); $res['image'] = $valeur[1]; //R\xE9cup\xE9ration de la biographie de l'artiste $ereg = '<td colspan="2" style="padding:10 0 15 0"><div align="justify"><h4>(.{1,15000})<\/h4><\/div><\/td>'; preg_match("/$ereg/s", $acteurrecherche, $valeur); $res['biographie'] = trim(strip_tags($valeur[1])); //R\xE9cup\xE9ration du role de la personnalit\xE9 $ereg = '<div><h4><b>(.{1,250})<h4><div style="padding:10 0 0 0">'; preg_match("/$ereg/s", $acteurrecherche, $valeur); $res['statut'] = trim(strip_tags($valeur[1])); RETURN $res; }else{ RETURN 'erreur'; } }else{ RETURN 'erreur'; } } function get_info_dvdfr($filmrecherche){ //R\xE9cup\xE9ration du nom du film $ereg = '<div class="dvd_title">(.{1,150})<\/div>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['nom'] = ucwords($valeur[1]); //Critique visiteurs $res['critique_visiteurs'] = ""; //Critique presse (nouvelle notation et ancienne) $res['critique_presse'] = ""; //R\xE9cup\xE9ration de l'adresse de l'image $ereg= 'src="..\/images\/dvd\/(.{1,70})" width="200" height="280"'; $valeur[1]=""; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['image'] = 'http://www.dvdfr.com/images/dvd/'.$valeur[1]; //R\xE9cup\xE9ration du synopsis $pos1 = strpos($filmrecherche,'<div class="dvd_subtitle">Synopsis</div>'); $pos1 = strpos($filmrecherche,'<div class="dvd_text">', $pos1+strlen('<div class="dvd_subtitle">Synopsis</div>')); $pos1 += strlen('<div class="dvd_text">'); $pos2 = strpos($filmrecherche,'</div>', $pos1); $res['synopsis'] = trim(strip_tags(substr($filmrecherche, $pos1, $pos2-$pos1))); $res['synopsis'] = str_replace("\n", ' ', $res['synopsis']); if($res['synopsis']=='') $res['synopsis'] = "Aucune information"; //R\xE9cup\xE9ration de la date $pos1 = strpos($filmrecherche,'<div class="dvd_subtitle">Sorti le</div>'); $pos1 = strpos($filmrecherche,'<div class="dvd_text">', $pos1+strlen('<div class="dvd_subtitle">Sorti le</div>')); $pos1 += strlen('<div class="dvd_text">'); $pos2 = strpos($filmrecherche,'</div>', $pos1); $valeur[1] = trim(strip_tags(substr($filmrecherche, $pos1, $pos2-$pos1))); $monthes = array('janvier'=>'1', 'f\xE9vrier'=>'2', 'mars'=>'3', 'avril'=>'4', 'mai'=>'5', 'juin'=>'6', 'juillet'=>'7','ao\xFBt'=>'8', 'septembre'=>'9', 'octobre'=>'10', 'novembre'=>'11', 'd\xE9cembre'=>'12'); $expl=explode(" ",$valeur[1]); if(count($expl)==3) $res['date_sortie'] = mktime(0,0,0,$monthes[$expl[1]],$expl[0],$expl[2]); else $res['date_sortie'] = 2; //R\xE9cup\xE9ration du r\xE9alisateur $res['realisateur'] = ""; //R\xE9cup\xE9ration des acteurs $pos1 = strpos($filmrecherche,'<div class="dvd_subtitle">Avec...</div>'); if ($pos1>0){ $pos1 = strpos($filmrecherche,'<div class="dvd_text">', $pos1+strlen('<div class="dvd_subtitle">Avec...</div>')); $pos1 += strlen('<div class="dvd_text">'); $pos2 = strpos($filmrecherche,'</div>', $pos1); $res['acteurs'] = trim(strip_tags(substr($filmrecherche, $pos1, $pos2-$pos1))); } //Nationalit\xE9 $res['nationalite'] = ""; //Genre $pos1 = strpos($filmrecherche,'<div class="dvd_categorie">'); while ($pos1>0){ $pos1 = strpos($filmrecherche,'<A class="home_a"', $pos1); if ($pos1>0) { $pos1 = strpos($filmrecherche,'>', $pos1); $pos1 += 1; $pos2 = strpos($filmrecherche,'</A>', $pos1); if ($res['genre']!="") $res['genre'] = $res['genre']." "; $res['genre'] = $res['genre'].trim(strip_tags(substr($filmrecherche, $pos1, $pos2-$pos1))); $pos1 = $pos2; } } //Dur\xE9e $ereg = '<td><img alt="Dur\xE9e" title="Dur\xE9e" src="..\/images\/duree.gif" width="32" height="14" align="absmiddle"><\/td>(.{1,100})<td>(.{1,50})<\/td>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['duree'] = $valeur[2]; //Ann\xE9e de production $res['anne_prod'] = ""; $res['inbdd'] = false; RETURN $res; } function info_dvdfrById($fileid){ global $USER; //Initialisation $res['synopsis'] = "Aucune information"; if($filmrecherche = @file_get_contents('http://www.dvdfr.com/dvd/dvd.php?id='.$fileid)) { $res=get_info_dvdfr($filmrecherche); }else{ //$res = "Erreur"; $res['synopsis']= 'http://www.dvdfr.com/dvd/dvd.php?id='.$fileid."\n".$pagerecherche; } RETURN $res; } ?> \ No newline at end of file +<? function info_allocine($file, $forced=false, $id=0){ global $USER; //Initialisation $res['synopsis'] = "Aucune information"; $file = ucwords($file); $db = sqlite_open($USER.'video.db', 0666, $mon_message_erreur); $result=sqlite_query($db, 'SELECT * FROM film WHERE name=\''.sqlite_escape_string($file).'\''); $rows = sqlite_num_rows($result); $db2 = sqlite_open($USER.'cache.db', 0666, $mon_message_erreur); $result2=sqlite_query($db2, 'SELECT * FROM film WHERE name = \''.sqlite_escape_string($file).'\' AND file LIKE \'%'.sqlite_escape_string($file).'%\''); $rows2 = sqlite_num_rows($result2); if($rows!="0" AND !$forced){ // R\xE9cup\xE9ration depuis la base de donn\xE9es des films $row = sqlite_fetch_array($result); $res['nom'] = $row['name']; $res['dir'] = $row['dir']; $res['critique_visiteurs'] = $row['critique_visiteurs']; $res['critique_presse'] = $row['critique_presse']; $res['image'] = $row['img']; $res['synopsis'] = $row['Synopsis']; $res['date_sortie'] = $row['sortie']; $res['realisateur'] = $row['realisateur']; $res['acteurs'] = $row['avec']; $res['nationalite'] = $row['film']; $res['genre'] = $row['genre']; $res['duree'] = $row['Duree']; $res['anne_prod'] = $row['production']; $res['ba'] = $row['ba']; $res['inbdd'] = true; }elseif($rows2!="0" AND !$forced){ // R\xE9cup\xE9ration depuis le cache allocin\xE9 $row = sqlite_fetch_array($result2); $res['nom'] = $row['name']; $res['critique_visiteurs'] = $row['critique_visiteurs']; $res['critique_presse'] = $row['critique_presse']; $res['image'] = $row['img']; $res['synopsis'] = $row['Synopsis']; $res['date_sortie'] = $row['sortie']; $res['realisateur'] = $row['realisateur']; $res['acteurs'] = $row['avec']; $res['nationalite'] = $row['film']; $res['genre'] = $row['genre']; $res['duree'] = $row['Duree']; $res['anne_prod'] = $row['production']; $res['ba'] = $row['ba']; $res['inbdd'] = false; }else{ if($id==0){ // Recherche de l'id sur Allocin\xE9 if($pagerecherche = @file_get_contents('http://www.allocine.fr/recherche/?motcle='.urlencode($file).'&f=3&rub=1')){ //Critique presse (nouvelle notation et ancienne) $ereg = '<h4><a href="\/film\/fichefilm_gen_cfilm=(.{1,7}).html" class="link1">(.{1,100})<\/a><\/h4>'; preg_match_all("/$ereg/s", $pagerecherche, $valeur); $mini = -1; $filebis = strtolower($file); foreach($valeur[1] as $key=>$val){ $leven = levenshtein($filebis, strtolower(strip_tags($valeur[2][$key]))); if($leven<$mini or $mini==-1){ $id = $valeur[1][$key]; $mini = $leven; } if($mini==0){ break; } } }else{ $res = "Erreur"; } } if($res != "Erreur"){ $res = info_allocineById($id); } $res['inbdd'] = false; sqlite_query($db2, 'DELETE FROM film WHERE name LIKE \'%'.sqlite_escape_string($file).'%\' OR file LIKE \'%'.sqlite_escape_string($file).'%\''); sqlite_query($db2, 'INSERT INTO film VALUES(NULL, \''.sqlite_escape_string($file).'\', \''.sqlite_escape_string($res['nom']).'\', \''.sqlite_escape_string($res['synopsis']).'\', \''.sqlite_escape_string($res['image']).'\' , \''.sqlite_escape_string($res['date_sortie']).'\' , \''.sqlite_escape_string($res['realisateur']).'\' , \''.sqlite_escape_string($res['acteurs']).'\' , \''.sqlite_escape_string($res['nationalite']).'\' , \''.sqlite_escape_string($res['genre']).'\' , \''.sqlite_escape_string($res['duree']).'\' , \''.sqlite_escape_string($res['anne_prod']).'\' , \''.sqlite_escape_string($res['critique_visiteurs']).'\' , \''.sqlite_escape_string($res['critique_presse']).'\' , \''.sqlite_escape_string($res['ba']).'\')'); } sqlite_close($db); sqlite_close($db2); RETURN $res; } // Fonction renvoyant les infos d'un film d\xE9sign\xE9 par son ID allocin\xE9 function info_allocineById($id){ //Initialisation $res['synopsis'] = "Aucune information"; if($filmrecherche = @file_get_contents('http://www.allocine.fr/film/fichefilm_gen_cfilm='.$id.'.html')) { //R\xE9cup\xE9ration du nom du film $ereg = '<title>(.{1,150})<\/title>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['nom'] = ucwords($valeur[1]); //Critique visiteurs $ereg = 'notepresse=(.{0,10})¬epublic=(.{0,10})" marginwidth'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['critique_visiteurs'] = round(ereg_replace(",", ".", $valeur[1])); $res['critique_presse'] = round(ereg_replace(",", ".", $valeur[2])); //R\xE9cup\xE9ration de l'adresse de l'image $ereg = '<img src="http:\/\/a69.g.akamai.net\/n\/69\/10688\/v1\/img5.allocine.fr\/(.{1,70})" border="0" alt="" \/>'; preg_match("/$ereg/s", $filmrecherche, $valeur); if(trim($valeur[1])==''){ $res['image'] = 'http://a69.g.akamai.net/n/69/10688/v1/img5.allocine.fr/acmedia/skin/AlloCineV5/habillage/AffichetteAllocine.gif'; }else{ $res['image'] = 'http://a69.g.akamai.net/n/69/10688/v1/img5.allocine.fr/'.$valeur[1]; } //R\xE9cup\xE9ration du synopsis $ereg = '<td valign="top" style="padding:10 0 0 0"><div align="justify"><h4>(.{1,1000})<\/h4><\/div><\/td>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['synopsis'] = trim(strip_tags($valeur[1])); if($res['synopsis']=='') $res['synopsis'] = "Aucune information"; //R\xE9cup\xE9ration de la date $ereg = 'Date de sortie : <b>(.{1,30})<\/b>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $monthes = array('Janvier'=>'1', 'F\xE9vrier'=>'2', 'Mars'=>'3', 'Avril'=>'4', 'Mai'=>'5', 'Juin'=>'6', 'Juillet'=>'7','Ao\xFBt'=>'8', 'Septembre'=>'9', 'Octobre'=>'10', 'Novembre'=>'11', 'D\xE9cembre'=>'12'); $expl=explode(" ",$valeur[1]); if(count($expl)==3) $res['date_sortie'] = mktime(0,0,0,$monthes[$expl[1]],$expl[0],$expl[2]); else $res['date_sortie'] = 2; //R\xE9cup\xE9ration du r\xE9alisateur $ereg = '<h4>R\xE9alis\xE9 par <a class="link1" href=(.{1,150})>(.{1,40})<\/a><\/h4><h4> '; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['realisateur'] = $valeur[2]; //R\xE9cup\xE9ration des acteurs $ereg = '<h4>Avec(.{1,1000})<\/a><\/h4><\/div><div style="padding: 2 0 2 0;"><h4>Film'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['acteurs'] = trim(strip_tags($valeur[1])); //Nationalit\xE9 $ereg = '<h4>Film (.{1,40}). <\/h4><h4>Genre'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['nationalite'] = $valeur[1]; //Genre $ereg = '<h4>Genre : (.{1,450})<\/a><\/h4><\/div><div style="padding: 2 0 2 0;">'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['genre'] = trim(strip_tags($valeur[1])); //Dur\xE9e $ereg = '<h4>Dur\xE9e : (.{1,15}). <\/h4><h4>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['duree'] = $valeur[1]; //Ann\xE9e de production $ereg = '<h4>Ann\xE9e de production : (.{1,7})<\/h4>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['anne_prod'] = $valeur[1]; // R\xE9cup\xE9ration des bandes annonces $ba=array(); if($pagerecherche = @file_get_contents('http://www.cinemovies.fr/resultat_recherche.php?cherche='.urlencode($res['nom']))){ $ereg = '<a href="fiche_film.php\?IDfilm=(.{1,6})" class="bodyFont5"><b>(.{1,300})<\/b><\/a> '; preg_match_all("/$ereg/s", $pagerecherche, $valeur); $mini = -1; $filebis = strtolower($res['nom']); foreach($valeur[1] as $key=>$val){ $leven = levenshtein($filebis, strtolower(strip_tags($valeur[2][$key]))); if($leven<$mini or $mini==-1){ $id = $valeur[1][$key]; $mini = $leven; } if($mini==0){ break; } } if($filmrecherche = @file_get_contents('http://www.cinemovies.fr/players/media.php?IDfilm='.$id)){ if(PHP_OS == "WIN32" || PHP_OS == "WINNT"){ $ereg = 'align="absmiddle" width="25" height="11">(.{1,25})<\/b>(.{1,2200})windows player(.{1,1300})<\/table><\/td><\/tr><tr><td'; preg_match_all("/$ereg/s", $filmrecherche, $value); }else{ $ereg = 'align="absmiddle" width="25" height="11">(.{1,25})<\/b>(.{1,1200})real(.{1,2500})<\/table><\/td><\/tr><tr><td'; preg_match_all("/$ereg/s", $filmrecherche, $value); $value[3]=$value[2]; } foreach($value[1] as $key=>$video){ $ereg = 'hd.php\?IDBA=(.{1,6})&ID'; preg_match("/$ereg/s", $value[3][$key], $flux); if(isset($flux[1])){ $ba[]=array(trim($video),'HQ',$flux[1]); }else{ $ereg = 'IDBA=(.{1,6})\';"><img border="0" src="..\/images\/v2\/div\/petite_fleche.gif" width="6" height="6">haute r'; preg_match("/$ereg/s", $value[3][$key], $flux); if(isset($flux[1])) $ba[]=array(trim($video),'N',$flux[1]); } } } } foreach($ba as $bande){ $res['ba']=str_replace('Bande annonce','BA',$res['ba'].$bande[0]).','.$bande[1].','.$bande[2].';'; } RETURN $res; }else{ RETURN "Aucun film trouv\xE9"; } } function info_personnalite($acteur){ if($pagerecherche = @file_get_contents('http://www.allocine.fr/recherche/?motcle='.urlencode($acteur).'&f=3&rub=2')){ $ereg = '<h4><a href="\/personne\/fichepersonne_gen_cpersonne=(.{1,15})" class="link1'; preg_match("/$ereg/s", $pagerecherche, $valeur); if($acteurrecherche = @file_get_contents('http://www.allocine.fr/personne/fichepersonne_gen_cpersonne='.$valeur[1])){ //R\xE9cup\xE9ration du nom "officiel" de la personnalit\xE9 $ereg = '<title>(.{1,150})<\/title>'; preg_match("/$ereg/s", $acteurrecherche, $valeur); $res['nom'] = $valeur[1]; //R\xE9cup\xE9ration de la date de naissance $ereg = '<h4><div style="padding:10 0 0 0">(.{1,100})<\/h4><\/div><div style="padding:15 0 0 0">'; preg_match("/$ereg/s", $acteurrecherche, $valeur); $expl=explode(" ",trim($valeur[1])); foreach($expl as $exp){ $new.=trim($exp).' '; } $ereg = 'N\xE9 le (.{1,18}) \xE0 (.{1,150})<br \/>'; preg_match("/$ereg/s", trim($new), $valeur); $monthes = array('Janvier'=>'1', 'F\xE9vrier'=>'2', 'Mars'=>'3', 'Avril'=>'4', 'Mai'=>'5', 'Juin'=>'6', 'Juillet'=>'7','Ao\xFBt'=>'8', 'Septembre'=>'9', 'Octobre'=>'10', 'Novembre'=>'11', 'D\xE9cembre'=>'12'); $expl=explode(" ",trim($valeur[1])); if(count($expl)==3) $res['date_naissance'] = mktime(0,0,0,$monthes[$expl[1]],$expl[0],$expl[2]); else $res['date_naissance'] = 2; $res['lieu_naissance'] = $valeur[2]; // Photo de la personnalit\xE9 $ereg = '<td valign="top" style="padding:0 10 10 0" width="120"><img src="(.{1,200})" width="120" height="160" border="0">'; preg_match("/$ereg/s", $acteurrecherche, $valeur); $res['image'] = $valeur[1]; //R\xE9cup\xE9ration de la biographie de l'artiste $ereg = '<td colspan="2" style="padding:10 0 15 0"><div align="justify"><h4>(.{1,15000})<\/h4><\/div><\/td>'; preg_match("/$ereg/s", $acteurrecherche, $valeur); $res['biographie'] = trim(strip_tags($valeur[1])); //R\xE9cup\xE9ration du role de la personnalit\xE9 $ereg = '<div><h4><b>(.{1,250})<h4><div style="padding:10 0 0 0">'; preg_match("/$ereg/s", $acteurrecherche, $valeur); $res['statut'] = trim(strip_tags($valeur[1])); RETURN $res; }else{ RETURN 'erreur'; } }else{ RETURN 'erreur'; } } function get_info_dvdfr($filmrecherche){ //R\xE9cup\xE9ration du nom du film $ereg = '<div class="dvd_title">(.{1,150})<\/div>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['nom'] = ucwords($valeur[1]); //Critique visiteurs $res['critique_visiteurs'] = ""; //Critique presse (nouvelle notation et ancienne) $res['critique_presse'] = ""; //R\xE9cup\xE9ration de l'adresse de l'image $ereg= 'src="..\/images\/dvd\/(.{1,70})" width="200" height="280"'; $valeur[1]=""; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['image'] = 'http://www.dvdfr.com/images/dvd/'.$valeur[1]; //R\xE9cup\xE9ration du synopsis $pos1 = strpos($filmrecherche,'<div class="dvd_subtitle">Synopsis</div>'); $pos1 = strpos($filmrecherche,'<div class="dvd_text">', $pos1+strlen('<div class="dvd_subtitle">Synopsis</div>')); $pos1 += strlen('<div class="dvd_text">'); $pos2 = strpos($filmrecherche,'</div>', $pos1); $res['synopsis'] = trim(strip_tags(substr($filmrecherche, $pos1, $pos2-$pos1))); $res['synopsis'] = str_replace("\n", ' ', $res['synopsis']); if($res['synopsis']=='') $res['synopsis'] = "Aucune information"; //R\xE9cup\xE9ration de la date $pos1 = strpos($filmrecherche,'<div class="dvd_subtitle">Sorti le</div>'); $pos1 = strpos($filmrecherche,'<div class="dvd_text">', $pos1+strlen('<div class="dvd_subtitle">Sorti le</div>')); $pos1 += strlen('<div class="dvd_text">'); $pos2 = strpos($filmrecherche,'</div>', $pos1); $valeur[1] = trim(strip_tags(substr($filmrecherche, $pos1, $pos2-$pos1))); $monthes = array('janvier'=>'1', 'f\xE9vrier'=>'2', 'mars'=>'3', 'avril'=>'4', 'mai'=>'5', 'juin'=>'6', 'juillet'=>'7','ao\xFBt'=>'8', 'septembre'=>'9', 'octobre'=>'10', 'novembre'=>'11', 'd\xE9cembre'=>'12'); $expl=explode(" ",$valeur[1]); if(count($expl)==3) $res['date_sortie'] = mktime(0,0,0,$monthes[$expl[1]],$expl[0],$expl[2]); else $res['date_sortie'] = 2; //R\xE9cup\xE9ration du r\xE9alisateur $res['realisateur'] = ""; //R\xE9cup\xE9ration des acteurs $pos1 = strpos($filmrecherche,'<div class="dvd_subtitle">Avec...</div>'); if ($pos1>0){ $pos1 = strpos($filmrecherche,'<div class="dvd_text">', $pos1+strlen('<div class="dvd_subtitle">Avec...</div>')); $pos1 += strlen('<div class="dvd_text">'); $pos2 = strpos($filmrecherche,'</div>', $pos1); $res['acteurs'] = trim(strip_tags(substr($filmrecherche, $pos1, $pos2-$pos1))); } //Nationalit\xE9 $res['nationalite'] = ""; //Genre $pos1 = strpos($filmrecherche,'<div class="dvd_categorie">'); while ($pos1>0){ $pos1 = strpos($filmrecherche,'<A class="home_a"', $pos1); if ($pos1>0) { $pos1 = strpos($filmrecherche,'>', $pos1); $pos1 += 1; $pos2 = strpos($filmrecherche,'</A>', $pos1); if ($res['genre']!="") $res['genre'] = $res['genre']." "; $res['genre'] = $res['genre'].trim(strip_tags(substr($filmrecherche, $pos1, $pos2-$pos1))); $pos1 = $pos2; } } //Dur\xE9e $ereg = '<td><img alt="Dur\xE9e" title="Dur\xE9e" src="..\/images\/duree.gif" width="32" height="14" align="absmiddle"><\/td>(.{1,100})<td>(.{1,50})<\/td>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['duree'] = $valeur[2]; //Ann\xE9e de production $res['anne_prod'] = ""; $res['inbdd'] = false; RETURN $res; } function info_dvdfrById($fileid){ global $USER; //Initialisation $res['synopsis'] = "Aucune information"; if($filmrecherche = @file_get_contents('http://www.dvdfr.com/dvd/dvd.php?id='.$fileid)) { $res=get_info_dvdfr($filmrecherche); }else{ //$res = "Erreur"; $res['synopsis']= 'http://www.dvdfr.com/dvd/dvd.php?id='.$fileid."\n".$pagerecherche; } RETURN $res; } ?> \ No newline at end of file Modified: trunk/module/guidetv/tvprogram.php =================================================================== --- trunk/module/guidetv/tvprogram.php 2006-10-26 18:00:27 UTC (rev 38) +++ trunk/module/guidetv/tvprogram.php 2006-10-26 19:29:22 UTC (rev 39) @@ -1 +1 @@ -<?php $RACINE_REP = "../../"; require($RACINE_REP.'_framework/framework.php'); if(isset($_GET['min'])){ $min = $_GET['min']; }else{ $min = 0; } if(filemtime('epg.xml')+86400<time()){ $value = file_get_contents('http://easybobox.free.fr/epg.xml'); file_put_contents('epg.xml', $value); } $contenu = @file_get_contents ($USER.'multiposte.m3u'); $ereg = '#EXTINF:0,(.{1,3}) - (.{1,40})rtsp:\/\/mafreebox.freebox.fr\/freeboxtv\/(.{1,3})'; preg_match_all("/$ereg/s", $contenu, $valeur); function search_chan($chan){ global $USER, $valeur; if($chan=='tf1' OR $chan=='canalplus'){ $CHAINE=array('id'=>'inc', 'nom'=>$chan, 'num'=>'inc', 'ico'=>$chan.'.gif'); }else{ $id=0; $chgmt=intval(abs(count($valeur[1]) / 2)); foreach($valeur[2] as $key => $value){ $ico = utf8_decode($valeur[2][$key]); if (eregi("France 3",$valeur[2][$key])){ $ico = "France 3"; }elseif (eregi("nantes",$valeur[2][$key])){ $ico = "Telenantes_Nantes 7"; } if(eregi($chan,str_replace(' ','',trim(utf8_decode($valeur[2][$key]))))){ $CHAINE=array('id'=>trim($valeur[1][$key]), 'nom'=>trim(utf8_decode($valeur[2][$key])), 'num'=>trim($valeur[3][$key]), 'ico'=>trim(str_replace(array('>',' !',' ','\xE9','\xEE','\xF4'),array('','','','e','i','o'),$ico)).'.gif'); } } } return $CHAINE; } include "class.phxmltvparser.php"; include "class.collection.php"; include_once "phxpconfig.php"; /* function getLink($prgItem) { $title = $prgItem->title; $title = eregi_replace('\xE4', 'ae', $title); $title = eregi_replace('\xF6', 'oe', $title); $title = eregi_replace('\xFC', 'ue', $title); $title = eregi_replace('\xEE', 'ss', $title); $title = ucwords($title); //ucase first letter $title = eregi_replace("[^a-z0-9_]","",$title); //strip all special chars $paras = '&chan=' . $prgItem->channel; $paras .= '&date=' . $prgItem->date; $paras .= '&start=' . htmlspecialchars($prgItem->formatStartTime()); $paras .= '&stop=' . htmlspecialchars($prgItem->formatStopTime()); $paras .= '&title=' . $title; $call = '<A class="prg_title" href="' . PRG_CALL . $paras . '" name="record" target="blank">' . $prgItem->title . '</A>'; return($call); } // view ordered by channel function dump($prgObj, $date, $catFilter) { echo '<div class="prg_date">' . substr($date,6,2) . '.' . substr($date,4,2) . '</div>'; echo "<table>"; foreach ($prgObj->arrData as $channel => $arrItems) { echo "<tr>"; echo '<td class="prg_channel">'; echo "$channel<br>"; echo "</td>"; foreach ($arrItems as $start => $item) { if(strlen($catFilter) > 0) $hit = eregi($catFilter, $item->category); else $hit = true; if($hit) { echo '<td class="prg_cell">'; $title = $item->title; $title = eregi_replace('\xE4', 'ae', $title); $title = eregi_replace('\xF6', 'oe', $title); $title = eregi_replace('\xFC', 'ue', $title); $title = eregi_replace('\xEE', 'ss', $title); $title =ucwords($title); //ucase first letter $title = eregi_replace("[^a-z0-9_]","",$title); //strip all special characters $paras = '&chan=' . $channel; $paras .= '&date=' . $item->date; $paras .= '&start=' . htmlspecialchars($item->formatStartTime()); $paras .= '&stop=' . htmlspecialchars($item->formatStopTime()); $paras .= '&title=' . $title; $call = '<A class="prg_title" href="neu.php?action=show' . $paras . '" name="record" target="blank">' . $item->title . '</A>'; echo $call . "<br>"; echo '<div class="prg_subtitle">' . $item->subtitle . '</div>'; echo '<div class="prg_extra_data">'; echo $item->formatStartTime() . "-" . $item->formatStopTime() . "<br>"; echo $item->category ; echo '</div>'; echo '<div class="prg_desc">'; echo $item->desc; echo '</div>'; echo "</td>"; } } echo "</tr>"; } echo "</table>"; } */ //=================================================================================================================================================== //--- main function --- //=================================================================================================================================================== $xml = xml_parser_create(); $xtvp = new PHxmltvParser; //$xtvp->setDate($date); xml_set_object($xml, $xtvp); xml_set_element_handler($xml, 'start_element', 'end_element'); xml_set_character_data_handler($xml, 'character_data'); xml_parser_set_option($xml, XML_OPTION_CASE_FOLDING, false); // $file = "../programm.xml"; // $file = "test.xml"; //$file="http://www.tuyaux-turf.com/divers/TVguide.xml"; $file="epg.xml"; $fp = fopen($file, 'r') or die("unable to open file!"); while($data = fread($fp, 4096)) { xml_parse($xml, $data, feof($fp)) or die("unable to parse data!"); } fclose($fp); xml_parser_free($xml); //------------------------ $PrgDataObj = $xtvp->getPrgDataObj(); //dump($PrgDataObj, $date, $catFilter); $channels = new collection; $dates = new collection; $categories = new collection; //echo "$PrgDataObj->idxMax<br>"; $prgitem = $PrgDataObj->getFirst(); while(!is_null($prgitem)) { $channels->add($prgitem->channel); $dates->add($prgitem->date); $categories->add($prgitem->category); $prgitem = $PrgDataObj->getNext(); } $channels->sort(); $dates->sort(); $categories->sort(); $PrgDataObj->orderByDateTime(); $firstdate = $dates->getFirst(); if(isset($_GET['cboDate']) AND isset($_GET['cboCateg'])){ $dat = $dates->getFirst(); while(!is_null($dat)) { if($dat == $_GET['cboDate'] || $_GET['cboDate'] == OPT_ALL){ $prgitem = $PrgDataObj->getFirst(); while(!is_null($prgitem)) { if($prgitem->date == $dat && ($prgitem->channel == $_GET['cboCateg'] || $_GET['cboCateg'] == OPT_ALL)) { $EMISSIONS[] = array('debut'=>$prgitem->start, 'fin'=>$prgitem->stop, 'titre'=>utf8_decode($prgitem->title), 'specialid'=>md5(utf8_decode($prgitem->title).$prgitem->start.$prgitem->stop.$prgitem->channel)); } if(md5(utf8_decode($prgitem->title).$prgitem->start.$prgitem->stop.$prgitem->channel) == $_GET['indic_name']){ $EMISSION=array('debut'=>$prgitem->start, 'fin'=>$prgitem->stop, 'titre'=>utf8_decode($prgitem->title), 'soustitre'=>utf8_decode($prgitem->subtitle), 'description'=>utf8_decode($prgitem->desc), 'categorie'=>utf8_decode($prgitem->category), 'episode'=>utf8_decode($prgitem->episode), 'realisateur'=>utf8_decode($prgitem->director), 'duree'=>utf8_decode($prgitem->lenght), 'acteur'=>utf8_decode($prgitem->acteur), 'note'=>utf8_decode($prgitem->note), 'icone'=>utf8_decode($prgitem->icon), 'presentateur'=>utf8_decode($prgitem->presentateur)); } $prgitem = $PrgDataObj->getNext(); } } $dat = $dates->getNext(); } }else{ $categ = $channels->getFirst(); while(!is_null($categ)) { $info_chaine = search_chan($categ); $CHAINES[]=array('nom'=>$categ, 'indicatif'=>$categ, 'ico'=>$info_chaine['ico'], 'recordable'=>true); $categ = $channels->getNext(); } } // Cr\xE9e la liste des jours disponibles $dat = $dates->getFirst(); while(!is_null($dat)) { $DATES[]=$dat; $dat = $dates->getNext(); } // Fonction permettant de transformer les dates comme il faut function rebuild_date($date){ $year = substr($date, 0, 4); $month = substr($date, 4, 2); $day = substr($date, 6, 2); return($day.'/'.$month.'/'.$year); } $smarty->assign('cboDate',$_GET['cboDate']); $smarty->assign('cboCateg',$_GET['cboCateg']); $smarty->assign('MIN',$_GET['min']); if(isset($EMISSION)){ $info_chaine = search_chan($_GET['cboCateg']); $smarty->assign('info_chaine',$info_chaine); $LINK['red'] = 'tvprogram.php?cboDate='.$_GET['cboDate'].'&cboCateg='.urlencode($_GET['cboCateg']).'&min='.$min; $smarty->assign('TITRE','Programme t\xE9l\xE9 - '.urldecode($_GET['cboCateg']).' - '.date('d/m/Y', $_GET['cboDate'])); $smarty->assign('EMISSION',$EMISSION); $smarty->assign('CONTENT',$smarty->fetch('guidetv.tpl')); }elseif(isset($EMISSIONS)) { $info_chaine = search_chan($_GET['cboCateg']); $smarty->assign('info_chaine',$info_chaine); $LINK['red'] = 'tvprogram.php'; foreach($DATES as $dat_new){ $MENU_ALT[] = array('lien'=>'tvprogram.php?cboDate='.$dat_new.'&cboCateg='.$_GET['cboCateg'], 'nom'=>date('d/m/Y', $dat_new), 'selected'=>$dat_new==$_GET['cboDate']); } $year = substr($_GET['cboDate'], 0, 4); $month = substr($_GET['cboDate'], 4, 2); $day = substr($_GET['cboDate'], 6, 2); $smarty->assign('TITRE','Programme t\xE9l\xE9 - '.$_GET['cboCateg'].' - '.date('d/m/Y', $_GET['cboDate'])); $smarty->assign('EMISSIONS',$EMISSIONS); $smarty->assign('CONTENT',$smarty->fetch('guidetv.tpl')); }else{ $smarty->assign('DATE',$firstdate); $smarty->assign('CHAINE',$CHAINES); $smarty->assign('CONTENT',$smarty->fetch('guidetv.tpl')); } $smarty->display('interface.tpl'); ?> \ No newline at end of file +<?php $RACINE_REP = "../../"; require($RACINE_REP.'_framework/framework.php'); if(isset($_GET['min'])){ $min = $_GET['min']; }else{ $min = 0; } if(filemtime('epg.xml')+86400<time()){ $value = file_get_contents('http://easybobox.free.fr/epg.xml'); file_put_contents('epg.xml', $value); } $contenu = @file_get_contents ($USER.'multiposte.m3u'); $ereg = '#EXTINF:0,(.{1,3}) - (.{1,40})rtsp:\/\/mafreebox.freebox.fr\/freeboxtv\/s?t?r?e?a?m?\??i?d?=?(.{1,3})'; preg_match_all("/$ereg/s", $contenu, $valeur); function search_chan($chan){ global $USER, $valeur; if($chan=='tf1' OR $chan=='canalplus'){ $CHAINE=array('id'=>'inc', 'nom'=>$chan, 'num'=>'inc', 'ico'=>$chan.'.gif'); }else{ $id=0; $chgmt=intval(abs(count($valeur[1]) / 2)); foreach($valeur[2] as $key => $value){ $ico = utf8_decode($valeur[2][$key]); if (eregi("France 3",$valeur[2][$key])){ $ico = "France 3"; }elseif (eregi("nantes",$valeur[2][$key])){ $ico = "Telenantes_Nantes 7"; } if(eregi($chan,str_replace(' ','',trim(utf8_decode($valeur[2][$key]))))){ $CHAINE=array('id'=>trim($valeur[1][$key]), 'nom'=>trim(utf8_decode($valeur[2][$key])), 'num'=>trim($valeur[3][$key]), 'ico'=>trim(str_replace(array('>',' !',' ','\xE9','\xEE','\xF4'),array('','','','e','i','o'),$ico)).'.gif'); } } } return $CHAINE; } include "class.phxmltvparser.php"; include "class.collection.php"; include_once "phxpconfig.php"; /* function getLink($prgItem) { $title = $prgItem->title; $title = eregi_replace('\xE4', 'ae', $title); $title = eregi_replace('\xF6', 'oe', $title); $title = eregi_replace('\xFC', 'ue', $title); $title = eregi_replace('\xEE', 'ss', $title); $title = ucwords($title); //ucase first letter $title = eregi_replace("[^a-z0-9_]","",$title); //strip all special chars $paras = '&chan=' . $prgItem->channel; $paras .= '&date=' . $prgItem->date; $paras .= '&start=' . htmlspecialchars($prgItem->formatStartTime()); $paras .= '&stop=' . htmlspecialchars($prgItem->formatStopTime()); $paras .= '&title=' . $title; $call = '<A class="prg_title" href="' . PRG_CALL . $paras . '" name="record" target="blank">' . $prgItem->title . '</A>'; return($call); } // view ordered by channel function dump($prgObj, $date, $catFilter) { echo '<div class="prg_date">' . substr($date,6,2) . '.' . substr($date,4,2) . '</div>'; echo "<table>"; foreach ($prgObj->arrData as $channel => $arrItems) { echo "<tr>"; echo '<td class="prg_channel">'; echo "$channel<br>"; echo "</td>"; foreach ($arrItems as $start => $item) { if(strlen($catFilter) > 0) $hit = eregi($catFilter, $item->category); else $hit = true; if($hit) { echo '<td class="prg_cell">'; $title = $item->title; $title = eregi_replace('\xE4', 'ae', $title); $title = eregi_replace('\xF6', 'oe', $title); $title = eregi_replace('\xFC', 'ue', $title); $title = eregi_replace('\xEE', 'ss', $title); $title =ucwords($title); //ucase first letter $title = eregi_replace("[^a-z0-9_]","",$title); //strip all special characters $paras = '&chan=' . $channel; $paras .= '&date=' . $item->date; $paras .= '&start=' . htmlspecialchars($item->formatStartTime()); $paras .= '&stop=' . htmlspecialchars($item->formatStopTime()); $paras .= '&title=' . $title; $call = '<A class="prg_title" href="neu.php?action=show' . $paras . '" name="record" target="blank">' . $item->title . '</A>'; echo $call . "<br>"; echo '<div class="prg_subtitle">' . $item->subtitle . '</div>'; echo '<div class="prg_extra_data">'; echo $item->formatStartTime() . "-" . $item->formatStopTime() . "<br>"; echo $item->category ; echo '</div>'; echo '<div class="prg_desc">'; echo $item->desc; echo '</div>'; echo "</td>"; } } echo "</tr>"; } echo "</table>"; } */ //=================================================================================================================================================== //--- main function --- //=================================================================================================================================================== $xml = xml_parser_create(); $xtvp = new PHxmltvParser; //$xtvp->setDate($date); xml_set_object($xml, $xtvp); xml_set_element_handler($xml, 'start_element', 'end_element'); xml_set_character_data_handler($xml, 'character_data'); xml_parser_set_option($xml, XML_OPTION_CASE_FOLDING, false); // $file = "../programm.xml"; // $file = "test.xml"; //$file="http://www.tuyaux-turf.com/divers/TVguide.xml"; $file="epg.xml"; $fp = fopen($file, 'r') or die("unable to open file!"); while($data = fread($fp, 4096)) { xml_parse($xml, $data, feof($fp)) or die("unable to parse data!"); } fclose($fp); xml_parser_free($xml); //------------------------ $PrgDataObj = $xtvp->getPrgDataObj(); //dump($PrgDataObj, $date, $catFilter); $channels = new collection; $dates = new collection; $categories = new collection; //echo "$PrgDataObj->idxMax<br>"; $prgitem = $PrgDataObj->getFirst(); while(!is_null($prgitem)) { $channels->add($prgitem->channel); $dates->add($prgitem->date); $categories->add($prgitem->category); $prgitem = $PrgDataObj->getNext(); } $channels->sort(); $dates->sort(); $categories->sort(); $PrgDataObj->orderByDateTime(); $firstdate = $dates->getFirst(); if(isset($_GET['cboDate']) AND isset($_GET['cboCateg'])){ $dat = $dates->getFirst(); while(!is_null($dat)) { if($dat == $_GET['cboDate'] || $_GET['cboDate'] == OPT_ALL){ $prgitem = $PrgDataObj->getFirst(); while(!is_null($prgitem)) { if($prgitem->date == $dat && ($prgitem->channel == $_GET['cboCateg'] || $_GET['cboCateg'] == OPT_ALL)) { $EMISSIONS[] = array('debut'=>$prgitem->start, 'fin'=>$prgitem->stop, 'titre'=>utf8_decode($prgitem->title), 'specialid'=>md5(utf8_decode($prgitem->title).$prgitem->start.$prgitem->stop.$prgitem->channel)); } if(md5(utf8_decode($prgitem->title).$prgitem->start.$prgitem->stop.$prgitem->channel) == $_GET['indic_name']){ $EMISSION=array('debut'=>$prgitem->start, 'fin'=>$prgitem->stop, 'titre'=>utf8_decode($prgitem->title), 'soustitre'=>utf8_decode($prgitem->subtitle), 'description'=>utf8_decode($prgitem->desc), 'categorie'=>utf8_decode($prgitem->category), 'episode'=>utf8_decode($prgitem->episode), 'realisateur'=>utf8_decode($prgitem->director), 'duree'=>utf8_decode($prgitem->lenght), 'acteur'=>utf8_decode($prgitem->acteur), 'note'=>utf8_decode($prgitem->note), 'icone'=>utf8_decode($prgitem->icon), 'presentateur'=>utf8_decode($prgitem->presentateur)); } $prgitem = $PrgDataObj->getNext(); } } $dat = $dates->getNext(); } }else{ $categ = $channels->getFirst(); while(!is_null($categ)) { $info_chaine = search_chan($categ); $CHAINES[]=array('nom'=>$categ, 'indicatif'=>$categ, 'ico'=>$info_chaine['ico'], 'recordable'=>true); $categ = $channels->getNext(); } } // Cr\xE9e la liste des jours disponibles $dat = $dates->getFirst(); while(!is_null($dat)) { $DATES[]=$dat; $dat = $dates->getNext(); } // Fonction permettant de transformer les dates comme il faut function rebuild_date($date){ $year = substr($date, 0, 4); $month = substr($date, 4, 2); $day = substr($date, 6, 2); return($day.'/'.$month.'/'.$year); } $smarty->assign('cboDate',$_GET['cboDate']); $smarty->assign('cboCateg',$_GET['cboCateg']); $smarty->assign('MIN',$_GET['min']); if(isset($EMISSION)){ $info_chaine = search_chan($_GET['cboCateg']); $smarty->assign('info_chaine',$info_chaine); $LINK['red'] = 'tvprogram.php?cboDate='.$_GET['cboDate'].'&cboCateg='.urlencode($_GET['cboCateg']).'&min='.$min; $smarty->assign('TITRE','Programme t\xE9l\xE9 - '.urldecode($_GET['cboCateg']).' - '.date('d/m/Y', $_GET['cboDate'])); $smarty->assign('EMISSION',$EMISSION); $smarty->assign('CONTENT',$smarty->fetch('guidetv.tpl')); }elseif(isset($EMISSIONS)) { $info_chaine = search_chan($_GET['cboCateg']); $smarty->assign('info_chaine',$info_chaine); $LINK['red'] = 'tvprogram.php'; foreach($DATES as $dat_new){ $MENU_ALT[] = array('lien'=>'tvprogram.php?cboDate='.$dat_new.'&cboCateg='.$_GET['cboCateg'], 'nom'=>date('d/m/Y', $dat_new), 'selected'=>$dat_new==$_GET['cboDate']); } $year = substr($_GET['cboDate'], 0, 4); $month = substr($_GET['cboDate'], 4, 2); $day = substr($_GET['cboDate'], 6, 2); $smarty->assign('TITRE','Programme t\xE9l\xE9 - '.$_GET['cboCateg'].' - '.date('d/m/Y', $_GET['cboDate'])); $smarty->assign('EMISSIONS',$EMISSIONS); $smarty->assign('CONTENT',$smarty->fetch('guidetv.tpl')); }else{ $smarty->assign('DATE',$firstdate); $smarty->assign('CHAINE',$CHAINES); $smarty->assign('CONTENT',$smarty->fetch('guidetv.tpl')); } $smarty->display('interface.tpl'); ?> \ No newline at end of file Modified: trunk/module/multiposte/add.php =================================================================== --- trunk/module/multiposte/add.php 2006-10-26 18:00:27 UTC (rev 38) +++ trunk/module/multiposte/add.php 2006-10-26 19:29:22 UTC (rev 39) @@ -45,18 +45,23 @@ //Cr\xE9ation du fichier bat de lancement + $contenu_html = @file_get_contents ($USER.'multiposte.m3u'); + if(eregi('stream?id=', $contenu_html)){ + $moreinfo = 'stream?id='; + } + //Profils d'encodage if($ini[multiposte][cvid]!='none' AND $ini[multiposte][caud]!='none'){ - $link = 'start vlc\vlc.exe --wx-systray --intf=dummy --extraintf=http --http-src="'.realpath(realpath("../../").'/http-vlc').'" --http-host=:8082 --http-charset=ISO-8859-1 --quiet --dummy-quiet -vvv rtsp://mafreebox.freebox.fr/freeboxtv/'.$chaine[2].' --sout=#transcode{vcodec='.$ini[multiposte][cvid].',vb='.$ini[multiposte][bvid].',scale=1,acodec='.$ini[multiposte][caud].',ab='.$ini[multiposte][baud].',channels=2} --sout=#duplicate{dst=std{access=file,mux='.$ini[multiposte][muxer].',url="'.$fichier.'"} + $link = 'start vlc\vlc.exe --wx-systray --intf=dummy --extraintf=http --http-src="'.realpath(realpath("../../").'/http-vlc').'" --http-host=:8082 --http-charset=ISO-8859-1 --quiet --dummy-quiet -vvv rtsp://mafreebox.freebox.fr/freeboxtv/'.$moreinfo.$chaine[2].' --sout=#transcode{vcodec='.$ini[multiposte][cvid].',vb='.$ini[multiposte][bvid].',scale=1,acodec='.$ini[multiposte][caud].',ab='.$ini[multiposte][baud].',channels=2} --sout=#duplicate{dst=std{access=file,mux='.$ini[multiposte][muxer].',url="'.$fichier.'"} start http://localhost:8080/lecteur/lunch_rec.php?id='.(sqlite_num_rows($result)+1); }elseif($ini[multiposte][cvid]=='none' AND $ini[multiposte][caud]=='none'){ - $link = 'start vlc\vlc.exe --wx-systray --intf=dummy --extraintf=http --http-src="'.realpath(realpath("../../").'/http-vlc').'" --http-host=:8082 --http-charset=ISO-8859-1 --quiet --dummy-quiet -vvv rtsp://mafreebox.freebox.fr/freeboxtv/'.$chaine[2].' --sout=#duplicate{dst=std{access=file,mux='.$ini[multiposte][muxer].',url="'.$fichier.'"} + $link = 'start vlc\vlc.exe --wx-systray --intf=dummy --extraintf=http --http-src="'.realpath(realpath("../../").'/http-vlc').'" --http-host=:8082 --http-charset=ISO-8859-1 --quiet --dummy-quiet -vvv rtsp://mafreebox.freebox.fr/freeboxtv/'.$moreinfo.$chaine[2].' --sout=#duplicate{dst=std{access=file,mux='.$ini[multiposte][muxer].',url="'.$fichier.'"} start http://localhost:8080/lecteur/lunch_rec.php?id='.(sqlite_num_rows($result)+1); }elseif($ini[multiposte][cvid]!='none' AND $ini[multiposte][caud]=='none'){ - $link = 'start vlc\vlc.exe --wx-systray --intf=dummy --extraintf=http --http-src="'.realpath(realpath("../../").'/http-vlc').'" --http-host=:8082 --http-charset=ISO-8859-1 --quiet --dummy-quiet -vvv rtsp://mafreebox.freebox.fr/freeboxtv/'.$chaine[2].' --sout=#transcode{vcodec='.$ini[multiposte][cvid].',vb='.$ini[multiposte][bvid].',scale=1} --sout=#duplicate{dst=std{access=file,mux... [truncated message content] |
From: <ara...@us...> - 2006-10-26 18:02:10
|
Revision: 38 http://svn.sourceforge.net/easybox-mod/?rev=38&view=rev Author: aragornis Date: 2006-10-26 11:00:27 -0700 (Thu, 26 Oct 2006) Log Message: ----------- Mise en place du nouveau systeme de module/skin Modified Paths: -------------- trunk/_framework/demarrage.php trunk/_framework/fonctions_partagees.inc.php trunk/_framework/lib/Smarty.class.php trunk/skin/simple/interface/encours.gif Added Paths: ----------- trunk/module/_explorateur/explorateur.tpl trunk/module/cac40/cac40.tpl trunk/module/diaporama/explorateur_photo.tpl trunk/module/diaporama/photo.tpl trunk/module/dvd/menu_dvd.tpl trunk/module/ephemeride/ephemeride.tpl trunk/module/favoris/favoris.tpl trunk/module/films/catalogue_video.tpl trunk/module/films/fichefilm.tpl trunk/module/films/films.tpl trunk/module/films/signet_ask.tpl trunk/module/films/signet_film.tpl trunk/module/guidetv/guidetv.tpl trunk/module/horloge/horloge.tpl trunk/module/horoscope/horoscope.tpl trunk/module/infotraffic/info-trafic.tpl trunk/module/jt/emissions.tpl trunk/module/livescore/livescore.tpl trunk/module/loto/loto.tpl trunk/module/mail/mail_inbox.tpl trunk/module/mail/mail_message.tpl trunk/module/meteo/meteoft.tpl trunk/module/modules/modules.tpl trunk/module/mp3/audio.tpl trunk/module/mp3/catalogue_audio.tpl trunk/module/mp3/playlist_audio.tpl trunk/module/mp3/podcast.tpl trunk/module/multiposte/enregistrement.tpl trunk/module/multiposte/enregistrement_add.tpl trunk/module/reseaufree/reseaufree.tpl trunk/module/rss/rss.tpl trunk/module/seances/programme_cine.tpl trunk/module/signet/signet.tpl trunk/module/webmedia/webmedias.tpl Removed Paths: ------------- trunk/skin/simple/audio.tpl trunk/skin/simple/cac40.tpl trunk/skin/simple/catalogue_audio.tpl trunk/skin/simple/catalogue_video.tpl trunk/skin/simple/emissions.tpl trunk/skin/simple/enregistrement.tpl trunk/skin/simple/enregistrement_add.tpl trunk/skin/simple/ephemeride.tpl trunk/skin/simple/explorateur.tpl trunk/skin/simple/explorateur_photo.tpl trunk/skin/simple/favoris.tpl trunk/skin/simple/fichefilm.tpl trunk/skin/simple/films.tpl trunk/skin/simple/guidetv.tpl trunk/skin/simple/horloge.tpl trunk/skin/simple/horoscope.tpl trunk/skin/simple/info-trafic.tpl trunk/skin/simple/livescore.tpl trunk/skin/simple/loto.tpl trunk/skin/simple/mail_inbox.tpl trunk/skin/simple/mail_message.tpl trunk/skin/simple/menu_dvd.tpl trunk/skin/simple/meteoft.tpl trunk/skin/simple/modules.tpl trunk/skin/simple/photo.tpl trunk/skin/simple/playlist_audio.tpl trunk/skin/simple/podcast.tpl trunk/skin/simple/programme_cine.tpl trunk/skin/simple/reseaufree.tpl trunk/skin/simple/rss.tpl trunk/skin/simple/signet.tpl trunk/skin/simple/signet_ask.tpl trunk/skin/simple/signet_film.tpl trunk/skin/simple/webmedias.tpl Modified: trunk/_framework/demarrage.php =================================================================== --- trunk/_framework/demarrage.php 2006-10-25 05:01:34 UTC (rev 37) +++ trunk/_framework/demarrage.php 2006-10-26 18:00:27 UTC (rev 38) @@ -52,6 +52,9 @@ switch($etape){ + case 1: + list_templates(); + break; // Phase d'initialisation case 2: $META['refresh']= '1;url=demarrage.php?etape=3'; Modified: trunk/_framework/fonctions_partagees.inc.php =================================================================== --- trunk/_framework/fonctions_partagees.inc.php 2006-10-25 05:01:34 UTC (rev 37) +++ trunk/_framework/fonctions_partagees.inc.php 2006-10-26 18:00:27 UTC (rev 38) @@ -507,4 +507,32 @@ return str_replace(array('-!-!-!spec$$', '-!-!-!spec\xA3\xA3}'), array('{ldelim}', '{rdelim}'), $temp); } +function format_source_tpl($ressource_name){ +global $USER; + $db = sqlite_open($USER.'utilisateur.db', 0666); + $res = sqlite_query($db,'SELECT * FROM templates WHERE template="'.$ressource_name.'" LIMIT 1'); + $resu = sqlite_fetch_object($res); + sqlite_close($db); + return $resu->url; +} + +function list_templates(){ +global $USER, $MODULE, $SKIN_REP; + $db = sqlite_open($USER.'utilisateur.db', 0666); + $tplskin = glob(realpath($SKIN_REP).'/*.tpl'); + $tplmodule = glob(realpath($MODULE).'/*/*.tpl'); + + sqlite_query($db,'DELETE FROM templates'); + + foreach($tplmodule as $tpl){ + sqlite_query($db,'INSERT INTO templates(template, url) VALUES("'.sqlite_escape_string(basename($tpl)).'", "'.sqlite_escape_string(realpath($tpl)).'")'); + } + + foreach($tplskin as $tpl){ + sqlite_query($db,'DELETE FROM templates WHERE template="'.basename($tpl).'"'); + sqlite_query($db,'INSERT INTO templates(template, url) VALUES("'.sqlite_escape_string(basename($tpl)).'", "'.sqlite_escape_string(realpath($tpl)).'")'); + } + + sqlite_close($db); +} ?> Modified: trunk/_framework/lib/Smarty.class.php =================================================================== --- trunk/_framework/lib/Smarty.class.php 2006-10-25 05:01:34 UTC (rev 37) +++ trunk/_framework/lib/Smarty.class.php 2006-10-26 18:00:27 UTC (rev 38) @@ -1118,6 +1118,9 @@ */ function fetch($resource_name, $cache_id = null, $compile_id = null, $display = false) { + // Modif par Aragornis pour activer le template du module ou celui du skin (le second par d\xE9faut si les deux existent) + $resource_name = format_source_tpl($resource_name); + static $_cache_info = array(); if($this->_tpl_vars['TITRE']!='' AND $this->_tpl_vars['META']['front_panel']==''){ $this->_tpl_vars['META']['front_panel'] = supprime_accents(substr($this->_tpl_vars['TITRE'],0,9)); Added: trunk/module/_explorateur/explorateur.tpl =================================================================== --- trunk/module/_explorateur/explorateur.tpl (rev 0) +++ trunk/module/_explorateur/explorateur.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1 @@ +{assign var=rep_encoded value=$REP|urlencode} {section name=disques loop=$DISQUES} {if $smarty.section.disques.first} <table cellspacing="2" align="center" width="498" valign="middle"><tr valign="middle"> {/if} {if $DISQUES[disques].path == 'reload'} <td valign="middle"><img src="{$SKIN_REP}dossier/{$DISQUES[disques].gif}.gif" width="16" height="16"><font size='1'><a href="{$PAGE_EXPLO}?directory={$REP|urlencode}&mode={$MODE}&reload=1&start={$MIN}">Rafra\xEEchir</a></font></td> {else} <td valign="middle"><img src="{$SKIN_REP}dossier/{$DISQUES[disques].gif}.gif" width="16" height="16"><font size='1'><a href="{$PAGE_EXPLO}?directory={$DISQUES[disques].path|urlencode}&mode={$MODE}">{$DISQUES[disques].lettre|strtolower}</a></font></td> {/if} {if $smarty.section.disques.last} </tr></table> {/if} {/section} {section name=path loop=$CHEMIN_REP} {if $smarty.section.path.first} <center><font size="1"> {/if} <a href="{$PAGE_EXPLO}?directory={$CHEMIN_REP[path].0}&mode={$MODE}">{$CHEMIN_REP[path].1|strip_delimiters}/</a> {if $smarty.section.path.last} </font></center> {/if} {/section} {if $AFF_CDDA} <a href="playdb.php?type=cdda&disque={$LETTRE_CDDA}">Lire {$LETTRE_CDDA}: en tant que cd</a> {/if} {assign var=NUM_ROW_AFFICH value=15} <table width="498" cellpadding="0" cellspacing="0" align="center" valign="middle"> {if $PLAYREP OR $AFF_FAVORIS} <tr><td colspan="2"><center> {/if} {if $PLAYREP} <img src="{$SKIN_REP}dossier/rep_all.gif" border="0" width="20" height="20"><a href="{$PAGE_LECT_REP}?toplay={$REP|urlencode}&type=playrep"> {$PLAYREP_TEXT|default:"Lire le r\xE9pertoire complet"}</a> {/if} {if $PLAYREP AND $AFF_FAVORIS} - {/if} {if $AFF_FAVORIS} <img src="{$SKIN_REP}dossier/favoris.gif" width="20" height="20"> <a href="{$RACINE_REP}module/favoris/index1.php?ajout={$REP|urlencode}&nom={$REP}">Ajouter aux favoris</a> {/if} {if $PLAYREP OR $AFF_FAVORIS} </center></td></tr> {/if} {if $MIN!=0} {assign var=temp value=$MIN-$NUM_ROW_AFFICH|max:0} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> <a href="{$PAGE_EXPLO}?start={$MIN-$NUM_ROW_AFFICH|max:0}&directory={$REP|urlencode}&mode={$MODE}"><font size=2>Pr\xE9c\xE9dent</font></a> <a href="{$PAGE_EXPLO}?start=0&directory={$REP|urlencode}&mode={$MODE}"><font size=2>D\xE9but du r\xE9pertoire</font></a></td></tr> {attribbouton touche="green" lien="$PAGE_EXPLO?start=$temp&directory=$rep_encoded&mode=$MODE"} {/if} {if $Nb_rep_path >='2' AND $MIN==0} {assign var=temp value=$REP|dirname|realpath|urlencode} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_jaune.gif" border="0"> <a focused href="{$PAGE_EXPLO}?directory={$REP|dirname|realpath|urlencode}&mode={$MODE}">Dossier parent</a></td></tr> {attribbouton touche="yellow" lien="$PAGE_EXPLO?directory=$temp&mode=$MODE"} {elseif $Nb_rep_path >='2'} {assign var=temp value=$REP|dirname|realpath|urlencode} {attribbouton touche="yellow" lien="$PAGE_EXPLO?directory=$temp&mode=$MODE"} {/if} {section name=files loop=$T_affich max=$NUM_ROW_AFFICH start=$MIN} {if $T_affich[files]|in_array:$T_rep} {assign var="rep_a_affich" value=$REP|cat:'/'|cat:$T_affich[files]} <tr><td colspan="2"><img src="{$SKIN_REP}dossier/folder.gif"> <font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_EXPLO}?directory={$rep_a_affich|realpath|urlencode}&mode={$MODE}">{$T_affich[files]|truncate:55|strip_delimiters}</a></font></td></tr> {else} <tr><td><img src="{$SKIN_REP}dossier/{$ICONE_FICHIER}" width="16" height="16"> <font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_LECT}?{$OPT_LIENS}toplay_file={$T_affich[files]|urlencode}&toplay_rep={$REP|urlencode}">{$T_affich[files]|strip_delimiters|truncate:52}</a> </font></td><td width="35"> {if $AFF_INFO} {assign var="nb" value=$T_affich[files]|strrpos:"."} <a href="fichefilm.php?start={$MIN}&comeback=expl&film={$T_affich[files]|substr:0:$nb|urlencode}&fichier={$REP|cat:'/'|cat:$T_affich[files]|realpath|urlencode}"><font size="1">info</font></a> {/if} </td></tr> {/if} {/section} {assign var=N_affich value=$T_affich|@count} {assign var=N_affich_reste value=$NUM_ROW_AFFICH|max:15} {if $MIN+$smarty.section.files.total<count($T_affich)} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> <a href="{$PAGE_EXPLO}?start={$MIN+$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}"><font size=2>Suivant</font></a> - <font size=2><a href="{$PAGE_EXPLO}?start={$N_affich-$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}">Fin du r\xE9pertoire</a> - Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td></tr> {assign var=temp value=$MIN+$smarty.section.files.total} {attribbouton touche="blue" lien="$PAGE_EXPLO?start=$temp&directory=$rep_encoded&mode=$MODE"} {else} <tr><td colspan="2"><font size=2>Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td></tr> {/if} </table> {$FOOTER} \ No newline at end of file Added: trunk/module/cac40/cac40.tpl =================================================================== --- trunk/module/cac40/cac40.tpl (rev 0) +++ trunk/module/cac40/cac40.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,7 @@ +<center><img src="{$IMG2FBX}{"http://boursier.fininfo.fr/enhydra/cmbj/servlet/BoursierIntradayServlet?present=boursierivaleur&id1=FR0003500008&dim=470,300&typ1=area"|urlencode}" width="470" height="300"><br> +A {$heure}, la bourse de Paris est \xE0 {$cours} Pts, en {$variation} de {$pourcentage}<br> +<table width="450" cellpadding="2" cellspacing="0"><tr> +<td width=25%>Clot. pr\xE9c. :</td><td width=25%>{$cloture_precedente} Pts</td><td width=25%>Ouverture :</td><td width=25%>{$ouverture} Pts</td></tr><tr> +<td colspan="2">Variation journali\xE8re :</td><td colspan="2">{$var_jour} Pts</td></tr><tr> +<td colspan="2">Variation annuelle :</td><td colspan="2">{$var_annee} Pts</td> +</tr></table></center> Added: trunk/module/diaporama/explorateur_photo.tpl =================================================================== --- trunk/module/diaporama/explorateur_photo.tpl (rev 0) +++ trunk/module/diaporama/explorateur_photo.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,77 @@ +{assign var=NUM_ROW_AFFICH value=15} +{assign var=rep_encoded value=$REP|urlencode} + +<center> +{assign var=prev_dir value=$REP|dirname|realpath|urlencode} +{if $Nb_rep_path >='2'} +<img src="{$INTERFACE_REP}btn_jaune.gif" border="0"> <a focused href="index1.php?rep={$prev_dir}">Dossier parent</a> - +{attribbouton touche="yellow" lien="index1.php?rep=$prev_dir"} +{elseif $Nb_rep_path =='1'} +<img src="{$INTERFACE_REP}btn_jaune.gif" border="0"> <a focused href="index1.php?dos=disks">Dossier parent</a> - +{attribbouton touche="yellow" lien="index1.php?dos=disks"} +{/if} + +{section name=path loop=$CHEMIN_REP start=count($CHEMIN_REP)-2} + {if $smarty.section.path.first} + <font size="1"> + {/if} + <a href="{$PAGE_EXPLO}?directory={$CHEMIN_REP[path].0}&mode={$MODE}">{$CHEMIN_REP[path].1|strip_delimiters}/</a> + {if $smarty.section.path.last} + </font> + {/if} +{/section} +</center> + + {section name=files loop=$files max=$NUM_ROW_AFFICH start=$MIN} + {cycle name=place assign=place print=false values="4,3,2,1,0"} + {if $smarty.section.files.first} + <table border="0" cellpadding="0" cellspacing="0" width="500" height="436" align="center"><tr> + {if $MIN!=0} + {assign var=temp value=$MIN-$NUM_ROW_AFFICH} + {attribbouton touche="green" lien="index1.php?start=$temp&rep=$rep_encoded"} + <td colspan="5" align=center><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> <a href="index1.php?start={$temp}&rep={$rep_encoded}">Pr\xE9c\xE9dent</a> <a href="index1.php?start=0&rep={$rep_encoded}">D\xE9but</a></td></tr><tr> + {/if} + {/if} + + {if $files[files]|in_array:$T_repertoire} + {if $DOS} + <td width="100" height="130"><a href="index1.php?rep={$files[files].path|urlencode}"><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align="center"><img border=0 width="64" height="64" src="lecteur.gif"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><font size="1">{$files[files].nom} ({$files[files].lettre|strtolower}:)</font></td></tr></table></a></td> + {else} + <td width="100" height="130"><a href="index1.php?rep={$REP|cat:'/'|cat:$files[files]|urlencode}"><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align="center"><img border=0 width="64" height="64" src="big_dossier.gif"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><font size="1">{$files[files]|truncate:26:"":true|wordwrap:15:"<br>":true|strip_delimiters}</font></td></tr></table></a></td> + {/if} + {else} + {assign var="dim" value=$REP|cat:'/'|cat:$files[files]|getimagesize} + {assign var="newdim" value=$dim.0|get_size:$dim.1} + + <td width="100" height="130" valign="middle" align="center"><a href="index1.php?image={$smarty.section.files.index}&rep={$rep_encoded}&start={$MIN}"><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align="center" background="fond_cell.gif"><img width="{$newdim.0}" height="{$newdim.1}" border="0" src="{$RACINE_REP}_framework/lib/img_cr.php?local=1&formatw=88&formath=68&img={$REP|cat:'/'|cat:$files[files]|urlencode}"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><font size="1">{$files[files]|truncate:26:"":true|wordwrap:15:"<br>":true|strip_delimiters}</font></td></tr></table></a></td> + {/if} + + + {if $smarty.section.files.iteration is div by 5 AND NOT $smarty.section.files.last} + </tr><tr> + {/if} + + {if $smarty.section.files.last} + {if $place >= 4} + <td> </td> + {/if} + {if $place >= 3} + <td> </td> + {/if} + {if $place >= 2} + <td> </td> + {/if} + {if $place >= 1} + <td> </td> + {/if} + </tr> + {if $MIN+$NUM_ROW_AFFICH < $rows} + {assign var=temp value=$MIN+$NUM_ROW_AFFICH} + {attribbouton touche="blue" lien="index1.php?start=$temp&rep=$rep_encoded"} + <tr><td colspan="5" align=center height=25 valign=bottom><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> <a href="index1.php?start={$temp}&rep={$rep_encoded}">Suivant</a> <a href="index1.php?start={$rows-$NUM_ROW_AFFICH}&rep={$rep_encoded}">Fin</a></td></tr> + {/if} + + </table> + {/if} + + {/section} Added: trunk/module/diaporama/photo.tpl =================================================================== --- trunk/module/diaporama/photo.tpl (rev 0) +++ trunk/module/diaporama/photo.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,37 @@ +{setbackground path="interface/noir.jpg"} +{assign var=rep_encoded value=$REP|urlencode} +{assign var=next value=$aff+1} +{assign var=prec value=$aff-1} +{attribbouton touche="red" lien="index1.php?start=$MIN&rep=$rep_encoded&tosee=$aff&force_back=1"} +{if $aff >=1}{attribbouton touche="green" lien="index1.php?image=$prec&start=$MIN&rep=$rep_encoded&delais=$delais&tourne=$tourne"}{/if} +{if $aff+1 < count($files)}{attribbouton touche="blue" lien="index1.php?image=$next&start=$MIN&rep=$rep_encoded&delais=$delais&tourne=$tourne"}{/if} +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<html> +<head> +{include file="bouton.tpl"} +</head> +<body background="ts://127.0.0.1" text="{#COULEUR_TEXT#}" link="{#COULEUR_LINK#}" alink="{#COULEUR_ALINK#}" vlink="{#COULEUR_VLINK#}"> +<center> +<table width="635" height="510" border="0" cellpadding="0" cellspacing="0"><tr><td align="center" valign="top"> + <table border="0" cellpadding="0" cellspacing="0" width="580" height="500"> + <tr bgcolor="#0000003f"><td align="center" valign="middle" width="580" height="462"><img border=0 src="{$RACINE_REP}_framework/lib/img_cr.php?local=1&quality=max&formatw=570&formath=460&tourne={$tourne}&img={$REP|cat:'/'|cat:$files.$aff|urlencode}"></td></tr> + <tr bgcolor="#00000000"><td width="580" height="3"><img src="transparent.gif" width="1" height="1"></td></tr> + <tr><td width="580" height="35" bgcolor="#A3B7CD3f"> + <table border="0" cellpadding="0" cellspacing="0" width="580" bgcolor="#A3B7CD3f"><tr> + <td width="80" align="center">{if $aff >=1}<img src="{$INTERFACE_REP}btn_vert.gif" border="0"> <a href="index1.php?image={$prec}&start={$MIN}&rep={$rep_encoded}&delais={$delais}&tourne={$tourne}"><font size="1">Prec.</font></a>{else} {/if}</td> + <td width="200" align="center"><font size="1">{if $delais==0}<form name="form1" method="get" action="index1.php">Diaporama : <input name="delais" bgcolor="{#COULEUR_TEXTBOX#}" type=text value="" size=2 maxlength=2> sec<input name=image type=hidden value="{if $aff+1 == count($files)}0{else}{$aff}{/if}"><input name=rep type=hidden value="{$REP}"><input name=tourne type=hidden value="{$tourne}"><input name=start type=hidden value="{$MIN}"></form>{else}<a href="index1.php?rep={$REP|urlencode}&start={$MIN}&image={$aff}">Arr\xE9ter le diaporama</a> ({$delais}sec){/if}</font></td> + <td width="135" align="center"><a href="index1.php?start={$MIN}&rep={$REP|urlencode}&tosee={$aff}&force_back=1"><img src="{$INTERFACE_REP}btn_rouge.gif" border="0"><font size="1"> Expl.</font></a></td> + <td width="40" align="center"><font size="1">{$aff+1}/{$files|@count}</font></td> + <td width="20" align="center"><a href="index1.php?image={$aff}&start={$MIN}&rep={$REP|urlencode}&delais={$delais}&tourne={$tourne-90}"><table border="0" cellpadding="0" cellspacing="0" width="16" height="16" bgcolor="#A3B7CD3f" abgcolor="#4491CA3f"><tr height="16"><td width="16" height="16"><img src="gauche.gif" border="0" width="16" height="16"></td></tr></table></a></td> + <td width="5" align="center"> </td> + <td width="20" align="center"><a href="index1.php?image={$aff}&start={$MIN}&rep={$REP|urlencode}&delais={$delais}&tourne={$tourne+90}"><table border="0" cellpadding="0" cellspacing="0" width="16" height="16" bgcolor="#A3B7CD3f" abgcolor="#4491CA3f"><tr height="16"><td width="16" height="16"><img src="droite.gif" border="0" width="16" height="16"></td></tr></table></a></td> + <td width="80" align="center">{if $aff+1 < count($files)}<img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> <a focused href="index1.php?image={$next}&start={$MIN}&rep={$rep_encoded}&delais={$delais}&tourne={$tourne}"><font size="1">Suiv.</font></a>{else} {/if}</td> + </tr></table> + </td></tr> + </table> +</td></tr></table> +</center> +<script language="javascript" src="/fb2ie.js"> +</script> +</body> +</html> Added: trunk/module/dvd/menu_dvd.tpl =================================================================== --- trunk/module/dvd/menu_dvd.tpl (rev 0) +++ trunk/module/dvd/menu_dvd.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,20 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<html> +<head> +{include file="bouton.tpl"} +{setbackground path="none"} +</head> +<body background="ts://127.0.0.1" text="{#COULEUR_TEXT#}" link="{#COULEUR_LINK#}" alink="{#COULEUR_ALINK#}" vlink="{#COULEUR_VLINK#}"> +<center> +<table border="0" cellpadding="0" cellspacing="0" valign=top><tr> +<td bgcolor="{#COULEUR_FOND2#}" align=center valign=top> +<font size="4"><u>{$titre}</u></font><br> <br> + <table border="0" align="center" cellpadding="0" cellspacing="0"><tr><td align="center"><br> + {$affich} + </td></tr></table> +</td></tr></table> +</center> +<script language="javascript" src="/fb2ie.js"> +</script> +</body> +</html> Added: trunk/module/ephemeride/ephemeride.tpl =================================================================== --- trunk/module/ephemeride/ephemeride.tpl (rev 0) +++ trunk/module/ephemeride/ephemeride.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,12 @@ +<center>{$smarty.now|date_format:"%W"}e semaine +<br><font size="5">{$smarty.now|date_format:"%B"}</font> +<br><font size="10"><b>{$smarty.now|date_format:"%d"}</b></font> +<br><font size="5">{$smarty.now|date_format:"%A"}</font> +<br> +<br> +<u>Proverbe du jour</u> :<br>{$proverbe}<br> <br> +<u>Citation du jour</u> :<br>{$citation} (<b>{$auteur}</b>)<br> <br> +<u>Dicton du jour</u> :<br>{$dicton}<br> <br> +<u>Aujourd'hui, on f\xEAte</u> les {$fetes} + +<br> <br><img src="{$INTERFACE_REP}anniv.gif" width="60" height="60"><a href="anivdujour.php">Les anniversaires du jour</a><br></center> Added: trunk/module/favoris/favoris.tpl =================================================================== --- trunk/module/favoris/favoris.tpl (rev 0) +++ trunk/module/favoris/favoris.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,22 @@ +<a href="index1.php?action=explorateur">Ajouter un favori \xE0 la liste</a><br> <br> + +{section name=table loop=$CONTENT_TABLE} + {if $smarty.section.table.first} + <table width="450" border="0" cellpadding="0" cellspacing="0"> + {/if} + {if strlen($CONTENT_TABLE[table].1) <= 6} + {assign var="nb" value=strlen($CONTENT_TABLE[table].1)} + {else} + {assign var="nb" value=$CONTENT_TABLE[table].1|strrpos:"/"} + {assign var="nb" value=$nb+1} + {/if} + {cycle name=color assign=COLOR print=false values="`$smarty.config.COULEUR_INTERFACE1`,`$smarty.config.COULEUR_INTERFACE2`"} + + <tr><td width=434 bgcolor="{$COLOR}"><a href="{$RACINE_REP}module/films/index1.php?directory={$CONTENT_TABLE[table].1|urlencode}">{$CONTENT_TABLE[table].1|substr:$nb}</a></td><td width="20" bgcolor="{$COLOR}"><a href="index1.php?action=suppr&enlev={$CONTENT_TABLE[table].0}"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{$COLOR}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}delete.gif" border="0" width="20" height="20"></td></tr></table></a></td></tr> + + {if $smarty.section.table.last} + </table> + {/if} +{sectionelse} +Aucun favoris enregistr\xE9... Pour enregistrer un signet, cliquez sur "Ajouter aux favoris" dans l'explorateur de films ou cliquez sur "Ajouter un favori \xE0 la liste" au dessus. +{/section} Added: trunk/module/films/catalogue_video.tpl =================================================================== --- trunk/module/films/catalogue_video.tpl (rev 0) +++ trunk/module/films/catalogue_video.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,143 @@ +{if $tri=="name" OR $tri=="date" OR $tri=="perso"} + {assign var=NUM_ROW_AFFICH value=15} + + {section name=files loop=$result max=$NUM_ROW_AFFICH start=$MIN} + {cycle name=place assign=place print=false values="4,3,2,1,0"} + {if $smarty.section.files.first} + <table border="0" cellpadding="0" cellspacing="0" width="500" height="436" align="center"><tr> + {if $MIN!=0} + {assign var=temp value=$MIN-$NUM_ROW_AFFICH} + {attribbouton touche="green" lien="catalogue.php?start=$temp&tri=$tri&sens=$sens"} + <td colspan="5" align=center><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> <a href="catalogue.php?start={$temp}&tri={$tri}&sens={$sens}">Pr\xE9c\xE9dent</a> <a href="catalogue.php?start=0&tri={$tri}&sens={$sens}">D\xE9but</a></td></tr><tr> + {/if} + {/if} + + {if $tri=="name" OR $tri=="date"} + <td width="100" height="130"><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}"><tr height="80"><td width="100" height="80" valign="middle" align=center><img width="60" height="80" border="0" src="{$IMG2FBX}{$result[files].img|urlencode}&new_width=60&new_height=80&cache=1"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><a href="play.php?toplay={$result[files].dir|realpath|urlencode}"><font size="1">{$result[files].name|truncate:12:'..':true}</font></a><br><font size="1">{if $result[files].sortie != 2}({$result[files].sortie|default:200|date_format:"%Y"}) - {/if}<a href="fichefilm.php?film={$result[files].name|urlencode}&fichier={$result[files].dir|realpath|urlencode}&start={$MIN}">Infos</a></font></td></tr></table></td> + {elseif $tri=="perso"} + <td width="100" height="130"><a href="catalogue.php?tri=perso&start={$MIN}&sens={$sens}&suiv={$result[files].nom|urlencode}"><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align=center><img width="60" height="80" border="0" src="{$IMG2FBX}{$result[files].img|urlencode}&new_width=60&new_height=80&cache=1"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><font size="1">{$result[files].nom|wordwrap:18:"<br>":true}</font></td></tr></table></a></td> + {/if} + + {if $smarty.section.files.iteration is div by 5 AND NOT $smarty.section.files.last} + </tr><tr> + {/if} + + {if $smarty.section.files.last} + {if $place >= 4} + <td> </td> + {/if} + {if $place >= 3} + <td> </td> + {/if} + {if $place >= 2} + <td> </td> + {/if} + {if $place >= 1} + <td> </td> + {/if} + </tr> + {if $MIN+$NUM_ROW_AFFICH < $rows} + {assign var=temp value=$MIN+$NUM_ROW_AFFICH} + {attribbouton touche="blue" lien="catalogue.php?start=$temp&tri=$tri&sens=$sens"} + <tr><td colspan="5" align=center height=25 valign=bottom><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> <a href="catalogue.php?start={$temp}&tri={$tri}&sens={$sens}">Suivant</a> <a href="catalogue.php?start={$rows-$NUM_ROW_AFFICH}&tri={$tri}&sens={$sens}">Fin</a></td></tr> + {/if} + + </table> + {/if} + + {/section} +{elseif $tri=="perso_suiv"} +<table border="0" cellpadding="0" cellspacing="0" align="center"> + <tr><td width="120" height="160"><img src="{$IMG2FBX}{$info.img|urlencode}&cache=1"></td> + <td width="369"> + <font size="4"><u>{$info.nom}</u></font>, {$info.statut} + {if $info.date_naissance!='2'}, <u>N\xE9 le</u> : {$info.date_naissance|date_format:"%e %B %Y"} \xE0 {$info.lieu_naissance}{/if} + <br><u>Biographie</u><br> + {$info.bio|strip_tags|wordwrap:100|htmlentities|truncate:500|default:"Aucune information disponible"} + </td></tr><tr><td colspan="2"> + <br><u>A particip\xE9 \xE0</u> :<br> <br> + + {section name=films_with loop=$result max=5} + {cycle name=place assign=place print=false values="4,3,2,1,0"} + {if $smarty.section.films_with.first} + <table border="0" cellpadding="0" cellspacing="0" width="500" align="center"><tr> + {/if} + + <td width="100" height="130"><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}"><tr height="80"><td width="100" height="80" valign="middle" align=center><img width="60" height="80" border="0" src="{$IMG2FBX}{$result[films_with].img|urlencode}&new_width=60&new_height=80&cache=1"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><a href="play.php?toplay={$result[films_with].dir|realpath|urlencode}"><font size="1">{$result[films_with].name|truncate:12:'..':true}</font></a><br><font size="1">{if $result[films_with].sortie != 2}({$result[films_with].sortie|default:200|date_format:"%Y"}) - {/if}<a href="fichefilm.php?film={$result[films_with].name|urlencode}&fichier={$result[films_with].dir|realpath|urlencode}&start={$MIN}">Infos</a></font></td></tr></table></td> + + {if $smarty.section.films_with.last} + + {if $place >= 4} + <td> </td> + {/if} + {if $place >= 3} + <td> </td> + {/if} + {if $place >= 2} + <td> </td> + {/if} + {if $place >= 1} + <td> </td> + {/if} + </tr> + </table> + {/if} + {/section} +</td></tr></table> +{elseif $tri=="film" OR $tri=="genre"} + <br> + <table border="0" cellpadding="0" cellspacing="0" width="499" align="left"><tr><td width="465"> + + {assign var=NUM_ROW_AFFICH value=20} + {section name=files loop=$rea max=$NUM_ROW_AFFICH start=$MIN} + + <img border="0" src="{$INTERFACE_REP}puce.gif"> <a href="catalogue.php?tri={$tri}&suiv={$rea[files]|urlencode}">{$rea[files]|ucfirst}</a><br> + + {/section} + + </td></tr></table> +{elseif $tri=="film_suiv" OR $tri=="genre_suiv"} + {assign var=NUM_ROW_AFFICH value=15} + {attribbouton touche="red" lien="catalogue.php?tri=$tri"} + {section name=files loop=$result max=$NUM_ROW_AFFICH start=$MIN} + {cycle name=place assign=place print=false values="4,3,2,1,0"} + {if $smarty.section.files.first} + <table border="0" cellpadding="0" cellspacing="0" width="500" height="436" align="center"><tr> + {if $MIN!=0} + {assign var=temp value=$MIN-$NUM_ROW_AFFICH} + {attribbouton touche="green" lien="catalogue.php?start=$temp&tri=$tri&sens=$sens&suiv=$suiv"} + <td colspan="5" align=center><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> <a href="catalogue.php?start={$temp}&tri={$tri}&sens={$sens}&suiv={$suiv}">Pr\xE9c\xE9dent</a> <a href="catalogue.php?start=0&tri={$tri}&sens={$sens}&suiv={$suiv}">D\xE9but</a></td></tr><tr> + {/if} + {/if} + + <td width="100" height="130"><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}"><tr height="80"><td width="100" height="80" valign="middle" align=center><img width="60" height="80" border="0" src="{$IMG2FBX}{$result[files].img|urlencode}&new_width=60&new_height=80&cache=1"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><a href="play.php?toplay={$result[files].dir|realpath|urlencode}"><font size="1">{$result[files].name|truncate:12:'..':true}</font></a><br><font size="1">{if $result[files].sortie != 2}({$result[files].sortie|default:200|date_format:"%Y"}) - {/if}<a href="fichefilm.php?film={$result[files].name|urlencode}&fichier={$result[files].dir|realpath|urlencode}&start={$MIN}">Infos</a></font></td></tr></table></td> + + {if $smarty.section.files.iteration is div by 5 AND NOT $smarty.section.files.last} + </tr><tr> + {/if} + + {if $smarty.section.files.last} + {if $place >= 4} + <td> </td> + {/if} + {if $place >= 3} + <td> </td> + {/if} + {if $place >= 2} + <td> </td> + {/if} + {if $place >= 1} + <td> </td> + {/if} + </tr> + {if $MIN+$NUM_ROW_AFFICH < $rows} + {assign var=temp value=$MIN+$NUM_ROW_AFFICH} + {attribbouton touche="blue" lien="catalogue.php?start=$temp&tri=$tri&sens=$sens&suiv=$suiv"} + <tr><td colspan="5" align=center height=25 valign=bottom><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> <a href="catalogue.php?start={$temp}&tri={$tri}&sens={$sens}&suiv={$suiv}">Suivant</a> <a href="catalogue.php?start={$rows-$NUM_ROW_AFFICH}&tri={$tri}&sens={$sens}&suiv={$suiv}">Fin</a></td></tr> + {/if} + + </table> + {/if} + + {/section} +{/if} Added: trunk/module/films/fichefilm.tpl =================================================================== --- trunk/module/films/fichefilm.tpl (rev 0) +++ trunk/module/films/fichefilm.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,36 @@ +{if isset($info) AND $info != 'Aucun film trouv\xE9'} +<table cellspacing=0 align="center"> + <tr><td width="120" height="160"><img src="{$IMG2FBX}{$info.image|urlencode}&cache=1"></td> + <td width="369"> + <font size="4"><u>{$info.nom}</u></font>{if file_exists($fichier)!=''} - <a href="play.php?toplay={$fichier|urlencode}">Lire le film avec Easybox</a>{/if} + <br><u>Date de sortie</u> : {$info.date_sortie|date_format:"%d/%m/%Y"} + <br><u>R\xE9alis\xE9 par</u> {$info.realisateur} + <br><u>Avec</u> {$info.acteurs} + <br><u>Film</u> {$info.nationalite} de {$info.anne_prod} + <br><u>Dur\xE9e</u> : {$info.duree} <u>Genre</u> : {$info.genre} + <br><u>Notes</u> : Presse <img src="{$INTERFACE_REP}star{$info.critique_presse}.gif"> Spectateurs <img src="{$INTERFACE_REP}star{$info.critique_visiteurs}.gif"> + </td><tr><td colspan="2"> + <u>Synopsis</u><br> + {$info.synopsis|strip_tags|wordwrap:60|htmlentities|truncate:650:$more} + <br> + {section name=ba loop=$ba} + <a href="playba.php?toplay={$ba[ba].2}&titre={$info.nom|urlencode}"><img src="{$INTERFACE_REP}{$ba[ba].1}.gif" border=0 width=20 height=20> {$ba[ba].0}</a> + {if !$smarty.section.ba.last} - {/if} + {/section} + + {if $_GET.togo=='cine'} + <br><a href="/module/seances/voirsalle.php?salle={$_GET.salle}">Retour \xE0 la liste des films du cin\xE9ma</a> + {/if} +</td></tr></table> +{elseif $disable} +<center><font size="4">Aucune information disponible pour <br><u>{$fichier}</u></font><br></font> +{else} +<center><font size="4">Aucune information disponible pour <br><u>{$fichier}</u></font><br> <br><a href="play.php?toplay={$fichier|urlencode}">Lire le film avec Easybox</a><br> <br> + {if $_GET.togo=='cine'} + <br><a href="/module/seances/voirsalle.php?salle={$_GET.salle}">Retour \xE0 la liste des films du cin\xE9ma</a><br> <br> + {attribbouton touche="red" lien="/module/seances/voirsalle.php?salle=$_GET.salle"} + {/if} + +<a href="{$LINK.red}">Retour</a> +</center> +{/if} Added: trunk/module/films/films.tpl =================================================================== --- trunk/module/films/films.tpl (rev 0) +++ trunk/module/films/films.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,75 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<html> +<head> +{include file="bouton.tpl"} +{setbackground path="none"} +</head> +<body background="ts://127.0.0.1" text="{#COULEUR_DVD_TEXT#}" link="{#COULEUR_DVD_LINK#}" alink="{#COULEUR_DVD_ALINK#}" vlink="{#COULEUR_DVD_VLINK#}"> +<center> +<table width="645" height="510" border="0" cellpadding="0" cellspacing="0"><tr> +<td height="400" align="center" valign="top"> +</td> +</tr> +<tr> +<td height="110" align="center"><center> +<table width="571" height="106" border="0" cellpadding="0" cellspacing="0" background="{$SKIN_REP}interface/player.gif"><tr> +<td height="23"> </td> +</tr> +<tr> +<td height="15"> +<table width="571" height="15" border="0" cellpadding="0" cellspacing="0"><tr> +<td width="15"></td> + +{assign var=stream_1 value="`$VLC.pourcentage_courant/100*529`"|round} +{assign var=stream_2 value="`$stream_1*-1`"} + +<td width="{$stream_1}" background="{$SKIN_REP}interface/barre1.gif"></td> +<td width="14" height="15"><img src="{$SKIN_REP}interface/barre2.gif" width="14" height="15"></td> +<td width="{$stream_2+529}" background="{$SKIN_REP}interface/barre3.gif"></td> +<td width="13"></td> +</tr></table> +</td> +</tr> +<tr> +<td height="5"> </td> +</tr> +<tr> +<td height="21"><table width="571" border="0" cellspacing="0" cellpadding="0"><tr> +<td width="27"> </td> +<td width="25"><a {if $VLC.etat=='playing' OR $VLC.etat =='paused'}focused {/if}href="info.php?control=pause"><font size=3 family="Symbol">{if $VLC.etat =='paused'}T{else}Y{/if}</font></a></td> +<td width="21"> </td> +<td width="17"><a {if $VLC.etat =='stop'}focused {/if}href="lecture.php?control=stop"><font size=3 family="Symbol">Z</font></a></td> +<td width="7"> </td> +<td width="19"><a href="lecture.php?seek_value=moins"><font size=3 family="Symbol">@@</font></a></td> +<td width="19"><a href="lecture.php?seek_value=plus"><font size=3 family="Symbol">AA</font></a></td> +<td width="6"> </td> +<td width="18"><a href="{$MODULE}_menu/menu.php"><font size=3 family="Symbol">[</font></a></td> +<td width="21"><a href="{$MODULE}films/lecture.php?savesignet=1"><font size=3 family="Symbol">§</font></a></td> +<td width="9"> </td> +<td width="382">{$nomcourant|default:$VLC.url_current|truncate:40:''}</td> +</tr></table></td> +</tr> +<tr> +<td><table width="571" height="35" cellspacing="2"><tr> +<td width="35"> </td> +<td> +<form name="form1" method="get" action="info.php"> +<font size="1" color="#ffffff3f">Aller \xE0 : </font> +<input name=heures bgcolor="{#COULEUR_TEXTBOX#}" type=text value="" size=1 maxlength=1> h +<input name=minutes bgcolor="{#COULEUR_TEXTBOX#}" type=text value="" size=2 maxlength=2> min +<input name=secondes bgcolor="{#COULEUR_TEXTBOX#}" type=text value="" size=2 maxlength=2> sec +</form> +</td> +<td><font size="1" color="#ffffff3f">{$temps_affich}</font> +</td> +</tr></table></td> +</tr> +</table> +</center></td> +</tr> +</table> +</center> +<script language="javascript" src="/fb2ie.js"> +</script> +</body> +</html> Added: trunk/module/films/signet_ask.tpl =================================================================== --- trunk/module/films/signet_ask.tpl (rev 0) +++ trunk/module/films/signet_ask.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,5 @@ +<center>Le film n'est pas fini ! <br> +Voulez-vous placer un signet pour y revenir rapidement plus tard ?<br> +<br> +<a href="lecture.php?control=stop&signet=load"><box border=2 width=35 height=18 align=center text="Oui"></a> <a href="lecture.php?control=stop&signet=noload"><box border=2 width=35 height=18 align=center text="Non"></a> +</center> \ No newline at end of file Added: trunk/module/films/signet_film.tpl =================================================================== --- trunk/module/films/signet_film.tpl (rev 0) +++ trunk/module/films/signet_film.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,14 @@ +{section name=table loop=$CONTENT_TABLE} + {if $smarty.section.table.first} + Vous aviez enregistr\xE9 un signet pour ce film. A quel endroit du film voulez-vous aller ?<br \> <br \> <br \> + <table cellpadding=0 cellspacing=0><tr><td> + <tr><td width=434 bgcolor="#82B1EC6f"><a href="lecture.php">D\xE9but</a></td><td width="20" bgcolor="#82B1EC6f"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="#82B1EC6f"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"> </td></tr></table></td></tr> + {/if} + + {cycle name=color assign=COLOR print=false values="#3482E03f,#82B1EC3f"} + <tr><td width=434 bgcolor="{$COLOR}"><a href="lecture.php?control=seek&seek_value={$CONTENT_TABLE[table].duree}">{$CONTENT_TABLE[table].duree}</a></td><td width="20" bgcolor="{$COLOR}"><a href="{$MODULE}signet/supsignet.php?toplay={$CONTENT_TABLE[table].id}&temps={$CONTENT_TABLE[table].duree}&return=film"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{$COLOR}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}delete.gif" border="0" width="20" height="20"></td></tr></table></a></td></tr> + + {if $smarty.section.table.last} + </table></td></tr></table> + {/if} +{/section} Added: trunk/module/guidetv/guidetv.tpl =================================================================== --- trunk/module/guidetv/guidetv.tpl (rev 0) +++ trunk/module/guidetv/guidetv.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,70 @@ +{if isset($EMISSION)} +<table border="0" cellpadding="2" cellspacing="0"> + <tr><td colspan="2">De {$EMISSION.debut|date_format:"%H:%M"} \xE0 {$EMISSION.fin|date_format:"%H:%M"}, le {$cboDate|date_format:"%A %e %B %Y"} sur {$cboCateg}</td></tr> + <tr><td>{if $EMISSION.icone}<img src="{$IMG2FBX}{$EMISSION.icone|urlencode}&cache=1">{else} {/if}</td> + <td width="369"> + <font size="4">{$EMISSION.titre}</font>{if $EMISSION.note!=''} <img src="{$INTERFACE_REP}star{$EMISSION.note}.gif">{/if}<br> + {if $info_chaine.id!='inc'} + {assign var=tempo value=$info_chaine.id|cat:"|"|cat:$info_chaine.nom|cat:"|"|cat:$info_chaine.num} + {assign var=tempo value=$tempo|urlencode} + {assign var=tempi value=$EMISSION.debut-600} + {assign var=temps value=$EMISSION.fin+600} + {attribbouton touche="rec" lien=$MODULE|cat:"multiposte/add.php?etape=4&chaine=$tempo&debtime=$tempi&endtime=$temps"} + <a href="{$MODULE}multiposte/add.php?etape=4&chaine={$info_chaine.id|cat:"|"|cat:$info_chaine.nom|cat:"|"|cat:$info_chaine.num|urlencode}&debtime={$EMISSION.debut-600}&endtime={$EMISSION.fin+600}">Enregistrer avec Easybox</a><br> + {/if} + {if $EMISSION.soustitre}(<font size="1">{$EMISSION.soustitre}</font>)<br>{/if} + <i>{$EMISSION.categorie|ucfirst} + {if $EMISSION.realisateur} - R\xE9alis\xE9 par {$EMISSION.realisateur}{/if} + {if $EMISSION.presentateur} - Pr\xE9sent\xE9 par {$EMISSION.presentateur}{/if} + {if $EMISSION.acteur} - Avec {$EMISSION.acteur}{/if} + </i><br> + {if $EMISSION.duree}<i>Dur\xE9e : {$EMISSION.duree}min</i>{/if} + </td><tr><td colspan="2"> +{$EMISSION.description} +</td></tr></table> +{elseif isset($EMISSIONS)} +<table><tr><td align=left> + {if $MIN!=0} + {assign var=temp value=$MIN-16} + {attribbouton touche="green" lien="tvprogram.php?cboDate=$cboDate&cboCateg=$cboCateg&min=$temp"} + <a href="tvprogram.php?cboDate={$cboDate}&cboCateg={$cboCateg}&min={$temp}"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> Pr\xE9c\xE9dent</a><br> + {/if} + + {section name=emiss loop=$EMISSIONS max=16 start=$MIN} + <a href="tvprogram.php?cboDate={$cboDate}&cboCateg={$cboCateg}&min={$MIN}&indic_name={$EMISSIONS[emiss].specialid}">{$EMISSIONS[emiss].debut|date_format:"%H:%M"} - {$EMISSIONS[emiss].titre}</a><br> + {/section} + + {if $MIN+$smarty.section.emiss.total < count($EMISSIONS)} + {assign var=temp value=$MIN+16} + {attribbouton touche="blue" lien="tvprogram.php?cboDate=$cboDate&cboCateg=$cboCateg&min=$temp"} + <a href="tvprogram.php?cboDate={$cboDate}&cboCateg={$cboCateg}&min={$temp}"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> Suivant</a> + {/if} + +</td></tr></table> +{else} + {attribbouton touche="red" lien="index1.php"} + {if $MIN!=0} + {assign var=temp value=$MIN-20} + {attribbouton touche="green" lien="tvprogram.php?min=$temp"} + <a href="tvprogram.php?min={$temp}"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> Pr\xE9c\xE9dent</a> + {/if} + + {section name=chaine loop=$CHAINE max=20 start=$MIN} + {if $smarty.section.chaine.first} + <table width="480" height="400" border="0" cellpadding="0" cellspacing="0"><tr> + {/if} + <td width="96" height="80"><a href="tvprogram.php?cboDate={$DATE}&cboCateg={$CHAINE[chaine].nom|urlencode}"><table border="0" cellpadding="0" cellspacing="0" width="96" height="80" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="40"><td align=center width="96" height="40" valign="middle"><img width="36" height="36" border="0" src="{$CHAINE_REP}{$CHAINE[chaine].ico}"></td></tr><tr height="40"><td align=center width="96" height="40"><font size="1">{$CHAINE[chaine].nom}</font></td></tr></table></a></td> + {if $smarty.section.chaine.iteration is div by 5 AND NOT $smarty.section.chaine.last} + </tr><tr> + {/if} + {if $smarty.section.chaine.last} + </table> + {/if} + {/section} + + {if $MIN+$smarty.section.chaine.total < count($CHAINE)} + {assign var=temp value=$MIN+20} + {attribbouton touche="blue" lien="tvprogram.php?min=$temp"} + <a href="tvprogram.php?min={$temp}"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> Suivant</a> + {/if} +{/if} Added: trunk/module/horloge/horloge.tpl =================================================================== --- trunk/module/horloge/horloge.tpl (rev 0) +++ trunk/module/horloge/horloge.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,3 @@ +{assign var=image value=$INTERFACE_REP|realpath} +{assign var=image value="$image/logo.gif"|realpath} +<img src='horloge.php?taille=400&image={$image|urlencode}'> Added: trunk/module/horoscope/horoscope.tpl =================================================================== --- trunk/module/horoscope/horoscope.tpl (rev 0) +++ trunk/module/horoscope/horoscope.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,31 @@ +<font size="3">{$entete}</font><br> +{if $description AND $description != ''} +{$description} +{else} + <br/> + <br/> + <br/> +<center> +<table border="0" cellspacing="0" cellpadding="0" align="center"> +<tr> + <td align="center" width="80"><img src="images/bleu_01.gif"><br><a href="index1.php?sign=1"><font size="1">B\xE9lier</font></a></td> + <td align="center" width="80"><img src="images/bleu_02.gif"><br><a href="index1.php?sign=2"><font size="1">Taureau</font></a></td> + <td align="center" width="80"><img src="images/bleu_03.gif"><br><a href="index1.php?sign=3"><font size="1">G\xE9meaux</font></a></td> + <td align="center" width="80"><img src="images/bleu_04.gif"><br><a href="index1.php?sign=4"><font size="1">Cancer</font></a></td> + <td align="center" width="80"><img src="images/bleu_05.gif"><br><a href="index1.php?sign=5"><font size="1">Lion</font></a></td> + <td align="center" width="80"><img src="images/bleu_06.gif"><br><a href="index1.php?sign=6"><font size="1">Vierge</font></a></td> +</tr> +<tr> + <td height="13" colspan="6"> + </td> +</tr> +<tr> + <td align="center" width="80"><img src="images/bleu_07.gif"><br><a href="index1.php?sign=7"><font size="1">Balance</font></a></td> + <td align="center" width="80"><img src="images/bleu_08.gif"><br><a href="index1.php?sign=8"><font size="1">Scorpion</font></a></td> + <td align="center" width="80"><img src="images/bleu_09.gif"><br><a href="index1.php?sign=9"><font size="1">Sagittaire</font></a></td> + <td align="center" width="80"><img src="images/bleu_10.gif"><br><a href="index1.php?sign=10"><font size="1">Capricorne</font></a></td> + <td align="center" width="80"><img src="images/bleu_11.gif"><br><a href="index1.php?sign=11"><font size="1">Verseau</font></a></td> + <td align="center" width="80"><img src="images/bleu_12.gif"><br><a href="index1.php?sign=12"><font size="1">Poissons</font></a></td> +</tr> +</table> +{/if} \ No newline at end of file Added: trunk/module/infotraffic/info-trafic.tpl =================================================================== --- trunk/module/infotraffic/info-trafic.tpl (rev 0) +++ trunk/module/infotraffic/info-trafic.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,7 @@ +<center><img src="create_image.php?type={$vue}&event={$event|default:1}" width="480" height="360"><br></center> +<br> +{if $event} +<a href="index1.php?vue={$vue}&event=0">D\xE9sactiver les \xE9v\xE8nements</a> +{else} +<a href="index1.php?vue={$vue}&event=1">Activer les \xE9v\xE8nements</a> +{/if} - <a href="legende.php?vue={$vue}&event={$event|default:1}">L\xE9gende</a> Added: trunk/module/jt/emissions.tpl =================================================================== --- trunk/module/jt/emissions.tpl (rev 0) +++ trunk/module/jt/emissions.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,57 @@ +{section name=emission loop=$EMISSION start=$MIN max=5} +{assign var=CHAINEB value=$CHAINE|urlencode} +{if $smarty.section.emission.first AND $MIN!=0} + {assign var=temp value=$MIN-5} + {attribbouton touche="green" lien="chaine.php?chaine=$CHAINEB&min=$temp"} + <a href="chaine.php?chaine={$CHAINEB}&min={$temp}"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> Pr\xE9c\xE9dent</a> +{/if} + +<table border="0" cellpadding="0" cellspacing="0" width="480" align="center"><tr><td width="60" rowspan="2" valign=middle><img src="/module/jt/icone/{$EMISSION[emission].icone}" border="0" width="97" height="73"></td> +<td align=center colspan="2"><b><u>{$EMISSION[emission].nom}</u></b></td></tr> +<tr><td width="215"><table border="0" cellpadding="0" cellspacing="0" width="420"><tr><td width=50% align=center> + + {assign var=jours value=$EMISSION[emission].flux} + {assign var=nb value=$jours|@count} + {assign var=nb value=$nb/2|round} + + {section name=jours loop=$jours} + <img src="{$INTERFACE_REP}puce.gif" width="13" height="13"><a href="{$MODULE}films/play.php?type=jt&toplay={$jours[jours].adresse|urlencode}">{$jours[jours].nom}</a> + {if $smarty.section.jours.iteration is div by $nb}</td><td width=50% align=center>{else}<br>{/if} + {/section} + +</td></tr> +</table> +</td></tr></table> + +{if $smarty.section.emission.last AND $MIN+$smarty.section.emission.total < count($EMISSION)} + {assign var=temp value=$MIN+5} + + {attribbouton touche="blue" lien="chaine.php?chaine=$CHAINEB&min=$temp"} + <a href="chaine.php?chaine={$CHAINEB}&min={$temp}"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> Suivant</a> +{/if} + +{sectionelse} + + {section name=chaine loop=$CHAINE} + {cycle name=place assign=place print=false values="2,1,0"} + {if $smarty.section.chaine.first} + <table width="330" height="420" border="0" cellpadding="0" cellspacing="0"><tr> + {/if} + <td width="110" height="140"><a href="chaine.php?chaine={$CHAINE[chaine].nom|urlencode}"{if $smarty.section.chaine.first} focused{/if}><table border="0" cellpadding="0" cellspacing="0" width="110" height="140" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="110"><td align=center width="110" height="110" valign="middle"><img width="100" height="100" border="0" src="/module/jt/icone/{$CHAINE[chaine].icone}"></td></tr><tr height="30"><td align=center width="110" height="30"><font size="1">{$CHAINE[chaine].nom}</font></td></tr></table></a></td> + {if $smarty.section.chaine.iteration is div by 3 AND NOT $smarty.section.chaine.last} + </tr><tr> + {/if} + {if $smarty.section.chaine.last} + + {if $place >= 2} + <td> </td> + {/if} + {if $place >= 1} + <td> </td> + {/if} + + </table> + {/if} + {/section} + +{/section} Added: trunk/module/livescore/livescore.tpl =================================================================== --- trunk/module/livescore/livescore.tpl (rev 0) +++ trunk/module/livescore/livescore.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,34 @@ +<br> +{if isset($_GET.index)} +<table border="0" cellpadding="0" cellspacing="0" width="499" height="436"> +<tr bgcolor="{#COULEUR_INTERFACE2#}"> +<td align=center width=10%> </td> +<td align=center width=30%>Domicile</td> +<td align=center width=10%>Score</td> +<td align=center width=30%>Ext\xE9rieur</td> +<td align=center width=20%>Surveiller</td> +</tr> + +{foreach from=$journee item=jour name=day key=key} + {cycle name=color assign=COLOR print=false values="`$smarty.config.COULEUR_INTERFACE1`,`$smarty.config.COULEUR_INTERFACE2`"} + <tr bgcolor={$COLOR}><td align=center> + {if $valeur.1.$key=='finish'}<img src="{$INTERFACE_REP}finished.gif" width="14" height="14"> + {elseif $valeur.1.$key=='sup'}<img src="{$INTERFACE_REP}cancelled.gif" width="14" height="14"> + {elseif $valeur.1.$key=='encours'}<img src="{$INTERFACE_REP}encours.gif" width="14" height="14"> + {elseif $valeur.1.$key=='mitemps'}<img src="{$INTERFACE_REP}mitemps.gif" width="14" height="14"> + {else}{$valeur.1.$key}{/if} + </td><td align=center>{$valeur.7.$key|capitalize}</td><td align=center>{$valeur.10.$key}</td><td align=center>{$valeur.13.$key|capitalize}</td><td align=center>{if $valeur.14.$key}<a href="index1.php?sport={$sport}&index={$page|urlencode}&delsurv=1">Supprimer</a>{elseif $valeur.1.$key=='finish' OR $valeur.1.$key=='sup'}...{else}<a href="index1.php?sport={$sport}&index={$page|urlencode}&surv={$valeur.7.$key|cat:$valeur.13.$key|md5}">Surveiller</a>{/if}</td></tr> +{/foreach} + +</table> + +{else} + {foreach from=$championnat item=champ name=championnat} + <img src="{$INTERFACE_REP}puce.gif" width="13" height="13"> <a href="index1.php?index={$champ.index|urlencode}&sport={$sport}">{$champ.nom}</a><br> + {foreachelse} + Aucune comp\xE9tition de {$sport} en cours... + {/foreach} + + <br><img src="{$INTERFACE_REP}{$sport}.gif" width="100" height="100"> + +{/if} Added: trunk/module/loto/loto.tpl =================================================================== --- trunk/module/loto/loto.tpl (rev 0) +++ trunk/module/loto/loto.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,14 @@ +<br><table width="350" border="0" cellspacing="0" cellpadding="0"> + <tr> + <td align="center" valign="middle"><img src="images/loto.gif" width="150" height="49"></td> + <td><strong><a href="loto.php">Loto & Joker </a></strong></td> + </tr> + <tr> + <td align="center" valign="middle"><img src="images/euro_millions.gif" width="150" height="110"></td> + <td><strong><a href="euromillions.php">Euro Millions </a></strong></td> + </tr> + <tr> + <td align="center" valign="middle"><img src="images/keno.gif" width="130" height="47"></td> + <td><strong><a href="keno.php">Keno </a></strong></td> + </tr> + </table> Added: trunk/module/mail/mail_inbox.tpl =================================================================== --- trunk/module/mail/mail_inbox.tpl (rev 0) +++ trunk/module/mail/mail_inbox.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,33 @@ +{section name=mail loop=$MESSAGES max=7 start=$MIN} + +{if $smarty.section.mail.first} + <br><table border="0" cellpadding="3" cellspacing="0" width="500"><tr bgcolor="{#COULEUR_INTERFACE2#}"><td width="50">De</td><td width="250">Sujet</td><td width="200">Date</td><td></td></tr> + + {if $MIN!=0} + {assign var=temp value=$MIN-7} + {attribbouton touche="green" lien="index1.php?start=$temp&compte=$compte"} + <tr><td colspan="3"><a href="index1.php?start={$temp}&compte={$compte}"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> Pr\xE9c\xE9dent</a></td></tr> + {/if} +{/if} + + {cycle name=color assign=COLOR print=false values="`$smarty.config.COULEUR_INTERFACE1`,`$smarty.config.COULEUR_INTERFACE2`"} + +<tr bgcolor="{$COLOR}"><td>{$MESSAGES[mail].expediteur}</td><td><a href="index1.php?idmess={$MESSAGES[mail].id}&compte={$compte}">{$MESSAGES[mail].sujet} +</a></td><td>{$MESSAGES[mail].date|date_format:"%A %e %B %Y %H:%M"}</td><td><a href="index1.php?sup={$MESSAGES[mail].id}&compte={$compte}"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="#0000003f" bgcolor="{$COLOR}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}delete.gif" border="0" width="20" height="20"></td></tr></table></a></td></tr> + +{if $smarty.section.mail.last} + {if $MIN+$smarty.section.mail.total < count($MESSAGES)} + {assign var=temp value=$MIN+7} + {attribbouton touche="blue" lien="index1.php?start=$temp&compte=$compte"} + <tr><td colspan="3"><a href="index1.php?start={$temp}&compte={$compte}"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> Suivant</a></td></tr> + {/if} + + </table> +{/if} +{sectionelse} +<br> <br> +Aucun nouveau mail sur le serveur. +<br> <br><a href="{$MODULE}_menu/menu.php?cat=2&nom=Internet">Retour</a> +{/section} + + Added: trunk/module/mail/mail_message.tpl =================================================================== --- trunk/module/mail/mail_message.tpl (rev 0) +++ trunk/module/mail/mail_message.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,23 @@ +<table border="0" cellpadding="0" cellspacing="0" width="500"><tr><td> +Mail re\xE7u le {$informations.date|date_format:"%A %e %B %Y %H:%M"} <img src="{$INTERFACE_REP}delete.gif" border="0" width="20" height="20"> <a href="index1.php?sup={$idmess}&compte={$compte}">Supprimer se message</a><br> +<u>Exp\xE9diteur</u> : {$informations.expediteur} ({$informations.mailfrom})<br> +<u>Objet</u> : {$informations.sujet|default:"(Pas d'objet)"}<br> + +{section name=pj loop=$pj} + {if $smarty.section.pj.first} + <u>Pieces jointes</u> : + {/if} + {$pj[pj]} + {if $smarty.section.pj.last} + <br> + {else} +; + {/if} +{/section} + + + +<br><u>Contenu du message</u> :<br> +<center>{$MESSAGE|nl2br}</center> +</td></tr></table> +<br> <br><a href="index1.php?compte={$compte}">Retour</a> Added: trunk/module/meteo/meteoft.tpl =================================================================== --- trunk/module/meteo/meteoft.tpl (rev 0) +++ trunk/module/meteo/meteoft.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,3 @@ +{if $jourmeteoft} + <center><img src="imgmeteoft.php?jourmeteoft={$jourmeteoft}"></center> +{/if} Added: trunk/module/modules/modules.tpl =================================================================== --- trunk/module/modules/modules.tpl (rev 0) +++ trunk/module/modules/modules.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,53 @@ +{if $action=="mod" OR $action=="skin"} + {section name=mod loop=$MOD... [truncated message content] |
From: <bed...@us...> - 2006-10-25 05:01:44
|
Revision: 37 http://svn.sourceforge.net/easybox-mod/?rev=37&view=rev Author: bedelaitre Date: 2006-10-24 22:01:34 -0700 (Tue, 24 Oct 2006) Log Message: ----------- Correction bug 1584156 Modified Paths: -------------- trunk/http-vlc/lecteur/play-low.html trunk/http-vlc/lecteur/play-wifi.html Modified: trunk/http-vlc/lecteur/play-low.html =================================================================== --- trunk/http-vlc/lecteur/play-low.html 2006-10-22 18:39:31 UTC (rev 36) +++ trunk/http-vlc/lecteur/play-low.html 2006-10-25 05:01:34 UTC (rev 37) @@ -13,7 +13,7 @@ <vlc id="if" param1="type value 1 =" /> <vlc id="rpn" param1="vlc_stop" /> <vlc id="rpn" param1="playlist_empty" /> - <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=1024 :sout-transcode-acodec=mpga :sout-transcode-ab128 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay :sout-transcode-scale=0.65' strcat mrl value playlist_add vlc_play" /> + <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=1024 :sout-transcode-acodec=mpga :sout-transcode-ab=128 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay :sout-transcode-scale=0.65' strcat mrl value playlist_add vlc_play" /> <vlc id="end" /> <!-- audio/video ajout\xE9 et transcod\xE9 normalement TV - Type 2 --> Modified: trunk/http-vlc/lecteur/play-wifi.html =================================================================== --- trunk/http-vlc/lecteur/play-wifi.html 2006-10-22 18:39:31 UTC (rev 36) +++ trunk/http-vlc/lecteur/play-wifi.html 2006-10-25 05:01:34 UTC (rev 37) @@ -13,7 +13,7 @@ <vlc id="if" param1="type value 1 =" /> <vlc id="rpn" param1="vlc_stop" /> <vlc id="rpn" param1="playlist_empty" /> - <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=2048 :sout-transcode-acodec=mpga :sout-transcode-ab128 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay :sout-transcode-scale=0.80' strcat mrl value playlist_add vlc_play" /> + <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=2048 :sout-transcode-acodec=mpga :sout-transcode-ab=128 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay :sout-transcode-scale=0.80' strcat mrl value playlist_add vlc_play" /> <vlc id="end" /> <!-- audio/video ajout\xE9 et transcod\xE9 normalement TV - Type 2 --> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bed...@us...> - 2006-10-22 18:39:47
|
Revision: 36 http://svn.sourceforge.net/easybox-mod/?rev=36&view=rev Author: bedelaitre Date: 2006-10-22 11:39:31 -0700 (Sun, 22 Oct 2006) Log Message: ----------- Correction de la r?\195?\169cup?\195?\169ration des montants eu nombre de gagants du loto dans le fichier loto.php Modified Paths: -------------- trunk/module/loto/loto.php Modified: trunk/module/loto/loto.php =================================================================== --- trunk/module/loto/loto.php 2006-10-22 11:43:24 UTC (rev 35) +++ trunk/module/loto/loto.php 2006-10-22 18:39:31 UTC (rev 36) @@ -76,7 +76,9 @@ } preg_match("/$ereg/s", $contenu_numero, $selection); -$ereg = 'Rapport par grille gagnante pour 0,3 €<\/td><\/tr>(.{1,2000})<\/table><div class="spacer" style="height:18px"><img'; +//BDE BUG 1582238 +// $ereg = 'Rapport par grille gagnante pour 0,3 €<\/td><\/tr>(.{1,2000})<\/table><div class="spacer" style="height:18px"><img'; +$ereg = 'Nombre de grilles gagnantes<\/td><td width="108" class="txtblanc10" height="32">Gains<\/td><\/tr>(.{1,2000})<\/table><div class="spacer" style="height:18px"><img'; preg_match("/$ereg/s", $selection[1], $valeur2); $txt = trim($valeur2[1]).'</table>'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |