From: <ara...@us...> - 2007-03-11 12:32:06
|
Revision: 99 http://svn.sourceforge.net/easybox-mod/?rev=99&view=rev Author: aragornis Date: 2007-03-11 05:31:55 -0700 (Sun, 11 Mar 2007) Log Message: ----------- Nouveau panneau de configuration pour changer les pistes audio/vid?\195?\169o/ss-titres/signets/titres/chapitres... Modifs sur le module dvd par titou75 Corrections sur le module mp3 Modified Paths: -------------- trunk/_framework/fonctions_partagees.inc.php trunk/module/_explorateur/explorateur.tpl trunk/module/diaporama/photo.tpl trunk/module/dvd/dvd.tpl trunk/module/dvd/index1.php trunk/module/ephemeride/ephemeride.tpl trunk/module/films/films.tpl trunk/module/films/info.php trunk/module/mp3/audio.tpl trunk/module/mp3/catalogue_audio.tpl Modified: trunk/_framework/fonctions_partagees.inc.php =================================================================== --- trunk/_framework/fonctions_partagees.inc.php 2007-03-11 07:55:18 UTC (rev 98) +++ trunk/_framework/fonctions_partagees.inc.php 2007-03-11 12:31:55 UTC (rev 99) @@ -259,8 +259,7 @@ } } -function calcul_hours($temps) -{ +function calcul_hours($temps){ $hours = floor($temps / 3600); $min = floor(($temps - ($hours * 3600)) / 60); if ($min < 10) @@ -272,6 +271,13 @@ RETURN $hours."h".$min."m".$sec; } +function calcul_hours_complet($temps){ +global $VLC; + $nv_pourcentage = round($temps/($VLC['duree_totale']+1)*100); + RETURN(calcul_hours($temps).' / '.calcul_hours($VLC['duree_totale']).' ('.$nv_pourcentage.'%)'); +} + + //############################### GESTION DES MODULES ##############################// function add_module($nom, $repertoire, $lien, $actif1, $actif2, $actif3, $actif4, $actif5, $version, $description, $type, $dependance, $cat){ Modified: trunk/module/_explorateur/explorateur.tpl =================================================================== --- trunk/module/_explorateur/explorateur.tpl 2007-03-11 07:55:18 UTC (rev 98) +++ trunk/module/_explorateur/explorateur.tpl 2007-03-11 12:31:55 UTC (rev 99) @@ -162,9 +162,6 @@ {if $AFF_FAVORIS} <a href="{$RACINE_REP}module/favoris/index1.php?ajout={$REP|urlencode}&nom={$REP}" onfocus='aide="Ajouter le dossier aux favoris";'><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$SKIN_REP}dossier/favoris.gif" border="0" width="20" height="20"></td></tr></table></a> {/if} -{if $LECTEUR_AUDIO} -<var name=aide width=250> -{/if} </td></tr></table> </td></tr> Modified: trunk/module/diaporama/photo.tpl =================================================================== --- trunk/module/diaporama/photo.tpl 2007-03-11 07:55:18 UTC (rev 98) +++ trunk/module/diaporama/photo.tpl 2007-03-11 12:31:55 UTC (rev 99) @@ -23,7 +23,7 @@ <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="187" align="center"><font size="1">{if $delais==0}<form name="form1" method="get" action="index1.php">Diapo : <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="187" align="center"><font size="1">{if $delais==0}<form name="form1" method="get" action="index1.php">Diapo : <input name="delais" bgcolor="{#COULEUR_TEXTBOX#}" type=text size=2 maxlength=2 value="5"> 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="16" 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" bgcolor="#A3B7CD3f" abgcolor="#4491CA3f"><tr><td width="16"><img src="gauche.gif" border="0" width="16"></td></tr></table></a></td> Modified: trunk/module/dvd/dvd.tpl =================================================================== --- trunk/module/dvd/dvd.tpl 2007-03-11 07:55:18 UTC (rev 98) +++ trunk/module/dvd/dvd.tpl 2007-03-11 12:31:55 UTC (rev 99) @@ -1,9 +1,9 @@ -{section name=dop loop=$disques_dispo} +{section name=dop loop=$disques_optique} {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" 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> + <td width="100" height="130"><a href="playrep.php?toplay={$disques_optique[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_optique[dop].nom} ({$disques_optique[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> @@ -31,6 +31,10 @@ {/if} {sectionelse} -Aucun lecteur DVD n'est disponible. +Aucun lecteur DVD physique n'est disponible. +<br> +<br> +<br> +<a href="index1.php?status=explorateur">Cliquez ici pour lire des dvd ripp\xE9s ou au format image depuis l'explorateur.</a> {/section} Modified: trunk/module/dvd/index1.php =================================================================== --- trunk/module/dvd/index1.php 2007-03-11 07:55:18 UTC (rev 98) +++ trunk/module/dvd/index1.php 2007-03-11 12:31:55 UTC (rev 99) @@ -10,7 +10,7 @@ $rep_default = $ini['explorateur']['dvd']; } -$smarty->assign('TITRE','Choisissez un lecteur DVD'); +$smarty->assign('TITRE','Selectionnez votre DVD'); $status = get_variable('statutdvd'); @@ -24,13 +24,16 @@ }else{ $DISQUES = unserialize(get_variable('disques')); $disques_dispo = array(); + $disques_optique = array(); foreach($DISQUES as $d){ - if($d['type'] == 'Disque optique' OR $d['type'] == 'Disque r\xE9seau'){ - $disques_dispo[] = $d; + $disques_dispo[] = $d; + if($d['type'] == 'Disque optique'){ + $disques_optique[] = $d; } } save_variable('statutdvd', 'disques'); $smarty->assign('disques_dispo',$disques_dispo); + $smarty->assign('disques_optique',$disques_optique); $smarty->assign('CONTENT',$smarty->fetch('dvd.tpl')); $smarty->display('interface.tpl'); } Modified: trunk/module/ephemeride/ephemeride.tpl =================================================================== --- trunk/module/ephemeride/ephemeride.tpl 2007-03-11 07:55:18 UTC (rev 98) +++ trunk/module/ephemeride/ephemeride.tpl 2007-03-11 12:31:55 UTC (rev 99) @@ -9,4 +9,4 @@ <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> +<br> <br><a href="anivdujour.php">Les anniversaires du jour</a></center> Modified: trunk/module/films/films.tpl =================================================================== --- trunk/module/films/films.tpl 2007-03-11 07:55:18 UTC (rev 98) +++ trunk/module/films/films.tpl 2007-03-11 12:31:55 UTC (rev 99) @@ -9,7 +9,7 @@ <table width="600" height="510" border="0" cellpadding="0" cellspacing="0"><tr> <td height="370" align="left" cellpadding="3" cellspacing="0" valign="top"{if $module!=''} bgcolor="{#COULEUR_FOND2#}"{/if}> - {math equation="x/y+1" x="600" y=7 assign=width} + {math equation="x/y+1" x="600" y=6 assign=width} <table width="600" height="25" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="{$width}" align=center><a href="info.php?module=infos" {if $module=='infos'}focused{/if}><table width="{$width}" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td width="{$width}" align=center height="25">Infos</td></tr></table></a></td> @@ -17,7 +17,6 @@ <td width="{$width}" align=center><a href="info.php?module=audio" {if $module=='audio'}focused{/if}><table width="{$width}" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td width="{$width}" align=center height="25">Audio</td></tr></table></a></td> <td width="{$width}" align=center><a href="info.php?module=sstitre" {if $module=='sstitre'}focused{/if}><table width="{$width}" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td width="{$width}" align=center height="25">Sous-titres</td></tr></table></a></td> <td width="{$width}" align=center><a href="info.php?module=navigation" {if $module=='navigation'}focused{/if}><table width="{$width}" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td width="{$width}" align=center height="25">Chapitres</td></tr></table></a></td> - <td width="{$width}" align=center><a href="info.php?module=signets" {if $module=='signets'}focused{/if}><table width="{$width}" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td width="{$width}" align=center height="25">Signets</td></tr></table></a></td> <td width="{$width}" align=center><a href="info.php"><table width="{$width}" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td width="{$width}" align=center height="25">Fermer</td></tr></table></a></td> </tr> </table> @@ -29,8 +28,8 @@ {elseif $module=='video'} <font size="3"><u>Options vid\xE9o</u></font><br> <form action="info.php" method="get"> + <input type=hidden name=module value=video><input type=hidden name=var value="video-es"><br> <select name="video"> - <input type=hidden name=module value=video><input type=hidden name=var value="video-es"><br> {foreach from=$video item=pistev key=key name=video} <option value={$key} {if $pistev.1}selected{/if}>{$pistev.0} {*<input type=radio name=video bgcolor="{#COULEUR_FOND_RADIO#}" value="{$key}" {if $pistev.1} checked{/if}>{$pistev.0}<br>*} @@ -76,8 +75,7 @@ {*<input type=radio name=audio bgcolor="{#COULEUR_FOND_RADIO#}" value="{$key}" {if $pistea.1} checked{/if}>{$pistea.0}<br>*} {/foreach} </select> - </form> - <br> <br><form action="none"> + <br> <br> <input type="radio" name="aud" value="69(en,mp2)" bgcolor="{#COULEUR_FOND_RADIO#}"> Son st\xE9r\xE9o<br> <input type="radio" name="aud" value="69(en,ac3)" bgcolor="{#COULEUR_FOND_RADIO#}"> Dolby Digital (S/PDIF)<br> <br><input bgcolor="{#COULEUR_TEXTBOX#}" type=submit value="Valider les modifications"> @@ -86,9 +84,12 @@ {elseif $module=='sstitre'} <font size="3"><u>Sous-titres</u></font><br> <form action="info.php" method="get"><input type=hidden name=module value=sstitre><br> - {foreach from=$sstitre item=pistess key=key name=sstitre} - <input type=radio name=sstitre bgcolor="{#COULEUR_FOND_RADIO#}" value="{$key}"{if $pistess.1} checked{/if}>{$pistess.0}<br> + + <select name="sstitre"> + {foreach from=$sstitre item=pistess key=key name=sstitre} + <option value={$key} {if $pistess.1}selected{/if}>{$pistess.0} {/foreach} + </select> Les param\xE8tres suivants ne seront pris en compte qu'apr\xE8s le red\xE9marage du films. Ils seront sauvegard\xE9s dans Easybox pour les prochaines utilisations de easybox<br /> <font size="3"><u>Position</u></font> : @@ -105,27 +106,52 @@ <input bgcolor="{#COULEUR_TEXTBOX#}" type=submit value="Valider les modifications"></form> {elseif $module=='navigation'} +<font size="3"><u>Titres</u></font><br> + {if count($title)} + <form action="info.php" method="get"><input type=hidden name=module value=navigation><br> + <select name="chap"> + {foreach from=$title item=chap key=key name=chap} + <option value={$key} {if $chap.1}selected{/if}>{$chap.0} + {/foreach} + </select> + <input bgcolor="{#COULEUR_TEXTBOX#}" type=submit value="Valider les modifications"></form> + {else} + Aucun titre n'est d\xE9fini pour ce film + {/if} + +<br> <br> + <font size="3"><u>Chapitres</u></font><br> -{assign var=keyb value=1} -<table><tr><td> - {foreach from=$chapitre item=chap key=key name=chap} - <a href="info.php?module=navigation&chap={$key}">{if $chap.1}<font family="Symbol">T</font>{/if}<font size="1">{$chap.0}</font></a><br> - {assign var=keyb value=$keyb+1} - {if $keyb is div by 17}</td><td>{/if} - {/foreach} -</td></tr></table> + {if count($chapitre)} + <form action="info.php" method="get"><input type=hidden name=module value=navigation><br> + <select name="chap"> + {foreach from=$chapitre item=chap key=key name=chap} + <option value={$key} {if $chap.1}selected{/if}>{$chap.0} + {/foreach} + </select> + <input bgcolor="{#COULEUR_TEXTBOX#}" type=submit value="Valider les modifications"></form> + {else} + Aucun chapitre n'est d\xE9fini pour ce film + {/if} -{elseif $module=='signets'} +<br> <br> + <font size="3"><u>Signets</u></font><br> -{assign var=keyb value=1} -<table><tr><td> - {foreach from=$SIGNETS item=signet key=key name=signet} - <a href="info.php?module=signets&seek_value={$signet.2}"><font size="1">{$signet.2}</font></a><br> - {assign var=keyb value=$keyb+1} - {if $keyb is div by 17}</td><td>{/if} - {/foreach} -</td></tr></table><br> -<img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> <a href="{$MODULE}films/info.php?module=signets&savesignet=1">Ajouter un nouveau signet</a> + {if count($SIGNETS)} + <form action="info.php" method="get"><input type=hidden name=module value=navigation><br> + <select name="seek_value"> + {foreach from=$SIGNETS item=signet key=key name=signet} + <option value={$signet.2}>{$signet.2} + {/foreach} + </select> + <input bgcolor="{#COULEUR_TEXTBOX#}" type=submit value="Valider les modifications"></form> + {else} + Aucun signet enregistr\xE9 pour ce film + {/if} + +<br> +<img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> <a href="{$MODULE}films/info.php?module=navigation&savesignet=1">Ajouter un nouveau signet</a> + {/if} @@ -168,7 +194,7 @@ {section name=foo1 start=1 loop=$stream_3 step=1} {assign var=time value="`$smarty.section.foo1.iteration*$largeursautmoins`"} {assign var=heure value=$time|date_format:"%H"} -<td width="5"><a onfocus='front_panel="{$time|calcul_hours|cleanaff}";temps_affich="{$time|calcul_hours}";' onBlur='front_panel="{$original_front|calcul_hours|cleanaff}";temps_affich="{$temps_affich}";' href="info.php?heures={$heure-1}&minutes={$time|date_format:"%M"}&secondes={$time|date_format:"%S"}"><table border="0" cellpadding="0" cellspacing="0" bgcolor="#BDBDC23f" abgcolor="#0000003f"><tr><td><img src="" width="5" height="5" border="0"></td></tr></table></a></td> +<td width="5"><a onfocus='front_panel="{$time|calcul_hours|cleanaff}";temps_affich="{$time|calcul_hours_complet}";' onBlur='front_panel="{$VLC.duree_courante|calcul_hours|cleanaff}";temps_affich="{$VLC.duree_courante|calcul_hours_complet}";' href="info.php?heures={$heure-1}&minutes={$time|date_format:"%M"}&secondes={$time|date_format:"%S"}"><table border="0" cellpadding="0" cellspacing="0" bgcolor="#BDBDC23f" abgcolor="#0000003f"><tr><td><img src="" width="5" height="5" border="0"></td></tr></table></a></td> {/section} @@ -177,7 +203,7 @@ {section name=foo2 start=1 loop=$stream_5 step=1} {assign var=time value="`$VLC.duree_courante+$smarty.section.foo2.iteration*$largeursautplus`"} {assign var=heure value=$time|date_format:"%H"} -<td width="5"><a onfocus='front_panel="{$time|calcul_hours|cleanaff}";temps_affich="{$time|calcul_hours}";' onBlur='front_panel="{$original_front|calcul_hours|cleanaff}";temps_affich="{$temps_affich}";' href="info.php?heures={$heure-1}&minutes={$time|date_format:"%M"}&secondes={$time|date_format:"%S"}"><table border="0" cellpadding="0" cellspacing="0" bgcolor="#BDBDC23f" abgcolor="#0000003f"><tr><td><img src="" width="5" height="5" border="0"></td></tr></table></a></td> +<td width="5"><a onfocus='front_panel="{$time|calcul_hours|cleanaff}";temps_affich="{$time|calcul_hours_complet}";' onBlur='front_panel="{$VLC.duree_courante|calcul_hours|cleanaff}";temps_affich="{$VLC.duree_courante|calcul_hours_complet}";' href="info.php?heures={$heure-1}&minutes={$time|date_format:"%M"}&secondes={$time|date_format:"%S"}"><table border="0" cellpadding="0" cellspacing="0" bgcolor="#BDBDC23f" abgcolor="#0000003f"><tr><td><img src="" width="5" height="5" border="0"></td></tr></table></a></td> {/section} <td width="13"></td> Modified: trunk/module/films/info.php =================================================================== --- trunk/module/films/info.php 2007-03-11 07:55:18 UTC (rev 98) +++ trunk/module/films/info.php 2007-03-11 12:31:55 UTC (rev 99) @@ -1,4 +1,47 @@ <? + +// On se d\xE9place dans le fichier avant de charger les infos sur la piste en cours +if (isset($_REQUEST['seek_value'])){ + $value=$_REQUEST['seek_value']; + $file1 = file_get_contents('http://127.0.0.1:8081/lecteur/action.html?control=seek&seek_value='.$value); +} +if (isset($_REQUEST['heures']) OR isset($_REQUEST['minutes']) OR isset($_REQUEST['secondes'])) { + $heure = '0'; + $minutes = '0'; + $secondes = '0'; + if (isset($_REQUEST['heures'])){ $heures = $_REQUEST['heures']; } + if (isset($_REQUEST['minutes'])){ $minutes = $_REQUEST['minutes']; } + if (isset($_REQUEST['secondes'])){ $secondes = $_REQUEST['secondes']; } + if ($heures < 10){ $heures = "0$heures"; } + if ($minutes < 10){ $minutes = "0$minutes"; } + if ($secondes < 10){ $secondes = "0$secondes"; } + $value = "$heures:$minutes:$secondes"; + + $file1 = file_get_contents("http://127.0.0.1:8081/lecteur/action.html?control=seek&seek_value=$value"); +} + + // Changement des options vid\xE9o + if (isset($_GET['video'])){ + @readfile('http://localhost:8081/lecteur/modif-config.html?type=3&video='.$_GET['video'].'&pp='.$_GET['pp']); + } + // Changement des options audio + if (isset($_GET['audio'])){ + @readfile('http://localhost:8081/lecteur/modif-config.html?type=2&type2=1&var=audio-es&value='.$_GET['audio']); + } + // Changement des options de sous-titre + if (isset($_GET['sstitre'])){ + @readfile('http://localhost:8081/lecteur/modif-config.html?type=2&type2=4&var=spu-es&value='.$_GET['sstitre']); + }elseif(isset($_GET['fontcolor'])){ + @readfile('http://localhost:8081/lecteur/modif-config.html?type=2&type2=2&color='.$_GET['fontcolor']); + }elseif(isset($_GET['sub_margin'])){ + @readfile('http://localhost:8081/lecteur/modif-config.html?type=2&type2=2&size='.convert_size($_GET['fontsize']).'&sub_margin='.$_GET['sub_margin']); + } + // Changement de chapitre + if (isset($_GET['chap'])){ + @readfile('http://localhost:8081/lecteur/modif-config.html?type=2&type2=3&var=chapter&value='.$_GET['chap']); + } + + $RACINE_REP = "../../"; require($RACINE_REP.'_framework/framework.php'); @@ -23,10 +66,6 @@ $file1 = file_get_contents("http://127.0.0.1:8081/lecteur/action.html?control=$control"); } -if (isset($_REQUEST['seek_value'])){ - $value=$_REQUEST['seek_value']; - $file1 = file_get_contents('http://127.0.0.1:8081/lecteur/action.html?control=seek&seek_value='.$value); -} if($VLC['etat']=='playing'){ $META['front_panel'] = calcul_hours($VLC['duree_courante']); @@ -35,22 +74,8 @@ } $smarty->assign('original_front',$META['front_panel']); -//-- Ce deplac\xE9 a un temps definie par l'utilisateur. -if (isset($_REQUEST['heures']) OR isset($_REQUEST['minutes']) OR isset($_REQUEST['secondes'])) { - $heure = '0'; - $minutes = '0'; - $secondes = '0'; - if (isset($_REQUEST['heures'])){ $heures = $_REQUEST['heures']; } - if (isset($_REQUEST['minutes'])){ $minutes = $_REQUEST['minutes']; } - if (isset($_REQUEST['secondes'])){ $secondes = $_REQUEST['secondes']; } - if ($heures < 10){ $heures = "0$heures"; } - if ($minutes < 10){ $minutes = "0$minutes"; } - if ($secondes < 10){ $secondes = "0$secondes"; } - $value = "$heures:$minutes:$secondes"; - - $file1 = file_get_contents("http://127.0.0.1:8081/lecteur/action.html?control=seek&seek_value=$value"); -} + function convert_size($size){ $assoc[0] = '12'; $assoc[1] = '24'; @@ -67,26 +92,6 @@ RETURN($assoc[$size]); } - // Changement des options vid\xE9o - if (isset($_GET['video'])){ - @readfile('http://localhost:8081/lecteur/modif-config.html?type=3&video='.$_GET['video'].'&pp='.$_GET['pp']); - } - // Changement des options audio - if (isset($_GET['audio'])){ - @readfile('http://localhost:8081/lecteur/modif-config.html?type=2&type2=1&var=audio-es&value='.$_GET['audio']); - } - // Changement des options de sous-titre - if (isset($_GET['sstitre'])){ - @readfile('http://localhost:8081/lecteur/modif-config.html?type=2&type2=4&var=spu-es&value='.$_GET['sstitre']); - }elseif(isset($_GET['fontcolor'])){ - @readfile('http://localhost:8081/lecteur/modif-config.html?type=2&type2=2&color='.$_GET['fontcolor']); - }elseif(isset($_GET['sub_margin'])){ - @readfile('http://localhost:8081/lecteur/modif-config.html?type=2&type2=2&size='.convert_size($_GET['fontsize']).'&sub_margin='.$_GET['sub_margin']); - } - // Changement de chapitre - if (isset($_GET['chap'])){ - @readfile('http://localhost:8081/lecteur/modif-config.html?type=2&type2=3&var=chapter&value='.$_GET['chap']); - } //-- R\xE9cuperation des donn\xE9es de VLC $contenu_html = @file_get_contents('http://localhost:8081/lecteur/options_vlc.html'); @@ -111,15 +116,25 @@ foreach($pp_video as $key => $value){ $_pp_video = $key; } + foreach($video as $key => $value){ + if($value[1]){ + $META['video']=$key; + } + } $META['pp']=$_pp_video; - $META['pp']=$video; + $smarty->assign('video',$video); $smarty->assign('pp_video',$_pp_video); } //Choix de la piste audio if($module=='audio'){ - $smarty->assign('audio',$audio); + foreach($audio as $key => $value){ + if($value[1]){ + $META['audio']=$key; + } + } + $smarty->assign('audio',$audio); } //Choix du fichier de sous-titre @@ -139,6 +154,11 @@ if($_ffontsize==""){ $_ffontzise = '32'; } + foreach($sstitre as $key => $value){ + if($value[1]){ + $META['sstitre']=$key; + } + } $smarty->assign('ffontsize',convert_size($_ffontsize)); $smarty->assign('fontcolor',$_fontcolor); $smarty->assign('sub_margin',$_sub_margin); @@ -147,21 +167,33 @@ //Choix du chapitre if($module=='navigation'){ - $smarty->assign('chapitre',$chapitre); - } - - if($module=='signets'){ - //Signets pour ce film + + if(count($title)){ + foreach($title as $key => $value){ + if($value[1]){ + $META['title']=$key; + } + } + } + if(count($chapitre)){ + foreach($chapitre as $key => $value){ + if($value[1]){ + $META['chap']=$key; + } + } + } + //Signets pour ce film $db = sqlite_open($USER.'utilisateur.db', 0666); - - //$mov = new ffmpeg_movie(realpath($VLC['url_current'])); - //echo $mov->getFrameCount(); - $requete='SELECT * FROM signet WHERE lien="'.$signetsav[2].'" ORDER BY duree'; $result = sqlite_query($db,$requete); $smarty->assign('SIGNETS',sqlite_fetch_all($result)); + + $smarty->assign('title',$title); + $smarty->assign('chapitre',$chapitre); + } + //--Fin des options // Synth\xE8se du nom du fichier @@ -175,15 +207,14 @@ $nomcourant = trim(substr($nomcourant,0,strrpos($nomcourant,'.'))); } - $temps_affich=calcul_hours($VLC['duree_courante']).' / '.calcul_hours($VLC['duree_totale']).' ('.$VLC['pourcentage_courant'].'%)'; - $META['temps_affich']= $temps_affich; + $META['temps_affich']=calcul_hours_complet($VLC['duree_courante']); $LINK['stop']=$MODULE.'films/lecture.php?control=stop'; $LINK['play']=$MODULE.'films/lecture.php?control=pause'; $LINK['pause']=$MODULE.'films/lecture.php?control=pause'; $LINK['info']=$MODULE.'films/lecture.php'; $LINK['options']=$MODULE.'films/lecture.php'; - $LINK['blue']=$MODULE.'films/info.php?module=signets&savesignet=1'; + $LINK['blue']=$MODULE.'films/info.php?module=navigation&savesignet=1'; $LINK['red']=$MODULE.'films/lecture.php?next_ss=1'; $LINK['yellow']=$MODULE.'films/info.php?module=infos'; @@ -192,7 +223,6 @@ } $smarty->assign('nomcourant',$nomcourant); -$smarty->assign('temps_affich',$temps_affich); $smarty->display('films.tpl'); ?> Modified: trunk/module/mp3/audio.tpl =================================================================== --- trunk/module/mp3/audio.tpl 2007-03-11 07:55:18 UTC (rev 98) +++ trunk/module/mp3/audio.tpl 2007-03-11 12:31:55 UTC (rev 99) @@ -128,6 +128,8 @@ {eval var=$CONTENT} + <var name=aide width=450> + </td></tr> </table> </td><td width="5" height="493"></td></tr> Modified: trunk/module/mp3/catalogue_audio.tpl =================================================================== --- trunk/module/mp3/catalogue_audio.tpl 2007-03-11 07:55:18 UTC (rev 98) +++ trunk/module/mp3/catalogue_audio.tpl 2007-03-11 12:31:55 UTC (rev 99) @@ -32,7 +32,7 @@ <TABLE cellspacing=0 width="480"> -{section name=fichiers loop=$rows start=$f max=15} +{section name=fichiers loop=$rows start=$f max=10} {cycle name=color assign=COLOR print=false values="`$smarty.config.COULEUR_INTERFACE1`,`$smarty.config.COULEUR_INTERFACE2`"} @@ -72,13 +72,13 @@ <TD align=center width="180">{$recherche}</TD> {if $f!='0' AND $f!=''} - {assign var=New_Min value=$f-15|max:0} + {assign var=New_Min value=$f-10|max:0} <TD align=center width="120"><IMG SRC="{$FRAMEWORK_REP}aide/images/btn_jaune.gif"> <font size=1><A hRef="lecteuraudio.php?mode=bib&t={$type}&l={$l}&f={$New_Min}&wf={$wherefield}&wl={$wherelike|urlencode}"><B>Pr\xE9c\xE9dent</B></A></font></TD> {attribbouton touche="yellow" lien="lecteuraudio.php?mode=bib&t=$type&l=$l&f=$New_Min&wf=$wherefield&wl=$wherelike"} {/if} {if $f+$smarty.section.fichiers.total<count($rows)} - {assign var=New_Min value=$f+15} + {assign var=New_Min value=$f+10} <TD align=center width="100"><IMG SRC="{$FRAMEWORK_REP}aide/images/btn_bleu.gif"> <font size=1><A hRef="lecteuraudio.php?mode=bib&t={$type}&l={$l}&f={$New_Min}&wf={$wherefield}&wl={$wherelike|urlencode}"><B>Suivant</B></A></font></TD> {attribbouton touche="blue" lien="lecteuraudio.php?mode=bib&t=$type&l=$l&f=$New_Min&wf=$wherefield&wl=$wherelike"} {/if} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2007-03-12 19:48:52
|
Revision: 102 http://svn.sourceforge.net/easybox-mod/?rev=102&view=rev Author: aragornis Date: 2007-03-12 12:48:50 -0700 (Mon, 12 Mar 2007) Log Message: ----------- Modified Paths: -------------- trunk/_framework/demarrage.php trunk/_framework/framework.php Added Paths: ----------- trunk/skin/mediacenter/ trunk/skin/simple/interface/ajouter.gif trunk/skin/simple/interface/jouer.gif trunk/skin/simplegreen/interface/ajouter.gif trunk/skin/simplegreen/interface/jouer.gif Modified: trunk/_framework/demarrage.php =================================================================== --- trunk/_framework/demarrage.php 2007-03-11 18:00:35 UTC (rev 101) +++ trunk/_framework/demarrage.php 2007-03-12 19:48:50 UTC (rev 102) @@ -28,6 +28,11 @@ $etape = $_GET['etape']; } + if($vers_fbx<=4){ + $META['service'] = 'ts://127.0.0.1?pcr=68&aud=69(en,mp2)&vid=68'; + $META['display_aspect_ratio_conversion'] = 'letterbox'; + } + //-- Chargement des donn\xE9es de configuration $intro = $ini['demarrage']['intro']; $intro = 'non'; Modified: trunk/_framework/framework.php =================================================================== --- trunk/_framework/framework.php 2007-03-11 18:00:35 UTC (rev 101) +++ trunk/_framework/framework.php 2007-03-12 19:48:50 UTC (rev 102) @@ -4,11 +4,6 @@ echo'<center><br> <br> <br>Vlc n\'est pas lanc\xE9 ou il n\'\xE9coute pas le port 8081</center>'; } - // if($vers_fbx<=4){ - $META['service'] = 'ts://127.0.0.1'; - $META['display_aspect_ratio_conversion'] = 'letterbox'; - // } - setlocale(LC_TIME, "fr"); $vers_fbx = $_SERVER["HTTP_USER_AGENT"]; Added: trunk/skin/simple/interface/ajouter.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simple/interface/ajouter.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simple/interface/jouer.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simple/interface/jouer.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/ajouter.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/ajouter.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skin/simplegreen/interface/jouer.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simplegreen/interface/jouer.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...> - 2007-03-14 08:18:35
|
Revision: 103 http://svn.sourceforge.net/easybox-mod/?rev=103&view=rev Author: aragornis Date: 2007-03-14 01:18:32 -0700 (Wed, 14 Mar 2007) Log Message: ----------- Modified Paths: -------------- trunk/http-vlc/lecteur/modif-config.html trunk/module/films/films.tpl trunk/module/films/info.php Modified: trunk/http-vlc/lecteur/modif-config.html =================================================================== --- trunk/http-vlc/lecteur/modif-config.html 2007-03-12 19:48:50 UTC (rev 102) +++ trunk/http-vlc/lecteur/modif-config.html 2007-03-14 08:18:32 UTC (rev 103) @@ -13,7 +13,7 @@ <vlc id="rpn" param1="valeur value variable value 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> <vlc id="end" /> - <!-- Modification des obtions audio, sous-titre et chapitre - Type 2 --> + <!-- Modification des obtions audio, sous-titre, titre et chapitre - Type 2 --> <vlc id="if" param1="type value 2 =" /> <!-- CHANGE LA LANGUES AUDIO - Type2 = 1 --> <vlc id="if" param1="type2 value 1 =" /> @@ -51,7 +51,8 @@ <vlc id="rpn" param1="'valeur' value 'chapter' 'VLC_OBJECT_INPUT' vlc_var_set" /> <vlc id="end" /> - <vlc id="if" param1="type2 value 4 =" /> + <!-- CHANGE DE TITRE - Type2 = 4 --> + <vlc id="if" param1="type2 value 4 =" /> <vlc id="rpn" param1="'valeur' value 'title' 'VLC_OBJECT_INPUT' vlc_var_set" /> <vlc id="end" /> Modified: trunk/module/films/films.tpl =================================================================== --- trunk/module/films/films.tpl 2007-03-12 19:48:50 UTC (rev 102) +++ trunk/module/films/films.tpl 2007-03-14 08:18:32 UTC (rev 103) @@ -109,7 +109,7 @@ <font size="3"><u>Titres</u></font><br> {if count($title)} <form action="info.php" method="get"><input type=hidden name=module value=navigation><br> - <select name="chap"> + <select name="title"> {foreach from=$title item=chap key=key name=chap} <option value={$key} {if $chap.1}selected{/if}>{$chap.0} {/foreach} Modified: trunk/module/films/info.php =================================================================== --- trunk/module/films/info.php 2007-03-12 19:48:50 UTC (rev 102) +++ trunk/module/films/info.php 2007-03-14 08:18:32 UTC (rev 103) @@ -40,8 +40,11 @@ if (isset($_GET['chap'])){ @readfile('http://localhost:8081/lecteur/modif-config.html?type=2&type2=3&var=chapter&value='.$_GET['chap']); } + // Changement de titre + if (isset($_GET['title'])){ + @readfile('http://localhost:8081/lecteur/modif-config.html?type=2&type2=4&var=title&value='.$_GET['title']); + } - $RACINE_REP = "../../"; require($RACINE_REP.'_framework/framework.php'); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2007-03-16 13:59:05
|
Revision: 105 http://svn.sourceforge.net/easybox-mod/?rev=105&view=rev Author: aragornis Date: 2007-03-16 06:58:31 -0700 (Fri, 16 Mar 2007) Log Message: ----------- Correction sur le module recette : retour des pr?\195?\169parations et de l'image des recettes Modified Paths: -------------- trunk/_utilisateur/multiposte.m3u trunk/module/recettes/recettes.php trunk/module/recettes/recettes2.tpl Modified: trunk/_utilisateur/multiposte.m3u =================================================================== --- trunk/_utilisateur/multiposte.m3u 2007-03-16 13:24:40 UTC (rev 104) +++ trunk/_utilisateur/multiposte.m3u 2007-03-16 13:58:31 UTC (rev 105) @@ -95,6 +95,10 @@ rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=222 #EXTINF:0,64 - Motors TV rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=216 +#EXTINF:0,65 - Poker Channel +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=618 +#EXTINF:0,66 - Real Madrid TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=387 #EXTINF:0,69 - Euronews rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=205 #EXTINF:0,70 - Bloomberg TV @@ -251,8 +255,6 @@ 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 @@ -419,3 +421,343 @@ rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=303 #EXTINF:0,999 - Mire FREEBOX rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=308 +#EXTINF:0,10001 - Europe 1 +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1001 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110001 +#EXTINF:0,10003 - France Inter +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1003 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110003 +#EXTINF:0,10004 - RMC Info +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1004 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110004 +#EXTINF:0,10005 - RTL +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1005 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110005 +#EXTINF:0,10006 - Chérie FM +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1006 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110006 +#EXTINF:0,10007 - Europe 2 +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1007 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110007 +#EXTINF:0,10008 - Fun Radio +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1008 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110008 +#EXTINF:0,10009 - Nostalgie +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1010 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110009 +#EXTINF:0,10010 - NRJ +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1011 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110010 +#EXTINF:0,10011 - RFM +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1001 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110011 +#EXTINF:0,10012 - Rire et Chansons +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1002 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110012 +#EXTINF:0,10013 - RTL 2 +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1003 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110013 +#EXTINF:0,10014 - Skyrock +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1004 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110014 +#EXTINF:0,10015 - BFM +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1005 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110015 +#EXTINF:0,10016 - France Culture +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1006 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110016 +#EXTINF:0,10017 - France Info +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1007 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110017 +#EXTINF:0,10018 - France Musiques +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1008 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110018 +#EXTINF:0,10019 - Radio Classique +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1010 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110019 +#EXTINF:0,10020 - Contact FM +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1004 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110020 +#EXTINF:0,10021 - FIP +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1006 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110021 +#EXTINF:0,10022 - Le Mouv' +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1007 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110022 +#EXTINF:0,10023 - Nova +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1008 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110023 +#EXTINF:0,10024 - Ouï FM +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1009 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110024 +#EXTINF:0,10025 - TSF Jazz +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1011 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110025 +#EXTINF:0,10026 - France BLEU - la CityRadio +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1002 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110026 +#EXTINF:0,10027 - RFI +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1011 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110027 +#EXTINF:0,10028 - RFI Multilingues +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1001 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110028 +#EXTINF:0,10029 - Alouette +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1002 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110029 +#EXTINF:0,10030 - Radio FG +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1010 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110030 +#EXTINF:0,10032 - Fréquence Jazz +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1009 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110032 +#EXTINF:0,10033 - Couleur 3 +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1005 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110033 +#EXTINF:0,10034 - Beur FM +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1003 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110034 +#EXTINF:0,10035 - Voltage +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1001 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110035 +#EXTINF:0,10036 - Sud Radio +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1002 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110036 +#EXTINF:0,10037 - Ado FM +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1003 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110037 +#EXTINF:0,10038 - MplusM +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1004 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110038 +#EXTINF:0,10039 - Radio Ethic +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1005 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110039 +#EXTINF:0,10040 - Roc FM +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1006 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110040 +#EXTINF:0,10041 - Top Music +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1007 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110041 +#EXTINF:0,10042 - Rts FM +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1008 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110042 +#EXTINF:0,10043 - Evasion FM +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1009 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110043 +#EXTINF:0,10044 - Radio Scoop +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1010 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110044 +#EXTINF:0,10045 - La radio de la mer +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1001 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110045 +#EXTINF:0,10046 - Wit FM +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1004 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110046 +#EXTINF:0,10047 - Black Box +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1005 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110047 +#EXTINF:0,10048 - Vibration +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1006 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110048 +#EXTINF:0,10049 - Forum +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1007 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110049 +#EXTINF:0,10050 - Sun FM Nantes +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1002 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110050 +#EXTINF:0,10051 - Kiss FM +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1010 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110051 +#EXTINF:0,10052 - Radio Néo +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1009 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110052 +#EXTINF:0,10053 - Onthecity Radio +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1003 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110053 +#EXTINF:0,10054 - Watt FM +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1008 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110054 +#EXTINF:0,10055 - Normandie FM +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1011 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110055 +#EXTINF:0,10056 - Deepinside +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1012 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110056 +#EXTINF:0,10057 - Radio Teentaal +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1011 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110057 +#EXTINF:0,10058 - Radio Xtreme +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1012 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110058 +#EXTINF:0,10059 - Frequence 3 +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1013 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110059 +#EXTINF:0,10060 - World Radio Paris +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1013 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110060 +#EXTINF:0,10061 - Radio Latina +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1012 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110061 +#EXTINF:0,10062 - Radio Blagon +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1014 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110062 +#EXTINF:0,10063 - Espace FM +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1014 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110063 +#EXTINF:0,10064 - Hit West +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1015 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110064 +#EXTINF:0,10065 - Radio Public Santé +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1015 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110065 +#EXTINF:0,10066 - MFM +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1001 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110066 +#EXTINF:0,10067 - 13FM +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1002 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110067 +#EXTINF:0,10068 - FC RADIO L'essentiel +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1003 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110068 +#EXTINF:0,10069 - NTI +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1004 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110069 +#EXTINF:0,10070 - Radio Flemme +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1005 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110070 Modified: trunk/module/recettes/recettes.php =================================================================== --- trunk/module/recettes/recettes.php 2007-03-16 13:24:40 UTC (rev 104) +++ trunk/module/recettes/recettes.php 2007-03-16 13:58:31 UTC (rev 105) @@ -23,8 +23,9 @@ // 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'); +$urlimg = urlencode('http://' . str_replace("recettes/recette.cfm?num_recette=", "recipephotos/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 @@ -84,11 +85,11 @@ } Else { // Si le visiteur demande la pr\xE9paration de la recette if ($etape == 'prepa') { - $ereg = 'paration :<BR>(.*). -<\/span><\/TD>'; + $ereg = 'paration :<BR>(.{1,1000})<\/span><\/TD>'; preg_match("/$ereg/s", $contenu, $valeur); - $preparation = '<div style="text-align: left">' . utf8_decode($valeur[1]) . '.<\/div>'; - $smarty->assign('preparation', $preparation); + $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') { Modified: trunk/module/recettes/recettes2.tpl =================================================================== --- trunk/module/recettes/recettes2.tpl 2007-03-16 13:24:40 UTC (rev 104) +++ trunk/module/recettes/recettes2.tpl 2007-03-16 13:58:31 UTC (rev 105) @@ -101,9 +101,6 @@ </font> {/if} - - - </td> </tr> </table> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2007-03-16 14:27:27
|
Revision: 106 http://svn.sourceforge.net/easybox-mod/?rev=106&view=rev Author: aragornis Date: 2007-03-16 07:27:24 -0700 (Fri, 16 Mar 2007) Log Message: ----------- Ajout des icones pour les modules optionnels Rajout du module horoscope Modified Paths: -------------- trunk/_utilisateur/modules.db Added Paths: ----------- trunk/module/cac40/icone.gif trunk/module/ephemeride/icone.gif trunk/module/horoscope/icone.gif trunk/module/infotraffic/icone.gif trunk/module/loto/icone.gif trunk/module/messagerie/icone.gif trunk/module/morpion/icone.gif trunk/module/pendu/icone.gif trunk/module/reseaufree/icone.gif trunk/module/sudoku/icone.gif Modified: trunk/_utilisateur/modules.db =================================================================== (Binary files differ) Added: trunk/module/cac40/icone.gif =================================================================== (Binary files differ) Property changes on: trunk/module/cac40/icone.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/ephemeride/icone.gif =================================================================== (Binary files differ) Property changes on: trunk/module/ephemeride/icone.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/horoscope/icone.gif =================================================================== (Binary files differ) Property changes on: trunk/module/horoscope/icone.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/infotraffic/icone.gif =================================================================== (Binary files differ) Property changes on: trunk/module/infotraffic/icone.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/loto/icone.gif =================================================================== (Binary files differ) Property changes on: trunk/module/loto/icone.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/messagerie/icone.gif =================================================================== (Binary files differ) Property changes on: trunk/module/messagerie/icone.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/morpion/icone.gif =================================================================== (Binary files differ) Property changes on: trunk/module/morpion/icone.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/pendu/icone.gif =================================================================== (Binary files differ) Property changes on: trunk/module/pendu/icone.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/reseaufree/icone.gif =================================================================== (Binary files differ) Property changes on: trunk/module/reseaufree/icone.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/sudoku/icone.gif =================================================================== (Binary files differ) Property changes on: trunk/module/sudoku/icone.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...> - 2007-03-18 12:36:30
|
Revision: 111 http://svn.sourceforge.net/easybox-mod/?rev=111&view=rev Author: aragornis Date: 2007-03-18 04:05:07 -0700 (Sun, 18 Mar 2007) Log Message: ----------- nouveaux tests dvd Modified Paths: -------------- trunk/http-vlc/lecteur/play.html trunk/module/dvd/playrep.php trunk/module/films/films.tpl Modified: trunk/http-vlc/lecteur/play.html =================================================================== --- trunk/http-vlc/lecteur/play.html 2007-03-17 20:46:57 UTC (rev 110) +++ trunk/http-vlc/lecteur/play.html 2007-03-18 11:05:07 UTC (rev 111) @@ -103,21 +103,21 @@ <vlc id="if" param1="type value 30 =" /> <vlc id="rpn" param1="vlc_stop" /> <vlc id="rpn" param1="playlist_empty" /> - <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-ab=256 :sout-transcode-acodec=mpga :sout-transcode-channels=2 :sout-transcode-samplerate=44100 :sout-transcode-soverlay :sout-transcode-vt=1000000 :sout-transcode-fps=25.0' strcat mrl value playlist_add vlc_play" /> + <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-ab=256 :sout-transcode-acodec=mpga :sout-transcode-channels=2 :dvd-caching=500 :sout-udp-caching=300 :audio-language=fr :sout-transcode-vb=9600 :sout-transcode-vcodec=mp2v :sout=#transcode{scale=1,soverlay}:duplicate{dst=std{mux=ts}}' strcat mrl value playlist_add vlc_play" /> <vlc id="end" /> <!-- dvd joue normalement - sortie audio PC - Type 31 --> <vlc id="if" param1="type value 31 =" /> <vlc id="rpn" param1="vlc_stop" /> <vlc id="rpn" param1="playlist_empty" /> - <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout=#duplicate{dst=transcode:std,select=video,dst=display,select=audio} :sout-transcode-ab=512 :sout-transcode-acodec=a52 :sout-transcode-channels=6 :sout-transcode-samplerate=44100 :sout-transcode-soverlay :sout-transcode-vt=1000000 :sout-transcode-fps=25.0' strcat mrl value playlist_add vlc_play" /> + <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-ab=256 :sout-transcode-acodec=mpga :sout-transcode-channels=2 :dvd-caching=500 :sout-udp-caching=300 :audio-language=fr :sout-transcode-vb=9600 :sout-transcode-vcodec=mp2v :sout=#transcode{scale=1,soverlay}:duplicate{dst=std{mux=ts},select=video,dst=display,select=audio}' strcat mrl value playlist_add vlc_play" /> <vlc id="end" /> <!-- dvd joue normalement - Sortie AC3 audio - Type 32 --> <vlc id="if" param1="type value 32 =" /> <vlc id="rpn" param1="vlc_stop" /> <vlc id="rpn" param1="playlist_empty" /> - <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-ab=512 :sout-transcode-acodec=a52 :sout-transcode-channels=6 :sout-transcode-samplerate=44100 :sout-transcode-soverlay :sout-transcode-vt=1000000 :sout-transcode-fps=25.0' strcat mrl value playlist_add vlc_play" /> + <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-ab=512 :sout-transcode-acodec=a52 :sout-transcode-channels=6 :dvd-caching=500 :sout-udp-caching=300 :audio-language=fr :sout-transcode-vb=9600 :sout-transcode-vcodec=mp2v :sout=#transcode{scale=1,soverlay}:duplicate{dst=std{mux=ts}}' strcat mrl value playlist_add vlc_play" /> <vlc id="end" /> <!-- dvd ajoute normalement - transcodage audio - Type 33 --> Modified: trunk/module/dvd/playrep.php =================================================================== --- trunk/module/dvd/playrep.php 2007-03-17 20:46:57 UTC (rev 110) +++ trunk/module/dvd/playrep.php 2007-03-18 11:05:07 UTC (rev 111) @@ -36,9 +36,9 @@ $basename = 'dvdsimple://'.$basename; play_fichier($play,$basename,0,'dvd'); - $META['refresh'] = '2;url=playrep.php?mode=1'; + //$META['refresh'] = '2;url=playrep.php?mode=1'; + $META['refresh'] = '0;url='.$MODULE.'films/lecture.php'; - $affich = 'Veuillez patienter pendant la construction des menus...'; }elseif($_GET['mode']==1 && is_array($title)){ Modified: trunk/module/films/films.tpl =================================================================== --- trunk/module/films/films.tpl 2007-03-17 20:46:57 UTC (rev 110) +++ trunk/module/films/films.tpl 2007-03-18 11:05:07 UTC (rev 111) @@ -90,7 +90,7 @@ {/foreach} </select> - Les param\xE8tres suivants ne seront pris en compte qu'apr\xE8s le red\xE9marage du films. Ils seront sauvegard\xE9s dans Easybox pour les prochaines utilisations de easybox<br /> + Les param\xE8tres suivants ne seront pris en compte qu'apr\xE8s le red\xE9marage complet d'Easybox. Ils seront sauvegard\xE9s dans Easybox pour les prochaines utilisations de easybox<br /> <font size="3"><u>Position</u></font> : <input type=text bgcolor="{#COULEUR_FOND_RADIO#}" name="sub_margin" size=3 maxlength=3 value="{$sub_margin}"><br> <br> <font size="3"><u>Couleur</u></font> :<br> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2007-03-18 13:32:06
|
Revision: 108 http://svn.sourceforge.net/easybox-mod/?rev=108&view=rev Author: aragornis Date: 2007-03-17 08:32:09 -0700 (Sat, 17 Mar 2007) Log Message: ----------- modifsssss pour titou ;) Modified Paths: -------------- trunk/_framework/demarrage.php trunk/module/films/lecture.php trunk/skin/simple/demarrage.tpl trunk/skin/simplegreen/demarrage.tpl Modified: trunk/_framework/demarrage.php =================================================================== --- trunk/_framework/demarrage.php 2007-03-17 13:18:47 UTC (rev 107) +++ trunk/_framework/demarrage.php 2007-03-17 15:32:09 UTC (rev 108) @@ -28,10 +28,10 @@ $etape = $_GET['etape']; } - if($vers_fbx<=4){ - $META['service'] = 'ts://127.0.0.1?pcr=68&aud=69(en,mp2)&vid=68'; - $META['display_aspect_ratio_conversion'] = 'letterbox'; - } + if($vers_fbx<=4){ + $META['service'] = 'ts://127.0.0.1?pcr=68&aud=69(en,mp2)&vid=68'; + $META['display_aspect_ratio_conversion'] = 'letterbox'; + } //-- Chargement des donn\xE9es de configuration $intro = $ini['demarrage']['intro']; Modified: trunk/module/films/lecture.php =================================================================== --- trunk/module/films/lecture.php 2007-03-17 13:18:47 UTC (rev 107) +++ trunk/module/films/lecture.php 2007-03-17 15:32:09 UTC (rev 108) @@ -254,7 +254,9 @@ { if($cansetfrontpannel and $VLC['etat']=='playing') { - set_refresh(2, '2;url=lecture.php'); + if($vers_fbx>4){ + set_refresh(2, '2;url=lecture.php'); + } $META['front_panel'] = calcul_hours($VLC['duree_courante']); } } else Modified: trunk/skin/simple/demarrage.tpl =================================================================== --- trunk/skin/simple/demarrage.tpl 2007-03-17 13:18:47 UTC (rev 107) +++ trunk/skin/simple/demarrage.tpl 2007-03-17 15:32:09 UTC (rev 108) @@ -11,7 +11,7 @@ </td></tr> <tr><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>1}done{else}while{/if}.gif" width="50" height="50" border="0"></td><td valign="middle"> Initialisation</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> Modified: trunk/skin/simplegreen/demarrage.tpl =================================================================== --- trunk/skin/simplegreen/demarrage.tpl 2007-03-17 13:18:47 UTC (rev 107) +++ trunk/skin/simplegreen/demarrage.tpl 2007-03-17 15:32:09 UTC (rev 108) @@ -11,7 +11,7 @@ </td></tr> <tr><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>1}done{else}while{/if}.gif" width="50" height="50" border="0"></td><td valign="middle"> Initialisation</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> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2007-03-19 00:35:37
|
Revision: 112 http://svn.sourceforge.net/easybox-mod/?rev=112&view=rev Author: aragornis Date: 2007-03-18 08:47:42 -0700 (Sun, 18 Mar 2007) Log Message: ----------- v4 Modified Paths: -------------- trunk/skin/simplegreen/couleur.conf Removed Paths: ------------- trunk/module/htmllight/ Modified: trunk/skin/simplegreen/couleur.conf =================================================================== --- trunk/skin/simplegreen/couleur.conf 2007-03-18 11:05:07 UTC (rev 111) +++ trunk/skin/simplegreen/couleur.conf 2007-03-18 15:47:42 UTC (rev 112) @@ -67,7 +67,7 @@ COULEUR_FOND_AVERTISSEMENT = "#B7D88B3F" #///////////////////////////////// Fond d'\xE9cran /////////////////////////////////// -BACKGROUND = "background.png" -TYPE = "ext" +BACKGROUND = "background.jpg" +TYPE = "int" ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2007-04-25 17:59:12
|
Revision: 125 http://svn.sourceforge.net/easybox-mod/?rev=125&view=rev Author: aragornis Date: 2007-04-25 10:58:20 -0700 (Wed, 25 Apr 2007) Log Message: ----------- -> Acc?\195?\169l?\195?\169ration de la r?\195?\169cup?\195?\169ration des informations des films sur allocin?\195?\169 -> Les bandes annonces utilis?\195?\169es sont celles de allocin?\195?\169 -> Nouvelle pr?\195?\169sentation des fiches film avec miniatures -> Module Yahoo-Clips avec miniatures et possibilit?\195?\169 de faire des recherches directement pour trouver le clip qui vous plait -> R?\195?\169paration d'un bug sur la gestion pr?\195?\169c?\195?\169dent/suivant Modified Paths: -------------- trunk/_framework/lib/get_info.php trunk/_framework/lib/img_cr.php trunk/_utilisateur/modules.db trunk/module/films/fichefilm.php trunk/module/films/fichefilm.tpl trunk/module/films/play.php trunk/skin/mediacenter/framework_skin.php trunk/skin/simple/framework_skin.php trunk/skin/simplegreen/framework_skin.php Added Paths: ----------- trunk/module/clips/ trunk/module/clips/clips.tpl trunk/module/clips/icone.gif trunk/module/clips/index1.php trunk/module/clips/play_clip.php trunk/ressources/icones/Clips.gif Removed Paths: ------------- trunk/module/allocine/cinejf.tpl Modified: trunk/_framework/lib/get_info.php =================================================================== --- trunk/_framework/lib/get_info.php 2007-04-22 13:32:29 UTC (rev 124) +++ trunk/_framework/lib/get_info.php 2007-04-25 17:58:20 UTC (rev 125) @@ -32,7 +32,7 @@ $res['genre'] = $row['genre']; $res['duree'] = $row['Duree']; $res['anne_prod'] = $row['production']; - $res['ba'] = $row['ba']; + $res['ba'] = unserialize($row['ba']); $res['inbdd'] = true; }elseif($rows2!="0" AND !$forced){ @@ -52,7 +52,7 @@ $res['genre'] = $row['genre']; $res['duree'] = $row['Duree']; $res['anne_prod'] = $row['production']; - $res['ba'] = $row['ba']; + $res['ba'] = unserialize($row['ba']); $res['inbdd'] = false; }else{ @@ -60,7 +60,7 @@ // 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>'; + $ereg = '<h4><a href="\/film\/fichefilm_gen_cfilm=(.{1,7}).html" class="link1">(.{1,150})<\/a><\/h4>'; preg_match_all("/$ereg/s", $pagerecherche, $valeur); $mini = -1; @@ -81,7 +81,7 @@ $res = "Erreur"; } } - + if($res != "Erreur"){ $res = info_allocineById($id); } @@ -89,7 +89,7 @@ $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_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(serialize($res['ba'])).'\')'); } @@ -173,7 +173,20 @@ // 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 = 'var longueur(.*)<\/h4>'; + preg_match("/$ereg/s", $filmrecherche, $valeur); + + $ereg = 'cfilm='.$id.'.html"><img src="(.{1,250})" width="100" height="80" border="0" alt="(.{1,150})"><\/a><a href="\/video\/player_gen_cmedia'; + preg_match_all("/$ereg/s", $valeur[1], $valeur); + + foreach($valeur[1] as $key=>$ba){ + $url = str_replace(array('img5.allocine.fr/acmedia/medias','.jpg','.gif'),array('mediaplayer.allocine.fr','_hd.flv','_hd.flv'),$ba); + if(@fclose(@fopen($url,'r'))){ + $res['ba'][] = array('nom'=>$valeur[2][$key],'ba'=>$url,'img'=>$ba); + } + } + + /*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); @@ -191,7 +204,6 @@ break; } } - if($filmrecherche = @file_get_contents('http://www.cinemovies.fr/players/media.php?IDfilm='.$id)){ if(PHP_OS == "WIN32" || PHP_OS == "WINNT"){ @@ -219,7 +231,7 @@ 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"; Modified: trunk/_framework/lib/img_cr.php =================================================================== --- trunk/_framework/lib/img_cr.php 2007-04-22 13:32:29 UTC (rev 124) +++ trunk/_framework/lib/img_cr.php 2007-04-25 17:58:20 UTC (rev 125) @@ -23,10 +23,10 @@ $w="93"; -$img = str_replace("\\", "/",$img); +/*$img = str_replace("\\", "/",$img); $img = ereg_replace("//", "/",$img); $img = str_replace("[", "*",$img); -$img = str_replace("]", "*",$img); +$img = str_replace("]", "*",$img);*/ define("IMAGE_FLIP_HORIZONTAL", 1); define("IMAGE_FLIP_VERTICAL", 2); define("IMAGE_FLIP_BOTH", 3); Modified: trunk/_utilisateur/modules.db =================================================================== (Binary files differ) Deleted: trunk/module/allocine/cinejf.tpl =================================================================== --- trunk/module/allocine/cinejf.tpl 2007-04-22 13:32:29 UTC (rev 124) +++ trunk/module/allocine/cinejf.tpl 2007-04-25 17:58:20 UTC (rev 125) @@ -1,36 +0,0 @@ -{section name=films loop=$FILMS max=4 start=$MIN} - - {cycle name=place assign=place print=false values="1,0"} - {if $smarty.section.films.first} - {if $MIN==0} - {$DESCRIPTION} - {/if} - - {if $MIN!=0} - {assign var=temp value=$MIN-4} - {attribbouton touche="green" lien="index1.php?start=$temp"} - <a href="index1.php?&start={$temp}"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> Pr\xE9c\xE9dent</a> - {/if} - <table border="0" cellpadding="2" cellspacing="0" width="500" height="360" align="center"><tr> - {/if} - <tr><td width="90" valign="top"><img width="90" height="120" border="0" src="{$IMG2FBX}{$FILMS[films].image|urlencode}&new_width=90&new_height=120&cache=1"></td> - <td valign=top align=left width="410"> - {if $FILMS[films].video!= ''} - <a onfocus='front_panel="{$FILMS[films].titre|truncate:12}";' href="playba_allocine.php?url={$FILMS[films].video|urlencode}&from_start={$MIN}">{$FILMS[films].titre|truncate:40} <img src="video.gif" border=0 width=20 height=20></a> - {else} - {$FILMS[films].titre|truncate:40} - {/if} - <br> - <font size="1">{$FILMS[films].desc|truncate:400}</font> - </td> - </tr> -{/section} -</table> - -{if $MIN+$smarty.section.films.total<count($FILMS)} - {assign var=temp value=$MIN+4} - {attribbouton touche="blue" lien="index1.php?start=$temp"} - <a href="index1.php?start={$temp}"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> Suivant</a> - -{/if} - Added: trunk/module/clips/clips.tpl =================================================================== --- trunk/module/clips/clips.tpl (rev 0) +++ trunk/module/clips/clips.tpl 2007-04-25 17:58:20 UTC (rev 125) @@ -0,0 +1,76 @@ +{if $SHOW!='rec'} + {assign var=NUM_ROW_AFFICH value=10} + {section name=clip loop=$CLIP max=$NUM_ROW_AFFICH start=$START} + {cycle name=place assign=place print=false values="4,3,2,1,0"} + {if $smarty.section.clip.first} + <table border="0" cellpadding="0" cellspacing="0" width="500" align="center"><tr> + {if $MIN!=0} + <td colspan="5" align=center>{precedent}</td></tr><tr> + {/if} + {/if} + + <td width="100" height="150"><a href="play_clip.php?clipid={$CLIP[clip].id}&show={$SHOW}&min={$MIN}{if $SHOW=='tous'}&lettre={$LETTRE}{/if}"><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="80" height="80" border="0" src="{$IMG2FBX}{$CLIP[clip].img|urlencode}&new_width=80&new_height=80&cache=1"></td></tr><tr height="70"><td width="100" height="70" valign="middle" align=center><font size="1">{$CLIP[clip].chanteur|wordwrap:18:"<br>":true}<br>{$CLIP[clip].titre|wordwrap:18:"<br>":true}</font></td></tr></table></a></td> + + {if $smarty.section.clip.iteration is div by 5 AND NOT $smarty.section.files.last} + </tr><tr> + {/if} + + {if $smarty.section.clip.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> + <tr><td colspan="5" align="center" height="25" valign="bottom">{if $MIN+$NUM_ROW_AFFICH < $TOTAL}{suivant} - {/if}{$DEB+$START} \xE0 {$FIN-10+$START} sur {$TOTAL}</td></tr> + </table> + + {if $SHOW=='tous'} + <TABLE cellspacing=0 cellpading=0> + <TR> + <TD align="center" width="30"><font size="1"><A hRef="index1.php?show=tous&lettre=0"><B>0-9</B></A></FONT></TD> + {section name=lettres loop=$lettres} + {if $smarty.section.lettres.iteration==14} + </TR><TR> + {/if} + <TD align="center" width="26"><font size="1"><A hRef="index1.php?show=tous&lettre={$lettres[lettres].0}"><B>{$lettres[lettres].1}</B></A></FONT></TD> + {if $smarty.section.lettres.last} + <TD align="center" width="30"> </TD> + {/if} + {/section} + </TR> + </TABLE> + {/if} + {/if} + + {/section} +{else} + +{section name=clip loop=$CLIP max=20 start=0} + {if $smarty.section.clip.first} + <table border="0" cellpadding="0" cellspacing="0" width="400" align="center"> + {/if} + {cycle name=color assign=COLOR print=false values="`$smarty.config.COULEUR_INTERFACE1`,`$smarty.config.COULEUR_INTERFACE2`"} + + <tr><td width="400" bgcolor="{$COLOR}"><a href="play_clip.php?clipid={$CLIP[clip].id}&show=rec&string={$string}"><table width="400" border="0" cellpadding="0" cellspacing="0" bgcolor="{$COLOR}" abgcolor="{#COULEUR_ALINK#}"><tr><td width="400">{$CLIP[clip].chanteur} - {$CLIP[clip].titre}</td></tr></table></a></td></tr> + + {if $smarty.section.clip.last} + </table> + {/if} +{sectionelse} + {if $string!=''}Aucun clip trouv\xE9 pour la requ\xEAte : "{$string}".{else}Veuillez entrer votre recherche ci-dessous.{/if} +{/section} + +<br>Recherche<br> <br><form name="form1" method="get" action="index1.php"> +<input name="show" type="hidden" value="rec"> +<input name="string" bgcolor="{#COULEUR_TEXTBOX#}" type="text" charset="digit|alpha|caps" value="" size="20"> +</form><br> +La touche {literal}#{/literal} permet de changer entre les minuscules/majuscules et les chiffres. +{/if} Added: trunk/module/clips/icone.gif =================================================================== (Binary files differ) Property changes on: trunk/module/clips/icone.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/clips/index1.php =================================================================== --- trunk/module/clips/index1.php (rev 0) +++ trunk/module/clips/index1.php 2007-04-25 17:58:20 UTC (rev 125) @@ -0,0 +1,83 @@ +<? +$RACINE_REP = "../../"; +require($RACINE_REP.'_framework/framework.php'); + +ini_set('user_agent', "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)"); +$LINK['red']= page_retour_menu(); +(isset($_GET['show'])?$show=$_GET['show']:$show='hit'); + +$MENU_ALT=array(array('lien'=>'index1.php?show=hit', 'nom'=>'Hit 100', 'selected'=>$show=='hit'), + array('lien'=>'index1.php?show=new', 'nom'=>'Nouveaut\xE9s', 'selected'=>$show=='new'), + array('lien'=>'index1.php?show=tous', 'nom'=>'Tous', 'selected'=>$show=='tous'), + array('lien'=>'index1.php?show=rec', 'nom'=>'Recherche', 'selected'=>$show=='rec')); + + +function get_videos_id($page){ + $contenu = str_replace("\r\n",'',@file_get_contents($page)); + $ereg = '<table cellpadding="0"><tr><td class="listitem"><a href="http:\/\/fr.music.yahoo.com\/ar-(.{1,50})" title="(.{1,50})">(.{1,50})<\/a><\/td><\/tr><\/table><\/td><td bgcolor="(.{1,90})<td><table cellpadding="0" width="100%"><tr><td class="listheader"><a href="javascript:playLAUNCHVideo\((.{1,10})\)" class="listheader" title="(.{1,70})">(.{1,70})<\/a><\/td>(.{1,1500})photo=(.{1,150})&url'; + preg_match_all("/$ereg/s", $contenu, $valeur); + foreach($valeur[2] as $key=>$val){ + $retour[] = array('chanteur'=>$valeur[2][$key], 'titre'=>$valeur[6][$key], 'id'=>$valeur[5][$key], 'img'=>$valeur[9][$key]); + } + $ereg = '<td align="right" class="listheaderinfo">([0-9]{1,5}) - ([0-9]{1,5}) sur ([0-9]{1,5}) clips'; + preg_match("/$ereg/s", $contenu, $valeur); + return(array($retour,$valeur[1],$valeur[2],$valeur[3])); +} + +function get_recherche($rec){ + $contenu = str_replace("\r\n",'',@file_get_contents('http://search.fr.music.yahoo.com/search/?p='.$rec.'&m=video')); + $ereg = '<td bgcolor=......><a href=javascript:playVideos\((.{1,10})\); title="(.{1,50})"><b>(.{1,50})<\/b><\/a><\/td><td bgcolor=......><a href=http:\/\/fr.music.yahoo.com\/ar-(.{1,50})><font title="(.{1,50})">(.{1,50})<\/font><\/a><\/td><td bgcolor=...... align=center class="yss_right'; + preg_match_all("/$ereg/s", $contenu, $valeur); + foreach($valeur[2] as $key=>$val){ + $retour[] = array('chanteur'=>$valeur[6][$key], 'titre'=>$valeur[2][$key], 'id'=>$valeur[1][$key]); + } + return(array($retour)); +} + +if($show=='hit'){ + $url = 'http://fr.music.yahoo.com/musicvideos/lists/top.asp?'; +}elseif($show=='new'){ + $url = 'http://fr.music.yahoo.com/musicvideos/lists/new.asp?'; +}elseif($show=='rec'){ +(isset($_GET['string'])?$string=$_GET['string']:$string=''); +}else{ +(isset($_GET['lettre'])?$lettre=$_GET['lettre']:$lettre='0'); + $url = 'http://fr.music.yahoo.com/musicvideos/lists/byalpha.asp?l='.$lettre.'&'; + $sup = '&lettre='.$lettre; +} + +// Lancement de la gestion multipage +start_multi('index1.php?show='.$show.$sup,10); + +// D\xE9termination de la page +$page = floor($min/20)+1; + +if((20*($page-1))==$min){ + $start = 0; +}else{ + $start = 10; +} + +if($show=='rec' and $string!=''){ + $res = get_recherche($string); +}else{ + $res = get_videos_id($url.'p='.$page); +} + +for ($i=0; $i<26; $i++){ + $lettres[] = array(chr(97+$i),chr(65+$i)); +} +$smarty->assign('LETTRE',$lettre); +$smarty->assign('string',$string); +$smarty->assign('lettres',$lettres); +$smarty->assign('SHOW',$show); +$smarty->assign('TOTAL',$res[3]); +$smarty->assign('DEB',$res[1]); +$smarty->assign('FIN',$res[2]); +$smarty->assign('CLIP',$res[0]); +$smarty->assign('MIN',$min); +$smarty->assign('START',$start); + +$smarty->assign('CONTENT',$smarty->fetch('clips.tpl')); +$smarty->display('interface.tpl'); +?> Added: trunk/module/clips/play_clip.php =================================================================== --- trunk/module/clips/play_clip.php (rev 0) +++ trunk/module/clips/play_clip.php 2007-04-25 17:58:20 UTC (rev 125) @@ -0,0 +1,53 @@ +<?php + +$RACINE_REP = "../../"; +require($RACINE_REP.'_framework/framework.php'); +$BACKGROUND='none'; +ini_set('user_agent', "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)"); +$id = $_REQUEST['clipid']; +$cookies = "LYC=l_v=1&l_lv=10&l_s=u02qvvtyuzzzuu43yqt44yuyvsxrq3sr&l_lid=cmsj68&l_lc=0_1_0_0_-1&l_um=0_0_1_0_0&l_mv=110_50; playerFullVersion=10; vCodec=9; LYS=l_fh=0&l_vo=myla; MVUserInfo3=130_10; B=14ojnad32otbe&b=3&s=9j; PVL=40276897_2159649_40553920_15703100_2157949_2162142_41461546_18875473_36490724_40687675_19050971_2158320_40554555_27145900_8975431_16235274_24934257_39147034_30161054_21242329_32585395_17968017_41461543_2156756|26_13_26_13_13_13_26_13_13_26_13_13_26_13_13_13_13_26_13_13_13_13_26_13;"; +$opts = array ( + 'http'=>array ( + 'method' => 'GET', + 'header' => "Cookie: $cookies\r\n" + ) +); + + $content = file_get_contents('http://mv.fr.music.yahoo.com/player/default.asp?cid=613&vid="'.$id.'"&sx=default.xml&ps=&bw=&fs=&tw=calmv&vo=&redirectURL=/musicvideos/',false,stream_context_create($opts)); + + $ereg = "var mediaHash = '(.{1,55})';"; + preg_match("/$ereg/s", $content, $valeur); + $mh = $valeur[1]; + + $url = 'http://launchtoday.fr.launch.yahoo.com/player/medialog.asp?vid='.$id.'&bw=510&mf=1&pid=505&ps=0&p1=2&p2=21&p3=2&rpid=35&pv=10&bp=Windows%2520NT&csid=791020104&uid=1886812234&pguid=einsJELEt4VkQCKMov00bg&etid=0&uguid=3e5u3891dirro&fcv=&mh='.$mh.'&z=ms.asx'; + + save_variable('backToURL', dirname($_SERVER['SCRIPT_NAME']).'/index1.php?show='.$_GET['show'].'&start='.$_GET['min'].'&lettre='.$_GET['lettre'].'&string='.$_GET['string']); + play_fichier('type=40',$url,0,'backToURL'); + + $LINK['stop']=$MODULE.'films/lecture.php?control=stop'; + $LINK['play']=$MODULE.'films/lecture.php?control=play'; + $LINK['pause']=$MODULE.'films/lecture.php?control=pause'; + $LINK['info']=$MODULE.'films/info.php'; + $LINK['options']=$MODULE.'films/info.php'; + $LINK['blue']=$MODULE.'films/lecture.php?savesignet=1'; + $LINK['red']=$MODULE.'films/lecture.php?next_ss=1'; + $LINK['yellow']=$MODULE.'films/info.php?module=infos'; + $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'; + +?> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<html> +<head> +<meta name="refresh" content="0;url=../films/lecture.php"> +<script language="javascript" src="/fb2ie.js"> +</script> +</head> +<body></body></html> + Modified: trunk/module/films/fichefilm.php =================================================================== --- trunk/module/films/fichefilm.php 2007-04-22 13:32:29 UTC (rev 124) +++ trunk/module/films/fichefilm.php 2007-04-25 17:58:20 UTC (rev 125) @@ -16,12 +16,10 @@ $film = substr(basename($signetsav[2]),0,strrpos(basename($signetsav[2]),".")); } } - - if (isset($_REQUEST['filmid'])) - { + + if (isset($_REQUEST['filmid'])){ $id=$_REQUEST['filmid']; - } else - { + }else{ $id = 0; } @@ -29,35 +27,27 @@ save_variable('fiche_film',$film); - if (isset($_GET['fichier'])) - { + if (isset($_GET['fichier'])){ $fichier = stripslashes(urldecode($_GET['fichier'])); } - if ($film!="" or $id!=0) - { + if ($film!="" or $id!=0){ $info = info_allocine($film, false,$id); - if ($info == "Aucun film trouv\xE9") - { + if ($info == "Aucun film trouv\xE9"){ $contenant = "Aucun film trouv\xE9"; - } else if ($info == "erreur") - { + }elseif ($info == "erreur"){ $contenant = "Service indisponible"; - } else - { - if ($info['inbdd']) - { + }else{ + if ($info['inbdd']){ $expl = Array(); $explo = explode(", ",$info['realisateur']); - foreach ($explo as $explode) - { + foreach ($explo as $explode){ array_push($expl,trim($explode)); } sort($expl); $info['realisateur'] = ''; - foreach ($expl as $exp) - { + foreach ($expl as $exp){ if ($info['realisateur']) $info['realisateur'] .= ', '; if ($ini['explorateur']['afficher_personnes'] == 'oui') $info['realisateur'] .= '<a href="catalogue.php?tri=perso&suiv='.urlencode($exp).'">'.$exp.'</a>'; @@ -66,14 +56,12 @@ } $expl = Array(); $explo = explode(", ",$info['acteurs']); - foreach ($explo as $explode) - { + foreach ($explo as $explode){ array_push($expl,trim($explode)); } sort($expl); $info['acteurs'] = ''; - foreach ($expl as $exp) - { + foreach ($expl as $exp){ if ($info['acteurs']) $info['acteurs'] .= ', '; if ($ini['explorateur']['afficher_personnes'] == 'oui') $info['acteurs'] .= '<a href="catalogue.php?tri=perso&suiv='.urlencode($exp).'">'.$exp.'</a>'; @@ -82,50 +70,42 @@ } $expl = Array(); $explo = explode(", ",$info['nationalite']); - foreach ($explo as $explode) - { + foreach ($explo as $explode){ array_push($expl,trim($explode)); } sort($expl); $info['nationalite'] = ''; - foreach ($expl as $exp) - { + foreach ($expl as $exp){ if($info['nationalite']) $info['nationalite'] .= ', '; $info['nationalite'] .= '<a href="catalogue.php?tri=film&suiv='.urlencode($exp).'">'.$exp.'</a>'; } $expl = Array(); $explo = explode(", ",$info['genre']); - foreach ($explo as $explode) - { + foreach ($explo as $explode){ array_push($expl,trim($explode)); } sort($expl); $info['genre'] = ''; - foreach ($expl as $exp) - { + foreach ($expl as $exp){ if ($info['genre']) $info['genre'] .= ', '; $info['genre'] .= '<a href="catalogue.php?tri=genre&suiv='.urlencode($exp).'">'.$exp.'</a>'; } } } - $flux=explode(";",substr($info['ba'], 0, -1)); - $info['ba']=array(); - - foreach ($flux as $flux1) - { - if($flux1!='') $info['ba'][]=explode(",",$flux1); - } - - if (is_array($info['ba'])) array_cleanse($info['ba']); - - if ($disable) - { + if(count($info['ba'])){ + foreach($info['ba'] as $key=>$ba){ + $t = explode(' - ',$ba['nom']); + $info['ba'][$key]['nom'] = stripslashes($t[1]); + } + } + + if ($disable){ $smarty->assign('more','... <a href="info.php?getmoreinfo=1">Suite</a>'); - } else - { + }else{ $smarty->assign('more','... <a href="fichefilm.php?getmoreinfo=1&film='.urlencode($film).'&fichier='.urlencode($fichier).'">Suite</a>'); - } + $smarty->assign('more2','fichefilm.php?getmorevideo=1&film='.urlencode($film).'&fichier='.urlencode($fichier)); + } $smarty->assign('ba',$info['ba']); @@ -135,28 +115,46 @@ $smarty->assign('info',$info); $smarty->assign('_GET',$_GET); - if(isset($disable)) - { - if ($_GET['getmoreinfo']==1) - { + if(isset($disable)){ + if ($_GET['getmoreinfo']==1){ $CONTENT .= '<font size=4>R\xE9sum\xE9 pour '.$film.'</font><br> <br> <br>'; $CONTENT .= strip_tags($info['synopsis']); $CONTENT .= '<br> <br><a href="info.php">Retour</a>'; $contenant = $CONTENT; - } else - { + }else{ $contenant = $smarty->fetch('fichefilm.tpl'); } - } else if ($_GET['getmoreinfo']) - { + }elseif ($_GET['getmoreinfo']){ $CONTENT .= '<font size=4>R\xE9sum\xE9 pour '.$film.'</font><br> <br> <br>'; $CONTENT .= strip_tags($info['synopsis']); $CONTENT .= '<br> <br><img src="{$INTERFACE_REP}btn_rouge.gif" border="0"> <a href="fichefilm.php?film='.urlencode($film).'&fichier='.urlencode($fichier).'">Retour</a>'; $LINK['red'] = 'fichefilm.php?film='.urlencode($film).'&fichier='.urlencode($fichier); $smarty->assign('AVERTISSEMENT',$CONTENT); $smarty->display('avertissement.tpl'); - } else - { + }elseif ($_GET['getmorevideo']){ + $CONTENT .= '<font size=4>Toutes les vid\xE9os pour '.$film.'</font><br> <br><table border="0" cellpadding="0" cellspacing="0" width="500" height="100" align="center"><tr>'; + $i=1; + $c=count($info['ba']); + foreach($info['ba'] as $ba){ + $CONTENT .= '<td><a href="play.php?toplay='.urlencode($ba['ba']).'&titre='.urlencode($info['nom']).'&type=ba"><table border="0" cellpadding="0" cellspacing="0" width="80" height="100" bgcolor="'.$_COULEUR['COULEUR_FOND1'].'" abgcolor="'.$_COULEUR['COULEUR_TABLE_SELECTED'].'"><tr height="65"><td width="80" height="65" valign="middle" align="center"><img src="'.$RACINE_REP.'_framework/lib/img_cr.php?local=1&formatw=75&formath=60&img='.urlencode($ba['img']).'" border="0" width="75" height="60"></td></tr><tr height="35"><td width="80" height="35" valign="middle" align="center">'.substr($ba['nom'],0,30).'</td></tr></table></a></td>'; + if(($i%5)==0 and $i!=$c){ + $CONTENT .= '</tr><tr>'; + } + if($i==$c){ + while(($i%5)!=0){ + $i++; + $CONTENT .= '<td> </td>'; + } + $CONTENT .= '</tr></table>'; + } + $i++; + } + + $CONTENT .= '<br> <br><img src="{$INTERFACE_REP}btn_rouge.gif" border="0"> <a href="fichefilm.php?film='.urlencode($film).'&fichier='.urlencode($fichier).'">Retour</a>'; + $LINK['red'] = 'fichefilm.php?film='.urlencode($film).'&fichier='.urlencode($fichier); + $smarty->assign('AVERTISSEMENT',$CONTENT); + $smarty->display('avertissement.tpl'); + }else{ $smarty->assign('CONTENT',$smarty->fetch('fichefilm.tpl')); $smarty->display('interface.tpl'); } Modified: trunk/module/films/fichefilm.tpl =================================================================== --- trunk/module/films/fichefilm.tpl 2007-04-22 13:32:29 UTC (rev 124) +++ trunk/module/films/fichefilm.tpl 2007-04-25 17:58:20 UTC (rev 125) @@ -2,8 +2,8 @@ <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"} + <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}{if $_GET.togo=='cine'}<a href="/module/seances/voirsalle.php?salle={$_GET.salle}"> - Retour \xE0 la liste des films du cin\xE9ma</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} @@ -11,16 +11,23 @@ <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} + {$info.synopsis|strip_tags|wordwrap:60|htmlentities|truncate:530:$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 NOT $disable} + {section name=ba loop=$ba max=5} + {if $smarty.section.ba.first} + <table border="0" cellpadding="0" cellspacing="0" width="500" height="100" align="center"><tr> + {/if} + <td><a href="play.php?toplay={$ba[ba].ba|urlencode}&titre={$info.nom|urlencode}&type=ba"><table border="0" cellpadding="0" cellspacing="0" width="80" height="100" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="65"><td width="80" height="65" valign="middle" align="center"><img src="{$RACINE_REP}_framework/lib/img_cr.php?local=1&formatw=75&formath=60&img={$ba[ba].img|urlencode}" border="0" width="75" height="60"></td></tr><tr height="35"><td width="80" height="35" valign="middle" align="center">{$ba[ba].nom|truncate:20:"":true}</td></tr></table></a></td> + {if $smarty.section.ba.last} + {if count($ba)>$smarty.section.ba.total} + <td><a href="{$more2}"><table border="0" cellpadding="0" cellspacing="0" width="80" height="100" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="65"><td width="80" height="65" valign="middle" align="center"><img src="{$RACINE_REP}_framework/lib/img_cr.php?local=1&formatw=75&formath=60&img={'http://a69.g.akamai.net/n/69/10688/v1/img5.allocine.fr/acmedia/skin/AlloCineV5/habillage/affichettemedia.gif'|urlencode}" border="0" width="75" height="60"></td></tr><tr height="35"><td width="80" height="35" valign="middle" align="center">Plus de vid\xE9os</td></tr></table></a></td> + {/if} + </tr></table> + {/if} + {/section} + {/if} - {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> Modified: trunk/module/films/play.php =================================================================== --- trunk/module/films/play.php 2007-04-22 13:32:29 UTC (rev 124) +++ trunk/module/films/play.php 2007-04-25 17:58:20 UTC (rev 125) @@ -102,6 +102,8 @@ if($_GET['type']=='jt'){ play_fichier($playweb,$basename,0,'jt'); +}elseif($_GET['type']=='ba'){ + play_fichier($playweb,$basename,0,'ba',$_REQUEST['titre']); }elseif($_GET['type']=='webtv'){ play_fichier($playweb,$basename,0,'webtv'); }elseif(eregi("http://",$basename) || eregi("mms://",$basename)){ Added: trunk/ressources/icones/Clips.gif =================================================================== (Binary files differ) Property changes on: trunk/ressources/icones/Clips.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/skin/mediacenter/framework_skin.php =================================================================== --- trunk/skin/mediacenter/framework_skin.php 2007-04-22 13:32:29 UTC (rev 124) +++ trunk/skin/mediacenter/framework_skin.php 2007-04-25 17:58:20 UTC (rev 125) @@ -64,13 +64,13 @@ } function _multipage_prec(){ -global $_multipage_lien, $_multipage_step, $MENU_ALT, $INTERFACE_REP, $min; +global $_multipage_lien, $_multipage_step, $MENU_ALT, $INTERFACE_REP, $min, $LINK; $MENU_ALT[]=array('lien'=>$_multipage_lien.'&start='.max(0,$min-$_multipage_step), 'nom'=>'<img src="'.$INTERFACE_REP.'btn_vert.gif" border="0"> Pr\xE9c\xE9dent', 0,'front_pannel'=>'Pr\xE9c\xE9dent'); $LINK['green']=$_multipage_lien.'&start='.max(0,$min-$_multipage_step); } function _multipage_suiv(){ -global $_multipage_lien, $_multipage_step, $MENU_ALT, $INTERFACE_REP, $min; +global $_multipage_lien, $_multipage_step, $MENU_ALT, $INTERFACE_REP, $min, $LINK; $MENU_ALT[]=array('lien'=>$_multipage_lien.'&start='.($min+$_multipage_step), 'nom'=>'<img src="'.$INTERFACE_REP.'btn_bleu.gif" border="0"> Suivant', 0,'front_pannel'=>'Suivant'); $LINK['blue']=$_multipage_lien.'&start='.($min+$_multipage_step); } Modified: trunk/skin/simple/framework_skin.php =================================================================== --- trunk/skin/simple/framework_skin.php 2007-04-22 13:32:29 UTC (rev 124) +++ trunk/skin/simple/framework_skin.php 2007-04-25 17:58:20 UTC (rev 125) @@ -60,13 +60,13 @@ } function _multipage_prec(){ -global $_multipage_lien, $_multipage_step, $MENU_ALT, $INTERFACE_REP, $min; +global $_multipage_lien, $_multipage_step, $MENU_ALT, $INTERFACE_REP, $min, $LINK; echo '<a href="'.$_multipage_lien.'&start='.max(0,$min-$_multipage_step).'" onfocus=\'aide="Page pr\xE9c\xE9dente";\'><img src="'.$INTERFACE_REP.'btn_vert.gif" border="0"> <font size="2">Pr\xE9c\xE9dent</font></a>'; $LINK['green']=$_multipage_lien.'&start='.max(0,$min-$_multipage_step); } function _multipage_suiv(){ -global $_multipage_lien, $_multipage_step, $MENU_ALT, $INTERFACE_REP, $min; +global $_multipage_lien, $_multipage_step, $MENU_ALT, $INTERFACE_REP, $min, $LINK; echo '<a href="'.$_multipage_lien.'&start='.($min+$_multipage_step).'" onfocus=\'aide="Page suivante";\'><img src="'.$INTERFACE_REP.'btn_bleu.gif" border="0"> <font size="2">Suivant</font></a>'; $LINK['blue']=$_multipage_lien.'&start='.($min+$_multipage_step); } Modified: trunk/skin/simplegreen/framework_skin.php =================================================================== --- trunk/skin/simplegreen/framework_skin.php 2007-04-22 13:32:29 UTC (rev 124) +++ trunk/skin/simplegreen/framework_skin.php 2007-04-25 17:58:20 UTC (rev 125) @@ -47,6 +47,28 @@ // D\xE9finit un filtre qui fait jouer le background en tout dernier lieu, quand l'ensemble des templates de la page ont \xE9t\xE9 compil\xE9s. $smarty->register_outputfilter("background"); +// Gestion des multipages +$smarty->register_function('precedent', '_multipage_prec'); +$smarty->register_function('suivant', '_multipage_suiv'); +function start_multi($lien,$step){ +global $_multipage_lien, $_multipage_step, $_GET, $min, $smarty; + $_multipage_lien = $lien; + $_multipage_step = $step; + (isset($_GET['start'])?$min=$_GET['start']:$min=0); + $smarty->assign('MIN',&$min); +} + +function _multipage_prec(){ +global $_multipage_lien, $_multipage_step, $MENU_ALT, $INTERFACE_REP, $min, $LINK; + $MENU_ALT[]=array('lien'=>$_multipage_lien.'&start='.max(0,$min-$_multipage_step), 'nom'=>'<img src="'.$INTERFACE_REP.'btn_vert.gif" border="0"> Pr\xE9c\xE9dent', 0,'front_pannel'=>'Pr\xE9c\xE9dent'); + $LINK['green']=$_multipage_lien.'&start='.max(0,$min-$_multipage_step); +} + +function _multipage_suiv(){ +global $_multipage_lien, $_multipage_step, $MENU_ALT, $INTERFACE_REP, $min, $LINK; + $MENU_ALT[]=array('lien'=>$_multipage_lien.'&start='.($min+$_multipage_step), 'nom'=>'<img src="'.$INTERFACE_REP.'btn_bleu.gif" border="0"> Suivant', 0,'front_pannel'=>'Suivant'); + $LINK['blue']=$_multipage_lien.'&start='.($min+$_multipage_step); +} ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2007-04-27 12:18:46
|
Revision: 128 http://svn.sourceforge.net/easybox-mod/?rev=128&view=rev Author: aragornis Date: 2007-04-27 05:18:41 -0700 (Fri, 27 Apr 2007) Log Message: ----------- Ajout du module Dailymotion Modified Paths: -------------- trunk/_utilisateur/modules.db Added Paths: ----------- trunk/module/dailymotion/ trunk/module/dailymotion/dailymotion.tpl trunk/module/dailymotion/icone.gif trunk/module/dailymotion/index1.php trunk/module/dailymotion/play_dailymotion.php trunk/ressources/icones/Dailymotion.gif Modified: trunk/_utilisateur/modules.db =================================================================== (Binary files differ) Added: trunk/module/dailymotion/dailymotion.tpl =================================================================== --- trunk/module/dailymotion/dailymotion.tpl (rev 0) +++ trunk/module/dailymotion/dailymotion.tpl 2007-04-27 12:18:41 UTC (rev 128) @@ -0,0 +1,38 @@ +{assign var=NUM_ROW_AFFICH value=10} +{section name=clip loop=$CLIP max=$NUM_ROW_AFFICH start=0} +{cycle name=place assign=place print=false values="4,3,2,1,0"} + {if $smarty.section.clip.first} + <table border="0" cellpadding="0" cellspacing="0" width="500" align="center"><tr> + {if $MIN!=0} + <td colspan="5" align=center>{precedent}</td></tr><tr> + {/if} + {/if} + + <td width="100" height="150"><a href="play_dailymotion.php?url={$CLIP[clip].url|urlencode}&show={$SHOW}&min={$MIN}&string={$string}"><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="80" height="60" border="0" src="{$IMG2FBX}{$CLIP[clip].img|urlencode}&new_width=80&new_height=60&cache=1"></td></tr><tr height="70"><td width="100" height="70" valign="middle" align=center><font size="1">{$CLIP[clip].titre|truncate:30:"":true|wordwrap:15:"<br>":true} ({$CLIP[clip].temps})</font></td></tr></table></a></td> + + {if $smarty.section.clip.iteration is div by 5 AND NOT $smarty.section.files.last} + </tr><tr> + {/if} + + {if $smarty.section.clip.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> + <tr><td colspan="5" align="center" height="25" valign="bottom">{if $MIN+$NUM_ROW_AFFICH < $TOTAL}{suivant} - {/if}{$DEB} \xE0 {$FIN}</td></tr> + </table> + {/if} +{sectionelse} + {if $SHOW=='rec'} + {if $string!=''}Aucune vid\xE9o trouv\xE9e pour la requ\xEAte : "{$string}".{else}Veuillez entrer votre recherche ci-dessous.{/if} + {/if} +{/section} + +{if $SHOW=='rec'} +<br>Recherche<br> <br><form name="form1" method="get" action="index1.php"> +<input name="show" type="hidden" value="rec"> +<input name="string" bgcolor="{#COULEUR_TEXTBOX#}" type="text" charset="digit|alpha|caps" value="" size="20"> +</form><br> +La touche {literal}#{/literal} permet de changer entre les minuscules/majuscules et les chiffres. +{/if} Added: trunk/module/dailymotion/icone.gif =================================================================== (Binary files differ) Property changes on: trunk/module/dailymotion/icone.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/dailymotion/index1.php =================================================================== --- trunk/module/dailymotion/index1.php (rev 0) +++ trunk/module/dailymotion/index1.php 2007-04-27 12:18:41 UTC (rev 128) @@ -0,0 +1,78 @@ +<? +$RACINE_REP = "../../"; +require($RACINE_REP.'_framework/framework.php'); + +ini_set('user_agent', "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)"); +$LINK['red']= page_retour_menu(); +(isset($_GET['show'])?$show=$_GET['show']:$show='vus'); + +$MENU_ALT=array(array('lien'=>'index1.php?show=recent', 'nom'=>'R\xE9cents', 'selected'=>$show=='recent'), + array('lien'=>'index1.php?show=vus', 'nom'=>'Plus vus', 'selected'=>$show=='vus'), + array('lien'=>'index1.php?show=note', 'nom'=>'Mieux not\xE9s', 'selected'=>$show=='note'), + array('lien'=>'index1.php?show=rec', 'nom'=>'Recherche', 'selected'=>$show=='rec')); + + +function get_videos_id($page){ + $xml = simplexml_load_file($page); + + foreach($xml->channel->item as $item){ + $img = ''; + foreach($item->xpath('media:thumbnail') as $k){ + $img = $k['url']; + } + foreach($item->xpath('enclosure') as $k){ + $url = $k['url']; + $length = intval($k['length']); + } + $retour[] = array('temps'=>date('i:s',$length), 'titre'=>utf8_decode($item->title), 'url'=>$url, 'img'=>$img); + } + return($retour); +} + +if($show=='recent'){ + $url = 'http://www.dailymotion.com/rss/'; + $nb_p = 15; +}elseif($show=='vus'){ + $url = 'http://www.dailymotion.com/rss/visited-week/'; + $nb_p = 5; +}elseif($show=='note'){ + $url = 'http://www.dailymotion.com/rss/rated-week/'; + $nb_p = 5; +}elseif($show=='rec'){ + (isset($_GET['string'])?$string=$_GET['string']:$string=''); + $url = 'http://www.dailymotion.com/rss/relevance/search/'.$string.'/'; + $sup = '&string='.$string; +} + +// Lancement de la gestion multipage +start_multi('index1.php?show='.$show.$sup,10); + +// D\xE9termination de la page +$page = floor($min/10)+1; + +$url = $url.$page; + +if(!($show=='rec' and $string=='')){ + $res = get_videos_id($url); + if(count($res)==10){ + $total = ($page+5)*10; + }else{ + $total = ($page-1)*10+count($res); + } + $deb = ($page-1)*10+1; + $fin = $page*10; +} + +$smarty->assign('string',$string); +$smarty->assign('lettres',$lettres); +$smarty->assign('SHOW',$show); +$smarty->assign('TOTAL',$total); +$smarty->assign('DEB',$deb); +$smarty->assign('FIN',$fin); +$smarty->assign('CLIP',$res); +$smarty->assign('MIN',$min); +$smarty->assign('START',$start); + +$smarty->assign('CONTENT',$smarty->fetch('dailymotion.tpl')); +$smarty->display('interface.tpl'); +?> Added: trunk/module/dailymotion/play_dailymotion.php =================================================================== --- trunk/module/dailymotion/play_dailymotion.php (rev 0) +++ trunk/module/dailymotion/play_dailymotion.php 2007-04-27 12:18:41 UTC (rev 128) @@ -0,0 +1,38 @@ +<?php +$RACINE_REP = "../../"; +require($RACINE_REP.'_framework/framework.php'); +$BACKGROUND='none'; + + $url = urldecode($_REQUEST['url']); + + + save_variable('backToURL', dirname($_SERVER['SCRIPT_NAME']).'/index1.php?show='.$_GET['show'].'&start='.$_GET['min'].'&string='.$_GET['string']); + play_fichier('type=40',$url,0,'backToURL'); + + $LINK['stop']=$MODULE.'films/lecture.php?control=stop'; + $LINK['play']=$MODULE.'films/lecture.php?control=play'; + $LINK['pause']=$MODULE.'films/lecture.php?control=pause'; + $LINK['info']=$MODULE.'films/info.php'; + $LINK['options']=$MODULE.'films/info.php'; + $LINK['blue']=$MODULE.'films/lecture.php?savesignet=1'; + $LINK['red']=$MODULE.'films/lecture.php?next_ss=1'; + $LINK['yellow']=$MODULE.'films/info.php?module=infos'; + $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'; + +?> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<html> +<head> +<meta name="refresh" content="0;url=../films/lecture.php"> +<script language="javascript" src="/fb2ie.js"> +</script> +</head> +<body></body></html> + Added: trunk/ressources/icones/Dailymotion.gif =================================================================== (Binary files differ) Property changes on: trunk/ressources/icones/Dailymotion.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...> - 2007-04-27 19:24:11
|
Revision: 129 http://svn.sourceforge.net/easybox-mod/?rev=129&view=rev Author: aragornis Date: 2007-04-27 12:24:05 -0700 (Fri, 27 Apr 2007) Log Message: ----------- Modif sur dailymotion Modified Paths: -------------- trunk/_utilisateur/podcast.db trunk/_utilisateur/rss.db trunk/module/dailymotion/index1.php Modified: trunk/_utilisateur/podcast.db =================================================================== (Binary files differ) Modified: trunk/_utilisateur/rss.db =================================================================== (Binary files differ) Modified: trunk/module/dailymotion/index1.php =================================================================== --- trunk/module/dailymotion/index1.php 2007-04-27 12:18:41 UTC (rev 128) +++ trunk/module/dailymotion/index1.php 2007-04-27 19:24:05 UTC (rev 129) @@ -24,7 +24,9 @@ $url = $k['url']; $length = intval($k['length']); } - $retour[] = array('temps'=>date('i:s',$length), 'titre'=>utf8_decode($item->title), 'url'=>$url, 'img'=>$img); + $vid = $item->xpath('media:group/media:content'); + + $retour[] = array('temps'=>date('i:s',$length), 'titre'=>utf8_decode($item->title), 'url'=>$vid[0]['url'], 'img'=>$img); } return($retour); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2007-05-01 20:19:03
|
Revision: 142 http://svn.sourceforge.net/easybox-mod/?rev=142&view=rev Author: aragornis Date: 2007-05-01 13:19:00 -0700 (Tue, 01 May 2007) Log Message: ----------- Mise ?\195?\160 jour de la navigation multipage avec gestion de la pagination + r?\195?\169paration d'un bug sur MacOS Mise ?\195?\160 jour des quatre modules ultilisant la gestion multipage et des explorateurs Mise en place du htaccess pour garantir la compatibilit?\195?\169 sur MacOS Mise ?\195?\160 jour de la skin simplegreen pour qu'elle remarche Modified Paths: -------------- trunk/module/_explorateur/explorateur.tpl trunk/module/_explorateur/index1.php trunk/module/cinefil/index1.php trunk/module/cinefil/sorties_cine.tpl trunk/module/clips/clips.tpl trunk/module/clips/index1.php trunk/module/dailymotion/dailymotion.tpl trunk/module/dailymotion/index1.php trunk/module/youtube/index1.php trunk/module/youtube/youtube.tpl trunk/skin/simple/framework_skin.php trunk/skin/simplegreen/framework_skin.php Added Paths: ----------- trunk/.htaccess Added: trunk/.htaccess =================================================================== --- trunk/.htaccess (rev 0) +++ trunk/.htaccess 2007-05-01 20:19:00 UTC (rev 142) @@ -0,0 +1 @@ +php_flag short_open_tag on Modified: trunk/module/_explorateur/explorateur.tpl =================================================================== --- trunk/module/_explorateur/explorateur.tpl 2007-05-01 15:37:58 UTC (rev 141) +++ trunk/module/_explorateur/explorateur.tpl 2007-05-01 20:19:00 UTC (rev 142) @@ -98,8 +98,8 @@ {*######## Fin Affichage des raccourcis rapides ########*} -{if $MIN!=0} - <tr><td colspan="2">{precedent} <a href="{$PAGE_EXPLO}?start=0&directory={$REP|urlencode}&mode={$MODE}"><font size=2>D\xE9but du r\xE9pertoire</font></a></td></tr> +{if !$_multipage.is_first_page} + <tr><td colspan="2">{precedent}<font size="1"> <a href="{$PAGE_EXPLO}?start=0&directory={$REP|urlencode}&mode={$MODE}">D\xE9but du r\xE9pertoire</a></font></td></tr> {/if} {if $Nb_rep_path >='2' AND $MIN==0} @@ -143,13 +143,8 @@ {/if} {/section} -{if $MIN+$smarty.section.files.total<count($T_affich)} - <tr><td colspan="2"><table><tr><td>{suivant} - <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> -{else} - <tr><td colspan="2"><table><tr><td><font size=2>Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td> -{/if} + <tr><td colspan="2"><table><tr><td>{if !$_multipage.is_last_page}{suivant}<font size=1> - <a href="{$PAGE_EXPLO}?start={$_multipage.min_max}&directory={$REP|urlencode}&mode={$MODE}">Fin du r\xE9pertoire</a> - </font>{/if}{pagination}</td> - <td width="30" align="center"> {if $PLAYREP} <a href="{$PAGE_LECT_REP}?toplay={$REP|urlencode}&type=playrep" onfocus='aide="Lire le dossier en entier";'><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$SKIN_REP}dossier/rep_all.gif" border="0" width="20" height="20"></td></tr></table></a> @@ -166,3 +161,4 @@ {/if} </table> {$FOOTER} + Modified: trunk/module/_explorateur/index1.php =================================================================== --- trunk/module/_explorateur/index1.php 2007-05-01 15:37:58 UTC (rev 141) +++ trunk/module/_explorateur/index1.php 2007-05-01 20:19:00 UTC (rev 142) @@ -147,8 +147,16 @@ RETURN ($chemin); } +// R\xE9cup\xE9ration de la liste des fichiers +$fichiers = FICHIERS(); +$smarty->assign('DISQUES',unserialize(get_variable('disques'))); +$T_affich = array_merge($fichiers[0],$fichiers[1]); +$smarty->assign('T_rep',$fichiers[0]); +$smarty->assign('T_file',$fichiers[1]); +$smarty->assign('T_affich',$T_affich); + // Lancement de la gestion multipage -start_multi($page_explo.'?directory='.urlencode($rep).'&mode='.$_GET['mode'],14); +start_multi($page_explo.'?directory='.urlencode($rep).'&mode='.$_GET['mode'],14,count($T_affich)); //Ajout dans la base de donn\xE9e pour les retours if($extension==$ini['explorateur']['ext']){ @@ -185,13 +193,6 @@ $smarty->assign('MIN',$min); $smarty->assign('Nb_rep_path',count($path)); -$fichiers = FICHIERS(); - -$smarty->assign('DISQUES',unserialize(get_variable('disques')));//unserialize(get_variable('disques'))); - -$smarty->assign('T_rep',$fichiers[0]); -$smarty->assign('T_file',$fichiers[1]); -$smarty->assign('T_affich',array_merge($fichiers[0],$fichiers[1])); $smarty->assign('CONTENT',$smarty->fetch('explorateur.tpl')); if(!isset($nointerface)){ $smarty->display('interface.tpl'); Modified: trunk/module/cinefil/index1.php =================================================================== --- trunk/module/cinefil/index1.php 2007-05-01 15:37:58 UTC (rev 141) +++ trunk/module/cinefil/index1.php 2007-05-01 20:19:00 UTC (rev 142) @@ -37,10 +37,9 @@ $LINK['red']= page_retour_menu(); -start_multi('index1.php?week='.$week,8); +start_multi('index1.php?week='.$week,8,count($SORTIES)); $smarty->assign('TITRE',$titre); -$smarty->assign('MIN',$min); $smarty->assign('SORTIES',$SORTIES); $smarty->assign('week',$week); Modified: trunk/module/cinefil/sorties_cine.tpl =================================================================== --- trunk/module/cinefil/sorties_cine.tpl 2007-05-01 15:37:58 UTC (rev 141) +++ trunk/module/cinefil/sorties_cine.tpl 2007-05-01 20:19:00 UTC (rev 142) @@ -1,7 +1,7 @@ {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}{precedent}{/if} + {if !$_multipage.is_first_page}{precedent}{/if} <table border="0" cellpadding="0" cellspacing="0" width="500" height="360" align="center"><tr> {/if} @@ -17,8 +17,7 @@ {if $place >= 1}<td> </td>{/if} </tr> </table> - {if $MIN+$smarty.section.sorties.total<count($SORTIES)}{suivant}{/if} - + {if !$_multipage.is_last_page}{suivant} - {/if}{pagination} {/if} {/section} Modified: trunk/module/clips/clips.tpl =================================================================== --- trunk/module/clips/clips.tpl 2007-05-01 15:37:58 UTC (rev 141) +++ trunk/module/clips/clips.tpl 2007-05-01 20:19:00 UTC (rev 142) @@ -4,7 +4,7 @@ {cycle name=place assign=place print=false values="4,3,2,1,0"} {if $smarty.section.clip.first} <table border="0" cellpadding="0" cellspacing="0" width="500" align="center"><tr> - {if $MIN!=0} + {if !$_multipage.is_first_page} <td colspan="5" align=center>{precedent}</td></tr><tr> {/if} {/if} @@ -29,7 +29,7 @@ <td> </td> {/if} </tr> - <tr><td colspan="5" align="center" height="25" valign="bottom">{if $MIN+$NUM_ROW_AFFICH < $TOTAL}{suivant} - {/if}{$DEB+$START} \xE0 {$FIN-10+$START} sur {$TOTAL}</td></tr> + <tr><td colspan="5" align="center" height="25" valign="bottom">{if !$_multipage.is_last_page}{suivant} - {/if}{pagination}</td></tr> </table> {if $SHOW=='tous'} Modified: trunk/module/clips/index1.php =================================================================== --- trunk/module/clips/index1.php 2007-05-01 15:37:58 UTC (rev 141) +++ trunk/module/clips/index1.php 2007-05-01 20:19:00 UTC (rev 142) @@ -27,7 +27,7 @@ } function get_recherche($rec){ - $contenu = str_replace("\r\n",'',@file_get_contents('http://search.fr.music.yahoo.com/search/?p='.$rec.'&m=video')); + $contenu = str_replace("\r\n",'',@file_get_contents('http://search.fr.music.yahoo.com/search/?p='.urlencode($rec).'&m=video')); $ereg = '<td bgcolor=......><a href=javascript:playVideos\((.{1,10})\); title="(.{1,50})"><b>(.{1,50})<\/b><\/a><\/td><td bgcolor=......><a href=http:\/\/fr.music.yahoo.com\/ar-(.{1,50})><font title="(.{1,50})">(.{1,50})<\/font><\/a><\/td><td bgcolor=...... align=center class="yss_right'; preg_match_all("/$ereg/s", $contenu, $valeur); foreach($valeur[2] as $key=>$val){ @@ -49,7 +49,7 @@ } // Lancement de la gestion multipage -start_multi('index1.php?show='.$show.$sup,10); +start_multi('index1.php?show='.$show.$sup,10,0); // D\xE9termination de la page $page = floor($min/20)+1; @@ -66,6 +66,10 @@ $res = get_videos_id($url.'p='.$page); } +// RELancement de la gestion multipage pour informer aussi du nombre d'\xE9l\xE9ments +start_multi('index1.php?show='.$show.$sup,10,$res[3]); + + for ($i=0; $i<26; $i++){ $lettres[] = array(chr(97+$i),chr(65+$i)); } @@ -77,7 +81,6 @@ $smarty->assign('DEB',$res[1]); $smarty->assign('FIN',$res[2]); $smarty->assign('CLIP',$res[0]); -$smarty->assign('MIN',$min); $smarty->assign('START',$start); $smarty->assign('CONTENT',$smarty->fetch('clips.tpl')); Modified: trunk/module/dailymotion/dailymotion.tpl =================================================================== --- trunk/module/dailymotion/dailymotion.tpl 2007-05-01 15:37:58 UTC (rev 141) +++ trunk/module/dailymotion/dailymotion.tpl 2007-05-01 20:19:00 UTC (rev 142) @@ -3,7 +3,7 @@ {cycle name=place assign=place print=false values="4,3,2,1,0"} {if $smarty.section.clip.first} <table border="0" cellpadding="0" cellspacing="0" width="500" align="center"><tr> - {if $MIN!=0} + {if !$_multipage.is_first_page} <td colspan="5" align=center>{precedent}</td></tr><tr> {/if} {/if} @@ -20,7 +20,7 @@ {if $place >= 2}<td> </td>{/if} {if $place >= 1}<td> </td>{/if} </tr> - <tr><td colspan="5" align="center" height="25" valign="bottom">{if $MIN+$NUM_ROW_AFFICH < $TOTAL}{suivant} - {/if}{$DEB} \xE0 {$FIN}</td></tr> + <tr><td colspan="5" align="center" height="25" valign="bottom">{if !$_multipage.is_last_page}{suivant} - {/if}{pagination}</td></tr> </table> {/if} {sectionelse} Modified: trunk/module/dailymotion/index1.php =================================================================== --- trunk/module/dailymotion/index1.php 2007-05-01 15:37:58 UTC (rev 141) +++ trunk/module/dailymotion/index1.php 2007-05-01 20:19:00 UTC (rev 142) @@ -11,7 +11,7 @@ array('lien'=>'index1.php?show=note', 'nom'=>'Mieux not\xE9s', 'selected'=>$show=='note'), array('lien'=>'index1.php?show=rec', 'nom'=>'Recherche', 'selected'=>$show=='rec')); -$title = array('hit'=>'Les plus r\xE9cents', 'new'=>'Les plus vus', 'tous'=>'Les mieux not\xE9s', 'rec'=>'Recherche'); +$title = array('recent'=>'Les plus r\xE9cents', 'vus'=>'Les plus vus', 'note'=>'Les mieux not\xE9s', 'rec'=>'Recherche'); $smarty->assign('TITRE','Vid\xE9os Dailymotion - '.$title[$show]); function get_videos_id($page){ @@ -45,7 +45,7 @@ $nb_p = 5; }elseif($show=='rec'){ (isset($_GET['string'])?$string=$_GET['string']:$string=''); - $url = 'http://www.dailymotion.com/rss/relevance/search/'.$string.'/'; + $url = 'http://www.dailymotion.com/rss/relevance/search/'.urlencode($string).'/'; $sup = '&string='.$string; } @@ -60,7 +60,7 @@ if(!($show=='rec' and $string=='')){ $res = get_videos_id($url); if(count($res)==10){ - $total = ($page+5)*10; + $total = ($page+10)*10; }else{ $total = ($page-1)*10+count($res); } @@ -68,6 +68,9 @@ $fin = $page*10; } +// RELancement de la gestion multipage pour informer aussi du nombre d'\xE9l\xE9ments +start_multi('index1.php?show='.$show.$sup,10,$total); + $smarty->assign('string',$string); $smarty->assign('lettres',$lettres); $smarty->assign('SHOW',$show); @@ -75,7 +78,6 @@ $smarty->assign('DEB',$deb); $smarty->assign('FIN',$fin); $smarty->assign('CLIP',$res); -$smarty->assign('MIN',$min); $smarty->assign('START',$start); $smarty->assign('CONTENT',$smarty->fetch('dailymotion.tpl')); Modified: trunk/module/youtube/index1.php =================================================================== --- trunk/module/youtube/index1.php 2007-05-01 15:37:58 UTC (rev 141) +++ trunk/module/youtube/index1.php 2007-05-01 20:19:00 UTC (rev 142) @@ -11,12 +11,12 @@ array('lien'=>'index1.php?show=note', 'nom'=>'Mieux not\xE9s', 'selected'=>$show=='note'), array('lien'=>'index1.php?show=rec', 'nom'=>'Recherche', 'selected'=>$show=='rec')); -$title = array('hit'=>'Les plus r\xE9cents', 'new'=>'Les plus vus', 'tous'=>'Les mieux not\xE9s', 'rec'=>'Recherche'); +$title = array('recent'=>'Les plus r\xE9cents', 'vus'=>'Les plus vus', 'note'=>'Les mieux not\xE9s', 'rec'=>'Recherche'); $smarty->assign('TITRE','Vid\xE9os Youtube - '.$title[$show]); function get_videos_id($page){ $contenu = str_replace("\n",'',@file_get_contents($page)); - $ereg = '<a href="\/watch\?v=(.{1,12})"><img src="(.{1,200})" class=" vimg " alt="video" \/><\/a><\/div> <\/div> <div class="vtitle"> <a href="\/watch\?v=(.{1,12})" onclick="_hbLink\(\'(.{1,100})\',\'(.{1,50})\'\);">(.{1,100})<\/a><br\/> <span class="runtime">(.{1,10})<\/span>'; + $ereg = '<a href="\/watch\?v=(.{1,12})"><img src="(.{1,200})" class=" vimg " alt="video" \/><\/a><\/div> <\/div> <div class="vtitle"> <a href="\/watch\?v=(.{1,12})" onclick="_hbLink\(\'(.{0,100})\',\'(.{1,50})\'\);">(.{1,100})<\/a><br\/> <span class="runtime">(.{1,10})<\/span>'; preg_match_all("/$ereg/s", $contenu, $valeur); foreach($valeur[1] as $key=>$val){ $retour[] = array('temps'=>$valeur[7][$key], 'titre'=>utf8_decode($valeur[6][$key]), 'id'=>$valeur[1][$key], 'img'=>$valeur[2][$key]); @@ -25,7 +25,7 @@ } function get_recherche($rec,$page){ - $contenu = str_replace("\n",'',@file_get_contents('http://www.youtube.com/results?search_query='.$rec.'&search=Search&page='.$page)); + $contenu = str_replace("\n",'',@file_get_contents('http://www.youtube.com/results?search_query='.urlencode($rec).'&search=Search&page='.$page)); $ereg = '<img src="(.{1,200})" border="0" class="vimg120" \/><\/a><\/div> <\/div> <\/td> <td class="vinfo"> <div class="vSnippetTitle"> <a href="\/watch\?v=(.{1,12})" rel="nofollow" onclick="_hbLink\(\'(.{1,100})\',\'(.{1,50})\'\);">(.{1,100})<\/a><br\/> <span class="runtime">(.{1,10})<\/span>'; preg_match_all("/$ereg/s", $contenu, $valeur); foreach($valeur[1] as $key=>$val){ @@ -59,7 +59,7 @@ } // Lancement de la gestion multipage -start_multi('index1.php?show='.$show.$sup,10); +start_multi('index1.php?show='.$show.$sup,10,0); // D\xE9termination de la page $page = floor($min/20)+1; @@ -83,6 +83,8 @@ $fin = $page*20; } +// RELancement de la gestion multipage pour informer aussi du nombre d'\xE9l\xE9ments +start_multi('index1.php?show='.$show.$sup,10,$total); $smarty->assign('LETTRE',$lettre); $smarty->assign('string',$string); Modified: trunk/module/youtube/youtube.tpl =================================================================== --- trunk/module/youtube/youtube.tpl 2007-05-01 15:37:58 UTC (rev 141) +++ trunk/module/youtube/youtube.tpl 2007-05-01 20:19:00 UTC (rev 142) @@ -3,7 +3,7 @@ {cycle name=place assign=place print=false values="4,3,2,1,0"} {if $smarty.section.clip.first} <table border="0" cellpadding="0" cellspacing="0" width="500" align="center"><tr> - {if $MIN!=0} + {if !$_multipage.is_first_page} <td colspan="5" align=center>{precedent}</td></tr><tr> {/if} {/if} @@ -20,7 +20,7 @@ {if $place >= 2}<td> </td>{/if} {if $place >= 1}<td> </td>{/if} </tr> - <tr><td colspan="5" align="center" height="25" valign="bottom">{if $MIN+$NUM_ROW_AFFICH < $TOTAL}{suivant} - {/if}{$DEB+$START} \xE0 {$FIN-10+$START} sur {$TOTAL}</td></tr> + <tr><td colspan="5" align="center" height="25" valign="bottom">{if !$_multipage.is_last_page}{suivant} - {/if}{pagination}</td></tr> </table> {/if} {sectionelse} Modified: trunk/skin/simple/framework_skin.php =================================================================== --- trunk/skin/simple/framework_skin.php 2007-05-01 15:37:58 UTC (rev 141) +++ trunk/skin/simple/framework_skin.php 2007-05-01 20:19:00 UTC (rev 142) @@ -50,25 +50,45 @@ // Gestion des multipages $smarty->register_function('precedent', '_multipage_prec'); $smarty->register_function('suivant', '_multipage_suiv'); +$smarty->register_function('pagination', '_multipage_pagination'); -function start_multi($lien,$step){ -global $_multipage_lien, $_multipage_step, $_GET, $min, $smarty; - $_multipage_lien = $lien; - $_multipage_step = $step; +function start_multi($lien,$step,$total=0){ +global $_multipage, $_GET, $min, $smarty; (isset($_GET['start'])?$min=$_GET['start']:$min=0); - $smarty->assign('MIN',&$min); + $_multipage['lien'] = $lien; + $_multipage['step'] = $step; + $_multipage['total'] = $total; + $_multipage['nb_page'] = ceil($total/$step); + $_multipage['current_page'] = ceil(($min/$step)+1); + $_multipage['is_last_page'] = ($_multipage['current_page']==$_multipage['nb_page']); + $_multipage['is_first_page'] = ($_multipage['current_page']==1); + $_multipage['min_max'] = $step*($_multipage['nb_page']-1); + $smarty->assign('_multipage',$_multipage); + $smarty->assign_by_ref('MIN',$min); } function _multipage_prec(){ -global $_multipage_lien, $_multipage_step, $MENU_ALT, $INTERFACE_REP, $min, $LINK; - echo '<a href="'.$_multipage_lien.'&start='.max(0,$min-$_multipage_step).'" onfocus=\'aide="Page pr\xE9c\xE9dente";\'><img src="'.$INTERFACE_REP.'btn_vert.gif" border="0"> <font size="2">Pr\xE9c\xE9dent</font></a>'; - $LINK['green']=$_multipage_lien.'&start='.max(0,$min-$_multipage_step); +global $_multipage, $INTERFACE_REP, $min, $LINK; + if(!$_multipage['is_first_page']){ + $LINK['green'] = $_multipage['lien'].'&start='.max(0,$min-$_multipage['step']); + return '<a href="'.$_multipage['lien'].'&start='.max(0,$min-$_multipage['step']).'" onfocus=\'aide="Page pr\xE9c\xE9dente";\'><img src="'.$INTERFACE_REP.'btn_vert.gif" border="0"><font size="1"> Pr\xE9c\xE9dent</font></a>'; + }else{ + return false; + } } function _multipage_suiv(){ -global $_multipage_lien, $_multipage_step, $MENU_ALT, $INTERFACE_REP, $min, $LINK; - echo '<a href="'.$_multipage_lien.'&start='.($min+$_multipage_step).'" onfocus=\'aide="Page suivante";\'><img src="'.$INTERFACE_REP.'btn_bleu.gif" border="0"> <font size="2">Suivant</font></a>'; - $LINK['blue']=$_multipage_lien.'&start='.($min+$_multipage_step); +global $_multipage, $INTERFACE_REP, $min, $LINK; + if(!$_multipage['is_last_page']){ + $LINK['blue'] = $_multipage['lien'].'&start='.($min+$_multipage['step']); + return '<a href="'.$_multipage['lien'].'&start='.($min+$_multipage['step']).'" onfocus=\'aide="Page suivante";\'><img src="'.$INTERFACE_REP.'btn_bleu.gif" border="0"><font size="1"> Suivant</font></a>'; + }else{ + return false; + } } - + +function _multipage_pagination(){ +global $_multipage; + return '<font size="1">Page '.$_multipage['current_page'].' / '.$_multipage['nb_page'].'</font>'; +} ?> Modified: trunk/skin/simplegreen/framework_skin.php =================================================================== --- trunk/skin/simplegreen/framework_skin.php 2007-05-01 15:37:58 UTC (rev 141) +++ trunk/skin/simplegreen/framework_skin.php 2007-05-01 20:19:00 UTC (rev 142) @@ -25,21 +25,21 @@ } $smarty->assign('BACKGROUND_REP',$BACKGROUND_REP); - // Fond d'\xE9cran par d\xE9faut - path d\xE9finit \xE0 partir du r\xE9pertoire /http/skin/simple/ $BACKGROUND = $_COULEUR['BACKGROUND']; // Fonction responsable de l'affichage du fond d'\xE9cran \xE0 la toute fin du processus de conception de la page (post-filtre de smarty) function background($output, &$smarty){ - global $contenu_html, $BACKGROUND, $BACKGROUND_REP, $SKIN_REP, $BACKGROUND_TYPE, $FORCED, $_SERVER, $BACK_DONE; + global $contenu_html, $BACKGROUND, $BACKGROUND_REP, $SKIN_REP, $BACKGROUND_TYPE, $FORCED, $_SERVER, $BACK_DONE, $smarty; if(((eregi("stop",$contenu_html) AND $BACKGROUND!="none" AND realpath($BACKGROUND_REP.$BACKGROUND)!='') OR $FORCED) AND !$BACK_DONE){ - if($BACKGROUND_TYPE == 'add'){ + if($BACKGROUND_TYPE == 'add'){ play_fichier('type=21&temps=8000',realpath($BACKGROUND_REP.$BACKGROUND),1,'photo'); }else{ play_fichier('type=20&temps=8000',realpath($BACKGROUND_REP.$BACKGROUND),1,'photo'); } //Pour ne pas lancer deux fois le background $BACK_DONE = 1; + } return($output); } @@ -50,25 +50,45 @@ // Gestion des multipages $smarty->register_function('precedent', '_multipage_prec'); $smarty->register_function('suivant', '_multipage_suiv'); +$smarty->register_function('pagination', '_multipage_pagination'); -function start_multi($lien,$step){ -global $_multipage_lien, $_multipage_step, $_GET, $min, $smarty; - $_multipage_lien = $lien; - $_multipage_step = $step; +function start_multi($lien,$step,$total=0){ +global $_multipage, $_GET, $min, $smarty; (isset($_GET['start'])?$min=$_GET['start']:$min=0); - $smarty->assign('MIN',&$min); + $_multipage['lien'] = $lien; + $_multipage['step'] = $step; + $_multipage['total'] = $total; + $_multipage['nb_page'] = ceil($total/$step); + $_multipage['current_page'] = ceil(($min/$step)+1); + $_multipage['is_last_page'] = ($_multipage['current_page']==$_multipage['nb_page']); + $_multipage['is_first_page'] = ($_multipage['current_page']==1); + $_multipage['min_max'] = $step*($_multipage['nb_page']-1); + $smarty->assign('_multipage',$_multipage); + $smarty->assign_by_ref('MIN',$min); } function _multipage_prec(){ -global $_multipage_lien, $_multipage_step, $MENU_ALT, $INTERFACE_REP, $min, $LINK; - $MENU_ALT[]=array('lien'=>$_multipage_lien.'&start='.max(0,$min-$_multipage_step), 'nom'=>'<img src="'.$INTERFACE_REP.'btn_vert.gif" border="0"> Pr\xE9c\xE9dent', 0,'front_pannel'=>'Pr\xE9c\xE9dent'); - $LINK['green']=$_multipage_lien.'&start='.max(0,$min-$_multipage_step); +global $_multipage, $INTERFACE_REP, $min, $LINK; + if(!$_multipage['is_first_page']){ + $LINK['green'] = $_multipage['lien'].'&start='.max(0,$min-$_multipage['step']); + return '<a href="'.$_multipage['lien'].'&start='.max(0,$min-$_multipage['step']).'" onfocus=\'aide="Page pr\xE9c\xE9dente";\'><img src="'.$INTERFACE_REP.'btn_vert.gif" border="0"><font size="1"> Pr\xE9c\xE9dent</font></a>'; + }else{ + return false; + } } function _multipage_suiv(){ -global $_multipage_lien, $_multipage_step, $MENU_ALT, $INTERFACE_REP, $min, $LINK; - $MENU_ALT[]=array('lien'=>$_multipage_lien.'&start='.($min+$_multipage_step), 'nom'=>'<img src="'.$INTERFACE_REP.'btn_bleu.gif" border="0"> Suivant', 0,'front_pannel'=>'Suivant'); - $LINK['blue']=$_multipage_lien.'&start='.($min+$_multipage_step); +global $_multipage, $INTERFACE_REP, $min, $LINK; + if(!$_multipage['is_last_page']){ + $LINK['blue'] = $_multipage['lien'].'&start='.($min+$_multipage['step']); + return '<a href="'.$_multipage['lien'].'&start='.($min+$_multipage['step']).'" onfocus=\'aide="Page suivante";\'><img src="'.$INTERFACE_REP.'btn_bleu.gif" border="0"><font size="1"> Suivant</font></a>'; + }else{ + return false; + } } - + +function _multipage_pagination(){ +global $_multipage; + return '<font size="1">Page '.$_multipage['current_page'].' / '.$_multipage['nb_page'].'</font>'; +} ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2007-05-08 12:49:11
|
Revision: 145 http://svn.sourceforge.net/easybox-mod/?rev=145&view=rev Author: aragornis Date: 2007-05-08 05:49:03 -0700 (Tue, 08 May 2007) Log Message: ----------- R?\195?\169solution du probleme des dvd avec accents dans le path Mise au niveau du module "modules" avec gestion multipage R?\195?\169solution du probl?\195?\168me de pause ? Modified Paths: -------------- trunk/_utilisateur/multiposte.m3u trunk/module/_explorateur/explorateur.tpl trunk/module/dvd/index1.php trunk/module/dvd/playrep.php trunk/module/films/lecture.php trunk/module/modules/index1.php trunk/module/modules/modules.tpl trunk/version.html Modified: trunk/_utilisateur/multiposte.m3u =================================================================== --- trunk/_utilisateur/multiposte.m3u 2007-05-05 10:40:17 UTC (rev 144) +++ trunk/_utilisateur/multiposte.m3u 2007-05-08 12:49:03 UTC (rev 145) @@ -53,6 +53,12 @@ rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=220 #EXTINF:0,36 - Mangas rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=253 +#EXTINF:0,37 - MCM +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=621 +#EXTINF:0,38 - MCM TOP +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=622 +#EXTINF:0,39 - MCM POP +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=623 #EXTINF:0,40 - M6 Music Hits rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=430 #EXTINF:0,41 - M6 Music Rock @@ -85,6 +91,8 @@ rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=254 #EXTINF:0,57 - NRJ 12 HD rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=617 +#EXTINF:0,58 - NRJ Hits +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=620 #EXTINF:0,59 - Mizik Tropical rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=468 #EXTINF:0,61 - Equidia @@ -159,8 +167,6 @@ rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=359 #EXTINF:0,133 - Astro Center TV rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=415 -#EXTINF:0,134 - Terre d'infos -rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=437 #EXTINF:0,150 - TLM rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=267 #EXTINF:0,151 - TLT @@ -347,7 +353,7 @@ 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 +#EXTINF:0,290 - Fox Türk rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=465 #EXTINF:0,291 - NTV Avrupa rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=466 @@ -417,8 +423,6 @@ 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,999 - Mire FREEBOX -rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=308 #EXTINF:0,10001 - Europe 1 #EXTVLCOPT:ts-es-id-pid #EXTVLCOPT:no-video Modified: trunk/module/_explorateur/explorateur.tpl =================================================================== --- trunk/module/_explorateur/explorateur.tpl 2007-05-05 10:40:17 UTC (rev 144) +++ trunk/module/_explorateur/explorateur.tpl 2007-05-08 12:49:03 UTC (rev 145) @@ -147,7 +147,7 @@ <td width="30" align="center"> {if $PLAYREP} -<a href="{$PAGE_LECT_REP}?toplay={$REP|urlencode}&type=playrep" onfocus='aide="Lire le dossier en entier";'><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$SKIN_REP}dossier/rep_all.gif" border="0" width="20" height="20"></td></tr></table></a> +<a href="{$PAGE_LECT_REP}?toplay={$REP|urlencode}&type=playrep" onfocus='aide="{if $IS_DVD}Lire le dossier en tant que DVD{else}Lire le dossier en entier{/if}";'><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$SKIN_REP}dossier/rep_all.gif" border="0" width="20" height="20"></td></tr></table></a> {/if} </td><td width="30" align="center"> {if $AFF_FAVORIS} Modified: trunk/module/dvd/index1.php =================================================================== --- trunk/module/dvd/index1.php 2007-05-05 10:40:17 UTC (rev 144) +++ trunk/module/dvd/index1.php 2007-05-08 12:49:03 UTC (rev 145) @@ -32,6 +32,7 @@ } } save_variable('statutdvd', 'disques'); + $smarty->assign('IS_DVD',true); $smarty->assign('disques_dispo',$disques_dispo); $smarty->assign('disques_optique',$disques_optique); $smarty->assign('CONTENT',$smarty->fetch('dvd.tpl')); Modified: trunk/module/dvd/playrep.php =================================================================== --- trunk/module/dvd/playrep.php 2007-05-05 10:40:17 UTC (rev 144) +++ trunk/module/dvd/playrep.php 2007-05-08 12:49:03 UTC (rev 145) @@ -11,8 +11,7 @@ eval($contenu_html); if(!isset($_GET['mode'])){ - $basename = stripslashes(urldecode($_REQUEST['toplay'])); - + $basename = $_REQUEST['toplay']; $pisteaudio = $ini['multimedia']['sortiefreebox']; $decallage = $ini['multimedia']['compensation']; @@ -27,7 +26,7 @@ $play = 'type=32'; } - $basename = realpath($basename); + $basename = ereg_replace ("\\\'", "'", $basename); if((substr($basename, -1, 1)=='\\' || substr($basename, -1, 1)=='/') && strlen($basename)<=3){ $basename=substr($basename, 0, (strlen($basename)-1)); @@ -36,12 +35,12 @@ //Ajout dans la base de donn\xE9e pour les retours save_variable('lastexpl', 'dvd'); - $basename = 'dvdsimple://'.$basename; + $basename = utf8_encode('dvdsimple://'.$basename); play_fichier($play,$basename,0,'dvd'); //$META['refresh'] = '2;url=playrep.php?mode=1'; $META['refresh'] = '0;url='.$MODULE.'films/lecture.php'; - $affich = 'Veuillez patienter pendant la construction des menus...'; + $affich = 'Veuillez patienter pendant la redirection...'; }elseif($_GET['mode']==1 && is_array($title)){ Modified: trunk/module/films/lecture.php =================================================================== --- trunk/module/films/lecture.php 2007-05-05 10:40:17 UTC (rev 144) +++ trunk/module/films/lecture.php 2007-05-08 12:49:03 UTC (rev 145) @@ -11,10 +11,10 @@ $META['front_panel'] = strtoupper($VLC['etat']); //Si aucune frame vid\xE9o n'est affich\xE9e : -if($VLC['etat']!='pause'){ +if($VLC['etat']=='Playing' OR $_REQUEST['control']=='pause'){ $META['nopicture'] = '20;url=lecture.php?control=stop&signet=noload&errorload=1'; }else{ - $META['nopicture'] = ''; + $META['nopicture'] = 'none'; } $affiche =""; @@ -84,7 +84,7 @@ // Micht : Utilisation d'une page de skin $message = $smarty->fetch('signet_ask.tpl'); } - } elseif($control!='seek') + } elseif($_REQUEST['control']!='seek') { $control = $_REQUEST['control']; $OSD = $control; Modified: trunk/module/modules/index1.php =================================================================== --- trunk/module/modules/index1.php 2007-05-05 10:40:17 UTC (rev 144) +++ trunk/module/modules/index1.php 2007-05-08 12:49:03 UTC (rev 145) @@ -26,9 +26,9 @@ array('lien'=>'index1.php?action=skin', 'nom'=>'Skins install\xE9es', 'selected'=>$_GET['action']=='skin'), array('lien'=>'index1.php?action=newskin', 'nom'=>'Nouv. skins', 'selected'=>$_GET['action']=='newskin'), array('lien'=>'index1.php?action=options', 'nom'=>'Option', 'selected'=>$_GET['action']=='options')); - +/* (isset($_GET['min'])?$min=$_GET['min']:$min=0); -$smarty->assign('MIN',$min); +$smarty->assign('MIN',$min);*/ if(!isset($_GET['action'])){ $_GET['action'] = 'mod'; @@ -77,7 +77,9 @@ switch($_GET['action']){ case 'mod': - $smarty->assign('MOD',get_installed_modules()); + $MOD = get_installed_modules(); + start_multi('index1.php?action=mod',4,count($MOD)); + $smarty->assign('MOD',$MOD); $smarty->assign('TITRE','Modules install\xE9s'); break; case 'newmod': @@ -90,12 +92,14 @@ $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),'img'=>'http://www.easybox-mod.org/modules/addon/screen/'.utf8_decode($elem->screen)); } } - + start_multi('index1.php?action=newmod',4,count($MOD)); $smarty->assign('MOD',$MOD); $smarty->assign('TITRE','Modules installables'); break; case 'skin': - $smarty->assign('MOD',get_installed_skins()); + $MOD = get_installed_skins(); + start_multi('index1.php?action=skin',4,count($MOD)); + $smarty->assign('MOD',$MOD); $smarty->assign('TITRE','Skins install\xE9es'); break; case 'newskin': @@ -108,7 +112,7 @@ $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),'img'=>'http://www.easybox-mod.org/modules/addon/screen/'.utf8_decode($element->screen)); } } - + start_multi('index1.php?action=newskin',4,count($MOD)); $smarty->assign('MOD',$MOD); $smarty->assign('TITRE','Skins installables'); break; Modified: trunk/module/modules/modules.tpl =================================================================== --- trunk/module/modules/modules.tpl 2007-05-05 10:40:17 UTC (rev 144) +++ trunk/module/modules/modules.tpl 2007-05-08 12:49:03 UTC (rev 145) @@ -2,12 +2,8 @@ {if $action=="mod" OR $action=="skin"} {section name=mod loop=$MOD start=$MIN max=4} {if $smarty.section.mod.first} - {if $MIN!=0} - {assign var=temp value=$MIN-4} - {attribbouton touche="green" lien="index1.php?action=$action&min=$temp"} - <a href="index1.php?action={$action}&min={$temp}"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> Pr\xE9c\xE9dent</a> - {/if} <table width="500" border="0" cellspacing="0" cellpadding="2" align="left" valign="top"> + {if !$_multipage.is_first_page}<tr><td align="center" colspan="2">{precedent}</td></tr>{/if} {/if} <tr> @@ -19,13 +15,9 @@ {if NOT ($MOD[mod].dep=='Easybox Core' AND $action=="skin")}<td width="20"><a href="index1.php?delid={$MOD[mod].id}&action={$action}" onfocus='aide="Supprimer {if $action=="skin"}la skin{else}le module{/if} {$MOD[mod].nom}";'><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="#COULEUR_FOND1#" 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>{else}<td> </td>{/if}{/if} </tr> {if $smarty.section.mod.last} + <tr><td align="center" colspan="2">{if !$_multipage.is_last_page}{suivant} - {/if}{pagination}</td></tr> </table> - {if $MIN+$smarty.section.mod.total < count($MOD)} - {assign var=temp value=$MIN+4} - {attribbouton touche="blue" lien="index1.php?action=$action&min=$temp"} - <a href="index1.php?action={$action}&min={$temp}"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> Suivant</a> {/if} - {/if} {sectionelse} {if $action=="skin"} Aucune skin suppl\xE9mentaire n'est install\xE9e. Pour en installer, rendez-vous dans la partie "Nouvelles skins". @@ -34,15 +26,11 @@ {/if} {/section} {elseif $action=="newmod" OR $action=="newskin"} - {section name=mod loop=$MOD} + {section name=mod loop=$MOD start=$MIN max=4} {if $smarty.section.mod.first} - {if $MIN!=0} - {assign var=temp value=$MIN-4} - {attribbouton touche="green" lien="index1.php?action=$action&min=$temp"} - <a href="index1.php?action={$action}&min={$temp}"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> Pr\xE9c\xE9dent</a> - {/if} <table width="500" border="0" cellspacing="0" cellpadding="2" align="left" valign="top"> + {if !$_multipage.is_first_page}<tr><td align="center" colspan="2">{precedent}</td></tr>{/if} {/if} <tr> @@ -53,13 +41,9 @@ <td width="20"><a href="index1.php?install{$action}={$MOD[mod].nom|urlencode}&action={$action}"onfocus='aide="Installer {if $action=="newskin"}la skin{else}le module{/if} {$MOD[mod].nom}";'><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}valider.gif" border="0" width="20" height="20"></td></tr></table></a></td> </tr> {if $smarty.section.mod.last} + <tr><td align="center" colspan="2">{if !$_multipage.is_last_page}{suivant} - {/if}{pagination}</td></tr> </table> - {if $MIN+$smarty.section.mod.total < count($MOD)} - {assign var=temp value=$MIN+4} - {attribbouton touche="blue" lien="index1.php?action=$action&min=$temp"} - <a href="index1.php?action={$action}&min={$temp}"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> Suivant</a> {/if} - {/if} {sectionelse} {if $action=="newskin"} Modified: trunk/version.html =================================================================== --- trunk/version.html 2007-05-05 10:40:17 UTC (rev 144) +++ trunk/version.html 2007-05-08 12:49:03 UTC (rev 145) @@ -4,6 +4,6 @@ </head> <body> <h1>Easybox</h1> -<h2>4.0.2</h2> +<h2>4.0.3</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...> - 2007-05-08 13:35:22
|
Revision: 146 http://svn.sourceforge.net/easybox-mod/?rev=146&view=rev Author: aragornis Date: 2007-05-08 06:35:18 -0700 (Tue, 08 May 2007) Log Message: ----------- Modified Paths: -------------- trunk/_framework/fonctions_partagees.inc.php trunk/module/modules/index1.php trunk/module/modules/modules.tpl trunk/skin/mediacenter/framework_skin.php Modified: trunk/_framework/fonctions_partagees.inc.php =================================================================== --- trunk/_framework/fonctions_partagees.inc.php 2007-05-08 12:49:03 UTC (rev 145) +++ trunk/_framework/fonctions_partagees.inc.php 2007-05-08 13:35:18 UTC (rev 146) @@ -704,4 +704,7 @@ } } +function add_download($name){ + echo @file_get_contents('http://www.easybox-mod.org/add_dl.php?name='.$name); +} ?> Modified: trunk/module/modules/index1.php =================================================================== --- trunk/module/modules/index1.php 2007-05-08 12:49:03 UTC (rev 145) +++ trunk/module/modules/index1.php 2007-05-08 13:35:18 UTC (rev 146) @@ -44,6 +44,7 @@ if(utf8_decode($element->nom)==urldecode($_GET['installnewmod'])){ 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))); + add_download($element->nom); } //-- R\xE9initialise la liste des modules get_module_list(); @@ -68,6 +69,7 @@ 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', ''); + add_download($element->nom); } //-- R\xE9initialise la liste des modules get_module_list(); Modified: trunk/module/modules/modules.tpl =================================================================== --- trunk/module/modules/modules.tpl 2007-05-08 12:49:03 UTC (rev 145) +++ trunk/module/modules/modules.tpl 2007-05-08 13:35:18 UTC (rev 146) @@ -1,4 +1,3 @@ -<br> {if $action=="mod" OR $action=="skin"} {section name=mod loop=$MOD start=$MIN max=4} {if $smarty.section.mod.first} @@ -12,7 +11,7 @@ <b>Version</b> : {$MOD[mod].version}<br> <b>Description</b> : {$MOD[mod].description}</td> {if NOT $MOD[mod].current}{if $action=="skin"}<td width="20"><a href="index1.php?setskinid={$MOD[mod].id}&action={$action}" onfocus='aide="Activer la {$MOD[mod].nom}";'><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="#COULEUR_FOND1#" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}valider.gif" border="0" width="20" height="20"></td></tr></table></a></td>{else}<td> </td>{/if} - {if NOT ($MOD[mod].dep=='Easybox Core' AND $action=="skin")}<td width="20"><a href="index1.php?delid={$MOD[mod].id}&action={$action}" onfocus='aide="Supprimer {if $action=="skin"}la skin{else}le module{/if} {$MOD[mod].nom}";'><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="#COULEUR_FOND1#" 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>{else}<td> </td>{/if}{/if} + {if NOT ($MOD[mod].dep=='Easybox Core' AND $action=="skin")}<td width="20"><a href="index1.php?delid={$MOD[mod].id}&action={$action}" onfocus='aide="Supprimer {if $action=="skin"}la skin{else}le module{/if} {$MOD[mod].nom}";'><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="#COULEUR_FOND1#" 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>{else}<td> </td>{/if}{else}<td> </td><td> </td>{/if} </tr> {if $smarty.section.mod.last} <tr><td align="center" colspan="2">{if !$_multipage.is_last_page}{suivant} - {/if}{pagination}</td></tr> Modified: trunk/skin/mediacenter/framework_skin.php =================================================================== --- trunk/skin/mediacenter/framework_skin.php 2007-05-08 12:49:03 UTC (rev 145) +++ trunk/skin/mediacenter/framework_skin.php 2007-05-08 13:35:18 UTC (rev 146) @@ -54,25 +54,45 @@ // Gestion des multipages $smarty->register_function('precedent', '_multipage_prec'); $smarty->register_function('suivant', '_multipage_suiv'); +$smarty->register_function('pagination', '_multipage_pagination'); -function start_multi($lien,$step){ -global $_multipage_lien, $_multipage_step, $_GET, $min, $smarty; - $_multipage_lien = $lien; - $_multipage_step = $step; +function start_multi($lien,$step,$total=0){ +global $_multipage, $_GET, $min, $smarty; (isset($_GET['start'])?$min=$_GET['start']:$min=0); - $smarty->assign('MIN',&$min); + $_multipage['lien'] = $lien; + $_multipage['step'] = $step; + $_multipage['total'] = $total; + $_multipage['nb_page'] = ceil($total/$step); + $_multipage['current_page'] = ceil(($min/$step)+1); + $_multipage['is_last_page'] = ($_multipage['current_page']==$_multipage['nb_page']); + $_multipage['is_first_page'] = ($_multipage['current_page']==1); + $_multipage['min_max'] = $step*($_multipage['nb_page']-1); + $smarty->assign('_multipage',$_multipage); + $smarty->assign_by_ref('MIN',$min); } function _multipage_prec(){ -global $_multipage_lien, $_multipage_step, $MENU_ALT, $INTERFACE_REP, $min, $LINK; - $MENU_ALT[]=array('lien'=>$_multipage_lien.'&start='.max(0,$min-$_multipage_step), 'nom'=>'<img src="'.$INTERFACE_REP.'btn_vert.gif" border="0"> Pr\xE9c\xE9dent', 0,'front_pannel'=>'Pr\xE9c\xE9dent'); - $LINK['green']=$_multipage_lien.'&start='.max(0,$min-$_multipage_step); +global $_multipage, $MENU_ALT, $INTERFACE_REP, $min, $LINK; + if(!$_multipage['is_first_page']){ + $LINK['green'] = $_multipage['lien'].'&start='.max(0,$min-$_multipage['step']); + $MENU_ALT[]=array('lien'=>$_multipage['lien'].'&start='.max(0,$min-$_multipage['step']), 'nom'=>'<img src="'.$INTERFACE_REP.'btn_vert.gif" border="0"> Pr\xE9c\xE9dent', 0,'front_pannel'=>'Pr\xE9c\xE9dent'); + }else{ + return false; + } } function _multipage_suiv(){ -global $_multipage_lien, $_multipage_step, $MENU_ALT, $INTERFACE_REP, $min, $LINK; - $MENU_ALT[]=array('lien'=>$_multipage_lien.'&start='.($min+$_multipage_step), 'nom'=>'<img src="'.$INTERFACE_REP.'btn_bleu.gif" border="0"> Suivant', 0,'front_pannel'=>'Suivant'); - $LINK['blue']=$_multipage_lien.'&start='.($min+$_multipage_step); +global $_multipage, $MENU_ALT, $INTERFACE_REP, $min, $LINK; + if(!$_multipage['is_last_page']){ + $LINK['blue'] = $_multipage['lien'].'&start='.($min+$_multipage['step']); + $MENU_ALT[]=array('lien'=>$_multipage['lien'].'&start='.($min+$_multipage['step']), 'nom'=>'<img src="'.$INTERFACE_REP.'btn_bleu.gif" border="0"> Suivant', 0,'front_pannel'=>'Suivant'); + }else{ + return false; + } } - + +function _multipage_pagination(){ +global $_multipage; + //return '<font size="1">Page '.$_multipage['current_page'].' / '.$_multipage['nb_page'].'</font>'; +} ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2007-05-22 20:39:50
|
Revision: 157 http://svn.sourceforge.net/easybox-mod/?rev=157&view=rev Author: aragornis Date: 2007-05-22 13:39:47 -0700 (Tue, 22 May 2007) Log Message: ----------- v4.1.0 Modified Paths: -------------- trunk/_utilisateur/modules.db trunk/version.html Modified: trunk/_utilisateur/modules.db =================================================================== (Binary files differ) Modified: trunk/version.html =================================================================== --- trunk/version.html 2007-05-22 19:34:43 UTC (rev 156) +++ trunk/version.html 2007-05-22 20:39:47 UTC (rev 157) @@ -4,6 +4,6 @@ </head> <body> <h1>Easybox</h1> -<h2>4.0.4</h2> +<h2>4.1.0</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...> - 2007-05-22 21:39:00
|
Revision: 158 http://svn.sourceforge.net/easybox-mod/?rev=158&view=rev Author: aragornis Date: 2007-05-22 14:38:57 -0700 (Tue, 22 May 2007) Log Message: ----------- v4.1.1 Modified Paths: -------------- trunk/_framework/dwl.php trunk/_utilisateur/modules.db trunk/_utilisateur/multiposte.m3u trunk/module/modules/index1.php trunk/version.html Modified: trunk/_framework/dwl.php =================================================================== --- trunk/_framework/dwl.php 2007-05-22 20:39:47 UTC (rev 157) +++ trunk/_framework/dwl.php 2007-05-22 21:38:57 UTC (rev 158) @@ -23,7 +23,7 @@ if(module_exists($nom)){ sup_module(get_id_of_module($nom)); } - add_module($nom, $nom.'/', '', '', '', '', '', '', $version, $description, 'Skin', 'Alone', ''); + add_module($nom, strtolower(supprime_accents($nom)).'/', '', '', '', '', '', '', $version, $description, 'Skin', 'Alone', ''); $txt_dwl = "T\xE9l\xE9chargement de la skin termin\xE9e."; $nom = ''; }elseif($dwl == "Module"){ Modified: trunk/_utilisateur/modules.db =================================================================== (Binary files differ) Modified: trunk/_utilisateur/multiposte.m3u =================================================================== --- trunk/_utilisateur/multiposte.m3u 2007-05-22 20:39:47 UTC (rev 157) +++ trunk/_utilisateur/multiposte.m3u 2007-05-22 21:38:57 UTC (rev 158) @@ -199,6 +199,8 @@ rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=480 #EXTINF:0,183 - CCTV Divertissement rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=470 +#EXTINF:0,184 - La chaîne chinoise +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=471 #EXTINF:0,185 - Beijing TV rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=472 #EXTINF:0,186 - Shangai Dragon TV @@ -423,6 +425,38 @@ 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,602 - France 2 (h264) +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=625 +#EXTINF:0,603 - France 3 (h264) +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=626 +#EXTINF:0,605 - France 5 (h264) +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=627 +#EXTINF:0,606 - M6 (h264) +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=628 +#EXTINF:0,607 - Arte (h264) +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=629 +#EXTINF:0,608 - Direct 8 (h264) +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=630 +#EXTINF:0,609 - W9 (h264) +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=631 +#EXTINF:0,610 - TMC (h264) +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=632 +#EXTINF:0,611 - NT1 (h264) +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=633 +#EXTINF:0,612 - NRJ 12 (h264) +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=634 +#EXTINF:0,613 - La Chaîne Parlementaire (h264) +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=635 +#EXTINF:0,614 - France 4 (h264) +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=636 +#EXTINF:0,615 - BFM TV (h264) +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=637 +#EXTINF:0,616 - i>TELE (h264) +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=638 +#EXTINF:0,617 - Europe 2 TV (h264) +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=639 +#EXTINF:0,618 - Gulli (h264) +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=640 #EXTINF:0,10001 - Europe 1 #EXTVLCOPT:ts-es-id-pid #EXTVLCOPT:no-video @@ -758,3 +792,13 @@ #EXTVLCOPT:no-video #EXTVLCOPT:audio-track-id=1005 rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110070 +#EXTINF:0,10071 - Radio Junior +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1003 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110071 +#EXTINF:0,10072 - Canal Académie +#EXTVLCOPT:ts-es-id-pid +#EXTVLCOPT:no-video +#EXTVLCOPT:audio-track-id=1006 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110072 Modified: trunk/module/modules/index1.php =================================================================== --- trunk/module/modules/index1.php 2007-05-22 20:39:47 UTC (rev 157) +++ trunk/module/modules/index1.php 2007-05-22 21:38:57 UTC (rev 158) @@ -67,8 +67,8 @@ foreach($xml3->element as $element){ 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', ''); + download_file($ini['download']['patch'].utf8_decode($element->fichier), $RACINE_REP.'skin/'.strtolower(str_replace(' ','',supprime_accents(utf8_decode($element->nom)))).'/'); + add_module(utf8_decode($element->nom), strtolower(str_replace(' ','',supprime_accents(utf8_decode($element->nom)))).'/', '', '', '', '', '', '', utf8_decode($element->version), utf8_decode($element->description), 'Skin', 'Alone', ''); add_download($element->nom); } //-- R\xE9initialise la liste des modules Modified: trunk/version.html =================================================================== --- trunk/version.html 2007-05-22 20:39:47 UTC (rev 157) +++ trunk/version.html 2007-05-22 21:38:57 UTC (rev 158) @@ -4,6 +4,6 @@ </head> <body> <h1>Easybox</h1> -<h2>4.1.0</h2> +<h2>4.1.1</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...> - 2007-05-23 15:01:51
|
Revision: 159 http://svn.sourceforge.net/easybox-mod/?rev=159&view=rev Author: aragornis Date: 2007-05-23 08:01:43 -0700 (Wed, 23 May 2007) Log Message: ----------- - mise en place d'un cache pour les pages t?\195?\169l?\195?\169charg?\195?\169es sur internet Modified Paths: -------------- trunk/_framework/fonctions_partagees.inc.php trunk/configuration/bases.xml trunk/module/cinefil/index1.php trunk/module/clips/index1.php trunk/module/dailymotion/index1.php trunk/module/ephemeride/index1.php trunk/module/guidetv/tvprogram.php trunk/module/mp3/paroles.php trunk/module/mp3/podcast.php trunk/module/recettes/index1.php trunk/module/recettes/recettes.php trunk/module/seances/programme_cine.tpl trunk/module/seances/voirsalle.php trunk/module/stage6/index1.php trunk/module/youtube/index1.php Removed Paths: ------------- trunk/_framework/img2fbx.php trunk/_framework/lib/img_cr.php trunk/module/films/playba.php Modified: trunk/_framework/fonctions_partagees.inc.php =================================================================== --- trunk/_framework/fonctions_partagees.inc.php 2007-05-22 21:38:57 UTC (rev 158) +++ trunk/_framework/fonctions_partagees.inc.php 2007-05-23 15:01:43 UTC (rev 159) @@ -854,4 +854,41 @@ $smarty->assign('VLC',$VLC); } + +// T\xE9l\xE9charge une page internet et la met en cache ou r\xE9cup\xE8re directement son contenu mis en cache +function file_get_contents_cache($adresse, $heures=1){ +global $USER, $CACHE_IMAGE; + $db = sqlite_open($USER.'cache.db', 0666); + $fichier = md5($adresse); + clean_cache(); + $res = sqlite_query($db,'SELECT * FROM cache WHERE fichier="'.$fichier.'"'); + if(sqlite_num_rows($res)>0 AND file_exists($CACHE_IMAGE.$fichier)){ + $retour = file_get_contents($CACHE_IMAGE.$fichier); + }else{ + $retour = file_get_contents($adresse); + file_put_contents($CACHE_IMAGE.$fichier, $retour); + sqlite_query($db,'INSERT INTO cache VALUES(NULL,\''.sqlite_escape_string($fichier).'\', \''.(time()+($heures*3600)).'\')'); + } + sqlite_close($db); + return $retour; +} + +// Ouvre un fichier xml en le mettant en cache +function simplexml_load_file_cache($adresse, $heures){ + return simplexml_load_string(file_get_contents_cache($adresse, $heures)); +} + +// Nettoie les fichiers p\xE9rim\xE9s du cache +function clean_cache(){ +global $USER, $CACHE_IMAGE; + $db = sqlite_open($USER.'cache.db', 0666); + $temps = time(); + $res = sqlite_query($db,'SELECT * FROM cache WHERE expire<"'.$temps.'"'); + $retour = sqlite_fetch_all($res); + foreach($retour as $r){ + unlink($CACHE_IMAGE.$r['fichier']); + } + sqlite_query($db,'DELETE FROM cache WHERE expire<"'.$temps.'"'); + sqlite_close($db); +} ?> Deleted: trunk/_framework/img2fbx.php =================================================================== --- trunk/_framework/img2fbx.php 2007-05-22 21:38:57 UTC (rev 158) +++ trunk/_framework/img2fbx.php 2007-05-23 15:01:43 UTC (rev 159) @@ -1,79 +0,0 @@ -<?php -$RACINE_REP = realpath("../"); -$CACHE_IMAGE = $RACINE_REP."/_utilisateur/cache/"; - -$sURL=urldecode($_REQUEST['sURL']); - -list($width, $height, $type) = getimagesize($sURL); - -if (isset($_REQUEST['nbcouleurs'])) { - $nbcouleurs = $_REQUEST['nbcouleurs']; -} else { - $nbcouleurs = 128; -} - -function is_cached($url){ -global $CACHE_IMAGE; - if(file_exists($CACHE_IMAGE.md5($url).'.gif')){ - RETURN True; - }else{ - RETURN False; - } -} - -//R\xE9cup\xE8re l'image dans le cache si il faut -if(is_cached($sURL.$_REQUEST['new_width'].$_REQUEST['new_height']) && $_REQUEST['cache']==1){ - $oIm = imagecreatefromgif($CACHE_IMAGE.md5($sURL.$_REQUEST['new_width'].$_REQUEST['new_height']).'.gif'); - if(!headers_sent()){ - header('Content-Type: image/gif'); - imagegif($oIm); - imagedestroy($oIm); - die(); - } -}else{ - -switch($type){ - case 1 : //GIF - $oIm = imagecreatefromgif($sURL); - break; - case 2 : //JPG - $oIm = imagecreatefromjpeg($sURL); - break; - case 3 : // PNG - $oIm = imagecreatefrompng($sURL); - break; -} - - if(isset($_REQUEST['new_width']) && isset($_REQUEST['new_height'])){ - - $colors_handle = ImageCreatetruecolor($_REQUEST['new_width'],$_REQUEST['new_height']); - imagecopyresampled( $colors_handle, $oIm, 0, 0, 0, 0, $_REQUEST['new_width'], $_REQUEST['new_height'],$width, $height ); - ImageTrueColorToPalette( $colors_handle, false, $nbcouleurs ); - - if($_REQUEST['cache']==1){ - imagegif($colors_handle,$CACHE_IMAGE.md5($sURL.$_REQUEST['new_width'].$_REQUEST['new_height']).'.gif'); - } - - if(!headers_sent()){ - header('Content-Type: image/gif'); - imagegif($colors_handle); - imagedestroy($oIm); - ImageDestroy( $colors_handle ); - die(); - } - }else{ - imagetruecolortopalette($oIm, false, $nbcouleurs); - - if($_REQUEST['cache']==1){ - imagegif($oIm,$CACHE_IMAGE.md5($sURL).'.gif'); - } - - if(!headers_sent()) { - header('Content-Type: image/gif'); - imagegif($oIm); - imagedestroy($oIm); - die(); - } - } -} -?> Deleted: trunk/_framework/lib/img_cr.php =================================================================== --- trunk/_framework/lib/img_cr.php 2007-05-22 21:38:57 UTC (rev 158) +++ trunk/_framework/lib/img_cr.php 2007-05-23 15:01:43 UTC (rev 159) @@ -1,186 +0,0 @@ -<?php - -$RACINE_REP = realpath("../../"); -$CACHE_IMAGE = $RACINE_REP."/_utilisateur/cache/"; - -if (isset($_GET['img'])){ - if ($_GET['local']){ - $img = urldecode($_GET['img']); - }else{ - $img ='../'.urldecode($_GET['img']); - } -}else exit; -if (isset($_GET['h'])) - $h = $_GET['h']; -else -$h="70"; - -$format=$_GET['format']; - -if (isset($_GET['w'])) -$w = $_GET['w']; -else -$w="93"; - - -/*$img = str_replace("\\", "/",$img); -$img = ereg_replace("//", "/",$img); -$img = str_replace("[", "*",$img); -$img = str_replace("]", "*",$img);*/ -define("IMAGE_FLIP_HORIZONTAL", 1); -define("IMAGE_FLIP_VERTICAL", 2); -define("IMAGE_FLIP_BOTH", 3); - -function imageajuste(&$image1,$image2,$largeur,$hauteur,$position,$quality){ -global $format; - $pourcent=min (min(($largeur/imagesx($image2)),1),min(($hauteur/imagesy($image2)),1)); - $redimx=floor(imagesx($image2)*$pourcent); - $redimy=floor(imagesy($image2)*$pourcent); - $image1 = imagecreatetruecolor($redimx, $redimy); - -if($quality=="max"){ -ImageCopyresampled($image1,$image2,$px,$py,0,0,round($redimx),round($redimy),imagesx($image2),imagesy($image2)); -}else{ -imagecopyresized($image1,$image2,$px,$py, 0, 0, round($redimx),round($redimy), imagesx($image2),imagesy($image2)); -} -} - -function ImageFlip($imgsrc, $type) -{ - $width = imagesx($imgsrc); - $height = imagesy($imgsrc); - - $imgdest = imagecreatetruecolor($width, $height); - ImageAlphaBlending($imgdest, false); - - switch( $type ) - { - // mirror wzgl. osi - case IMAGE_FLIP_HORIZONTAL: - for( $y=0 ; $y<$height ; $y++ ) - imagecopy($imgdest, $imgsrc, 0, $height-$y-1, 0, $y, $width, 1); - break; - - case IMAGE_FLIP_VERTICAL: - for( $x=0 ; $x<$width ; $x++ ) - imagecopy($imgdest, $imgsrc, $width-$x-1, 0, $x, 0, 1, $height); - break; - - case IMAGE_FLIP_BOTH: - for( $x=0 ; $x<$width ; $x++ ) - imagecopy($imgdest, $imgsrc, $width-$x-1, 0, $x, 0, 1, $height); - - $rowBuffer = imagecreatetruecolor($width, 1); - for( $y=0 ; $y<($height/2) ; $y++ ) - { - imagecopy($rowBuffer, $imgdest , 0, 0, 0, $height-$y-1, $width, 1); - imagecopy($imgdest , $imgdest , 0, $height-$y-1, 0, $y, $width, 1); - imagecopy($imgdest , $rowBuffer, 0, $y, 0, 0, $width, 1); - } - - imagedestroy( $rowBuffer ); - break; - } - - return( $imgdest ); -} - -function ImageRotateRightAngle( $imgSrc, $angle ) -{ - // ensuring we got really RightAngle (if not we choose the closest one) - $angle = min( ( (int)(($angle+45) / 90) * 90), 270 ); - - // no need to fight - if( $angle == 0 ) - return( $imgSrc ); - - // dimenstion of source image - $srcX = imagesx( $imgSrc ); - $srcY = imagesy( $imgSrc ); - - switch( $angle ) - { - case 90: - $imgDest = imagecreatetruecolor( $srcY, $srcX ); - for( $x=0; $x<$srcX; $x++ ) - for( $y=0; $y<$srcY; $y++ ) - imagecopy($imgDest, $imgSrc, $srcY-$y-1, $x, $x, $y, 1, 1); - break; - - case 180: - $imgDest = ImageFlip( $imgSrc, IMAGE_FLIP_BOTH ); - break; - - case 270: - $imgDest = imagecreatetruecolor( $srcY, $srcX ); - for( $x=0; $x<$srcX; $x++ ) - for( $y=0; $y<$srcY; $y++ ) - imagecopy($imgDest, $imgSrc, $y, $srcX-$x-1, $x, $y, 1, 1); - break; - } - - return( $imgDest ); -} - -function is_cached($url){ -global $CACHE_IMAGE; - if(file_exists($CACHE_IMAGE.md5($url).'.gif')){ - RETURN True; - }else{ - RETURN False; - } -} - -if(isset($_GET['formatw']) && isset($_GET['formath'])){ -$h = $_GET['formath']; -$w = $_GET['formatw']; -}elseif ($format == "1") { - $h = "68";$w="88"; -}elseif($format == "2"){ - $h = "460";$w="620"; -}elseif($format == "0"){ - $h = "515";$w="660"; -} - -if(is_cached($img.$h.$w.$_GET['tourne'])){ - -$img_cr = imagecreatefromgif($CACHE_IMAGE.md5($img.$h.$w.$_GET['tourne']).'.gif'); - -}else{ - -$ext = strtolower(substr($img,strrpos($img,'.'))); -switch($ext){ - case ".jpg": - $origin = imagecreatefromjpeg($img); - break; - case ".gif": - $origin = imagecreatefromgif($img); - break; - case ".png": - $origin = imagecreatefrompng($img); - break; - } - -if ($_GET['tourne']) { - // Rotation - $ang=$_GET['tourne']; - if (abs($ang)>=360) - $ang=fmod($ang,360); - if ($ang<0) - $ang=360+$ang; - $origin = ImageRotateRightAngle($origin,$ang); -} - -imageajuste($img_cr, $origin, $w, $h, 5, $_GET['quality']); -imagegif($img_cr,$CACHE_IMAGE.md5($img.$h.$w.$_GET['tourne']).'.gif'); -} - -// on retourne l'image -header("Content-Type: image/gif"); -imagegif($img_cr); - -// destruction des images de la memoire -imagedestroy($img_cr); -imagedestroy($origin); - -?> Modified: trunk/configuration/bases.xml =================================================================== --- trunk/configuration/bases.xml 2007-05-22 21:38:57 UTC (rev 158) +++ trunk/configuration/bases.xml 2007-05-23 15:01:43 UTC (rev 159) @@ -94,6 +94,10 @@ <name>film</name> <syntax>CREATE TABLE film ( id INTEGER NOT NULL PRIMARY KEY DEFAULT "0" , file TEXT, name TEXT , Synopsis TEXT , img TEXT , sortie INT , realisateur TEXT , avec TEXT , film TEXT , genre TEXT , Duree TEXT , production TEXT , critique_visiteurs TEXT , critique_presse TEXT , ba TEXT )</syntax> </table> + <table> + <name>cache</name> + <syntax>CREATE TABLE cache ( id INTEGER NOT NULL PRIMARY KEY DEFAULT "0" , fichier TEXT, expire TEXT )</syntax> + </table> </base> <base> Modified: trunk/module/cinefil/index1.php =================================================================== --- trunk/module/cinefil/index1.php 2007-05-22 21:38:57 UTC (rev 158) +++ trunk/module/cinefil/index1.php 2007-05-23 15:01:43 UTC (rev 159) @@ -18,13 +18,8 @@ $titre = 'Sorties cin\xE9ma de la semaine du mercredi '.$semaine; $serverDefaultPage='http://www.allocine.fr/film/cettesemaine_gen_page='.$week.'.html'; -$page = @fopen ($serverDefaultPage, 'r') ; +$contenu_html = file_get_contents_cache($serverDefaultPage,2); -$contenu_html = ''; -while (!feof ($page)) { - $contenu_html .= trim(fgets($page, 4096)); -} - $ereg = 'width="120" valign="top"><a class="link1" href="fichefilm_gen_cfilm=(.{1,15}).html"><img src="(.{1,200})" border="0" (.{1,350})<table cellpadding="0" cellspacing="0" border="0"><tr><td style="padding: 0 0 0 0"><h2><a class="link1" href="\/film\/fichefilm_gen_cfilm=(.{1,15}).html">(.{1,100})<\/a><\/h2>(.{1,200})<td style="padding: 5 0 0 0;"><h5>(.{0,70})<\/h5><\/td><\/tr>'; preg_match_all("/$ereg/s", $contenu_html, $valeur); Modified: trunk/module/clips/index1.php =================================================================== --- trunk/module/clips/index1.php 2007-05-22 21:38:57 UTC (rev 158) +++ trunk/module/clips/index1.php 2007-05-23 15:01:43 UTC (rev 159) @@ -15,7 +15,7 @@ $smarty->assign('TITRE','Clips - '.$title[$show]); function get_videos_id($page){ - $contenu = str_replace("\r\n",'',@file_get_contents($page)); + $contenu = str_replace("\r\n",'',@file_get_contents_cache($page,5)); $ereg = '<table cellpadding="0"><tr><td class="listitem"><a href="http:\/\/fr.music.yahoo.com\/ar-(.{1,50})" title="(.{1,50})">(.{1,50})<\/a><\/td><\/tr><\/table><\/td><td bgcolor="(.{1,90})<td><table cellpadding="0" width="100%"><tr><td class="listheader"><a href="javascript:playLAUNCHVideo\((.{1,10})\)" class="listheader" title="(.{1,70})">(.{1,70})<\/a><\/td>(.{1,1500})photo=(.{1,150})&url'; preg_match_all("/$ereg/s", $contenu, $valeur); foreach($valeur[2] as $key=>$val){ @@ -27,7 +27,7 @@ } function get_recherche($rec){ - $contenu = str_replace("\r\n",'',@file_get_contents('http://search.fr.music.yahoo.com/search/?p='.urlencode($rec).'&m=video')); + $contenu = str_replace("\r\n",'',@file_get_contents_cache('http://search.fr.music.yahoo.com/search/?p='.urlencode($rec).'&m=video',5)); $ereg = '<td bgcolor=......><a href=javascript:playVideos\((.{1,10})\); title="(.{1,50})"><b>(.{1,50})<\/b><\/a><\/td><td bgcolor=......><a href=http:\/\/fr.music.yahoo.com\/ar-(.{1,50})><font title="(.{1,50})">(.{1,50})<\/font><\/a><\/td><td bgcolor=...... align=center class="yss_right'; preg_match_all("/$ereg/s", $contenu, $valeur); foreach($valeur[2] as $key=>$val){ Modified: trunk/module/dailymotion/index1.php =================================================================== --- trunk/module/dailymotion/index1.php 2007-05-22 21:38:57 UTC (rev 158) +++ trunk/module/dailymotion/index1.php 2007-05-23 15:01:43 UTC (rev 159) @@ -15,7 +15,7 @@ $smarty->assign('TITRE','Vid\xE9os Dailymotion - '.$title[$show]); function get_videos_id($page){ - $xml = simplexml_load_file($page); + $xml = simplexml_load_file_cache($page,2); if(count($xml->channel->item)!=0){ foreach($xml->channel->item as $item){ $img = ''; Modified: trunk/module/ephemeride/index1.php =================================================================== --- trunk/module/ephemeride/index1.php 2007-05-22 21:38:57 UTC (rev 158) +++ trunk/module/ephemeride/index1.php 2007-05-23 15:01:43 UTC (rev 159) @@ -5,23 +5,23 @@ $monthes = array('','Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet','Aout', 'Septembre', 'Octobre', 'Novembre', 'Décembre'); $day = array('Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'); -$contenu = file_get_contents("http://www.ephemeride.com/free/fete.jsp", "r"); +$contenu = file_get_contents_cache("http://www.ephemeride.com/free/fete.jsp", 12); $ereg = '<font class="FeteHomme">(.{1,30})<\/font>'; preg_match("/$ereg/s", $contenu, $valeur); $fetes=stripslashes(html_entity_decode($valeur[1])); -$contenu = file_get_contents("http://www.ephemeride.com/free/dicton.jsp", "r"); +$contenu = file_get_contents_cache("http://www.ephemeride.com/free/dicton.jsp", 12); $ereg = '<tr><td class="fmb" style="padding:2px" height="60">(.{1,300})<br><center>'; preg_match("/$ereg/s", $contenu, $valeur); $dicton = stripslashes(html_entity_decode($valeur[1])); -$contenu = file_get_contents("http://www.ephemeride.com/free/citation.jsp", "r"); +$contenu = file_get_contents_cache("http://www.ephemeride.com/free/citation.jsp", 12); $ereg = '<tr><td class="fmb" style="padding:2px" height="60">(.{1,300})<div align="right"><span class="cita"><b>(.{1,30})<\/b><\/span><\/div>'; preg_match("/$ereg/s", $contenu, $valeur); $citation = stripslashes(html_entity_decode($valeur[1])); $auteur = stripslashes(html_entity_decode($valeur[2])); -$contenu = file_get_contents("http://www.ephemeride.com/free/proverbe.jsp", "r"); +$contenu = file_get_contents_cache("http://www.ephemeride.com/free/proverbe.jsp", 12); $ereg = '<td class="fmb" style="padding:2px" height="60">(.{1,300})<br><center>'; preg_match("/$ereg/s", $contenu, $valeur); $proverbe = stripslashes(html_entity_decode($valeur[1])); Deleted: trunk/module/films/playba.php =================================================================== --- trunk/module/films/playba.php 2007-05-22 21:38:57 UTC (rev 158) +++ trunk/module/films/playba.php 2007-05-23 15:01:43 UTC (rev 159) @@ -1,47 +0,0 @@ -<?php -$RACINE_REP = "../../"; -require($RACINE_REP.'_framework/framework.php'); -$BACKGROUND='none'; - -if($pagerecherche = @file_get_contents('http://www.cinemovies.fr/players/video.php?IDBA='.$_REQUEST['toplay'])){ - -$ereg = '<embed src="(.{1,150})" width'; -preg_match("/$ereg/s", $pagerecherche, $valeur); - if(isset($valeur[1])){ - $basename=$valeur[1]; - }else{ - $ereg = '<param name="filename" value="(.{1,120})wmv">'; - preg_match("/$ereg/s", $pagerecherche, $valeur); - $basename=$valeur[1].'wmv'; - } -} - -play_fichier('type=40',str_replace(' ','%20',$basename),0,'ba',$_REQUEST['titre']); - - $LINK['stop']=$MODULE.'films/lecture.php?control=stop'; - $LINK['play']=$MODULE.'films/lecture.php?control=play'; - $LINK['pause']=$MODULE.'films/lecture.php?control=pause'; - $LINK['info']=$MODULE.'films/info.php'; - $LINK['options']=$MODULE.'films/info.php'; - $LINK['blue']=$MODULE.'films/lecture.php?savesignet=1'; - $LINK['red']=$MODULE.'films/lecture.php?next_ss=1'; - $LINK['yellow']=$MODULE.'films/info.php?module=infos'; - $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'; - -?> -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> -<html> -<head> -<meta name="refresh" content="0;url=lecture.php"> -<script language="javascript" src="/fb2ie.js"> -</script> -</head> -<body></body></html> - Modified: trunk/module/guidetv/tvprogram.php =================================================================== --- trunk/module/guidetv/tvprogram.php 2007-05-22 21:38:57 UTC (rev 158) +++ trunk/module/guidetv/tvprogram.php 2007-05-23 15:01:43 UTC (rev 159) @@ -40,7 +40,7 @@ function infos_emissions($id,$debut,$fin){ if($id!=''){ $infos = true; - $contenu_html = file_get_contents ('http://telepoche.guidetele.com/fiche/emi_'.$id); + $contenu_html = file_get_contents_cache ('http://telepoche.guidetele.com/fiche/emi_'.$id,24); $ereg = "<span class=\"noir11\">(.{1,1000})<\/span><br \/>"; preg_match("/$ereg/s",$contenu_html, $content); @@ -93,7 +93,7 @@ function programme_chaine($chaine, $jour){ - $contenu_html = file_get_contents('http://telepoche.guidetele.com/gtvnew/journee?openagent&c='.$chaine['id'].'&d='.$jour.'&h=0'); + $contenu_html = file_get_contents_cache('http://telepoche.guidetele.com/gtvnew/journee?openagent&c='.$chaine['id'].'&d='.$jour.'&h=0',48); $ereg = "showmenu\('(.{1,3})h(.{1,3})-(.{1,3})h(.{1,3})<br> (.{1,40})<br> Showview : (.{1,8})','(.{1,100})'\)\" onMouseout=\"hidemenu\(\)\" onclick=\"(.{1,80})\""; preg_match_all("/$ereg/s", utf8_encode($contenu_html), $valeurs); Modified: trunk/module/mp3/paroles.php =================================================================== --- trunk/module/mp3/paroles.php 2007-05-22 21:38:57 UTC (rev 158) +++ trunk/module/mp3/paroles.php 2007-05-23 15:01:43 UTC (rev 159) @@ -16,7 +16,7 @@ if (isset($_REQUEST['hid'])) { $hid = urldecode($_REQUEST['hid']); - $xml2 = simplexml_load_file('http://api.leoslyrics.com/api_lyrics.php?auth=leolyrics5&hid='.urlencode($hid)); + $xml2 = simplexml_load_file_cache('http://api.leoslyrics.com/api_lyrics.php?auth=leolyrics5&hid='.urlencode($hid),1); $CONTENT .= utf8_decode($xml2->lyric->artist->name).' - '.utf8_decode($xml2->lyric->album->name).' - '.utf8_decode($xml2->lyric->title).'<br> <br>'; $CONTENT .= nl2br(utf8_decode($xml2->lyric->text)); @@ -35,14 +35,8 @@ $artist = $id3->artists; $name = $id3->name; } - $file='http://api.leoslyrics.com/api_search.php?auth=leolyrics5&artist='.urlencode($artist).'&songtitle='.urlencode($name); - if($handle = fopen ($file, "r")){ - while (!feof ($handle)) { - $fichierxml.= trim(fgets($handle, 4096)); - } - } - fclose($handle); - $xml = simplexml_load_string($fichierxml); + + $xml = simplexml_load_file_cache($file,1); for ($i=0;$i<=20;$i++){ if($xml->searchResults->result[$i]->title!=""){ $c=1; @@ -52,7 +46,7 @@ $c++; } if ($xmlb[$i][3]=="true"){ - $xml2 = simplexml_load_file('http://api.leoslyrics.com/api_lyrics.php?auth=leolyrics5&hid='.urlencode($xmlb[$i][2])); + $xml2 = simplexml_load_file_cache('http://api.leoslyrics.com/api_lyrics.php?auth=leolyrics5&hid='.urlencode($xmlb[$i][2]),1); $CONTENT .= utf8_decode($xml2->lyric->artist->name).' - '.utf8_decode($xml2->lyric->album->name).' - '.utf8_decode($xml2->lyric->title).'<br> <br>'; $CONTENT .= nl2br(utf8_decode($xml2->lyric->text)); break; Modified: trunk/module/mp3/podcast.php =================================================================== --- trunk/module/mp3/podcast.php 2007-05-22 21:38:57 UTC (rev 158) +++ trunk/module/mp3/podcast.php 2007-05-23 15:01:43 UTC (rev 159) @@ -31,7 +31,7 @@ $smarty->assign('ROW',sqlite_fetch_all($result2)); sqlite_close($db); }else{ - $content=file_get_contents($url); + $content=file_get_contents_cache($url,1); $xml = simplexml_load_string(str_replace("itunes:","itunes",$content)); $podcast = array('titre'=>utf8_decode($xml->channel->title),'sommaire'=>utf8_decode($xml->channel->itunessummary)); Modified: trunk/module/recettes/index1.php =================================================================== --- trunk/module/recettes/index1.php 2007-05-22 21:38:57 UTC (rev 158) +++ trunk/module/recettes/index1.php 2007-05-23 15:01:43 UTC (rev 159) @@ -30,10 +30,7 @@ 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 - } + $contenu = file_get_contents_cache($categ,2); if (isset ($_REQUEST['type'])) { // Si un type pr\xE9cis de liste est donn\xE9 $type = $_REQUEST['type']; Modified: trunk/module/recettes/recettes.php =================================================================== --- trunk/module/recettes/recettes.php 2007-05-22 21:38:57 UTC (rev 158) +++ trunk/module/recettes/recettes.php 2007-05-23 15:01:43 UTC (rev 159) @@ -25,12 +25,8 @@ // Creation de l'URL de l'image associ\xE9e a la recette $urlimg = urlencode('http://' . str_replace("recettes/recette.cfm?num_recette=", "recipephotos/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 -} - + $contenu = file_get_contents_cache('http://' . urldecode($url),2); + // Si le le visiteur demande les informations sur la recette if ($etape == 'info') { Modified: trunk/module/seances/programme_cine.tpl =================================================================== --- trunk/module/seances/programme_cine.tpl 2007-05-22 21:38:57 UTC (rev 158) +++ trunk/module/seances/programme_cine.tpl 2007-05-23 15:01:43 UTC (rev 159) @@ -1,4 +1,4 @@ -<font size="4">{$TITRE2}</font> +<font size="4">{$TITRE2}</font><br> {if $MIN!=0} {assign var=temp value=$MIN-3|max:0} {attribbouton touche="green" lien="voirsalle.php?salle=$s&min=$temp"} Modified: trunk/module/seances/voirsalle.php =================================================================== --- trunk/module/seances/voirsalle.php 2007-05-22 21:38:57 UTC (rev 158) +++ trunk/module/seances/voirsalle.php 2007-05-23 15:01:43 UTC (rev 159) @@ -21,15 +21,8 @@ $serverDefaultPage="http://www.allocine.fr/seance/salle_gen_csalle=$s"; -$page = @fopen ($serverDefaultPage, 'r') - or die('Impossible d\'ouvrir la page '.$serverDefaultPage); +$contenu_html = file_get_contents_cache($serverDefaultPage, 2); -$contenu_html = ''; -while (!feof ($page)) { - $contenu_html .= trim(fgets($page, 4096)); - } - - $ereg = '<h1 style="color: #D20000"><b>(.{1,30})<\/b>'; preg_match("/$ereg/s", $contenu_html, $valeur); $cine = $valeur[1]; Modified: trunk/module/stage6/index1.php =================================================================== --- trunk/module/stage6/index1.php 2007-05-22 21:38:57 UTC (rev 158) +++ trunk/module/stage6/index1.php 2007-05-23 15:01:43 UTC (rev 159) @@ -14,7 +14,7 @@ $smarty->assign('TITRE','Vid\xE9os Stage6 - '.$title[$show]); function get_videos_id($page){ - $xml = simplexml_load_file($page); + $xml = simplexml_load_file_cache($page,2); if(count($xml->channel->item)!=0){ foreach($xml->channel->item as $item){ $img = ''; @@ -35,7 +35,7 @@ if($show=='rec'){ }else{ - $contenu = str_replace("\n",'',@file_get_contents($url2)); + $contenu = str_replace("\n",'',@file_get_contents_cache($url2,1)); $ereg = '\?page=(.{1,6})\'>(.{1,6})<\/a> <a class=\'pagination-number pagination-right'; preg_match("/$ereg/s", $contenu, $valeur); return $valeur[2]*18; Modified: trunk/module/youtube/index1.php =================================================================== --- trunk/module/youtube/index1.php 2007-05-22 21:38:57 UTC (rev 158) +++ trunk/module/youtube/index1.php 2007-05-23 15:01:43 UTC (rev 159) @@ -15,7 +15,7 @@ $smarty->assign('TITRE','Vid\xE9os Youtube - '.$title[$show]); function get_videos_id($page){ - $contenu = str_replace("\n",'',@file_get_contents($page)); + $contenu = str_replace("\n",'',@file_get_contents_cache($page,2)); $ereg = '<a href="\/watch\?v=(.{1,12})"><img src="(.{1,200})" class=" vimg " alt="video" \/><\/a><\/div> <\/div> <div class="vtitle"> <a href="\/watch\?v=(.{1,12})" onclick="_hbLink\(\'(.{0,100})\',\'(.{1,50})\'\);">(.{1,100})<\/a><br\/> <span class="runtime">(.{1,10})<\/span>'; preg_match_all("/$ereg/s", $contenu, $valeur); foreach($valeur[1] as $key=>$val){ @@ -25,7 +25,7 @@ } function get_recherche($rec,$page){ - $contenu = str_replace("\n",'',@file_get_contents('http://www.youtube.com/results?search_query='.urlencode($rec).'&search=Search&page='.$page)); + $contenu = str_replace("\n",'',@file_get_contents_cache('http://www.youtube.com/results?search_query='.urlencode($rec).'&search=Search&page='.$page,2)); $ereg = '<img src="(.{1,200})" border="0" class="vimg120" \/><\/a><\/div> <\/div> <\/td> <td class="vinfo"> <div class="vSnippetTitle"> <a href="\/watch\?v=(.{1,12})" rel="nofollow" onclick="_hbLink\(\'(.{1,100})\',\'(.{1,50})\'\);">(.{1,100})<\/a><br\/> <span class="runtime">(.{1,10})<\/span>'; preg_match_all("/$ereg/s", $contenu, $valeur); foreach($valeur[1] as $key=>$val){ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2007-05-23 21:05:17
|
Revision: 160 http://svn.sourceforge.net/easybox-mod/?rev=160&view=rev Author: aragornis Date: 2007-05-23 14:05:15 -0700 (Wed, 23 May 2007) Log Message: ----------- - compatibilit?\195?\169 avec les v3/v4 non d?\195?\169group?\195?\169s (les images du net r?\195?\169apparaissent ^^) -> v4.1.2 Modified Paths: -------------- trunk/_framework/framework.php trunk/_framework/lib/lib_photo.php trunk/_utilisateur/modules.db trunk/version.html Modified: trunk/_framework/framework.php =================================================================== --- trunk/_framework/framework.php 2007-05-23 15:01:43 UTC (rev 159) +++ trunk/_framework/framework.php 2007-05-23 21:05:15 UTC (rev 160) @@ -9,8 +9,12 @@ $vers_fbx = $_SERVER["HTTP_USER_AGENT"]; $ereg = 'freebox\/[0-9]\.[0-9]\.[0-9] \(hw:([0-9]).0;'; - preg_match("/$ereg/s", $vers_fbx, $val_vers); - $vers_fbx = $val_vers[1]; + if(preg_match("/$ereg/s", $vers_fbx, $val_vers)){ + $vers_fbx = $val_vers[1]; + }else{ + $vers_fbx = 4; + } + unset($val_vers); //-- Chargement du r\xE9pertoire du framework Modified: trunk/_framework/lib/lib_photo.php =================================================================== --- trunk/_framework/lib/lib_photo.php 2007-05-23 15:01:43 UTC (rev 159) +++ trunk/_framework/lib/lib_photo.php 2007-05-23 21:05:15 UTC (rev 160) @@ -66,7 +66,7 @@ if(preg_match("/$ereg/s", $vers_fbx, $val_vers)){ $this->fbx = $val_vers[1]; }else{ - $this->fbx = 5; + $this->fbx = 4; } // Change le format d'exportation selon la version de la freebox Modified: trunk/_utilisateur/modules.db =================================================================== (Binary files differ) Modified: trunk/version.html =================================================================== --- trunk/version.html 2007-05-23 15:01:43 UTC (rev 159) +++ trunk/version.html 2007-05-23 21:05:15 UTC (rev 160) @@ -4,6 +4,6 @@ </head> <body> <h1>Easybox</h1> -<h2>4.1.1</h2> +<h2>4.1.2</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...> - 2007-05-25 19:13:53
|
Revision: 161 http://svn.sourceforge.net/easybox-mod/?rev=161&view=rev Author: aragornis Date: 2007-05-25 12:13:50 -0700 (Fri, 25 May 2007) Log Message: ----------- R?\195?\169solution probl?\195?\168me de dates incoh?\195?\169rentes sur le module guidetv Modified Paths: -------------- trunk/_framework/demarrage.php trunk/module/guidetv/tvprogram.php Modified: trunk/_framework/demarrage.php =================================================================== --- trunk/_framework/demarrage.php 2007-05-23 21:05:15 UTC (rev 160) +++ trunk/_framework/demarrage.php 2007-05-25 19:13:50 UTC (rev 161) @@ -90,7 +90,9 @@ } //Suppression des trop gros fichiers du cache - $files = glob($CACHE_IMAGE.'*'); + $files = glob($CACHE_IMAGE.'*.png'); + $files2 = glob($CACHE_IMAGE.'*.gif'); + $files = array_merge($files, $files2); foreach ($files as $filename) { if(filesize($filename)>=75000 OR (filemtime($filename)+864000)<=time()){ @unlink($filename); Modified: trunk/module/guidetv/tvprogram.php =================================================================== --- trunk/module/guidetv/tvprogram.php 2007-05-23 21:05:15 UTC (rev 160) +++ trunk/module/guidetv/tvprogram.php 2007-05-25 19:13:50 UTC (rev 161) @@ -1,7 +1,7 @@ <?php $RACINE_REP = "../../"; require($RACINE_REP.'_framework/framework.php'); -setlocale(LC_TIME, 'french'); +setlocale(LC_TIME, 'fr_FR'); (isset($_GET['min']))?$min=$_GET['min']:$min=0; (isset($_GET['jour'])&&$_GET['jour'])?$jour=$_GET['jour']:$jour=2; @@ -133,7 +133,7 @@ if(isset($_GET['emission'])){ $LINK['red'] = 'tvprogram.php?jour='.$jour.'&chaine='.$chaine['id'].'&min='.$min; - $smarty->assign('TITRE','Programme t\xE9l\xE9 - '.$chaine['nom'].' - '.strftime("%A",mktime(0,0,0,date('m'),date('d')+($jour-1),date('Y'))).' '.date("d",mktime(0,0,0,date('m'),date('d')+($jour-1),date('Y')))); + $smarty->assign('TITRE','Programme t\xE9l\xE9 - '.$chaine['nom'].' - '.strftime("%A",mktime(0,0,0,date('m'),date('d')+($jour-2),date('Y'))).' '.date("d",mktime(0,0,0,date('m'),date('d')+($jour-2),date('Y')))); $smarty->assign('EMISSION',infos_emissions($_GET['emission'],$_GET['debut'],$_GET['fin'])); $smarty->assign('CONTENT',$smarty->fetch('guidetv.tpl')); @@ -141,7 +141,7 @@ $LINK['red'] = 'tvprogram.php'; $info_chaine = '&chaine='.$chaine['id']; - $smarty->assign('TITRE','Programme t\xE9l\xE9 - '.$chaine['nom'].' - '.strftime("%A",mktime(0,0,0,date('m'),date('d')+($jour-1),date('Y'))).' '.date("d",mktime(0,0,0,date('m'),date('d')+($jour-1),date('Y')))); + $smarty->assign('TITRE','Programme t\xE9l\xE9 - '.$chaine['nom'].' - '.strftime("%A",mktime(0,0,0,date('m'),date('d')+($jour-2),date('Y'))).' '.date("d",mktime(0,0,0,date('m'),date('d')+($jour-2),date('Y')))); $smarty->assign('EMISSIONS',programme_chaine($chaine,$jour)); $smarty->assign('CONTENT',$smarty->fetch('guidetv.tpl')); @@ -154,7 +154,7 @@ $MENU_ALT[] = array('lien'=>'tvprogram.php?jour=2'.$info_chaine, 'nom'=>'Aujourd\'hui', 'selected'=>$date==2); $MENU_ALT[] = array('lien'=>'tvprogram.php?jour=3'.$info_chaine, 'nom'=>'Demain', 'selected'=>$date==3); for($i = 4; $i <= 7 ;$i++){ - $MENU_ALT[] = array('lien'=>'tvprogram.php?jour='.$i.$info_chaine, 'nom'=>ucfirst(strftime("%a",mktime(0,0,0,date('m'),date('d')+($i-2),date('Y')))).' '.date("d",mktime(0,0,0,date('m'),date('d')+($i-1),date('Y'))), 'selected'=>$date==$i); + $MENU_ALT[] = array('lien'=>'tvprogram.php?jour='.$i.$info_chaine, 'nom'=>ucfirst(strftime("%a",mktime(0,0,0,date('m'),date('d')+($i-2),date('Y')))).' '.date("d",mktime(0,0,0,date('m'),date('d')+($i-2),date('Y'))), 'selected'=>$date==$i); } $smarty->display('interface.tpl'); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2007-05-28 19:48:33
|
Revision: 164 http://svn.sourceforge.net/easybox-mod/?rev=164&view=rev Author: aragornis Date: 2007-05-28 12:48:30 -0700 (Mon, 28 May 2007) Log Message: ----------- - skin ETI (pour d?\195?\169group?\195?\169s seulement) - r?\195?\169paration de qq bugs Modified Paths: -------------- trunk/_framework/fonctions_partagees.inc.php trunk/_framework/lib/lib_photo.php trunk/skin/mediacenter/films.tpl trunk/skin/mediacenter/menu.tpl Added Paths: ----------- trunk/skin/ETI/ trunk/skin/ETI/audio.tpl trunk/skin/ETI/avertissement.tpl trunk/skin/ETI/bouton.tpl Removed Paths: ------------- trunk/module/telesite/ Modified: trunk/_framework/fonctions_partagees.inc.php =================================================================== --- trunk/_framework/fonctions_partagees.inc.php 2007-05-26 09:43:53 UTC (rev 163) +++ trunk/_framework/fonctions_partagees.inc.php 2007-05-28 19:48:30 UTC (rev 164) @@ -262,7 +262,7 @@ function DISQUES(){ $lect=array(); if (PHP_OS == "WIN32" || PHP_OS == "WINNT") { - $obj = new COM ( 'Scripting.FileSystemObject' ); + $obj = @new COM ( 'Scripting.FileSystemObject' ); if ( is_object ( $obj ) ) { @@ -299,21 +299,21 @@ { $lect[] = array('lettre'=>$io->DriveLetter, 'path'=>$io->DriveLetter.':\\', 'type'=>$type, 'nom'=>$io->VolumeName, 'gif'=>$gifFile); } -// BDE - 18/10/2006 - Modification dans la gestion des disques -// Le code suivant est \xE0 d\xE9commenter pour afficher les disques HS -/* - else - { - $gifFile = $gifFile.'KO'; - $lect[] = array('lettre'=>$io->DriveLetter, 'path'=>$io->DriveLetter.':\\', 'type'=>$type, 'nom'=>'Non accessible', 'gif'=>$gifFile); - } -*/ } // On ajoute le bouton de rafraichissement $lect[] = array('lettre'=>'Rafra\xEEchir', 'path'=>'reload', 'type'=>'fonction', 'nom'=>'Recharger', 'gif'=>'reload'); $obj = null; + }else{ + + // Au cas o\xF9 le composant DOM ne marcherait pas + $lecteur=array("b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"); + foreach($lecteur as $l){ + if(realpath($l.':/')!=''){ + $lect[]=array('lettre'=>$l, 'path'=>$l.':\\', 'type'=>'Disque dur', 'nom'=>$l.':', 'gif'=>'diskhdd'); + } + } } } elseif (is_readable('/etc/mtab')) { // si ce fichier est lisible on assume qu'on est sur un OS qui le supporte Modified: trunk/_framework/lib/lib_photo.php =================================================================== --- trunk/_framework/lib/lib_photo.php 2007-05-26 09:43:53 UTC (rev 163) +++ trunk/_framework/lib/lib_photo.php 2007-05-28 19:48:30 UTC (rev 164) @@ -127,6 +127,12 @@ $this->width = imagesx($this->img); $this->height = imagesy($this->img); + + $trans = imagecolortransparent($this->img); + if($trans!=-1){ + $trans = imagecolorsforindex($this->img,imagecolortransparent($this->img)); + } + // Tourner $this->tourner(); @@ -135,6 +141,10 @@ $this->redimensionner(); } + if($trans!=-1){ + imagecolortransparent($this->img,imagecolorallocate($this->img, $trans['red'], $trans['green'], $trans['blue'])); + } + // Mettre en cache if($this->cache){ @@ -171,7 +181,11 @@ $redimx = floor($this->width*$pourcent); $redimy = floor($this->height*$pourcent); $image1 = imagecreatetruecolor($redimx, $redimy); - + imagesavealpha($image1, true); + $trans_colour = imagecolorallocatealpha($image1, 0, 0, 0, 127); + imagefill($image1, 0, 0, $trans_colour); + imagealphablending($image1, false); + if($this->quality=='max'){ ImageCopyresampled($image1,$this->img,0,0,0,0,$redimx,$redimy,$this->width,$this->height); }else{ Added: trunk/skin/ETI/audio.tpl =================================================================== --- trunk/skin/ETI/audio.tpl (rev 0) +++ trunk/skin/ETI/audio.tpl 2007-05-28 19:48:30 UTC (rev 164) @@ -0,0 +1,168 @@ +{php} +global $MENU_ALT, $VLC, $smarty, $mode; +($VLC['etat']!='playing'?$text='Jouer':$text='Pause'); + +$MENU_ALT[] = array('lien'=>'lecteuraudio.php?control=pause', 'nom'=>$text, 'selected'=>0); +$MENU_ALT[] = array('lien'=>'lecteuraudio.php?control=stop', 'nom'=>'Arr\xEAter', 'selected'=>0); +$MENU_ALT[] = array('lien'=>'lecteuraudio.php?control=previous', 'nom'=>'Piste pr\xE9c\xE9dente', 'selected'=>0); +$MENU_ALT[] = array('lien'=>'lecteuraudio.php?control=next', 'nom'=>'Piste suivante', 'selected'=>0); + +$MENU_ALT[] = array('lien'=>'lecteuraudio.php?mode=pla', 'nom'=>'Playlist', 'selected'=>$mode=='pla'); +$MENU_ALT[] = array('lien'=>'lecteuraudio.php?mode=bib', 'nom'=>'Biblioth\xE8que', 'selected'=>$mode=='bib'); +$MENU_ALT[] = array('lien'=>'lecteuraudio.php?mode=exp', 'nom'=>'Explorateur', 'selected'=>$mode=='exp'); +$MENU_ALT[] = array('lien'=>'lecteuraudio.php?mode=par', 'nom'=>'Paroles', 'selected'=>$mode=='par'); +$MENU_ALT[] = array('lien'=>'lecteuraudio.php?mode=pod', 'nom'=>'Podcast', 'selected'=>$mode=='pod'); +$MENU_ALT[] = array('lien'=>'lecteuraudio.php?mode=web', 'nom'=>'Web-Radios', 'selected'=>$mode=='web'); + + +/* +href="lecteuraudio.php?action=nextrandom"><font size=1 color="{if $statut.random}{#COULEUR_BOUTON_SELECTED#}{else}{#COULEUR_DEFAUT#}{/if}">Al\xE9atoire</font></a></td> +href="lecteuraudio.php?action=nextboucle"><font size=1 color="{if $statut.repeat or $statut.loop}{#COULEUR_BOUTON_SELECTED#}{else}{#COULEUR_DEFAUT#}{/if}">{$boucle_valeur}</font></a></td> +*/ + $smarty->assign('TITRE','Lecteur audio'); + $smarty->assign('CONTENT2',$smarty->fetch('interface.tpl')); +{/php} +{$CONTENT2} + <center><var name=aide width=450></center> +{* +<!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_LECTEUR_TEXT#}" link="{#COULEUR_LECTEUR_LINK#}" alink="{#COULEUR_LECTEUR_ALINK#}" vlink="{#COULEUR_LECTEUR_VLINK#}"> +<center> +<table width="645" height="494" border="0" align="center" cellpadding="0" cellspacing="0"> + <tr><td width="10" height="1"><img src="transparent.gif" width="1" height="1"></td><td width="625" height="1"><img src="transparent.gif" width="1" height="1"></td><td width="10" height="1"><img src="transparent.gif" width="1" height="1"></td></tr> + <tr><td width="5" height="493"><img src="transparent.gif" width="1" height="1"></td> + <td width="625" height="493"> + <table width="625" height="493" border="0" align="center" cellpadding="0" cellspacing="0"> + <tr><td bgcolor="{#COULEUR_FOND2#}" width="295" height="73" align=center> + + <!-- D\xE9but du panneau de commandes --> + <table border="0" cellpadding="0" cellspacing="0" width="295" height="73" background="player.gif"> + <tr> + <td width="19" height="73"><img src="transparent.gif" width="1" height="1"></td> + <td width="19" height="73"><table align="left" border="0" cellpadding="0" cellspacing="0" width="19" height="73"> + <tr> + <td width="19" height="36"><img src="transparent.gif" width="1" height="1"></td> + </tr> + <tr> + <td width="19" height="21" align=center valign=middle><a href="lecteuraudio.php?control=pause"><font color="{if $VLC.etat!='playing'}{#COULEUR_BOUTON_SELECTED#}{else}{#COULEUR_DEFAUT#}{/if}" family="Symbol">{if $VLC.etat=='stop'}T{else}Y{/if}</font></a></td> + </tr> + <tr> + <td width="19" height="16"><img src="transparent.gif" width="1" height="1"></td> + </tr> + </table></td> + <td width="29" height="73"><img src="transparent.gif" width="1" height="1"></td> + <td height="73" width="14"><table align="left" border="0" cellpadding="0" cellspacing="0" width="14" height="73"> + <tr> + <td width="14" height="39"><img src="transparent.gif" width="1" height="1"></td> + </tr> + <tr> + <td width="14" height="14" align=center valign=middle><a href="lecteuraudio.php?control=stop"><font color="{if $VLC.etat!='stop'}{#COULEUR_DEFAUT#}{else}{#COULEUR_BOUTON_SELECTED#}{/if}" family="Symbol">Z</font></a></td> + </tr> + <tr> + <td width="14" height="20"><img src="transparent.gif" width="1" height="1"></td> + </tr> + </table></td> + <td width="18" height="73"><img src="transparent.gif" width="1" height="1"></td> + <td width="14" height="73"><table align="left" border="0" cellpadding="0" cellspacing="0" width="14" height="73"> + <tr> + <td width="14" height="34"><img src="transparent.gif" width="1" height="1"></td> + </tr> + <tr> + <td width="14" height="14" align=center valign=middle><a href="lecteuraudio.php?control=previous"><font color="{#COULEUR_DEFAUT#}" family="Symbol">@@</font></a></td> + </tr> + <tr> + <td width="14" height="25"><img src="transparent.gif" width="1" height="1"></td></tr></table></td> + <!-- + + --> + <td width="11" height="73"><img src="transparent.gif" width="1" height="1"></td> + <td width="14" height="73"><table align="left" border="0" cellpadding="0" cellspacing="0" width="14" height="73"> + <tr> + <td width="14" height="34"><img src="transparent.gif" width="1" height="1"></td> + </tr> + <tr> + <td width="14" height="14" align=center valign=middle><a href="lecteuraudio.php?control=next"><font color="{#COULEUR_DEFAUT#}" family="Symbol">AA</font></a></td> + </tr> + <tr> + <td width="14" height="25"><img src="transparent.gif" width="1" height="1"></td> + </tr> + </table></td> + <td width="49" height="73"><img src="transparent.gif" width="1" height="1"></td> + <td width="90" height="73"><table align="left" border="0" cellpadding="0" cellspacing="0" width="90" height="73"> + <tr> + <td width="90" height="20"><img src="transparent.gif" width="1" height="1"></td> + </tr> + <tr> + <td width="90" height="12" align=center valign=middle><a href="lecteuraudio.php?action=nextrandom"><font size=1 color="{if $statut.random}{#COULEUR_BOUTON_SELECTED#}{else}{#COULEUR_DEFAUT#}{/if}">Al\xE9atoire</font></a></td> + </tr> + <tr> + <td width="90" height="5"><img src="transparent.gif" width="1" height="1"></td> + </tr> + <tr> + <td width="90" height="10" align=center valign=middle><a href="lecteuraudio.php?action=nextboucle"><font size=1 color="{if $statut.repeat or $statut.loop}{#COULEUR_BOUTON_SELECTED#}{else}{#COULEUR_DEFAUT#}{/if}">{$boucle_valeur}</font></a></td> + </tr> + <tr> + <td width="90" height="18"><img src="transparent.gif" width="1" height="1"></td> + </tr> + </table></td> + <td width="18" height="73"><img src="transparent.gif" width="1" height="1"></td> + </tr> + </table> + <!-- Fin du panneau de commandes --> + + </td><td width="330" height="73" bgcolor="{#COULEUR_FOND2#}"> + + <table border="0" cellpadding="0" cellspacing="0" width="330" height="73"><tr> + + {if $VLC.etat!='stop'} + <td bgcolor="{#COULEUR_FOND#}" width="70" height="73"> + <img width="80" height="80" src="jaquette.php?directory={$VLC.url_current|dirname|urlencode}&lec={$VLC.type_current}&info={$search|trim|urlencode}"> + </td> + {/if} + + <td width="260" height="73"> + + {section name=infos loop=$informations max=5} + <font size="1">{$informations[infos].0|capitalize|ucfirst} : {$informations[infos].1|truncate:45:''}</font><br> + {sectionelse} + Aucune information disponible + {/section} + + </td></tr></table> + + </td> + </td></tr> + <tr bgcolor="#00000000"><td colspan="2" width="625" height="3"><img src="transparent.gif" width="1" height="1"></td></tr> + <tr><td bgcolor="{#COULEUR_FOND2#}" colspan="2" width="625" height="25"> + <table width="625" height="25" border="0" align="center" cellpadding="0" cellspacing="0"> + <tr> + <td width="104" align=center><a href="lecteuraudio.php?mode=pla" {if $mode=='pla'}focused{/if}><table width="104" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td align=center width="104" height="25">Playlist</td></tr></table></a></td> + <td width="104" align=center><a href="lecteuraudio.php?mode=bib" {if $mode=='bib'}focused{/if}><table width="104" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td align=center width="104" height="25">Biblioth\xE8que</td></tr></table></a></td> + <td width="104" align=center><a href="lecteuraudio.php?mode=exp" {if $mode=='exp'}focused{/if}><table width="104" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td align=center width="104" height="25">Explorateur</td></tr></table></a></td> + <td width="104" align=center><a href="lecteuraudio.php?mode=par" {if $mode=='par'}focused{/if}><table width="104" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td align=center width="104" height="25">Paroles</td></tr></table></a></td> + <td width="104" align=center><a href="lecteuraudio.php?mode=pod" {if $mode=='pod'}focused{/if}><table width="104" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td align=center width="104" height="25">Podcast</td></tr></table></a></td> + <td width="104" align=center><a href="lecteuraudio.php?mode=web" {if $mode=='web'}focused{/if}><table width="104" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td align=center width="104" height="25">Web-Radios</td></tr></table></a></td> + </tr> + </table> + </td></tr> + <tr bgcolor="#00000000"><td colspan="2" width="625" height="3"><img src="transparent.gif" width="1" height="1"></td></tr> + <tr><td bgcolor="{#COULEUR_FOND2#}" colspan="2" width="625" height="389" align="center" valign="top"> + + {eval var=$CONTENT} + + <var name=aide width=450> + + </td></tr> + </table> + </td><td width="5" height="493"></td></tr> +</table> +</center> +<script language="javascript" src="/fb2ie.js"> +</script> +</body> +</html>*} Added: trunk/skin/ETI/avertissement.tpl =================================================================== --- trunk/skin/ETI/avertissement.tpl (rev 0) +++ trunk/skin/ETI/avertissement.tpl 2007-05-28 19:48:30 UTC (rev 164) @@ -0,0 +1,23 @@ +<!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="590" height="510" border="0" align="center" cellpadding="0" cellspacing="0"><tr><td align=center width="590" height="510" valign="middle"> + <table width="540" border="2" cellpadding="10" cellspacing="0" bgcolor="{#COULEUR_FOND_AVERTISSEMENT#}" bordercolor="#54585A3F"><tr><td width="590"> + <table width="540" border="0" cellpadding="10" cellspacing="0"><tr> + {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> + </td></tr></table> +</td></tr></table></center> + +<script language="javascript" src="/fb2ie.js"> +</script> +</body> +</html> Added: trunk/skin/ETI/bouton.tpl =================================================================== --- trunk/skin/ETI/bouton.tpl (rev 0) +++ trunk/skin/ETI/bouton.tpl 2007-05-28 19:48:30 UTC (rev 164) @@ -0,0 +1,10 @@ +<!BOUTONS!> +{foreach from=$META item=META_FE key=key} + <meta name="{$key}" content="{$META_FE}"> + +{/foreach} +{foreach from=$LINK item=META_FE key=key} + <link rel="{$key}" href="{$META_FE}"> +{/foreach} + +<!BOUTONS!> Modified: trunk/skin/mediacenter/films.tpl =================================================================== --- trunk/skin/mediacenter/films.tpl 2007-05-26 09:43:53 UTC (rev 163) +++ trunk/skin/mediacenter/films.tpl 2007-05-28 19:48:30 UTC (rev 164) @@ -49,18 +49,34 @@ Augmenter la qualit\xE9 du traitement de l'image (de 0 vers 6) demande plus de puissance CPU. <br> -<select name=display_scaling> -<option value=letterbox>Letterbox -<option value=panscan>Pan Scan -<option value=fullscreen>Fullscreen -</select> - <table width="500" align="left"> <tr><td width="90">Lumi\xE9re</td><td width="5">:</td><td><input bgcolor="{#COULEUR_FOND_RADIO#}" type=hslider name=denc_brightness min=0 max=255 grad=16></td></tr> <tr><td width="90">Contraste</td><td width="5">:</td><td><input bgcolor="{#COULEUR_FOND_RADIO#}" type=hslider name=denc_contrast min='-128' max=127 grad=16></td></tr> <tr><td width="90">Couleur</td><td width="5">:</td><td><input bgcolor="{#COULEUR_FOND_RADIO#}" type=hslider name=denc_saturation min=0 max=255 grad=16></td></tr> <tr><td width="90">Zoom</td><td width="5">:</td><td><input bgcolor="{#COULEUR_FOND_RADIO#}" type=hslider name=video_output_scale min=25 max=175 grad=5> - <a href="none" onSelect='video_output_scale="100";'>R\xE9initialiser</a></td></tr> </table> + +{if $vers_fbx==5} +<select name=display_scaling> +<option value=letterbox>Letterbox +<option value=panscan>Panscan +<option value=fullscreen>Fullscreen +</select> +<select name=display_aspect_ratio_conversion> +<option value=letterbox>Letterbox +<option value=combined>Combined +<option value=panscan>Panscan +<option value=ignore>Ignore +</select> +{else} +<table width="250" align="left"> +<tr><td width="130">4/3 Letterbox</td><td><input type=radio bgcolor="{#COULEUR_FOND_RADIO#}" name=display_aspect_ratio_conversion value=letterbox></td></tr> +<tr><td width="130">4/3 Combined</td><td><input type=radio bgcolor="{#COULEUR_FOND_RADIO#}" name=display_aspect_ratio_conversion value=combined></td></tr> +<tr><td width="130">4/3 Pan Scan</td><td><input type=radio bgcolor="{#COULEUR_FOND_RADIO#}" name=display_aspect_ratio_conversion value=panscan></td></tr> +<tr><td width="130">16/9</td><td><input type=radio bgcolor="{#COULEUR_FOND_RADIO#}" name=display_aspect_ratio_conversion value=ignore></td></tr> +</table> +{/if} + <br> <input bgcolor="{#COULEUR_TEXTBOX#}" type=submit value="Valider les modifications"> </form> Modified: trunk/skin/mediacenter/menu.tpl =================================================================== --- trunk/skin/mediacenter/menu.tpl 2007-05-26 09:43:53 UTC (rev 163) +++ trunk/skin/mediacenter/menu.tpl 2007-05-28 19:48:30 UTC (rev 164) @@ -8,19 +8,19 @@ {section name=menu loop=$MENU} {if $CAT=="1" AND NOT $SHOW} {if $smarty.section.menu.first} - <a focused onfocus='front_panel="FILMS";location="ts://127.0.0.1?ox=0&oy=0&ow=720&oh=576,&ix=0&iy=0&iw=360&ih=192";service="ts://127.0.0.1?ox=0&oy=0&ow=720&oh=576,&ix=0&iy=0&iw=360&ih=192";' href="../../module/films/index1.php"> + <a focused onfocus='front_panel="FILMS";service="ts://127.0.0.1?ox=0&oy=0&ow=720&oh=576,&ix=0&iy=0&iw=360&ih=192";location="ts://127.0.0.1?ox=0&oy=0&ow=720&oh=576,&ix=0&iy=0&iw=360&ih=192";' href="../../module/films/index1.php"> </a> - <a onfocus='front_panel="MODULES";location="ts://127.0.0.1?ox=0&oy=0&ow=720&oh=576,&ix=0&iy=384&iw=360&ih=192";service="ts://127.0.0.1?ox=0&oy=0&ow=720&oh=576,&ix=0&iy=384&iw=360&ih=192";' href="../../module/_menu/menu.php?show=1"> + <a onfocus='front_panel="MODULES";service="ts://127.0.0.1?ox=0&oy=0&ow=720&oh=576,&ix=0&iy=384&iw=360&ih=192";location="ts://127.0.0.1?ox=0&oy=0&ow=720&oh=576,&ix=0&iy=384&iw=360&ih=192";' href="../../module/_menu/menu.php?show=1"> </a> - <a onfocus='front_panel="PHOTO";location="ts://127.0.0.1?ox=0&oy=0&ow=720&oh=576,&ix=360&iy=192&iw=360&ih=192";service="ts://127.0.0.1?ox=0&oy=0&ow=720&oh=576,&ix=360&iy=192&iw=360&ih=192";' href="../../module/diaporama/index1.php"> + <a onfocus='front_panel="PHOTO";service="ts://127.0.0.1?ox=0&oy=0&ow=720&oh=576,&ix=360&iy=192&iw=360&ih=192";location="ts://127.0.0.1?ox=0&oy=0&ow=720&oh=576,&ix=360&iy=192&iw=360&ih=192";' href="../../module/diaporama/index1.php"> </a> - <a onfocus='front_panel="AUDIO";location="ts://127.0.0.1?ox=0&oy=0&ow=720&oh=576,&ix=0&iy=192&iw=360&ih=192";service="ts://127.0.0.1?ox=0&oy=0&ow=720&oh=576,&ix=0&iy=192&iw=360&ih=192";' href="../../module/mp3/lecteuraudio.php"> + <a onfocus='front_panel="AUDIO";service="ts://127.0.0.1?ox=0&oy=0&ow=720&oh=576,&ix=0&iy=192&iw=360&ih=192";location="ts://127.0.0.1?ox=0&oy=0&ow=720&oh=576,&ix=0&iy=192&iw=360&ih=192";' href="../../module/mp3/lecteuraudio.php"> </a> - <a onfocus='front_panel="BIBLIOTHEQUE";location="ts://127.0.0.1?ox=0&oy=0&ow=720&oh=576,&ix=360&iy=0&iw=360&ih=192";service="ts://127.0.0.1?ox=0&oy=0&ow=720&oh=576,&ix=360&iy=0&iw=360&ih=192";' href="../../module/films/catalogue.php"> + <a onfocus='front_panel="BIBLIOTHEQUE";service="ts://127.0.0.1?ox=0&oy=0&ow=720&oh=576,&ix=360&iy=0&iw=360&ih=192";location="ts://127.0.0.1?ox=0&oy=0&ow=720&oh=576,&ix=360&iy=0&iw=360&ih=192";' href="../../module/films/catalogue.php"> </a> {/if} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2007-06-01 04:45:02
|
Revision: 169 http://svn.sourceforge.net/easybox-mod/?rev=169&view=rev Author: aragornis Date: 2007-05-31 21:44:56 -0700 (Thu, 31 May 2007) Log Message: ----------- Avanc?\195?\169es sur le telesite Modified Paths: -------------- trunk/_framework/fonctions_partagees.inc.php trunk/_framework/lib/lib_photo.php trunk/_utilisateur/modules.db trunk/module/telesites/index1.php trunk/module/telesites/telesite.tpl trunk/skin/ETI/menu.tpl Modified: trunk/_framework/fonctions_partagees.inc.php =================================================================== --- trunk/_framework/fonctions_partagees.inc.php 2007-05-31 04:53:08 UTC (rev 168) +++ trunk/_framework/fonctions_partagees.inc.php 2007-06-01 04:44:56 UTC (rev 169) @@ -856,14 +856,19 @@ } // T\xE9l\xE9charge une page internet et la met en cache ou r\xE9cup\xE8re directement son contenu mis en cache -function file_get_contents_cache($adresse, $heures=1){ +function file_get_contents_cache($adresse, $heures=1, $use_include_path=null, $context=null, $offset=null, $maxlen=null){ global $USER, $CACHE_IMAGE; $db = sqlite_open($USER.'cache.db', 0666); $fichier = md5($adresse); clean_cache(); $res = sqlite_query($db,'SELECT * FROM cache WHERE fichier="'.$fichier.'"'); if(sqlite_num_rows($res)>0 AND file_exists($CACHE_IMAGE.$fichier)){ + if(isset($use_include_path)){ + $retour = file_get_contents($CACHE_IMAGE.$fichier,$use_include_path,$context,$offset,$maxlen); + }else{ $retour = file_get_contents($CACHE_IMAGE.$fichier); + } + }else{ $retour = file_get_contents($adresse); file_put_contents($CACHE_IMAGE.$fichier, $retour); Modified: trunk/_framework/lib/lib_photo.php =================================================================== --- trunk/_framework/lib/lib_photo.php 2007-05-31 04:53:08 UTC (rev 168) +++ trunk/_framework/lib/lib_photo.php 2007-06-01 04:44:56 UTC (rev 169) @@ -45,7 +45,10 @@ // Path du fichier en cache var $name_cache; -function __construct($url, $r_width, $r_height, $angle, $cache, $quality){ +var $transparence; + + +function __construct($url, $r_width, $r_height, $angle, $cache, $quality, $transparence=false){ global $_SERVER, $CACHE_IMAGE; $this->url = $url; $this->cache = $cache; @@ -55,7 +58,8 @@ $this->cache = $cache; $this->quality = $quality; $this->hash = md5($this->url.$this->r_height.$this->r_width.$this->angle); - + $this->transparence = $transparence; + define("IMAGE_FLIP_HORIZONTAL", 1); define("IMAGE_FLIP_VERTICAL", 2); define("IMAGE_FLIP_BOTH", 3); @@ -130,27 +134,27 @@ $trans = imagecolortransparent($this->img); if($trans!=-1){ - $trans = imagecolorsforindex($this->img,imagecolortransparent($this->img)); + $this->couleur_fond = imagecolorsforindex($this->img,$trans); } // Tourner $this->tourner(); - + // Redimensionner if($this->r_width!=0 AND $this->r_height!=0){ $this->redimensionner(); } - if($trans!=-1){ - imagecolortransparent($this->img,imagecolorallocate($this->img, $trans['red'], $trans['green'], $trans['blue'])); + if($this->transparence){ + imagetruecolortopalette($this->img, false, 128); + imagecolortransparent($this->img, imagecolorat($this->img, 0, 0)); } - // Mettre en cache if($this->cache){ $this->generer_fichier(); } - + // Renvoyer $this->afficher_image(); @@ -180,12 +184,13 @@ if($pourcent<1){ $redimx = floor($this->width*$pourcent); $redimy = floor($this->height*$pourcent); - $image1 = imagecreatetruecolor($redimx, $redimy); + + $image1 = imagecreatetruecolor($redimx, $redimy); imagesavealpha($image1, true); $trans_colour = imagecolorallocatealpha($image1, 0, 0, 0, 127); imagefill($image1, 0, 0, $trans_colour); imagealphablending($image1, false); - + if($this->quality=='max'){ ImageCopyresampled($image1,$this->img,0,0,0,0,$redimx,$redimy,$this->width,$this->height); }else{ @@ -276,6 +281,6 @@ } -$img = new image(urldecode($_GET['img']), $_GET['width'], $_GET['height'], $_GET['angle'], $_GET['cache'], $_GET['quality']); +$img = new image(urldecode($_GET['img']), $_GET['width'], $_GET['height'], $_GET['angle'], $_GET['cache'], $_GET['quality'], $_GET['transparence']); $img->process(); ?> Modified: trunk/_utilisateur/modules.db =================================================================== (Binary files differ) Modified: trunk/module/telesites/index1.php =================================================================== --- trunk/module/telesites/index1.php 2007-05-31 04:53:08 UTC (rev 168) +++ trunk/module/telesites/index1.php 2007-06-01 04:44:56 UTC (rev 169) @@ -2,10 +2,20 @@ $RACINE_REP = "../../"; require($RACINE_REP.'_framework/framework.php'); +function ParseURLplus($url){ +$URLpcs = (parse_url($url)); +$PathPcs = explode("/",$URLpcs['path']); +$URLpcs['file'] = end($PathPcs); +unset($PathPcs[key($PathPcs)]); +$URLpcs['dir'] = implode("/",$PathPcs); +return ($URLpcs); +} + function parse_sites($xml){ $RES = array(); + $i=0; foreach($xml->xpath('/ts-freebox/telesite') as $telesite){ - $RES[] = array('nom'=>$telesite->name,'url'=>$telesite->url,'weburl'=>$telesite->weburl,'category'=>$telesite->category,'screenshot'=>$telesite->screenshot); + $RES[] = array('id'=>$i++,'nom'=>utf8_decode($telesite->name),'url'=>utf8_decode($telesite->url),'weburl'=>utf8_decode($telesite->weburl),'category'=>utf8_decode($telesite->category),'screenshot'=>utf8_decode($telesite->screenshot)); } return $RES; } @@ -13,15 +23,32 @@ $xml = simplexml_load_file_cache('http://www.freeplayer.org/telesite.xml',24); $sites = parse_sites($xml); +if(isset($_GET['siteid'])){ +ini_set('user_agent', "EasyBox 4.1.2\r\nX-Box-User-Agent: freebox/1.0.0 (hw:4.0; sw:1.8.0)"); -if(isset($_GET['siteid'])){ $base = $sites[$_GET['siteid']]['url']; -$contenu = file_get_contents_cache($base.'index.php?'.$_SERVER['QUERY_STRING'],24); +$contenu = file_get_contents($base); $contenu = str_replace('src="images/', 'src="'.$IMG2FBX.'?cache=1&img='.urlencode($base.'images/'), $contenu); +$contenu = str_replace('</body>', '<script language="javascript" src="/fb2ie.js"></script></body>', $contenu); +$ereg = '<contentInfo>(.{1,800})<\/contentInfo>'; +preg_match("/$ereg/s", $contenu, $valeur); +$commandes = $valeur[1]; + +$ereg = '<backgroundContent>(.{1,800})<\/backgroundContent>'; +preg_match("/$ereg/s", $contenu, $valeur); +$commandes2 = $valeur[0]; + +$xml = simplexml_load_string($commandes); +$xml2 = simplexml_load_string($commandes2); +$res = $xml->xpath('/hj:imageInfo/source/url'); +$res2 = $xml2->xpath('/backgroundContent/settings'); +$forcerimage = $res2[0]['stopCurrentlyPlaying']; + echo $contenu; + }else{ -$smarty->assign('xml',$xml); +$smarty->assign('SITES',$sites); $smarty->assign('CONTENT',$smarty->fetch('telesite.tpl')); $smarty->display('interface.tpl'); } Modified: trunk/module/telesites/telesite.tpl =================================================================== --- trunk/module/telesites/telesite.tpl 2007-05-31 04:53:08 UTC (rev 168) +++ trunk/module/telesites/telesite.tpl 2007-06-01 04:44:56 UTC (rev 169) @@ -1,71 +1,36 @@ -{if $FLUX==''} - {section name=liste loop=$RSS max=3 start=$MIN} - {if $smarty.section.liste.first} - {if $MIN!=0} - {assign var=temp value=$MIN-3} - {attribbouton touche="green" lien="index1.php?cat=$cat&min=$temp"} - <a href="index1.php?cat={$cat}&min={$temp}"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> Pr\xE9c\xE9dent</a> +{assign var=NUM_ROW_AFFICH value=15} +{section name=site loop=$SITES max=$NUM_ROW_AFFICH start=$START} +{cycle name=place assign=place print=false values="4,3,2,1,0"} + {if $smarty.section.site.first} + <table border="0" cellpadding="0" cellspacing="0" width="500" align="center"><tr> + {if !$_multipage.is_first_page} + <td colspan="5" align=center>{precedent}</td></tr><tr> + {/if} {/if} - <table width="500" border="0" cellspacing="5" cellpadding="5" align="left" valign="top"> - {/if} - - <tr><td><a href="index1.php?cat={$cat}&feed={$RSS[liste].id}"> - <table width="500" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"> - <tr> - <td align="left" valign="top" width="120"><img width="120" height="90" src="{$IMG2FBX}?img={$RSS[liste].img|urlencode}&width=120&height=90&cache=1"></td> - <td align="left" valign="top" width="380"><b><u>{$RSS[liste].name|truncate:30}</u></b><br>{$RSS[liste].description|truncate:100}</td> - </tr> - </table> - </a></td></tr> + + <td width="100" height="150"><a href="index1.php?siteid={$SITES[site].id}"><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="83" height="60" border="0" src="{$IMG2FBX}?img={$SITES[site].screenshot|urlencode}&width=83&height=60&cache=1"></td></tr><tr height="70"><td width="100" height="70" valign="middle" align=center><font size="1">{$SITES[site].nom|truncate:30:"":true|wordwrap:15:"<br>":true}</font></td></tr></table></a></td> - {if $smarty.section.liste.last} - </table> - {if $MIN+$smarty.section.liste.total < count($RSS)} - {assign var=temp value=$MIN+3} - {attribbouton touche="blue" lien="index1.php?cat=$cat&min=$temp"} - <a href="index1.php?cat={$cat}&min={$temp}"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> Suivant</a> - {/if} - {/if} - - {sectionelse} - Cette cat\xE9gorie ne contient aucun flux. Vous pouvez en ajouter depuis l'interface de configuration d'Easybox. - {/section} - -{else} - {section name=liste loop=$FLUX max=5 start=$MIN} - {if $smarty.section.liste.first} - {if $MIN!=0} - {assign var=temp value=$MIN-5} - {assign var=temp2 value=$cat.id} - {assign var=temp3 value=$feed.id} - {attribbouton touche="green" lien="index1.php?cat=$temp2&feed=$temp3&min=$temp"} - <a href="index1.php?cat={$cat.id}&feed={$feed.id}&min={$temp}"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> Pr\xE9c\xE9dent</a> - {/if} - <table width="500" border="0" cellspacing="7" cellpadding="7" align="left" valign="top"> - {/if} - - - <tr><td>{if $FLUX[liste].description!=''}<a href="index1.php?cat={$cat.id}&feed={$feed.id}&post={$FLUX[liste].id}">{/if} - <table width="500" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"> - <tr> - <td align="left" valign="top"><b><u>{$FLUX[liste].titre}</u></b>{if $FLUX[liste].description!=''} : {$FLUX[liste].description|truncate:50}{/if}</td> + {if $smarty.section.site.iteration is div by 5 AND NOT $smarty.section.files.last} + </tr><tr> + {/if} + + {if $smarty.section.site.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 $FLUX[liste].description!=''}</a>{/if}</td></tr> - - {if $smarty.section.liste.last} - </table><br> - {if $MIN+$smarty.section.liste.total < count($FLUX)} - {assign var=temp value=$MIN+5} - {assign var=temp2 value=$cat.id} - {assign var=temp3 value=$feed.id} - {attribbouton touche="blue" lien="index1.php?cat=$temp2&feed=$temp3&min=$temp"} - <a href="index1.php?cat={$cat.id}&feed={$feed.id}&min={$temp}"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> Suivant</a> - {/if} + <tr><td colspan="5" align="center" height="25" valign="bottom">{if !$_multipage.is_last_page}{suivant} - {/if}{pagination}</td></tr> + </table> {/if} +{sectionelse} + Veuillez entrer votre recherche ci-dessous. +{/section} - {sectionelse} - Ce flux ne contient aucun \xE9l\xE9ment. - {/section} - +{if $SHOW=='rec'} +<br>Recherche<br> <br><form name="form1" method="get" action="index1.php"> +<input name="show" type="hidden" value="rec"> +<input name="string" bgcolor="{#COULEUR_TEXTBOX#}" type="text" charset="digit|alpha|caps" value="" size="20"> +</form><br> +La touche {literal}#{/literal} permet de changer entre les minuscules/majuscules et les chiffres. {/if} Modified: trunk/skin/ETI/menu.tpl =================================================================== --- trunk/skin/ETI/menu.tpl 2007-05-31 04:53:08 UTC (rev 168) +++ trunk/skin/ETI/menu.tpl 2007-06-01 04:44:56 UTC (rev 169) @@ -33,7 +33,7 @@ {if $MENU[menu].name!='Web' AND $MENU[menu].name!='Multim\xE9dia' AND $MENU[menu].name!='Pratique'} <tr><td><table border="0" cellpadding="0" cellspacing="0" href="{$MODULE}{$MENU[menu].rep}{$MENU[menu].lien}" background="{$RACINE_REP}{$SKIN_REP}images/selection/selection_2.gif" once rollover><tr> <td width="40"> - <img width="35" height="35" src="{if $MENU[menu].dependance=='Alone'}{$IMG2FBX}?cache=1&width=40&height=40&img={$RES_ICO|cat:$MENU[menu].ico|cat:".gif"|realpath|urlencode}{else}{$IMG2FBX}?cache=1&width=35&height=35&img={$SKIN_REP|cat:"images/icons/"|cat:$MENU[menu].ico|cat:".gif"|realpath|urlencode}{/if}" border="0" /> + <img width="40" height="40" src="{if $MENU[menu].dependance=='Alone'}{$IMG2FBX}?cache=1&width=40&height=40&transparence=1&img={$RES_ICO|cat:$MENU[menu].ico|cat:".gif"|realpath|urlencode}{else}{$IMG2FBX}?cache=1&width=40&height=40&transparence=1&img={$SKIN_REP|cat:"images/icons/"|cat:$MENU[menu].ico|cat:".gif"|realpath|urlencode}{/if}" border="0" /> </td> <td width="150"> <font size="2" color="{#white#}"><b>{$MENU[menu].name}</b></font> @@ -45,7 +45,7 @@ {if $MENU[menu].name=="Films"} <tr><td><table border="0" cellpadding="0" cellspacing="0" href="{$MODULE}{$MENU[menu].rep}catalogue.php" background="{$RACINE_REP}{$SKIN_REP}images/selection/selection_2.gif" once rollover><tr> <td width="40"> - <img src="{if $MENU[menu].dependance=='Alone'}{$IMG2FBX}?cache=1&width=40&height=40&img={$RES_ICO|cat:$MENU[menu].ico|cat:".gif"|realpath|urlencode}{else}{$IMG2FBX}?cache=1&width=40&height=40&img={$SKIN_REP|cat:"images/icons/"|cat:$MENU[menu].ico|cat:".gif"|realpath|urlencode}{/if}" border="0" width="40" height="40"> + <img src="{if $MENU[menu].dependance=='Alone'}{$IMG2FBX}?cache=1&width=40&height=40&transparence=1&img={$RES_ICO|cat:$MENU[menu].ico|cat:".gif"|realpath|urlencode}{else}{$IMG2FBX}?cache=1&width=40&height=40&transparence=1&img={$SKIN_REP|cat:"images/icons/"|cat:$MENU[menu].ico|cat:".gif"|realpath|urlencode}{/if}" border="0" width="40" height="40"> </td> <td width="150"> <font size="2" color="{#white#}"><b>Catalogue</b></font> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <cra...@us...> - 2007-06-01 13:58:21
|
Revision: 171 http://svn.sourceforge.net/easybox-mod/?rev=171&view=rev Author: craftsnux Date: 2007-06-01 06:58:20 -0700 (Fri, 01 Jun 2007) Log Message: ----------- compatibilite du skin mediacenter avec la fbx 4 a verifier pour la HD Modified Paths: -------------- trunk/_framework/fonctions_partagees.inc.php trunk/_framework/framework.php trunk/skin/mediacenter/menu.tpl Modified: trunk/_framework/fonctions_partagees.inc.php =================================================================== --- trunk/_framework/fonctions_partagees.inc.php 2007-06-01 11:19:14 UTC (rev 170) +++ trunk/_framework/fonctions_partagees.inc.php 2007-06-01 13:58:20 UTC (rev 171) @@ -1,5 +1,45 @@ <?php +function fbx_GetBoxUserAgent() +{ + // Analyse le user_agent de la box + // Le firmware peut \xEAtre dans le format : + // freebox/1.0.0 (hw:5.0; sw:1.2.1) ifc:12345678901 + // ou le format : + // freebox/1.7.3-ppp + if (isset($HTTP_SERVER_VARS['HTTP_X_BOX_USER_AGENT']) $userboxagent = + $HTTP_SERVER_VARS['HTTP_X_BOX_USER_AGENT']; + + if (isset($HTTP_SERVER_VARS['HTTP_BOX_USER_AGENT']) $userboxagent = + $HTTP_SERVER_VARS['HTTP_BOX_USER_AGENT']; + + if (isset($userboxagent)) + { + // Nouveau format de useragent + if (preg_match('/(.*)\/(.*) \(hw:(.*); sw:(.*)\) ifc:(.*)/', $box_user_agent, $regs)) + { + $boxinfo['name'] = $regs[1]; + $boxinfo['version'] = $regs[2]; + $boxinfo['firmware'] = $regs[3]; + $boxinfo['browser_version'] = $regs[4]; + $boxinfo['ifc'] = $regs[5]; + } + else + { + preg_match('/(.*)\/(.*)/', $box_user_agent, $regs); + + $boxinfo['name'] = $regs[1]; + $boxinfo['version'] = "x.x"; + $boxinfo['firmware'] = $regs[2]; + $boxinfo['browser_version'] = "#"; + $boxinfo['ifc'] = "#"; + } + + $boxinfo['shortdesc'] = $boxinfo['name'].'_'.$boxinfo['version'].' ('.$boxinfo['firmware'].')'; + } + + return $boxinfo; +} //Fonction permettant de lire un fichier function play_fichier($page,$basename, $realpath=1, $type='video', $name='', $duree=0){ global $ini,$USER; Modified: trunk/_framework/framework.php =================================================================== --- trunk/_framework/framework.php 2007-06-01 11:19:14 UTC (rev 170) +++ trunk/_framework/framework.php 2007-06-01 13:58:20 UTC (rev 171) @@ -7,13 +7,6 @@ setlocale(LC_TIME, "fr"); - $vers_fbx = $_SERVER["HTTP_USER_AGENT"]; - $ereg = 'freebox\/[0-9]\.[0-9]\.[0-9] \(hw:([0-9]).0;'; - if(preg_match("/$ereg/s", $vers_fbx, $val_vers)){ - $vers_fbx = $val_vers[1]; - }else{ - $vers_fbx = 4; - } unset($val_vers); @@ -60,7 +53,10 @@ $smarty->assign('IMG2FBX',$IMG2FBX); $LOAD = $FRAMEWORK_REP.'fonctions_partagees.inc.php'; require_once($LOAD); - +// version de freebox + $info_fbx=fbx_GetBoxUserAgent(); + $vers_fbx =$info_fbx['version']; + $EXPLORATEUR = $MODULE.'_explorateur/index1.php'; $smarty->assign('EXPLORATEUR',$EXPLORATEUR); $PLAYLIST = $USER.'playlist/'; Modified: trunk/skin/mediacenter/menu.tpl =================================================================== --- trunk/skin/mediacenter/menu.tpl 2007-06-01 11:19:14 UTC (rev 170) +++ trunk/skin/mediacenter/menu.tpl 2007-06-01 13:58:20 UTC (rev 171) @@ -8,19 +8,19 @@ {section name=menu loop=$MENU} {if $CAT=="1" AND NOT $SHOW} {if $smarty.section.menu.first} - <a focused onfocus='front_panel="FILMS";service="srv://default?ox=0&oy=0&ow=720&oh=576,&ix=0&iy=0&iw=360&ih=192";' href="../../module/films/index1.php"> + <a focused onfocus='front_panel="FILMS";{if $vers_fbx{0}==5}service{else}location{/if}="srv://default?ox=0&oy=0&ow=720&oh=576,&ix=0&iy=0&iw=360&ih=192";' href="../../module/films/index1.php"> </a> - <a onfocus='front_panel="MODULES";service="srv://default?ox=0&oy=0&ow=720&oh=576,&ix=0&iy=384&iw=360&ih=192";' href="../../module/_menu/menu.php?show=1"> + <a onfocus='front_panel="MODULES";{if $vers_fbx{0}==5}service{else}location{/if}="srv://default?ox=0&oy=0&ow=720&oh=576,&ix=0&iy=384&iw=360&ih=192";' href="../../module/_menu/menu.php?show=1"> </a> - <a onfocus='front_panel="PHOTO";service="srv://default?ox=0&oy=0&ow=720&oh=576,&ix=360&iy=192&iw=360&ih=192";' href="../../module/diaporama/index1.php"> + <a onfocus='front_panel="PHOTO";{if $vers_fbx{0}==5}service{else}location{/if}="srv://default?ox=0&oy=0&ow=720&oh=576,&ix=360&iy=192&iw=360&ih=192";' href="../../module/diaporama/index1.php"> </a> - <a onfocus='front_panel="AUDIO";service="srv://default?ox=0&oy=0&ow=720&oh=576,&ix=0&iy=192&iw=360&ih=192";' href="../../module/mp3/lecteuraudio.php"> + <a onfocus='front_panel="AUDIO";{if $vers_fbx{0}==5}service{else}location{/if}="srv://default?ox=0&oy=0&ow=720&oh=576,&ix=0&iy=192&iw=360&ih=192";' href="../../module/mp3/lecteuraudio.php"> </a> - <a onfocus='front_panel="BIBLIOTHEQUE";service="srv://default?ox=0&oy=0&ow=720&oh=576,&ix=360&iy=0&iw=360&ih=192";' href="../../module/films/catalogue.php"> + <a onfocus='front_panel="BIBLIOTHEQUE";{if $vers_fbx{0}==5}service{else}location{/if}="srv://default?ox=0&oy=0&ow=720&oh=576,&ix=360&iy=0&iw=360&ih=192";' href="../../module/films/catalogue.php"> </a> {/if} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <cra...@us...> - 2007-06-01 14:45:16
|
Revision: 172 http://svn.sourceforge.net/easybox-mod/?rev=172&view=rev Author: craftsnux Date: 2007-06-01 07:45:15 -0700 (Fri, 01 Jun 2007) Log Message: ----------- Modified Paths: -------------- trunk/_framework/fonctions_partagees.inc.php trunk/_framework/framework.php trunk/skin/mediacenter/menu.tpl Modified: trunk/_framework/fonctions_partagees.inc.php =================================================================== --- trunk/_framework/fonctions_partagees.inc.php 2007-06-01 13:58:20 UTC (rev 171) +++ trunk/_framework/fonctions_partagees.inc.php 2007-06-01 14:45:15 UTC (rev 172) @@ -7,10 +7,10 @@ // ou le format : // freebox/1.7.3-ppp - if (isset($HTTP_SERVER_VARS['HTTP_X_BOX_USER_AGENT']) $userboxagent = + if (isset($HTTP_SERVER_VARS['HTTP_X_BOX_USER_AGENT'])) $userboxagent = $HTTP_SERVER_VARS['HTTP_X_BOX_USER_AGENT']; - if (isset($HTTP_SERVER_VARS['HTTP_BOX_USER_AGENT']) $userboxagent = + if (isset($HTTP_SERVER_VARS['HTTP_BOX_USER_AGENT'])) $userboxagent = $HTTP_SERVER_VARS['HTTP_BOX_USER_AGENT']; if (isset($userboxagent)) Modified: trunk/_framework/framework.php =================================================================== --- trunk/_framework/framework.php 2007-06-01 13:58:20 UTC (rev 171) +++ trunk/_framework/framework.php 2007-06-01 14:45:15 UTC (rev 172) @@ -54,7 +54,7 @@ $LOAD = $FRAMEWORK_REP.'fonctions_partagees.inc.php'; require_once($LOAD); // version de freebox - $info_fbx=fbx_GetBoxUserAgent(); + $info_fbx=fbx_GetBoxUserAgent(); $vers_fbx =$info_fbx['version']; $EXPLORATEUR = $MODULE.'_explorateur/index1.php'; Modified: trunk/skin/mediacenter/menu.tpl =================================================================== --- trunk/skin/mediacenter/menu.tpl 2007-06-01 13:58:20 UTC (rev 171) +++ trunk/skin/mediacenter/menu.tpl 2007-06-01 14:45:15 UTC (rev 172) @@ -8,19 +8,19 @@ {section name=menu loop=$MENU} {if $CAT=="1" AND NOT $SHOW} {if $smarty.section.menu.first} - <a focused onfocus='front_panel="FILMS";{if $vers_fbx{0}==5}service{else}location{/if}="srv://default?ox=0&oy=0&ow=720&oh=576,&ix=0&iy=0&iw=360&ih=192";' href="../../module/films/index1.php"> + <a focused onfocus='front_panel="FILMS";{if substr($vers_fbx,0,1)=="5"}service{else}location{/if}="srv://default?ox=0&oy=0&ow=720&oh=576,&ix=0&iy=0&iw=360&ih=192";' href="../../module/films/index1.php"> </a> - <a onfocus='front_panel="MODULES";{if $vers_fbx{0}==5}service{else}location{/if}="srv://default?ox=0&oy=0&ow=720&oh=576,&ix=0&iy=384&iw=360&ih=192";' href="../../module/_menu/menu.php?show=1"> + <a onfocus='front_panel="MODULES";{if substr($vers_fbx,0,1)=="5"}service{else}location{/if}="srv://default?ox=0&oy=0&ow=720&oh=576,&ix=0&iy=384&iw=360&ih=192";' href="../../module/_menu/menu.php?show=1"> </a> - <a onfocus='front_panel="PHOTO";{if $vers_fbx{0}==5}service{else}location{/if}="srv://default?ox=0&oy=0&ow=720&oh=576,&ix=360&iy=192&iw=360&ih=192";' href="../../module/diaporama/index1.php"> + <a onfocus='front_panel="PHOTO";{if substr($vers_fbx,0,1)=="5"}service{else}location{/if}="srv://default?ox=0&oy=0&ow=720&oh=576,&ix=360&iy=192&iw=360&ih=192";' href="../../module/diaporama/index1.php"> </a> - <a onfocus='front_panel="AUDIO";{if $vers_fbx{0}==5}service{else}location{/if}="srv://default?ox=0&oy=0&ow=720&oh=576,&ix=0&iy=192&iw=360&ih=192";' href="../../module/mp3/lecteuraudio.php"> + <a onfocus='front_panel="AUDIO";{if substr($vers_fbx,0,1)=="5"}service{else}location{/if}="srv://default?ox=0&oy=0&ow=720&oh=576,&ix=0&iy=192&iw=360&ih=192";' href="../../module/mp3/lecteuraudio.php"> </a> - <a onfocus='front_panel="BIBLIOTHEQUE";{if $vers_fbx{0}==5}service{else}location{/if}="srv://default?ox=0&oy=0&ow=720&oh=576,&ix=360&iy=0&iw=360&ih=192";' href="../../module/films/catalogue.php"> + <a onfocus='front_panel="BIBLIOTHEQUE";{if substr($vers_fbx,0,1)=="5"}service{else}location{/if}="srv://default?ox=0&oy=0&ow=720&oh=576,&ix=360&iy=0&iw=360&ih=192";' href="../../module/films/catalogue.php"> </a> {/if} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gu...@us...> - 2007-05-01 15:16:49
|
Revision: 137 http://svn.sourceforge.net/easybox-mod/?rev=137&view=rev Author: guyou Date: 2007-05-01 08:16:44 -0700 (Tue, 01 May 2007) Log Message: ----------- Ajout svn:eol-style=native sur fichiers .txt (#1699723) Modified Paths: -------------- trunk/_utilisateur/site_html.txt Property Changed: ---------------- trunk/_utilisateur/site_html.txt trunk/module/guidetv/listechainetelepoche.txt trunk/module/pendu/mots.txt Modified: trunk/_utilisateur/site_html.txt =================================================================== --- trunk/_utilisateur/site_html.txt 2007-05-01 10:45:52 UTC (rev 136) +++ trunk/_utilisateur/site_html.txt 2007-05-01 15:16:44 UTC (rev 137) @@ -1,5 +1,5 @@ -Annuaire - -surf on mobile|http://www.surfsurmobile.com/ - -Annuaire Freeplayer.org|http://www.freeplayer.org/freebox/ +Annuaire + +surf on mobile|http://www.surfsurmobile.com/ + +Annuaire Freeplayer.org|http://www.freeplayer.org/freebox/ Property changes on: trunk/_utilisateur/site_html.txt ___________________________________________________________________ Name: svn:eol-style + native Property changes on: trunk/module/guidetv/listechainetelepoche.txt ___________________________________________________________________ Name: svn:eol-style + native Property changes on: trunk/module/pendu/mots.txt ___________________________________________________________________ Name: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gu...@us...> - 2007-05-01 15:20:58
|
Revision: 138 http://svn.sourceforge.net/easybox-mod/?rev=138&view=rev Author: guyou Date: 2007-05-01 08:20:56 -0700 (Tue, 01 May 2007) Log Message: ----------- Ajout svn:eol-style=native sur fichiers .tpl (#1699723) Modified Paths: -------------- trunk/module/_explorateur/explorateur.tpl trunk/module/allocine/allocine.tpl trunk/module/cac40/cac40.tpl trunk/module/clips/clips.tpl trunk/module/dailymotion/dailymotion.tpl trunk/module/diaporama/explorateur_photo.tpl trunk/module/dvd/dvd.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/signet_ask.tpl trunk/module/films/signet_film.tpl trunk/module/guidetv/guidetv.tpl trunk/module/horoscope/horoscope.tpl trunk/module/infotrafic/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/podcast.tpl trunk/module/multiposte/enregistrement_add.tpl trunk/module/othello/othello.tpl trunk/module/recettes/recettes.tpl trunk/module/recettes/recettes2.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 trunk/module/youtube/youtube.tpl trunk/skin/mediacenter/avertissement.tpl trunk/skin/mediacenter/bouton.tpl trunk/skin/mediacenter/cartouche.tpl trunk/skin/mediacenter/demarrage.tpl trunk/skin/mediacenter/explorateur.tpl trunk/skin/mediacenter/generique.tpl trunk/skin/mediacenter/menu.tpl trunk/skin/simple/avertissement.tpl trunk/skin/simple/bouton.tpl trunk/skin/simple/demarrage.tpl trunk/skin/simple/generique.tpl trunk/skin/simple/interface.tpl trunk/skin/simple/menu.tpl trunk/skin/simplegreen/avertissement.tpl trunk/skin/simplegreen/bouton.tpl trunk/skin/simplegreen/demarrage.tpl trunk/skin/simplegreen/generique.tpl trunk/skin/simplegreen/interface.tpl trunk/skin/simplegreen/menu.tpl Property Changed: ---------------- trunk/_framework/lib/debug.tpl trunk/module/_explorateur/explorateur.tpl trunk/module/allocine/allocine.tpl trunk/module/cac40/cac40.tpl trunk/module/cinefil/sorties_cine.tpl trunk/module/clips/clips.tpl trunk/module/dailymotion/dailymotion.tpl trunk/module/diaporama/explorateur_photo.tpl trunk/module/diaporama/photo.tpl trunk/module/dvd/dvd.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/infotrafic/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/othello/othello.tpl trunk/module/recettes/recettes.tpl trunk/module/recettes/recettes2.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 trunk/module/youtube/youtube.tpl trunk/skin/mediacenter/avertissement.tpl trunk/skin/mediacenter/bouton.tpl trunk/skin/mediacenter/cartouche.tpl trunk/skin/mediacenter/demarrage.tpl trunk/skin/mediacenter/explorateur.tpl trunk/skin/mediacenter/films.tpl trunk/skin/mediacenter/generique.tpl trunk/skin/mediacenter/interface.tpl trunk/skin/mediacenter/menu.tpl trunk/skin/simple/avertissement.tpl trunk/skin/simple/bouton.tpl trunk/skin/simple/demarrage.tpl trunk/skin/simple/generique.tpl trunk/skin/simple/interface.tpl trunk/skin/simple/menu.tpl trunk/skin/simplegreen/avertissement.tpl trunk/skin/simplegreen/bouton.tpl trunk/skin/simplegreen/demarrage.tpl trunk/skin/simplegreen/generique.tpl trunk/skin/simplegreen/interface.tpl trunk/skin/simplegreen/menu.tpl Property changes on: trunk/_framework/lib/debug.tpl ___________________________________________________________________ Name: svn:eol-style + native Modified: trunk/module/_explorateur/explorateur.tpl =================================================================== --- trunk/module/_explorateur/explorateur.tpl 2007-05-01 15:16:44 UTC (rev 137) +++ trunk/module/_explorateur/explorateur.tpl 2007-05-01 15:20:56 UTC (rev 138) @@ -1,168 +1,168 @@ -{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}" onfocus='aide="Scanner \xE0 nouveau les disques et lecteurs disponibles";'>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"> - -{assign var=N_affich value=$T_affich|@count} -{assign var=N_affich_reste value=$NUM_ROW_AFFICH|max:15} - - -{*########## Affichage des raccourcis rapides ##########*} -{assign var=curIndex value=1} -{assign var=curTD value=0} -{assign var=curTR value=0} -{assign var=FromValue value=""} -{assign var=ToValue value=""} - -{* Nombre de page et pr\xE9paration de la limitation \xE0 10 blocs *} -{assign var=nb_page value=$N_affich/$NUM_ROW_AFFICH|ceil} -{assign var=nb_page_par_case value=$nb_page/10|ceil} - -{* 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 colspan="2"><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==$nb_page_par_case*$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*$nb_page_par_case}&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 *} - {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} - -{*######## Fin Affichage des raccourcis rapides ########*} - -{if $MIN!=0} - <tr><td colspan="2">{precedent} <a href="{$PAGE_EXPLO}?start=0&directory={$REP|urlencode}&mode={$MODE}"><font size=2>D\xE9but du r\xE9pertoire</font></a></td></tr> - {/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}" onfocus='aide="Dossier parent";'><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}" onfocus='aide="Explorer {$T_affich[files]|strip_delimiters|replace:"'":"`"}";'>{$T_affich[files]|truncate:55|strip_delimiters}</a></font></td></tr> - {else} -<tr> - {if $AFF_INFO} - <td width="35"> - {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}" onfocus='aide="Afficher les informations sur {$T_affich[files]|strip_delimiters|replace:"'":"`"}";'><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}/information.gif" border="0" width="20" height="20"></td></tr></table></a> - </td> - {elseif $LECTEUR_AUDIO} - <td width="60"> - <table cellpadding="0" cellspacing="0" width="60"><tr><td width="30"> - <a href="{$PAGE_LECT}?{$OPT_LIENS}toplay_file={$T_affich[files]|urlencode}&toplay_rep={$REP|urlencode}"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}/jouer.gif" border="0" width="20" height="20"></td></tr></table></a> - </td><td width="30"> - <a href="{$PAGE_LECT}?{$OPT_LIENS}toplay_file={$T_affich[files]|urlencode}&toplay_rep={$REP|urlencode}&option=1"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}/ajouter.gif" border="0" width="20" height="20"></td></tr></table></a> - </td></tr></table> - </td> - {else} - <td></td> - {/if} - - <td> - {if (NOT $AFF_INFO) AND (NOT $LECTEUR_AUDIO)}<img src="{$SKIN_REP}dossier/{$ICONE_FICHIER}" width="16" height="16"> {/if} - <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}" onfocus='aide="Jouer {$T_affich[files]|strip_delimiters|replace:"'":"`"}";'>{$T_affich[files]|strip_delimiters|truncate:52}</a></font> - - </td></tr> - {/if} -{/section} - -{if $MIN+$smarty.section.files.total<count($T_affich)} - <tr><td colspan="2"><table><tr><td>{suivant} - <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> -{else} - <tr><td colspan="2"><table><tr><td><font size=2>Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td> -{/if} - - -<td width="30" align="center"> -{if $PLAYREP} -<a href="{$PAGE_LECT_REP}?toplay={$REP|urlencode}&type=playrep" onfocus='aide="Lire le dossier en entier";'><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$SKIN_REP}dossier/rep_all.gif" border="0" width="20" height="20"></td></tr></table></a> -{/if} -</td><td width="30" align="center"> -{if $AFF_FAVORIS} -<a href="{$RACINE_REP}module/favoris/index1.php?ajout={$REP|urlencode}&nom={$REP}" onfocus='aide="Ajouter le dossier aux favoris";'><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$SKIN_REP}dossier/favoris.gif" border="0" width="20" height="20"></td></tr></table></a> -{/if} -</td></tr></table> -</td></tr> - -{if $dvdmod} -<tr><td colspan="2"><a href="index1.php?status=disques">Cliquez ici pour lire un dvd depuis un lecteur optique.</a></td></tr> -{/if} -</table> -{$FOOTER} +{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}" onfocus='aide="Scanner \xE0 nouveau les disques et lecteurs disponibles";'>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"> + +{assign var=N_affich value=$T_affich|@count} +{assign var=N_affich_reste value=$NUM_ROW_AFFICH|max:15} + + +{*########## Affichage des raccourcis rapides ##########*} +{assign var=curIndex value=1} +{assign var=curTD value=0} +{assign var=curTR value=0} +{assign var=FromValue value=""} +{assign var=ToValue value=""} + +{* Nombre de page et pr\xE9paration de la limitation \xE0 10 blocs *} +{assign var=nb_page value=$N_affich/$NUM_ROW_AFFICH|ceil} +{assign var=nb_page_par_case value=$nb_page/10|ceil} + +{* 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 colspan="2"><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==$nb_page_par_case*$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*$nb_page_par_case}&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 *} + {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} + +{*######## Fin Affichage des raccourcis rapides ########*} + +{if $MIN!=0} + <tr><td colspan="2">{precedent} <a href="{$PAGE_EXPLO}?start=0&directory={$REP|urlencode}&mode={$MODE}"><font size=2>D\xE9but du r\xE9pertoire</font></a></td></tr> + {/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}" onfocus='aide="Dossier parent";'><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}" onfocus='aide="Explorer {$T_affich[files]|strip_delimiters|replace:"'":"`"}";'>{$T_affich[files]|truncate:55|strip_delimiters}</a></font></td></tr> + {else} +<tr> + {if $AFF_INFO} + <td width="35"> + {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}" onfocus='aide="Afficher les informations sur {$T_affich[files]|strip_delimiters|replace:"'":"`"}";'><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}/information.gif" border="0" width="20" height="20"></td></tr></table></a> + </td> + {elseif $LECTEUR_AUDIO} + <td width="60"> + <table cellpadding="0" cellspacing="0" width="60"><tr><td width="30"> + <a href="{$PAGE_LECT}?{$OPT_LIENS}toplay_file={$T_affich[files]|urlencode}&toplay_rep={$REP|urlencode}"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}/jouer.gif" border="0" width="20" height="20"></td></tr></table></a> + </td><td width="30"> + <a href="{$PAGE_LECT}?{$OPT_LIENS}toplay_file={$T_affich[files]|urlencode}&toplay_rep={$REP|urlencode}&option=1"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}/ajouter.gif" border="0" width="20" height="20"></td></tr></table></a> + </td></tr></table> + </td> + {else} + <td></td> + {/if} + + <td> + {if (NOT $AFF_INFO) AND (NOT $LECTEUR_AUDIO)}<img src="{$SKIN_REP}dossier/{$ICONE_FICHIER}" width="16" height="16"> {/if} + <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}" onfocus='aide="Jouer {$T_affich[files]|strip_delimiters|replace:"'":"`"}";'>{$T_affich[files]|strip_delimiters|truncate:52}</a></font> + + </td></tr> + {/if} +{/section} + +{if $MIN+$smarty.section.files.total<count($T_affich)} + <tr><td colspan="2"><table><tr><td>{suivant} - <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> +{else} + <tr><td colspan="2"><table><tr><td><font size=2>Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td> +{/if} + + +<td width="30" align="center"> +{if $PLAYREP} +<a href="{$PAGE_LECT_REP}?toplay={$REP|urlencode}&type=playrep" onfocus='aide="Lire le dossier en entier";'><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$SKIN_REP}dossier/rep_all.gif" border="0" width="20" height="20"></td></tr></table></a> +{/if} +</td><td width="30" align="center"> +{if $AFF_FAVORIS} +<a href="{$RACINE_REP}module/favoris/index1.php?ajout={$REP|urlencode}&nom={$REP}" onfocus='aide="Ajouter le dossier aux favoris";'><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$SKIN_REP}dossier/favoris.gif" border="0" width="20" height="20"></td></tr></table></a> +{/if} +</td></tr></table> +</td></tr> + +{if $dvdmod} +<tr><td colspan="2"><a href="index1.php?status=disques">Cliquez ici pour lire un dvd depuis un lecteur optique.</a></td></tr> +{/if} +</table> +{$FOOTER} Property changes on: trunk/module/_explorateur/explorateur.tpl ___________________________________________________________________ Name: svn:eol-style + native Modified: trunk/module/allocine/allocine.tpl =================================================================== --- trunk/module/allocine/allocine.tpl 2007-05-01 15:16:44 UTC (rev 137) +++ trunk/module/allocine/allocine.tpl 2007-05-01 15:20:56 UTC (rev 138) @@ -1,36 +1,36 @@ -{section name=films loop=$FILMS max=3 start=$MIN} - - {cycle name=place assign=place print=false values="1,0"} - {if $smarty.section.films.first} - {if $MIN==0} - {$DESCRIPTION} - {/if} - - {if $MIN!=0} - {assign var=temp value=$MIN-3} - {attribbouton touche="green" lien="index1.php?start=$temp"} - <a href="index1.php?&start={$temp}"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> Pr\xE9c\xE9dent</a> - {/if} - <table border="0" cellpadding="2" cellspacing="0" width="500" height="360" align="center"><tr> - {/if} - <tr><td width="90" valign="top"><img width="90" height="120" border="0" src="{$IMG2FBX}{$FILMS[films].image|urlencode}&new_width=90&new_height=120&cache=1"></td> - <td valign=top align=left width="410"> - {if $FILMS[films].video!= ''} - <a onfocus='front_panel="{$FILMS[films].titre|truncate:12|replace:"'":"`"|replace:"\"":"``"}";' href="playba_allocine.php?url={$FILMS[films].video|urlencode}&from_start={$MIN}">{$FILMS[films].titre|truncate:40} <img src="video.gif" border=0 width=20 height=20></a> - {else} - {$FILMS[films].titre|truncate:40} - {/if} - <br> - <font size="1">{$FILMS[films].desc|truncate:400}</font> - </td> - </tr> -{/section} -</table> - -{if $MIN+$smarty.section.films.total<count($FILMS)} - {assign var=temp value=$MIN+3} - {attribbouton touche="blue" lien="index1.php?start=$temp"} - <a href="index1.php?start={$temp}"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> Suivant</a> - -{/if} - +{section name=films loop=$FILMS max=3 start=$MIN} + + {cycle name=place assign=place print=false values="1,0"} + {if $smarty.section.films.first} + {if $MIN==0} + {$DESCRIPTION} + {/if} + + {if $MIN!=0} + {assign var=temp value=$MIN-3} + {attribbouton touche="green" lien="index1.php?start=$temp"} + <a href="index1.php?&start={$temp}"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> Pr\xE9c\xE9dent</a> + {/if} + <table border="0" cellpadding="2" cellspacing="0" width="500" height="360" align="center"><tr> + {/if} + <tr><td width="90" valign="top"><img width="90" height="120" border="0" src="{$IMG2FBX}{$FILMS[films].image|urlencode}&new_width=90&new_height=120&cache=1"></td> + <td valign=top align=left width="410"> + {if $FILMS[films].video!= ''} + <a onfocus='front_panel="{$FILMS[films].titre|truncate:12|replace:"'":"`"|replace:"\"":"``"}";' href="playba_allocine.php?url={$FILMS[films].video|urlencode}&from_start={$MIN}">{$FILMS[films].titre|truncate:40} <img src="video.gif" border=0 width=20 height=20></a> + {else} + {$FILMS[films].titre|truncate:40} + {/if} + <br> + <font size="1">{$FILMS[films].desc|truncate:400}</font> + </td> + </tr> +{/section} +</table> + +{if $MIN+$smarty.section.films.total<count($FILMS)} + {assign var=temp value=$MIN+3} + {attribbouton touche="blue" lien="index1.php?start=$temp"} + <a href="index1.php?start={$temp}"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> Suivant</a> + +{/if} + Property changes on: trunk/module/allocine/allocine.tpl ___________________________________________________________________ Name: svn:eol-style + native Modified: trunk/module/cac40/cac40.tpl =================================================================== --- trunk/module/cac40/cac40.tpl 2007-05-01 15:16:44 UTC (rev 137) +++ trunk/module/cac40/cac40.tpl 2007-05-01 15:20:56 UTC (rev 138) @@ -1,7 +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> +<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> Property changes on: trunk/module/cac40/cac40.tpl ___________________________________________________________________ Name: svn:eol-style + native Property changes on: trunk/module/cinefil/sorties_cine.tpl ___________________________________________________________________ Name: svn:eol-style + native Modified: trunk/module/clips/clips.tpl =================================================================== --- trunk/module/clips/clips.tpl 2007-05-01 15:16:44 UTC (rev 137) +++ trunk/module/clips/clips.tpl 2007-05-01 15:20:56 UTC (rev 138) @@ -1,76 +1,76 @@ -{if $SHOW!='rec'} - {assign var=NUM_ROW_AFFICH value=10} - {section name=clip loop=$CLIP max=$NUM_ROW_AFFICH start=$START} - {cycle name=place assign=place print=false values="4,3,2,1,0"} - {if $smarty.section.clip.first} - <table border="0" cellpadding="0" cellspacing="0" width="500" align="center"><tr> - {if $MIN!=0} - <td colspan="5" align=center>{precedent}</td></tr><tr> - {/if} - {/if} - - <td width="100" height="150"><a href="play_clip.php?clipid={$CLIP[clip].id}&show={$SHOW}&min={$MIN}{if $SHOW=='tous'}&lettre={$LETTRE}{/if}"><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="80" height="80" border="0" src="{$IMG2FBX}{$CLIP[clip].img|urlencode}&new_width=80&new_height=80&cache=1"></td></tr><tr height="70"><td width="100" height="70" valign="middle" align=center><font size="1">{$CLIP[clip].chanteur|wordwrap:18:"<br>":true}<br>{$CLIP[clip].titre|wordwrap:18:"<br>":true}</font></td></tr></table></a></td> - - {if $smarty.section.clip.iteration is div by 5 AND NOT $smarty.section.files.last} - </tr><tr> - {/if} - - {if $smarty.section.clip.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> - <tr><td colspan="5" align="center" height="25" valign="bottom">{if $MIN+$NUM_ROW_AFFICH < $TOTAL}{suivant} - {/if}{$DEB+$START} \xE0 {$FIN-10+$START} sur {$TOTAL}</td></tr> - </table> - - {if $SHOW=='tous'} - <TABLE cellspacing=0 cellpading=0> - <TR> - <TD align="center" width="30"><font size="1"><A hRef="index1.php?show=tous&lettre=0"><B>0-9</B></A></FONT></TD> - {section name=lettres loop=$lettres} - {if $smarty.section.lettres.iteration==14} - </TR><TR> - {/if} - <TD align="center" width="26"><font size="1"><A hRef="index1.php?show=tous&lettre={$lettres[lettres].0}"><B>{$lettres[lettres].1}</B></A></FONT></TD> - {if $smarty.section.lettres.last} - <TD align="center" width="30"> </TD> - {/if} - {/section} - </TR> - </TABLE> - {/if} - {/if} - - {/section} -{else} - -{section name=clip loop=$CLIP max=20 start=0} - {if $smarty.section.clip.first} - <table border="0" cellpadding="0" cellspacing="0" width="400" align="center"> - {/if} - {cycle name=color assign=COLOR print=false values="`$smarty.config.COULEUR_INTERFACE1`,`$smarty.config.COULEUR_INTERFACE2`"} - - <tr><td width="400" bgcolor="{$COLOR}"><a href="play_clip.php?clipid={$CLIP[clip].id}&show=rec&string={$string}"><table width="400" border="0" cellpadding="0" cellspacing="0" bgcolor="{$COLOR}" abgcolor="{#COULEUR_ALINK#}"><tr><td width="400">{$CLIP[clip].chanteur} - {$CLIP[clip].titre}</td></tr></table></a></td></tr> - - {if $smarty.section.clip.last} - </table> - {/if} -{sectionelse} - {if $string!=''}Aucun clip trouv\xE9 pour la requ\xEAte : "{$string}".{else}Veuillez entrer votre recherche ci-dessous.{/if} -{/section} - -<br>Recherche<br> <br><form name="form1" method="get" action="index1.php"> -<input name="show" type="hidden" value="rec"> -<input name="string" bgcolor="{#COULEUR_TEXTBOX#}" type="text" charset="digit|alpha|caps" value="" size="20"> -</form><br> -La touche {literal}#{/literal} permet de changer entre les minuscules/majuscules et les chiffres. -{/if} +{if $SHOW!='rec'} + {assign var=NUM_ROW_AFFICH value=10} + {section name=clip loop=$CLIP max=$NUM_ROW_AFFICH start=$START} + {cycle name=place assign=place print=false values="4,3,2,1,0"} + {if $smarty.section.clip.first} + <table border="0" cellpadding="0" cellspacing="0" width="500" align="center"><tr> + {if $MIN!=0} + <td colspan="5" align=center>{precedent}</td></tr><tr> + {/if} + {/if} + + <td width="100" height="150"><a href="play_clip.php?clipid={$CLIP[clip].id}&show={$SHOW}&min={$MIN}{if $SHOW=='tous'}&lettre={$LETTRE}{/if}"><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="80" height="80" border="0" src="{$IMG2FBX}{$CLIP[clip].img|urlencode}&new_width=80&new_height=80&cache=1"></td></tr><tr height="70"><td width="100" height="70" valign="middle" align=center><font size="1">{$CLIP[clip].chanteur|wordwrap:18:"<br>":true}<br>{$CLIP[clip].titre|wordwrap:18:"<br>":true}</font></td></tr></table></a></td> + + {if $smarty.section.clip.iteration is div by 5 AND NOT $smarty.section.files.last} + </tr><tr> + {/if} + + {if $smarty.section.clip.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> + <tr><td colspan="5" align="center" height="25" valign="bottom">{if $MIN+$NUM_ROW_AFFICH < $TOTAL}{suivant} - {/if}{$DEB+$START} \xE0 {$FIN-10+$START} sur {$TOTAL}</td></tr> + </table> + + {if $SHOW=='tous'} + <TABLE cellspacing=0 cellpading=0> + <TR> + <TD align="center" width="30"><font size="1"><A hRef="index1.php?show=tous&lettre=0"><B>0-9</B></A></FONT></TD> + {section name=lettres loop=$lettres} + {if $smarty.section.lettres.iteration==14} + </TR><TR> + {/if} + <TD align="center" width="26"><font size="1"><A hRef="index1.php?show=tous&lettre={$lettres[lettres].0}"><B>{$lettres[lettres].1}</B></A></FONT></TD> + {if $smarty.section.lettres.last} + <TD align="center" width="30"> </TD> + {/if} + {/section} + </TR> + </TABLE> + {/if} + {/if} + + {/section} +{else} + +{section name=clip loop=$CLIP max=20 start=0} + {if $smarty.section.clip.first} + <table border="0" cellpadding="0" cellspacing="0" width="400" align="center"> + {/if} + {cycle name=color assign=COLOR print=false values="`$smarty.config.COULEUR_INTERFACE1`,`$smarty.config.COULEUR_INTERFACE2`"} + + <tr><td width="400" bgcolor="{$COLOR}"><a href="play_clip.php?clipid={$CLIP[clip].id}&show=rec&string={$string}"><table width="400" border="0" cellpadding="0" cellspacing="0" bgcolor="{$COLOR}" abgcolor="{#COULEUR_ALINK#}"><tr><td width="400">{$CLIP[clip].chanteur} - {$CLIP[clip].titre}</td></tr></table></a></td></tr> + + {if $smarty.section.clip.last} + </table> + {/if} +{sectionelse} + {if $string!=''}Aucun clip trouv\xE9 pour la requ\xEAte : "{$string}".{else}Veuillez entrer votre recherche ci-dessous.{/if} +{/section} + +<br>Recherche<br> <br><form name="form1" method="get" action="index1.php"> +<input name="show" type="hidden" value="rec"> +<input name="string" bgcolor="{#COULEUR_TEXTBOX#}" type="text" charset="digit|alpha|caps" value="" size="20"> +</form><br> +La touche {literal}#{/literal} permet de changer entre les minuscules/majuscules et les chiffres. +{/if} Property changes on: trunk/module/clips/clips.tpl ___________________________________________________________________ Name: svn:eol-style + native Modified: trunk/module/dailymotion/dailymotion.tpl =================================================================== --- trunk/module/dailymotion/dailymotion.tpl 2007-05-01 15:16:44 UTC (rev 137) +++ trunk/module/dailymotion/dailymotion.tpl 2007-05-01 15:20:56 UTC (rev 138) @@ -1,38 +1,38 @@ -{assign var=NUM_ROW_AFFICH value=10} -{section name=clip loop=$CLIP max=$NUM_ROW_AFFICH start=0} -{cycle name=place assign=place print=false values="4,3,2,1,0"} - {if $smarty.section.clip.first} - <table border="0" cellpadding="0" cellspacing="0" width="500" align="center"><tr> - {if $MIN!=0} - <td colspan="5" align=center>{precedent}</td></tr><tr> - {/if} - {/if} - - <td width="100" height="150"><a href="play_dailymotion.php?url={$CLIP[clip].url|urlencode}&show={$SHOW}&min={$MIN}&string={$string}"><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="80" height="60" border="0" src="{$IMG2FBX}{$CLIP[clip].img|urlencode}&new_width=80&new_height=60&cache=1"></td></tr><tr height="70"><td width="100" height="70" valign="middle" align=center><font size="1">{$CLIP[clip].titre|truncate:30:"":true|wordwrap:15:"<br>":true} ({$CLIP[clip].temps})</font></td></tr></table></a></td> - - {if $smarty.section.clip.iteration is div by 5 AND NOT $smarty.section.files.last} - </tr><tr> - {/if} - - {if $smarty.section.clip.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> - <tr><td colspan="5" align="center" height="25" valign="bottom">{if $MIN+$NUM_ROW_AFFICH < $TOTAL}{suivant} - {/if}{$DEB} \xE0 {$FIN}</td></tr> - </table> - {/if} -{sectionelse} - {if $SHOW=='rec'} - {if $string!=''}Aucune vid\xE9o trouv\xE9e pour la requ\xEAte : "{$string}".{else}Veuillez entrer votre recherche ci-dessous.{/if} - {/if} -{/section} - -{if $SHOW=='rec'} -<br>Recherche<br> <br><form name="form1" method="get" action="index1.php"> -<input name="show" type="hidden" value="rec"> -<input name="string" bgcolor="{#COULEUR_TEXTBOX#}" type="text" charset="digit|alpha|caps" value="" size="20"> -</form><br> -La touche {literal}#{/literal} permet de changer entre les minuscules/majuscules et les chiffres. -{/if} +{assign var=NUM_ROW_AFFICH value=10} +{section name=clip loop=$CLIP max=$NUM_ROW_AFFICH start=0} +{cycle name=place assign=place print=false values="4,3,2,1,0"} + {if $smarty.section.clip.first} + <table border="0" cellpadding="0" cellspacing="0" width="500" align="center"><tr> + {if $MIN!=0} + <td colspan="5" align=center>{precedent}</td></tr><tr> + {/if} + {/if} + + <td width="100" height="150"><a href="play_dailymotion.php?url={$CLIP[clip].url|urlencode}&show={$SHOW}&min={$MIN}&string={$string}"><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="80" height="60" border="0" src="{$IMG2FBX}{$CLIP[clip].img|urlencode}&new_width=80&new_height=60&cache=1"></td></tr><tr height="70"><td width="100" height="70" valign="middle" align=center><font size="1">{$CLIP[clip].titre|truncate:30:"":true|wordwrap:15:"<br>":true} ({$CLIP[clip].temps})</font></td></tr></table></a></td> + + {if $smarty.section.clip.iteration is div by 5 AND NOT $smarty.section.files.last} + </tr><tr> + {/if} + + {if $smarty.section.clip.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> + <tr><td colspan="5" align="center" height="25" valign="bottom">{if $MIN+$NUM_ROW_AFFICH < $TOTAL}{suivant} - {/if}{$DEB} \xE0 {$FIN}</td></tr> + </table> + {/if} +{sectionelse} + {if $SHOW=='rec'} + {if $string!=''}Aucune vid\xE9o trouv\xE9e pour la requ\xEAte : "{$string}".{else}Veuillez entrer votre recherche ci-dessous.{/if} + {/if} +{/section} + +{if $SHOW=='rec'} +<br>Recherche<br> <br><form name="form1" method="get" action="index1.php"> +<input name="show" type="hidden" value="rec"> +<input name="string" bgcolor="{#COULEUR_TEXTBOX#}" type="text" charset="digit|alpha|caps" value="" size="20"> +</form><br> +La touche {literal}#{/literal} permet de changer entre les minuscules/majuscules et les chiffres. +{/if} Property changes on: trunk/module/dailymotion/dailymotion.tpl ___________________________________________________________________ Name: svn:eol-style + native Modified: trunk/module/diaporama/explorateur_photo.tpl =================================================================== --- trunk/module/diaporama/explorateur_photo.tpl 2007-05-01 15:16:44 UTC (rev 137) +++ trunk/module/diaporama/explorateur_photo.tpl 2007-05-01 15:20:56 UTC (rev 138) @@ -1,77 +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}" onfocus='aide="{$files[files]|strip_delimiters|replace:"'":"`"}";'><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}" onfocus='aide="{$files[files]|strip_delimiters|replace:"'":"`"}";'><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:20:"":true|wordwrap:10:"<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}" onfocus='aide="{$files[files]|strip_delimiters|replace:"'":"`"}";'><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:20:"":true|wordwrap:10:"<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} +{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}" onfocus='aide="{$files[files]|strip_delimiters|replace:"'":"`"}";'><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}" onfocus='aide="{$files[files]|strip_delimiters|replace:"'":"`"}";'><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:20:"":true|wordwrap:10:"<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}" onfocus='aide="{$files[files]|strip_delimiters|replace:"'":"`"}";'><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:20:"":true|wordwrap:10:"<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} Property changes on: trunk/module/diaporama/explorateur_photo.tpl ___________________________________________________________________ Name: svn:eol-style + native Property changes on: trunk/module/diaporama/photo.tpl ___________________________________________________________________ Name: svn:eol-style + native Modified: trunk/module/dvd/dvd.tpl =================================================================== --- trunk/module/dvd/dvd.tpl 2007-05-01 15:16:44 UTC (rev 137) +++ trunk/module/dvd/dvd.tpl 2007-05-01 15:20:56 UTC (rev 138) @@ -1,40 +1,40 @@ -{section name=dop loop=$disques_optique} -{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" align="center"><tr> - {/if} - <td width="100" height="130"><a href="playrep.php?toplay={$disques_optique[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_optique[dop].nom} ({$disques_optique[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> - <br> - <a href="index1.php?status=explorateur">Cliquez ici pour lire des dvd ripp\xE9s ou au format image depuis l'explorateur.</a> - - {/if} -{sectionelse} - -Aucun lecteur DVD physique n'est disponible. -<br> -<br> -<br> -<a href="index1.php?status=explorateur">Cliquez ici pour lire des dvd ripp\xE9s ou au format image depuis l'explorateur.</a> - -{/section} +{section name=dop loop=$disques_optique} +{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" align="center"><tr> + {/if} + <td width="100" height="130"><a href="playrep.php?toplay={$disques_optique[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_optique[dop].nom} ({$disques_optique[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> + <br> + <a href="index1.php?status=explorateur">Cliquez ici pour lire des dvd ripp\xE9s ou au format image depuis l'explorateur.</a> + + {/if} +{sectionelse} + +Aucun lecteur DVD physique n'est disponible. +<br> +<br> +<br> +<a href="index1.php?status=explorateur">Cliquez ici pour lire des dvd ripp\xE9s ou au format image depuis l'explorateur.</a> + +{/section} Property changes on: trunk/module/dvd/dvd.tpl ___________________________________________________________________ Name: svn:eol-style + native Modified: trunk/module/dvd/menu_dvd.tpl =================================================================== --- trunk/module/dvd/menu_dvd.tpl 2007-05-01 15:16:44 UTC (rev 137) +++ trunk/module/dvd/menu_dvd.tpl 2007-05-01 15:20:56 UTC (rev 138) @@ -1,20 +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> +<!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> Property changes on: trunk/module/dvd/menu_dvd.tpl ___________________________________________________________________ Name: svn:eol-style + native Modified: trunk/module/ephemeride/ephemeride.tpl =================================================================== --- trunk/module/ephemeride/ephemeride.tpl 2007-05-01 15:16:44 UTC (rev 137) +++ trunk/module/ephemeride/ephemeride.tpl 2007-05-01 15:20:56 UTC (rev 138) @@ -1,12 +1,12 @@ -<cente... [truncated message content] |