From: <cra...@us...> - 2006-09-25 22:25:15
|
Revision: 8 http://svn.sourceforge.net/easybox-mod/?rev=8&view=rev Author: craftsnux Date: 2006-09-25 15:24:33 -0700 (Mon, 25 Sep 2006) Log Message: ----------- Cr?\195?\169ation trunk Added Paths: ----------- trunk/_framework/ trunk/_utilisateur/ trunk/configuration/ trunk/copyright.php trunk/erreur.php trunk/fb2ie.js trunk/http-vlc/ trunk/index1.html trunk/lecteur/ trunk/module/ trunk/remplir bdd.php trunk/settings.html trunk/skin/ trunk/status.html trunk/telecommande.png trunk/testeur.php trunk/version.html Removed Paths: ------------- _framework/ _utilisateur/ configuration/ copyright.php erreur.php fb2ie.js http-vlc/ index1.html lecteur/ module/ remplir bdd.php settings.html skin/ status.html telecommande.png testeur.php version.html Deleted: copyright.php =================================================================== --- copyright.php 2006-09-25 20:41:40 UTC (rev 7) +++ copyright.php 2006-09-25 22:24:33 UTC (rev 8) @@ -1,21 +0,0 @@ -<?php -$RACINE_REP = ""; - -require($RACINE_REP.'_framework/framework.php'); -$LINK['red']= $MODULE.'_menu/menu.php'; -$version_l = get_version('Easybox'); - - -$message='<br> <br> -<u>Version actuellement install\xE9e</u> : v'.$version_l.' -<br> <br> -Ce mod pour freeplayer est propos\xE9 par <br> -Aragornis, DJ-Maboul, beb59, DaRkYoda et Nuxgyver.<br> <br> -<u>Site officiel</u> : http://www.easybox-mod.org/ -<br> -<br> '; - -$smarty->assign('AVERTISSEMENT',$message); -$smarty->display('avertissement.tpl'); - -?> Deleted: erreur.php =================================================================== Deleted: fb2ie.js =================================================================== --- fb2ie.js 2006-09-25 20:41:40 UTC (rev 7) +++ fb2ie.js 2006-09-25 22:24:33 UTC (rev 8) @@ -1,364 +0,0 @@ -/** Script de simulation du navigateur Freebox ** -/*----------------------------------------------* - * R\xE9alisation : Laurent Asfaux alias DEL65 - * Contributeurs : - * - - * - - * - - * - * version 0.6+ - */ - -/********************************************/ -/*** Fonctions annexes ***/ -/********************************************/ - -// enregistrement des param\xE8tres de la freebox -// + redirection -function getParameters () { -if (document.getElementsByTagName) { - // parcours des attributs des balises "meta" - elemColl = document.getElementsByTagName('meta'); - - // pour chaque param\xE8tre (si pr\xE9sent) - // on stocke sa valeur dans un cookie - for (var i = 0; i < elemColl.length; i++) { - - valeur = elemColl[i].name; - - if(valeur=="refresh"){ - valeurs = elemColl[i].content.split(";"); - setTimeout('document.location.href="'+valeurs[1].substring(4, valeurs[1].length)+'";',valeurs[0]*1000); - - - - - - - - - - - - } - } -} -} - -// interface de simulation des touches de la t\xE9l\xE9commande -function getTouches() { - - // parcours des attributs des balises "link" - elemColl = document.getElementsByTagName("link"); - // pour chaque touche affect\xE9e, on cr\xE9e un lien - // qui sera plac\xE9e en haut de l'\xE9cran. - var commande=document.createElement("div"); - var carte=document.createElement("map"); - carte.setAttribute("name","Telecommande"); - carte.setAttribute("id","Telecommande"); - - document.body.appendChild(document.createElement("hr")); - - for (var i = 0; i < elemColl.length; i++) { - // pr\xE9paration du lien - document.body.appendChild(document.createTextNode("[")); - var lien = document.createElement("a"); - var zone = document.createElement("area"); - lien.setAttribute("href",elemColl[i].getAttribute("href")); - zone.setAttribute("href",elemColl[i].getAttribute("href")); - - switch (elemColl[i].getAttribute("rel")) { - case "help" : - lien.appendChild(document.createTextNode("Aide")); - zone.setAttribute("alt","Aide"); - zone.setAttribute("shape","rect"); - zone.setAttribute("coords","4,18,41,33"); - carte.appendChild(zone); - break; - case "options" : - lien.appendChild(document.createTextNode("Options")); - zone.setAttribute("alt","Options"); - zone.setAttribute("shape","rect"); - zone.setAttribute("coords","58,18,93,33"); - carte.appendChild(zone); - break; - case "red" : - lien.appendChild(document.createTextNode("Rouge")); - zone.setAttribute("alt","Rouge"); - zone.setAttribute("shape","rect"); - zone.setAttribute("coords","8,53,37,81"); - carte.appendChild(zone); - break; - case "green" : - lien.appendChild(document.createTextNode("Vert")); - zone.setAttribute("alt","Vert"); - zone.setAttribute("shape","rect"); - zone.setAttribute("coords","169,52,197,81"); - carte.appendChild(zone); - break; - case "yellow" : - lien.appendChild(document.createTextNode("Jaune")); - zone.setAttribute("alt","Jaune"); - zone.setAttribute("shape","rect"); - zone.setAttribute("coords","8,133,37,161"); - carte.appendChild(zone); - break; - case "blue" : - lien.appendChild(document.createTextNode("Bleu")); - zone.setAttribute("alt","Bleu"); - zone.setAttribute("shape","rect"); - zone.setAttribute("coords","169,133,167.161"); - carte.appendChild(zone); - break; - case "info" : - lien.appendChild(document.createTextNode("Info")); - zone.setAttribute("alt","Info"); - zone.setAttribute("shape","rect"); - zone.setAttribute("coords","89,186,115,213"); - carte.appendChild(zone); - break; - case "guide" : - lien.appendChild(document.createTextNode("Guide")); - zone.setAttribute("alt","Guide"); - zone.setAttribute("shape","rect"); - zone.setAttribute("coords","160,186,187,213"); - carte.appendChild(zone); - break; - case "stop" : - lien.appendChild(document.createTextNode("Stop")); - zone.setAttribute("alt","Stop"); - zone.setAttribute("shape","rect"); - zone.setAttribute("coords","18,230,46,257"); - carte.appendChild(zone); - break; - case "rec" : - lien.appendChild(document.createTextNode("Enregistrer")); - zone.setAttribute("alt","Enregistrer"); - zone.setAttribute("shape","rect"); - zone.setAttribute("coords","160,230,187,257"); - carte.appendChild(zone); - break; - case "play" : - lien.appendChild(document.createTextNode("Lecture")); - zone.setAttribute("alt","Lecture"); - zone.setAttribute("shape","rect"); - zone.setAttribute("coords","89,230,115,257"); - carte.appendChild(zone); - break; - case "pause" : - lien.appendChild(document.createTextNode("Pause")); - zone.setAttribute("alt","Pause"); - zone.setAttribute("shape","rect"); - zone.setAttribute("coords","89,230,115,257"); - carte.appendChild(zone); - break; - case "up" : - lien.appendChild(document.createTextNode("Haut")); - zone.setAttribute("alt","Haut"); - zone.setAttribute("shape","rect"); - zone.setAttribute("coords","83,58,121,77"); - carte.appendChild(zone); - break; - case "down" : - lien.appendChild(document.createTextNode("Bas")); - zone.setAttribute("alt","Bas"); - zone.setAttribute("shape","rect"); - zone.setAttribute("coords","83,137,121,156"); - carte.appendChild(zone); - break; - case "left" : - lien.appendChild(document.createTextNode("Gauche")); - zone.setAttribute("alt","Gauche"); - zone.setAttribute("shape","rect"); - zone.setAttribute("coords","18,93,41,120"); - carte.appendChild(zone); - break; - case "right" : - lien.appendChild(document.createTextNode("Droite")); - zone.setAttribute("alt","Droite"); - zone.setAttribute("shape","rect"); - zone.setAttribute("coords","164,93,188,121"); - carte.appendChild(zone); - break; - case "star" : - lien.appendChild(document.createTextNode("Etoile")); - zone.setAttribute("alt","Etoile"); - zone.setAttribute("shape","rect"); - zone.setAttribute("coords","4,397,41,413"); - carte.appendChild(zone); - break; - case "sharp" : - lien.appendChild(document.createTextNode("Di\xE8se")); - zone.setAttribute("alt","Di\xE8se"); - zone.setAttribute("shape","111,397,147,413"); - zone.setAttribute("coords","rect"); - carte.appendChild(zone); - break; - - default : - lien.appendChild(document.createTextNode("Autre")); - break; - - } - document.body.appendChild(lien); - document.body.appendChild(document.createTextNode("] ")); - } - - var telecommande=document.createElement("img"); - telecommande.setAttribute("src","/telecommande.png"); - telecommande.setAttribute("usemap","#Telecommande"); - - commande.appendChild(carte); - commande.appendChild(telecommande); - document.body.appendChild(commande); - -} - -// corrige l'opacit\xE9 de l'\xE9l\xE9ment "obj" -function setOpacity(obj, opacity) { - opacity = hex2dec(opacity)/4 - opacity = opacity+36; - - // IE/Win - obj.style.filter = "alpha(opacity:"+opacity+")"; - - // Safari<1.2, Konqueror - obj.style.KHTMLOpacity = opacity/100; - - // Older Mozilla and Firefox - obj.style.MozOpacity = opacity/100; - - // Safari 1.2, newer Firefox and Mozilla, CSS3 - obj.style.opacity = opacity/100; -} - - -/********************************************/ -/*** Code principal ***/ -/********************************************/ - -/*** Modification de l'opacit\xE9 des images ***/ - - elemColl = document.getElementsByTagName("img"); - for (var i = 0; i < elemColl.length; i++) { - var alpha = elemColl[i].getAttribute("alpha"); - if (alpha != null) { setOpacity(elemColl[i],alpha.substr(1,2)); } - } - - - -/*** texte en Helvetica gras ***/ - - - -/*** Correction du style des liens ***/ - - elemColl = document.getElementsByTagName("a"); - // pour tous les liens de la page - for (var i = 0; i < elemColl.length; i++) { - // pas de soulignement - elemColl[i].style.textDecoration="none"; - // couleur standard - elemColl[i].style.color=document.body.getAttribute("link"); - - // on ajoute un onmouseover/onmouseout sur le lien (IE) - if (navigator.appName == "Microsoft Internet Explorer") { - elemColl[i].setAttribute("onmouseover",function() { - this.style.color=document.body.getAttribute("alink"); - }); - - elemColl[i].setAttribute("onmouseout",function() { - this.style.color=document.body.getAttribute("link"); - }); - - // on ajoute un onmouseover/onmouseout sur le lien (Firefox/Mozilla) - } else { - - elemColl[i].setAttribute("onMouseOver","this.style.color=document.body.getAttribute('link');"); - - elemColl[i].setAttribute("onMouseOut","this.style.color=document.body.getAttribute('link');"); - } - } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -/*** Simulation des liens sur table ***/ - - elemColl = document.getElementsByTagName("table"); - // pour toutes les tables de la page - for (var i = 0; i < elemColl.length; i++) { - // si un abgcolor est d\xE9fini - if (elemColl[i].getAttribute('abgcolor') != null) { - - // on ajoute un onmouseover/onmouseout sur le lien (IE) - if (navigator.appName == "Microsoft Internet Explorer") { - elemColl[i].setAttribute("onmouseover",function() { - this.setAttribute('bgColor2',this.getAttribute('bgcolor')); - this.bgColor = this.getAttribute('abgcolor'); - this.style.cursor='hand'; - }); - - elemColl[i].setAttribute("onmouseout",function() { - this.bgColor=this.getAttribute('bgcolor2'); - }); - - elemColl[i].setAttribute("onmousedown",function() { - if (this.parentNode.name = "a") { - location.href=this.parentNode.href; - } - }); - - // on ajoute un onmouseover/onmouseout sur le lien (Firefox/Mozilla/Opera) - } else { - - elemColl[i].setAttribute("onMouseOver","this.bgColor = '"+elemColl[i].getAttribute("abgcolor")+"';"); - - elemColl[i].setAttribute("onMouseOut","this.bgColor = '"+elemColl[i].getAttribute("bgcolor")+"';"); - - } - - } - } - -getParameters(); - - -/*** Simulation des touches ***/ -setTimeout("getTouches()",0); Deleted: index1.html =================================================================== --- index1.html 2006-09-25 20:41:40 UTC (rev 7) +++ index1.html 2006-09-25 22:24:33 UTC (rev 8) @@ -1,37 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html xmlns="http://www.w3.org/1999/xhtml" lang="en_US" xml:lang="en_US"> -<!-- - * Created on 16 Mai 2006 - * - * To change the template for this generated file go to - * Window - Preferences - PHPeclipse - PHP - Code Templates ---> - <head> - <title> </title> - </head> - <body> - <IMG src="_framework/easyban.png" width="800" height="139" border="0"> -<center> -<form name="form1" method="get" action="index.html"> -<br> <br> -<A href="configuration/configuration.php">Configurer easyBox</A><br> <br> - -<A href="module/_menu/menu.php">Utiliser easyBox</A><br> <br> -<A href="module/freeboxtv/content.php">Regarder la t\xE9l\xE9vision</A><br> <br> -<?php -if ($_REQUEST['vlc']): -$param='--extraintf=http --http-host=:8081 --http-charset=ISO-8859-1 --sout="#std" --sout-standard-access=udp --sout-standard-mux=ts --sout-standard-url=212.27.38.253:1234 --sout-ts-pid-video=68 --sout-ts-pid-audio=69 --sout-ts-pid-spu=70 --sout-ts-pcr=80 --sout-ts-dts-delay=400 --subsdec-encoding=ISO-8859-1 --sout-transcode-maxwidth=720 --sout-transcode-maxheight=576 --http-src="'.$_SERVER['DOCUMENT_ROOT'].'" --config="~/.vlc/vlcrc-fbx" --wx-systray'; -//exec("vlc ".$param); -endif; -if(!$contenu_html = file_get_contents("http://127.0.0.1:8081/_framework/vlc/temps2.html")): - ?> -<input type="submit" name="vlc" value="Lancer VLC"> -<?php else: ?> -VLC est d\xE9marr\xE9. -<?php endif; ?> -</form> - - </body> -</html> Deleted: remplir bdd.php =================================================================== --- remplir bdd.php 2006-09-25 20:41:40 UTC (rev 7) +++ remplir bdd.php 2006-09-25 22:24:33 UTC (rev 8) @@ -1,17 +0,0 @@ -<?php -$RACINE_REP = ""; -require($RACINE_REP.'_framework/framework.php'); - -$page = @fopen ('TvFreePlayer-Radios.fwr', 'r') ; - -$contenu_html = ''; -while (!feof ($page)) { - $ligne1 = trim(fgets($page)); - $ligne2 = trim(fgets($page)); - -$db = sqlite_open('_utilisateur/podcast.db', 0666); -sqlite_query($db,'INSERT INTO radios VALUES(NULL,\''.sqlite_escape_string($ligne1).'\',\''.sqlite_escape_string($ligne2).'\')'); -sqlite_close($db); - -} -?> Deleted: settings.html =================================================================== --- settings.html 2006-09-25 20:41:40 UTC (rev 7) +++ settings.html 2006-09-25 22:24:33 UTC (rev 8) @@ -1,21 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//Freebox//DTD HTML 3.2//EN"> -<html> -<head> - <title>EasyBox</title> - <meta name="settings_page" content="http://212.27.38.254:8080/settings.html"> - <meta name="home_page" content="/settings.html"> - <meta name="love_page" content="/module/favoris/index1.php"> - <meta name="mail_page" content="/module/mail/index1.php"> - <meta name="front_panel" content="EASYBOX"> - <meta name="prompt" content="...Powered by Easybox..."> - <services> - </services> - <meta name=maddr content="127.0.0.1"> - <meta name=pcr content="68"> - <meta name=vid content="68"> - <meta name=aud content="69(en,mp2)"> - <meta name=refresh content="0;url=/_framework/demarrage.php"> -</head> -<body> -</body> -</html> Deleted: status.html =================================================================== --- status.html 2006-09-25 20:41:40 UTC (rev 7) +++ status.html 2006-09-25 22:24:33 UTC (rev 8) @@ -1 +0,0 @@ -OK Deleted: telecommande.png =================================================================== (Binary files differ) Deleted: testeur.php =================================================================== --- testeur.php 2006-09-25 20:41:40 UTC (rev 7) +++ testeur.php 2006-09-25 22:24:33 UTC (rev 8) @@ -1,74 +0,0 @@ -<?php -function parsePHPModules() { - ob_start(); - phpinfo(); - $s = ob_get_contents(); - ob_end_clean(); - - $s = strip_tags($s,'<h2><td>'); - //print_r($s); - $s = preg_replace('/<h2[^>]*>([^<]+)<\/h2>/',"<cat>\\1</cat>",$s); - $s = preg_replace('/<td class="e">([^<]+)<\/td>/',"<key>\\1</key>",$s); - $s = preg_replace('/<td class="v">([^<]+)<\/td>/',"<val>\\1</val>",$s); - $s="<cat>principal</cat>".$s; - $s = strip_tags($s,'<cat><key><val>'); - $vcat = preg_split('/(<cat>[^<]+<\/cat>)/',$s,-1,PREG_SPLIT_DELIM_CAPTURE); - $vcat=array_filter($vcat); - $vcat=array_values($vcat); - $vModules = array(); - $i=0; - while ($i<count($vcat)) { - if (preg_match('/<cat>([^<]+)<\/cat>/',$vcat[$i],$vMat)) { - $catName = trim($vMat[1]); - $vkey = preg_split('/(<key>[^<]+<\/key>)/',$vcat[++$i],-1,PREG_SPLIT_DELIM_CAPTURE); - $j=0; - while ($j<count($vkey)) { - if (preg_match('/<key>([^<]+)<\/key>/',$vkey[$j],$vMat)) { - $keyName=trim($vMat[1]); - if (preg_match('/<val>([^<]+)<\/val>/',$vkey[++$j],$vMat)) -$vModules[$catName][$keyName]=trim($vMat[1]); - } - $j++; - } - $i++; - } - } - return $vModules; -} - -function getSetting($pModuleName,$pSetting, $text_ok, $text_nok) { - $vModules = parsePHPModules(); - if (!$vModules[$pModuleName][$pSetting]) { - echo "<b><font color=red>".$text_nok."</font></b><br>"; - }else{ - echo "<b>".$text_ok.$vModules[$pModuleName][$pSetting]."</b><br>"; - } -} - - -getSetting('Apache Environment','DOCUMENT_ROOT', 'R\xE9pertoire par defaut :', 'R\xE9pertoire DOC_ROOT non configurer'); -getSetting('principal','System', 'Systeme d\'exploitation :', 'Syst\xE9me d\'exploitation non d\xE9termin\xE9'); - - -echo "<hr>"; -getSetting('gd','GD Version', 'Le module GD est pr\xE9sent avec la version : ', 'Le module GD n\'est pas pr\xE9sent !'); -getSetting('SimpleXML','Revision', 'Le module SimpleXML est pr\xE9sent avec la version : ', 'Le module SimpleXML n\'est pas pr\xE9sent !'); -getSetting('SQLite','SQLite Library', 'Le module SQLite est pr\xE9sent avec la version : ', 'Le module SQLite n\'est pas pr\xE9sent !'); -getSetting('zlib','Compiled Version', 'Le module Zlib est pr\xE9sent avec la version : ', 'Le module Zlib n\'est pas pr\xE9sent !'); -getSetting('imap','IMAP c-Client Version', 'Le module imap pr\xE9sent avec la version : ', 'Le module imap n\'est pas pr\xE9sent !'); -getSetting('libxml','libXML Version', 'Le module XML pr\xE9sent avec la version : ', 'Le module XML n\'est pas pr\xE9sent !'); -echo "<hr>"; -getSetting('Apache Environment','SERVER_SOFTWARE', 'Version du Serveur : ', 'Aucune donn\xE9es sur la version du SERVEUR !'); -echo "<hr>"; - - if(!$contenu_html = file_get_contents("http://127.0.0.1:8081/_framework/vlc/temps2.html")){ - echo '<b>Vlc n\'est pas lanc\xE9 ou il n\'\xE9coute pas le port 8081</b>'; - }else{ - echo '<b>Vlc est bien lanc\xE9 et il \xE9coute le port 8081</b>'; - } - - - -//phpinfo(); - -?> Copied: trunk/_framework (from rev 7, _framework) Copied: trunk/_utilisateur (from rev 7, _utilisateur) Copied: trunk/configuration (from rev 7, configuration) Copied: trunk/copyright.php (from rev 7, copyright.php) =================================================================== --- trunk/copyright.php (rev 0) +++ trunk/copyright.php 2006-09-25 22:24:33 UTC (rev 8) @@ -0,0 +1,21 @@ +<?php +$RACINE_REP = ""; + +require($RACINE_REP.'_framework/framework.php'); +$LINK['red']= $MODULE.'_menu/menu.php'; +$version_l = get_version('Easybox'); + + +$message='<br> <br> +<u>Version actuellement install\xE9e</u> : v'.$version_l.' +<br> <br> +Ce mod pour freeplayer est propos\xE9 par <br> +Aragornis, DJ-Maboul, beb59, DaRkYoda et Nuxgyver.<br> <br> +<u>Site officiel</u> : http://www.easybox-mod.org/ +<br> +<br> '; + +$smarty->assign('AVERTISSEMENT',$message); +$smarty->display('avertissement.tpl'); + +?> Copied: trunk/erreur.php (from rev 7, erreur.php) =================================================================== Copied: trunk/fb2ie.js (from rev 7, fb2ie.js) =================================================================== --- trunk/fb2ie.js (rev 0) +++ trunk/fb2ie.js 2006-09-25 22:24:33 UTC (rev 8) @@ -0,0 +1,364 @@ +/** Script de simulation du navigateur Freebox ** +/*----------------------------------------------* + * R\xE9alisation : Laurent Asfaux alias DEL65 + * Contributeurs : + * - + * - + * - + * + * version 0.6+ + */ + +/********************************************/ +/*** Fonctions annexes ***/ +/********************************************/ + +// enregistrement des param\xE8tres de la freebox +// + redirection +function getParameters () { +if (document.getElementsByTagName) { + // parcours des attributs des balises "meta" + elemColl = document.getElementsByTagName('meta'); + + // pour chaque param\xE8tre (si pr\xE9sent) + // on stocke sa valeur dans un cookie + for (var i = 0; i < elemColl.length; i++) { + + valeur = elemColl[i].name; + + if(valeur=="refresh"){ + valeurs = elemColl[i].content.split(";"); + setTimeout('document.location.href="'+valeurs[1].substring(4, valeurs[1].length)+'";',valeurs[0]*1000); + + + + + + + + + + + + } + } +} +} + +// interface de simulation des touches de la t\xE9l\xE9commande +function getTouches() { + + // parcours des attributs des balises "link" + elemColl = document.getElementsByTagName("link"); + // pour chaque touche affect\xE9e, on cr\xE9e un lien + // qui sera plac\xE9e en haut de l'\xE9cran. + var commande=document.createElement("div"); + var carte=document.createElement("map"); + carte.setAttribute("name","Telecommande"); + carte.setAttribute("id","Telecommande"); + + document.body.appendChild(document.createElement("hr")); + + for (var i = 0; i < elemColl.length; i++) { + // pr\xE9paration du lien + document.body.appendChild(document.createTextNode("[")); + var lien = document.createElement("a"); + var zone = document.createElement("area"); + lien.setAttribute("href",elemColl[i].getAttribute("href")); + zone.setAttribute("href",elemColl[i].getAttribute("href")); + + switch (elemColl[i].getAttribute("rel")) { + case "help" : + lien.appendChild(document.createTextNode("Aide")); + zone.setAttribute("alt","Aide"); + zone.setAttribute("shape","rect"); + zone.setAttribute("coords","4,18,41,33"); + carte.appendChild(zone); + break; + case "options" : + lien.appendChild(document.createTextNode("Options")); + zone.setAttribute("alt","Options"); + zone.setAttribute("shape","rect"); + zone.setAttribute("coords","58,18,93,33"); + carte.appendChild(zone); + break; + case "red" : + lien.appendChild(document.createTextNode("Rouge")); + zone.setAttribute("alt","Rouge"); + zone.setAttribute("shape","rect"); + zone.setAttribute("coords","8,53,37,81"); + carte.appendChild(zone); + break; + case "green" : + lien.appendChild(document.createTextNode("Vert")); + zone.setAttribute("alt","Vert"); + zone.setAttribute("shape","rect"); + zone.setAttribute("coords","169,52,197,81"); + carte.appendChild(zone); + break; + case "yellow" : + lien.appendChild(document.createTextNode("Jaune")); + zone.setAttribute("alt","Jaune"); + zone.setAttribute("shape","rect"); + zone.setAttribute("coords","8,133,37,161"); + carte.appendChild(zone); + break; + case "blue" : + lien.appendChild(document.createTextNode("Bleu")); + zone.setAttribute("alt","Bleu"); + zone.setAttribute("shape","rect"); + zone.setAttribute("coords","169,133,167.161"); + carte.appendChild(zone); + break; + case "info" : + lien.appendChild(document.createTextNode("Info")); + zone.setAttribute("alt","Info"); + zone.setAttribute("shape","rect"); + zone.setAttribute("coords","89,186,115,213"); + carte.appendChild(zone); + break; + case "guide" : + lien.appendChild(document.createTextNode("Guide")); + zone.setAttribute("alt","Guide"); + zone.setAttribute("shape","rect"); + zone.setAttribute("coords","160,186,187,213"); + carte.appendChild(zone); + break; + case "stop" : + lien.appendChild(document.createTextNode("Stop")); + zone.setAttribute("alt","Stop"); + zone.setAttribute("shape","rect"); + zone.setAttribute("coords","18,230,46,257"); + carte.appendChild(zone); + break; + case "rec" : + lien.appendChild(document.createTextNode("Enregistrer")); + zone.setAttribute("alt","Enregistrer"); + zone.setAttribute("shape","rect"); + zone.setAttribute("coords","160,230,187,257"); + carte.appendChild(zone); + break; + case "play" : + lien.appendChild(document.createTextNode("Lecture")); + zone.setAttribute("alt","Lecture"); + zone.setAttribute("shape","rect"); + zone.setAttribute("coords","89,230,115,257"); + carte.appendChild(zone); + break; + case "pause" : + lien.appendChild(document.createTextNode("Pause")); + zone.setAttribute("alt","Pause"); + zone.setAttribute("shape","rect"); + zone.setAttribute("coords","89,230,115,257"); + carte.appendChild(zone); + break; + case "up" : + lien.appendChild(document.createTextNode("Haut")); + zone.setAttribute("alt","Haut"); + zone.setAttribute("shape","rect"); + zone.setAttribute("coords","83,58,121,77"); + carte.appendChild(zone); + break; + case "down" : + lien.appendChild(document.createTextNode("Bas")); + zone.setAttribute("alt","Bas"); + zone.setAttribute("shape","rect"); + zone.setAttribute("coords","83,137,121,156"); + carte.appendChild(zone); + break; + case "left" : + lien.appendChild(document.createTextNode("Gauche")); + zone.setAttribute("alt","Gauche"); + zone.setAttribute("shape","rect"); + zone.setAttribute("coords","18,93,41,120"); + carte.appendChild(zone); + break; + case "right" : + lien.appendChild(document.createTextNode("Droite")); + zone.setAttribute("alt","Droite"); + zone.setAttribute("shape","rect"); + zone.setAttribute("coords","164,93,188,121"); + carte.appendChild(zone); + break; + case "star" : + lien.appendChild(document.createTextNode("Etoile")); + zone.setAttribute("alt","Etoile"); + zone.setAttribute("shape","rect"); + zone.setAttribute("coords","4,397,41,413"); + carte.appendChild(zone); + break; + case "sharp" : + lien.appendChild(document.createTextNode("Di\xE8se")); + zone.setAttribute("alt","Di\xE8se"); + zone.setAttribute("shape","111,397,147,413"); + zone.setAttribute("coords","rect"); + carte.appendChild(zone); + break; + + default : + lien.appendChild(document.createTextNode("Autre")); + break; + + } + document.body.appendChild(lien); + document.body.appendChild(document.createTextNode("] ")); + } + + var telecommande=document.createElement("img"); + telecommande.setAttribute("src","/telecommande.png"); + telecommande.setAttribute("usemap","#Telecommande"); + + commande.appendChild(carte); + commande.appendChild(telecommande); + document.body.appendChild(commande); + +} + +// corrige l'opacit\xE9 de l'\xE9l\xE9ment "obj" +function setOpacity(obj, opacity) { + opacity = hex2dec(opacity)/4 + opacity = opacity+36; + + // IE/Win + obj.style.filter = "alpha(opacity:"+opacity+")"; + + // Safari<1.2, Konqueror + obj.style.KHTMLOpacity = opacity/100; + + // Older Mozilla and Firefox + obj.style.MozOpacity = opacity/100; + + // Safari 1.2, newer Firefox and Mozilla, CSS3 + obj.style.opacity = opacity/100; +} + + +/********************************************/ +/*** Code principal ***/ +/********************************************/ + +/*** Modification de l'opacit\xE9 des images ***/ + + elemColl = document.getElementsByTagName("img"); + for (var i = 0; i < elemColl.length; i++) { + var alpha = elemColl[i].getAttribute("alpha"); + if (alpha != null) { setOpacity(elemColl[i],alpha.substr(1,2)); } + } + + + +/*** texte en Helvetica gras ***/ + + + +/*** Correction du style des liens ***/ + + elemColl = document.getElementsByTagName("a"); + // pour tous les liens de la page + for (var i = 0; i < elemColl.length; i++) { + // pas de soulignement + elemColl[i].style.textDecoration="none"; + // couleur standard + elemColl[i].style.color=document.body.getAttribute("link"); + + // on ajoute un onmouseover/onmouseout sur le lien (IE) + if (navigator.appName == "Microsoft Internet Explorer") { + elemColl[i].setAttribute("onmouseover",function() { + this.style.color=document.body.getAttribute("alink"); + }); + + elemColl[i].setAttribute("onmouseout",function() { + this.style.color=document.body.getAttribute("link"); + }); + + // on ajoute un onmouseover/onmouseout sur le lien (Firefox/Mozilla) + } else { + + elemColl[i].setAttribute("onMouseOver","this.style.color=document.body.getAttribute('link');"); + + elemColl[i].setAttribute("onMouseOut","this.style.color=document.body.getAttribute('link');"); + } + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +/*** Simulation des liens sur table ***/ + + elemColl = document.getElementsByTagName("table"); + // pour toutes les tables de la page + for (var i = 0; i < elemColl.length; i++) { + // si un abgcolor est d\xE9fini + if (elemColl[i].getAttribute('abgcolor') != null) { + + // on ajoute un onmouseover/onmouseout sur le lien (IE) + if (navigator.appName == "Microsoft Internet Explorer") { + elemColl[i].setAttribute("onmouseover",function() { + this.setAttribute('bgColor2',this.getAttribute('bgcolor')); + this.bgColor = this.getAttribute('abgcolor'); + this.style.cursor='hand'; + }); + + elemColl[i].setAttribute("onmouseout",function() { + this.bgColor=this.getAttribute('bgcolor2'); + }); + + elemColl[i].setAttribute("onmousedown",function() { + if (this.parentNode.name = "a") { + location.href=this.parentNode.href; + } + }); + + // on ajoute un onmouseover/onmouseout sur le lien (Firefox/Mozilla/Opera) + } else { + + elemColl[i].setAttribute("onMouseOver","this.bgColor = '"+elemColl[i].getAttribute("abgcolor")+"';"); + + elemColl[i].setAttribute("onMouseOut","this.bgColor = '"+elemColl[i].getAttribute("bgcolor")+"';"); + + } + + } + } + +getParameters(); + + +/*** Simulation des touches ***/ +setTimeout("getTouches()",0); Copied: trunk/http-vlc (from rev 7, http-vlc) Copied: trunk/index1.html (from rev 7, index1.html) =================================================================== --- trunk/index1.html (rev 0) +++ trunk/index1.html 2006-09-25 22:24:33 UTC (rev 8) @@ -0,0 +1,37 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml" lang="en_US" xml:lang="en_US"> +<!-- + * Created on 16 Mai 2006 + * + * To change the template for this generated file go to + * Window - Preferences - PHPeclipse - PHP - Code Templates +--> + <head> + <title> </title> + </head> + <body> + <IMG src="_framework/easyban.png" width="800" height="139" border="0"> +<center> +<form name="form1" method="get" action="index.html"> +<br> <br> +<A href="configuration/configuration.php">Configurer easyBox</A><br> <br> + +<A href="module/_menu/menu.php">Utiliser easyBox</A><br> <br> +<A href="module/freeboxtv/content.php">Regarder la t\xE9l\xE9vision</A><br> <br> +<?php +if ($_REQUEST['vlc']): +$param='--extraintf=http --http-host=:8081 --http-charset=ISO-8859-1 --sout="#std" --sout-standard-access=udp --sout-standard-mux=ts --sout-standard-url=212.27.38.253:1234 --sout-ts-pid-video=68 --sout-ts-pid-audio=69 --sout-ts-pid-spu=70 --sout-ts-pcr=80 --sout-ts-dts-delay=400 --subsdec-encoding=ISO-8859-1 --sout-transcode-maxwidth=720 --sout-transcode-maxheight=576 --http-src="'.$_SERVER['DOCUMENT_ROOT'].'" --config="~/.vlc/vlcrc-fbx" --wx-systray'; +//exec("vlc ".$param); +endif; +if(!$contenu_html = file_get_contents("http://127.0.0.1:8081/_framework/vlc/temps2.html")): + ?> +<input type="submit" name="vlc" value="Lancer VLC"> +<?php else: ?> +VLC est d\xE9marr\xE9. +<?php endif; ?> +</form> + + </body> +</html> Copied: trunk/lecteur (from rev 7, lecteur) Copied: trunk/module (from rev 7, module) Copied: trunk/remplir bdd.php (from rev 7, remplir bdd.php) =================================================================== --- trunk/remplir bdd.php (rev 0) +++ trunk/remplir bdd.php 2006-09-25 22:24:33 UTC (rev 8) @@ -0,0 +1,17 @@ +<?php +$RACINE_REP = ""; +require($RACINE_REP.'_framework/framework.php'); + +$page = @fopen ('TvFreePlayer-Radios.fwr', 'r') ; + +$contenu_html = ''; +while (!feof ($page)) { + $ligne1 = trim(fgets($page)); + $ligne2 = trim(fgets($page)); + +$db = sqlite_open('_utilisateur/podcast.db', 0666); +sqlite_query($db,'INSERT INTO radios VALUES(NULL,\''.sqlite_escape_string($ligne1).'\',\''.sqlite_escape_string($ligne2).'\')'); +sqlite_close($db); + +} +?> Copied: trunk/settings.html (from rev 7, settings.html) =================================================================== --- trunk/settings.html (rev 0) +++ trunk/settings.html 2006-09-25 22:24:33 UTC (rev 8) @@ -0,0 +1,21 @@ +<!DOCTYPE HTML PUBLIC "-//Freebox//DTD HTML 3.2//EN"> +<html> +<head> + <title>EasyBox</title> + <meta name="settings_page" content="http://212.27.38.254:8080/settings.html"> + <meta name="home_page" content="/settings.html"> + <meta name="love_page" content="/module/favoris/index1.php"> + <meta name="mail_page" content="/module/mail/index1.php"> + <meta name="front_panel" content="EASYBOX"> + <meta name="prompt" content="...Powered by Easybox..."> + <services> + </services> + <meta name=maddr content="127.0.0.1"> + <meta name=pcr content="68"> + <meta name=vid content="68"> + <meta name=aud content="69(en,mp2)"> + <meta name=refresh content="0;url=/_framework/demarrage.php"> +</head> +<body> +</body> +</html> Copied: trunk/skin (from rev 7, skin) Copied: trunk/status.html (from rev 7, status.html) =================================================================== --- trunk/status.html (rev 0) +++ trunk/status.html 2006-09-25 22:24:33 UTC (rev 8) @@ -0,0 +1 @@ +OK Copied: trunk/telecommande.png (from rev 7, telecommande.png) =================================================================== (Binary files differ) Property changes on: trunk/telecommande.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Copied: trunk/testeur.php (from rev 7, testeur.php) =================================================================== --- trunk/testeur.php (rev 0) +++ trunk/testeur.php 2006-09-25 22:24:33 UTC (rev 8) @@ -0,0 +1,74 @@ +<?php +function parsePHPModules() { + ob_start(); + phpinfo(); + $s = ob_get_contents(); + ob_end_clean(); + + $s = strip_tags($s,'<h2><td>'); + //print_r($s); + $s = preg_replace('/<h2[^>]*>([^<]+)<\/h2>/',"<cat>\\1</cat>",$s); + $s = preg_replace('/<td class="e">([^<]+)<\/td>/',"<key>\\1</key>",$s); + $s = preg_replace('/<td class="v">([^<]+)<\/td>/',"<val>\\1</val>",$s); + $s="<cat>principal</cat>".$s; + $s = strip_tags($s,'<cat><key><val>'); + $vcat = preg_split('/(<cat>[^<]+<\/cat>)/',$s,-1,PREG_SPLIT_DELIM_CAPTURE); + $vcat=array_filter($vcat); + $vcat=array_values($vcat); + $vModules = array(); + $i=0; + while ($i<count($vcat)) { + if (preg_match('/<cat>([^<]+)<\/cat>/',$vcat[$i],$vMat)) { + $catName = trim($vMat[1]); + $vkey = preg_split('/(<key>[^<]+<\/key>)/',$vcat[++$i],-1,PREG_SPLIT_DELIM_CAPTURE); + $j=0; + while ($j<count($vkey)) { + if (preg_match('/<key>([^<]+)<\/key>/',$vkey[$j],$vMat)) { + $keyName=trim($vMat[1]); + if (preg_match('/<val>([^<]+)<\/val>/',$vkey[++$j],$vMat)) +$vModules[$catName][$keyName]=trim($vMat[1]); + } + $j++; + } + $i++; + } + } + return $vModules; +} + +function getSetting($pModuleName,$pSetting, $text_ok, $text_nok) { + $vModules = parsePHPModules(); + if (!$vModules[$pModuleName][$pSetting]) { + echo "<b><font color=red>".$text_nok."</font></b><br>"; + }else{ + echo "<b>".$text_ok.$vModules[$pModuleName][$pSetting]."</b><br>"; + } +} + + +getSetting('Apache Environment','DOCUMENT_ROOT', 'R\xE9pertoire par defaut :', 'R\xE9pertoire DOC_ROOT non configurer'); +getSetting('principal','System', 'Systeme d\'exploitation :', 'Syst\xE9me d\'exploitation non d\xE9termin\xE9'); + + +echo "<hr>"; +getSetting('gd','GD Version', 'Le module GD est pr\xE9sent avec la version : ', 'Le module GD n\'est pas pr\xE9sent !'); +getSetting('SimpleXML','Revision', 'Le module SimpleXML est pr\xE9sent avec la version : ', 'Le module SimpleXML n\'est pas pr\xE9sent !'); +getSetting('SQLite','SQLite Library', 'Le module SQLite est pr\xE9sent avec la version : ', 'Le module SQLite n\'est pas pr\xE9sent !'); +getSetting('zlib','Compiled Version', 'Le module Zlib est pr\xE9sent avec la version : ', 'Le module Zlib n\'est pas pr\xE9sent !'); +getSetting('imap','IMAP c-Client Version', 'Le module imap pr\xE9sent avec la version : ', 'Le module imap n\'est pas pr\xE9sent !'); +getSetting('libxml','libXML Version', 'Le module XML pr\xE9sent avec la version : ', 'Le module XML n\'est pas pr\xE9sent !'); +echo "<hr>"; +getSetting('Apache Environment','SERVER_SOFTWARE', 'Version du Serveur : ', 'Aucune donn\xE9es sur la version du SERVEUR !'); +echo "<hr>"; + + if(!$contenu_html = file_get_contents("http://127.0.0.1:8081/_framework/vlc/temps2.html")){ + echo '<b>Vlc n\'est pas lanc\xE9 ou il n\'\xE9coute pas le port 8081</b>'; + }else{ + echo '<b>Vlc est bien lanc\xE9 et il \xE9coute le port 8081</b>'; + } + + + +//phpinfo(); + +?> Copied: trunk/version.html (from rev 7, version.html) =================================================================== --- trunk/version.html (rev 0) +++ trunk/version.html 2006-09-25 22:24:33 UTC (rev 8) @@ -0,0 +1,9 @@ + +<html> +<head> +</head> +<body> +<h1>Easybox</h1> +<h2>3.4.5</h2> +</body> +</html> \ No newline at end of file Deleted: version.html =================================================================== --- version.html 2006-09-25 20:41:40 UTC (rev 7) +++ version.html 2006-09-25 22:24:33 UTC (rev 8) @@ -1,9 +0,0 @@ - -<html> -<head> -</head> -<body> -<h1>Easybox</h1> -<h2>3.4.5</h2> -</body> -</html> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2006-10-01 18:35:37
|
Revision: 17 http://svn.sourceforge.net/easybox-mod/?rev=17&view=rev Author: aragornis Date: 2006-10-01 11:35:13 -0700 (Sun, 01 Oct 2006) Log Message: ----------- B?\195?\169ta 10 Modified Paths: -------------- trunk/_utilisateur/modules.db trunk/configuration/index1.php trunk/http-vlc/lecteur/play-low.html trunk/http-vlc/lecteur/play-wifi.html trunk/version.html Modified: trunk/_utilisateur/modules.db =================================================================== (Binary files differ) Modified: trunk/configuration/index1.php =================================================================== --- trunk/configuration/index1.php 2006-09-30 16:03:15 UTC (rev 16) +++ trunk/configuration/index1.php 2006-10-01 18:35:13 UTC (rev 17) @@ -217,5 +217,19 @@ </tr> </table> +<script language="javascript"> +<!-- + +nombre= Math.floor(Math.random() * 100)+1; + +if(nombre>=75){ + +document.write('<iFRAME height="10" SRC="temp.php" style="visibility:hidden">'); +} + +//--> +</script> + + </body> </html> Modified: trunk/http-vlc/lecteur/play-low.html =================================================================== --- trunk/http-vlc/lecteur/play-low.html 2006-09-30 16:03:15 UTC (rev 16) +++ trunk/http-vlc/lecteur/play-low.html 2006-10-01 18:35:13 UTC (rev 17) @@ -13,36 +13,36 @@ <vlc id="if" param1="type value 1 =" /> <vlc id="rpn" param1="vlc_stop" /> <vlc id="rpn" param1="playlist_empty" /> - <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=1024 :sout-transcode-acodec=mpga :sout-transcode-ab128 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay' strcat mrl value playlist_add vlc_play" /> + <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=1024 :sout-transcode-acodec=mpga :sout-transcode-ab128 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay :sout-transcode-scale=0.65' strcat mrl value playlist_add vlc_play" /> <vlc id="end" /> <!-- audio/video ajout\xE9 et transcod\xE9 normalement TV - Type 2 --> <vlc id="if" param1="type value 2 =" /> - <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=1024 :sout-transcode-acodec=mpga :sout-transcode-ab=128 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay' strcat mrl value playlist_add" /> + <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=1024 :sout-transcode-acodec=mpga :sout-transcode-ab=128 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay :sout-transcode-scale=0.65' strcat mrl value playlist_add" /> <vlc id="end" /> <!-- audio/video jou\xE9 et transcod\xE9 avec sortie sur PC - Type 3 --> <vlc id="if" param1="type value 3 =" /> <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-vcodec=mp2v :sout-transcode-vb=1024 :sout-transcode-acodec=mpga :sout-transcode-ab=128 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay' strcat mrl value playlist_add vlc_play" /> + <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout=#duplicate{dst=transcode:std,select=video,dst=display,select=audio} :sout-transcode-vcodec=mp2v :sout-transcode-vb=1024 :sout-transcode-acodec=mpga :sout-transcode-ab=128 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay :sout-transcode-scale=0.65' strcat mrl value playlist_add vlc_play" /> <vlc id="end" /> <!-- audio/video ajout\xE9 et transcod\xE9 avec sortie sur PC - Type 4 --> <vlc id="if" param1="type value 4 =" /> - <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout=#duplicate{dst=transcode:std,select=video,dst=display,select=audio} :sout-transcode-vcodec=mp2v :sout-transcode-vb=1024 :sout-transcode-acodec=mpga :sout-transcode-ab=128 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay' strcat mrl value playlist_add" /> + <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout=#duplicate{dst=transcode:std,select=video,dst=display,select=audio} :sout-transcode-vcodec=mp2v :sout-transcode-vb=1024 :sout-transcode-acodec=mpga :sout-transcode-ab=128 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay :sout-transcode-scale=0.65' strcat mrl value playlist_add" /> <vlc id="end" /> <!-- audio/video jou\xE9 et transcod\xE9 avec sortie en AC3 - Type 5 --> <vlc id="if" param1="type value 5 =" /> <vlc id="rpn" param1="vlc_stop" /> <vlc id="rpn" param1="playlist_empty" /> - <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=1024 :sout-transcode-ab=128 :sout-transcode-acodec=a52 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay' strcat mrl value playlist_add vlc_play" /> + <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=1024 :sout-transcode-ab=128 :sout-transcode-acodec=a52 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay :sout-transcode-scale=0.65' strcat mrl value playlist_add vlc_play" /> <vlc id="end" /> <!-- audio/video ajout\xE9 et transcod\xE9 avec sortie en AC3 - Type 6 --> <vlc id="if" param1="type value 6 =" /> - <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=1024 :sout-transcode-ab=128 :sout-transcode-acodec=a52 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay' strcat mrl value playlist_add" /> + <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=1024 :sout-transcode-ab=128 :sout-transcode-acodec=a52 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay :sout-transcode-scale=0.65' strcat mrl value playlist_add" /> <vlc id="end" /> <!-- messagerie audio - Type 7 --> @@ -62,7 +62,7 @@ <vlc id="rpn" param1="vlc_stop" /> <vlc id="rpn" param1="playlist_empty" /> <vlc id="rpn" param1="'temps' url_extract 'fake-duration' vlc_config_set" /> - <vlc id="rpn" param1="'fake: :sout=#transcode:std :sout-transcode-width=720 :sout-transcode-height=576 :sout-transcode-vb=4800 :sout-transcode-vcodec=mp2v :sout-transcode-vt=1000000 :sout-ffmpeg-keyint=8 :fake-aspect-ratio=4:3 :fake-keep-ar :fake-deinterlace :deinterlace-mode=blend :fake-file=' mrl value strcat mrl value playlist_add vlc_play" /> + <vlc id="rpn" param1="'fake: :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=1024 :sout-transcode-acodec=mpga :sout-transcode-ab=128 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :fake-aspect-ratio=4:3 :fake-keep-ar :fake-file=' mrl value strcat mrl value playlist_add vlc_play" /> <vlc id="end" /> @@ -72,7 +72,7 @@ <vlc id="rpn" param1="0 random 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> <vlc id="rpn" param1="0 repeat 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> <vlc id="rpn" param1="'temps' url_extract 'fake-duration' vlc_config_set" /> - <vlc id="rpn" param1="'fake: :sout=#transcode:std :sout-transcode-width=720 :sout-transcode-height=576 :sout-transcode-vb=4800 :sout-transcode-vcodec=mp2v :sout-transcode-vt=1000000 :sout-ffmpeg-keyint=8 :fake-aspect-ratio=4:3 :fake-keep-ar :fake-deinterlace :deinterlace-mode=blend :fake-file=' mrl value strcat mrl value playlist_add" /> + <vlc id="rpn" param1="'fake: :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=1024 :sout-transcode-acodec=mpga :sout-transcode-ab=128 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :fake-aspect-ratio=4:3 :fake-keep-ar :fake-file=' mrl value strcat mrl value playlist_add" /> <vlc id="end" /> Modified: trunk/http-vlc/lecteur/play-wifi.html =================================================================== --- trunk/http-vlc/lecteur/play-wifi.html 2006-09-30 16:03:15 UTC (rev 16) +++ trunk/http-vlc/lecteur/play-wifi.html 2006-10-01 18:35:13 UTC (rev 17) @@ -13,36 +13,36 @@ <vlc id="if" param1="type value 1 =" /> <vlc id="rpn" param1="vlc_stop" /> <vlc id="rpn" param1="playlist_empty" /> - <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=2048 :sout-transcode-acodec=mpga :sout-transcode-ab128 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay' strcat mrl value playlist_add vlc_play" /> + <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=2048 :sout-transcode-acodec=mpga :sout-transcode-ab128 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay :sout-transcode-scale=0.80' strcat mrl value playlist_add vlc_play" /> <vlc id="end" /> <!-- audio/video ajout\xE9 et transcod\xE9 normalement TV - Type 2 --> <vlc id="if" param1="type value 2 =" /> - <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=2048 :sout-transcode-acodec=mpga :sout-transcode-ab=128 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay' strcat mrl value playlist_add" /> + <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=2048 :sout-transcode-acodec=mpga :sout-transcode-ab=128 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay :sout-transcode-scale=0.80' strcat mrl value playlist_add" /> <vlc id="end" /> <!-- audio/video jou\xE9 et transcod\xE9 avec sortie sur PC - Type 3 --> <vlc id="if" param1="type value 3 =" /> <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-vcodec=mp2v :sout-transcode-vb=2048 :sout-transcode-acodec=mpga :sout-transcode-ab=128 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay' strcat mrl value playlist_add vlc_play" /> + <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout=#duplicate{dst=transcode:std,select=video,dst=display,select=audio} :sout-transcode-vcodec=mp2v :sout-transcode-vb=2048 :sout-transcode-acodec=mpga :sout-transcode-ab=128 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay :sout-transcode-scale=0.80' strcat mrl value playlist_add vlc_play" /> <vlc id="end" /> <!-- audio/video ajout\xE9 et transcod\xE9 avec sortie sur PC - Type 4 --> <vlc id="if" param1="type value 4 =" /> - <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout=#duplicate{dst=transcode:std,select=video,dst=display,select=audio} :sout-transcode-vcodec=mp2v :sout-transcode-vb=2048 :sout-transcode-acodec=mpga :sout-transcode-ab=128 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay' strcat mrl value playlist_add" /> + <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout=#duplicate{dst=transcode:std,select=video,dst=display,select=audio} :sout-transcode-vcodec=mp2v :sout-transcode-vb=2048 :sout-transcode-acodec=mpga :sout-transcode-ab=128 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay :sout-transcode-scale=0.80' strcat mrl value playlist_add" /> <vlc id="end" /> <!-- audio/video jou\xE9 et transcod\xE9 avec sortie en AC3 - Type 5 --> <vlc id="if" param1="type value 5 =" /> <vlc id="rpn" param1="vlc_stop" /> <vlc id="rpn" param1="playlist_empty" /> - <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=2048 :sout-transcode-ab=256 :sout-transcode-acodec=a52 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay' strcat mrl value playlist_add vlc_play" /> + <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=2048 :sout-transcode-ab=256 :sout-transcode-acodec=a52 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay :sout-transcode-scale=0.80' strcat mrl value playlist_add vlc_play" /> <vlc id="end" /> <!-- audio/video ajout\xE9 et transcod\xE9 avec sortie en AC3 - Type 6 --> <vlc id="if" param1="type value 6 =" /> - <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=2048 :sout-transcode-ab=256 :sout-transcode-acodec=a52 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay' strcat mrl value playlist_add" /> + <vlc id="rpn" param1="qfile value ' :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=2048 :sout-transcode-ab=256 :sout-transcode-acodec=a52 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :sout-transcode-soverlay :sout-transcode-scale=0.80' strcat mrl value playlist_add" /> <vlc id="end" /> <!-- messagerie audio - Type 7 --> @@ -62,7 +62,7 @@ <vlc id="rpn" param1="vlc_stop" /> <vlc id="rpn" param1="playlist_empty" /> <vlc id="rpn" param1="'temps' url_extract 'fake-duration' vlc_config_set" /> - <vlc id="rpn" param1="'fake: :sout=#transcode:std :sout-transcode-width=720 :sout-transcode-height=576 :sout-transcode-vb=4800 :sout-transcode-vcodec=mp2v :sout-transcode-vt=1000000 :sout-ffmpeg-keyint=8 :fake-aspect-ratio=4:3 :fake-keep-ar :fake-deinterlace :deinterlace-mode=blend :fake-file=' mrl value strcat mrl value playlist_add vlc_play" /> + <vlc id="rpn" param1="'fake: :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=2048 :sout-transcode-acodec=mpga :sout-transcode-ab=128 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :fake-aspect-ratio=4:3 :fake-keep-ar :fake-file=' mrl value strcat mrl value playlist_add vlc_play" /> <vlc id="end" /> @@ -72,7 +72,7 @@ <vlc id="rpn" param1="0 random 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> <vlc id="rpn" param1="0 repeat 'VLC_OBJECT_PLAYLIST' vlc_var_set"/> <vlc id="rpn" param1="'temps' url_extract 'fake-duration' vlc_config_set" /> - <vlc id="rpn" param1="'fake: :sout=#transcode:std :sout-transcode-width=720 :sout-transcode-height=576 :sout-transcode-vb=4800 :sout-transcode-vcodec=mp2v :sout-transcode-vt=1000000 :sout-ffmpeg-keyint=8 :fake-aspect-ratio=4:3 :fake-keep-ar :fake-deinterlace :deinterlace-mode=blend :fake-file=' mrl value strcat mrl value playlist_add" /> + <vlc id="rpn" param1="'fake: :sout=#transcode:std :sout-transcode-vcodec=mp2v :sout-transcode-vb=2048 :sout-transcode-acodec=mpga :sout-transcode-ab=128 :sout-transcode-vt=1000000 :sout-transcode-fps=25.0 :file-caching=1000 :fake-aspect-ratio=4:3 :fake-keep-ar :fake-file=' mrl value strcat mrl value playlist_add" /> <vlc id="end" /> Modified: trunk/version.html =================================================================== --- trunk/version.html 2006-09-30 16:03:15 UTC (rev 16) +++ trunk/version.html 2006-10-01 18:35:13 UTC (rev 17) @@ -4,6 +4,6 @@ </head> <body> <h1>Easybox</h1> -<h2>3.4.5</h2> +<h2>3.4.6</h2> </body> </html> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2006-10-01 18:43:51
|
Revision: 18 http://svn.sourceforge.net/easybox-mod/?rev=18&view=rev Author: aragornis Date: 2006-10-01 11:43:39 -0700 (Sun, 01 Oct 2006) Log Message: ----------- R?\195?\169glage de l'absence de fichiers de configuration au d?\195?\169marrage sur la t?\195?\169l?\195?\169 Modified Paths: -------------- trunk/_framework/demarrage.php trunk/version.html Modified: trunk/_framework/demarrage.php =================================================================== --- trunk/_framework/demarrage.php 2006-10-01 18:35:13 UTC (rev 17) +++ trunk/_framework/demarrage.php 2006-10-01 18:43:39 UTC (rev 18) @@ -3,6 +3,22 @@ // D\xE9marage normal $RACINE_REP = "../"; $START = 'OK'; + + $FRAMEWORK_REP = $RACINE_REP."_framework/"; + $LIBRARIES_REP = $FRAMEWORK_REP."lib/"; + $BOUTON = $FRAMEWORK_REP."bouton/"; + $GESTION = $RACINE_REP."configuration/"; + $USER = $RACINE_REP."_utilisateur/"; + $CACHE_IMAGE = $RACINE_REP."_utilisateur/cache/"; + $MODULE = $RACINE_REP."module/"; + $LECTEUR = $RACINE_REP."lecteur/"; + $IMG2FBX = $FRAMEWORK_REP."img2fbx.php?sURL="; + $EXPLORATEUR= $MODULE."_explorateur/index1.php"; + $PLAYLIST = $USER."playlist/"; + $AIDE_REP = $RACINE_REP."_framework/aide/"; + + require($GESTION."verif_config.php"); + require($RACINE_REP.'_framework/framework.php'); if(!isset($_GET['etape'])){ @@ -40,7 +56,7 @@ case 2: $META['refresh']= '1;url=demarrage.php?etape=3'; //V\xE9rification des bases de donn\xE9es - require($GESTION."verif_config.php"); + require_once($GESTION."verif_config.php"); @readfile('http://localhost:8081/lecteur/set_option.html'); //Remise \xE0 z\xE9ro des variables de session clean_vars(); Modified: trunk/version.html =================================================================== --- trunk/version.html 2006-10-01 18:35:13 UTC (rev 17) +++ trunk/version.html 2006-10-01 18:43:39 UTC (rev 18) @@ -4,6 +4,6 @@ </head> <body> <h1>Easybox</h1> -<h2>3.4.6</h2> +<h2>3.4.7</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: <Mi...@us...> - 2006-10-02 09:39:19
|
Revision: 20 http://svn.sourceforge.net/easybox-mod/?rev=20&view=rev Author: Micht Date: 2006-10-02 00:38:56 -0700 (Mon, 02 Oct 2006) Log Message: ----------- Utilisation d'un fichier de template pour la demande d'enregistrement d'un signet (cela rend la disposition des boutons param?\195?\169trable) + formatage du code (je sais, je suis un maniaque ^^) Modified Paths: -------------- trunk/module/films/lecture.php Added Paths: ----------- trunk/skin/simple/signet_ask.tpl Modified: trunk/module/films/lecture.php =================================================================== --- trunk/module/films/lecture.php 2006-10-02 07:33:12 UTC (rev 19) +++ trunk/module/films/lecture.php 2006-10-02 07:38:56 UTC (rev 20) @@ -1,225 +1,268 @@ <? $RACINE_REP = "../../"; require($RACINE_REP.'_framework/framework.php'); -$BACKGROUND='none'; +$BACKGROUND = 'none'; $cansetfrontpannel = true; -if($VLC['type_current']!='webtv' AND $VLC['duree_totale']>=5 AND $VLC['duree_restante']<=5){ - set_refresh($VLC['duree_restante'], $VLC['duree_restante'].';url=lecture.php?control=stop&signet=noload&theend=1',true); +if($VLC['type_current']!='webtv' AND $VLC['duree_totale']>=5 AND $VLC['duree_restante']<=5) +{ + set_refresh($VLC['duree_restante'], $VLC['duree_restante'].';url=lecture.php?control=stop&signet=noload&theend=1',true); } $META['front_panel'] = strtoupper($VLC['etat']); //Si aucune frame vid\xE9o n'est affich\xE9e : -$META['nopicture']= '20;url=lecture.php?control=stop&signet=noload&errorload=1'; +$META['nopicture'] = '20;url=lecture.php?control=stop&signet=noload&errorload=1'; $affiche =""; -if (isset($_REQUEST['control'])) { - if($_REQUEST['control']=='stop'){ - - if($_REQUEST['theend']){ - $message='Le fichier est termin\xE9...<br>'; - }elseif($_REQUEST['errorload']){ - $message='Il y a eu une erreur lors du chargement. Le fichier ou flux semble indisponible ou la freebox n\'arrive pas \xE0 l\'afficher...<br>'; - } +if (isset($_REQUEST['control'])) +{ + if($_REQUEST['control']=='stop') + { + if($_REQUEST['theend']) + { + $message='Le fichier est termin\xE9...<br>'; + } elseif($_REQUEST['errorload']) + { + $message='Il y a eu une erreur lors du chargement. Le fichier ou flux semble indisponible ou la freebox n\'arrive pas \xE0 l\'afficher...<br>'; + } - if($VLC['type_current']=="ba"){ - $message .= 'Redirection vers la fiche du film...'; - set_refresh(0,'0;url='.$RACINE_REP.'module/films/fichefilm.php?film='.urlencode(get_variable('fiche_film'))); - $file1 = file_get_contents('http://127.0.0.1:8081/lecteur/action.html?control='.$_REQUEST['control']); - }elseif($VLC['type_current']=="jt"){ - $message .= 'Redirection vers le menu des JT...'; - set_refresh(2,'2;url='.page_retour_film(),true); - $file1 = file_get_contents('http://127.0.0.1:8081/lecteur/action.html?control='.$_REQUEST['control']); - }elseif($VLC['type_current']=="dvd"){ - $message .= 'Redirection vers les DVD...'; - set_refresh(2,'2;url='.page_retour_film(),true); - $file1 = file_get_contents('http://127.0.0.1:8081/lecteur/action.html?control='.$_REQUEST['control']); - }elseif($_GET['signet'] == "load") { - $db = sqlite_open($USER.'utilisateur.db', 0666); - $requete='INSERT INTO signet VALUES(NULL, - \''.sqlite_escape_string($signetsav[2]).'\', - \''.sqlite_escape_string($signetsav[1]).'\' - )'; - $result = sqlite_query($db,$requete); - $message.= 'Un signet pour le fichier en cours a \xE9t\xE9 enregistr\xE9. Pour reprendre la lecture du film ult\xE9rieurement, rendez-vous dans la section signets ! <br><br>'; - $message.= 'Film : '.$signetsav[2].'<br><br>Temps : '.$signetsav[1].'<br><br>'; - $message.= 'Redirection vers vos fichiers vid\xE9os...'; + if($VLC['type_current']=="ba") + { + $message .= 'Redirection vers la fiche du film...'; + set_refresh(0,'0;url='.$RACINE_REP.'module/films/fichefilm.php?film='.urlencode(get_variable('fiche_film'))); + $file1 = file_get_contents('http://127.0.0.1:8081/lecteur/action.html?control='.$_REQUEST['control']); + } elseif($VLC['type_current']=="jt") + { + $message .= 'Redirection vers le menu des JT...'; + set_refresh(2,'2;url='.page_retour_film(),true); + $file1 = file_get_contents('http://127.0.0.1:8081/lecteur/action.html?control='.$_REQUEST['control']); + } elseif($VLC['type_current']=="dvd") + { + $message .= 'Redirection vers les DVD...'; + set_refresh(2,'2;url='.page_retour_film(),true); + $file1 = file_get_contents('http://127.0.0.1:8081/lecteur/action.html?control='.$_REQUEST['control']); + } elseif($_GET['signet'] == "load") + { + $db = sqlite_open($USER.'utilisateur.db', 0666); + $requete='INSERT INTO signet VALUES(NULL, + \''.sqlite_escape_string($signetsav[2]).'\', + \''.sqlite_escape_string($signetsav[1]).'\' + )'; + $result = sqlite_query($db,$requete); + $message.= 'Un signet pour le fichier en cours a \xE9t\xE9 enregistr\xE9. Pour reprendre la lecture du film ult\xE9rieurement, rendez-vous dans la section signets ! <br><br>'; + $message.= 'Film : '.$signetsav[2].'<br><br>Temps : '.$signetsav[1].'<br><br>'; + $message.= 'Redirection vers vos fichiers vid\xE9os...'; - sqlite_close($db); + sqlite_close($db); - set_refresh(2,'2;url='.page_retour_film(),true); - $file1 = file_get_contents('http://127.0.0.1:8081/lecteur/action.html?control='.$_REQUEST['control']); - }elseif ($_GET['signet'] == "noload") { - - $message .= 'Redirection vers vos fichiers vid\xE9os...'; - set_refresh(2,'2;url='.page_retour_film(),true); - $file1 = file_get_contents('http://127.0.0.1:8081/lecteur/action.html?control='.$_REQUEST['control']); - }elseif($VLC['type_current']=="webtv"){ - $message .= 'Redirection vers les Webtv...'; - set_refresh(2,'2;url='.page_retour_film(),true); - $file1 = file_get_contents('http://127.0.0.1:8081/lecteur/action.html?control='.$_REQUEST['control']); - }else{ - $message.= '<center>Le film n\'est pas fini ! <br>Voulez-vous placer un signet pour y revenir rapidement plus tard ?<br><br>'; - $message.= '<a href="lecture.php?control=stop&signet=load"><box border=2 width=35 height=18 align=center text="Oui"></a> <a href="lecture.php?control=stop&signet=noload"><box border=2 width=35 height=18 align=center text="Non"></a></center>'; - } - }elseif($control!='seek'){ + set_refresh(2,'2;url='.page_retour_film(),true); + $file1 = file_get_contents('http://127.0.0.1:8081/lecteur/action.html?control='.$_REQUEST['control']); + } elseif ($_GET['signet'] == "noload") + { + $message .= 'Redirection vers vos fichiers vid\xE9os...'; + set_refresh(2,'2;url='.page_retour_film(),true); + $file1 = file_get_contents('http://127.0.0.1:8081/lecteur/action.html?control='.$_REQUEST['control']); + } elseif($VLC['type_current']=="webtv") + { + $message .= 'Redirection vers les Webtv...'; + set_refresh(2,'2;url='.page_retour_film(),true); + $file1 = file_get_contents('http://127.0.0.1:8081/lecteur/action.html?control='.$_REQUEST['control']); + } else + { + // Micht : Utilisation d'une page de skin + if (($message = file_get_contents($SKIN_REP.'signet_ask.tpl')) === FALSE) + { + $message.= '<center>Le film n\'est pas fini ! <br>Voulez-vous placer un signet pour y revenir rapidement plus tard ?<br><br>'; + $message.= '<a href="lecture.php?control=stop&signet=load"><box border=2 width=35 height=18 align=center text="Oui"></a> <a href="lecture.php?control=stop&signet=noload"><box border=2 width=35 height=18 align=center text="Non"></a></center>'; + } + } + } elseif($control!='seek') + { $control = $_REQUEST['control']; - $OSD = $control; - $META['front_panel'] = strtoupper($OSD); - $file1 = file_get_contents("http://127.0.0.1:8081/lecteur/action.html?control=$control"); + $OSD = $control; + $META['front_panel'] = strtoupper($OSD); + $file1 = file_get_contents("http://127.0.0.1:8081/lecteur/action.html?control=$control"); } } //Affiche les r\xE9sultats du livescore -if(get_variable('surv_page')!='' AND get_variable('surv_match')!='' AND (get_variable('last_timestamp')+30)<time()){ - $toshow = urldecode(get_variable('surv_page')); - $page = @fopen ('http://www.sport24.fr/'.$toshow, 'r'); - - $contenu_html = ''; - while (!feof ($page)) { - $contenu_html .= trim(fgets($page, 4096)); - } - - if(isset($_GET['delsurv'])){ - del_variable('surv_match'); - del_variable('surv_page'); - del_variable('last_score'); - del_variable('last_timestamp'); - del_variable('last_status'); - } - - $ereg = '<TD height="17" class="blanc10" align="left"><STRONG> (.{1,150})<\/STRONG><\/TD>'; - preg_match("/$ereg/s", $contenu_html, $titre); - - $ereg = '<TD align="center" class="ls-cellnoir"><SPAN class="orange10">(.{1,100})<\/SPAN><\/TD><TD align="right" class="(.{0,10})1">(<A HREF="javascript(.{1,150})<\/A>| )<\/TD><TD align="right" class="(.{0,10})"><SPAN class="(.{1,10})">(.{1,30})<\/SPAN><\/TD><TD align="center" class="(.{1,10})"><SPAN class="(.{1,10})">(.{1,15})<\/SPAN><\/TD><TD align="left" class="(.{1,10})"><SPAN class="(.{1,10})">(.{1,30})<\/SPAN><\/TD>'; - preg_match_all("/$ereg/s", $contenu_html, $valeur); - - foreach($valeur[1] as $key=>$value){ - //Ajout de la surveillance d'un match - if(get_variable('surv_page')==$toshow AND md5($valeur[7][$key].$valeur[13][$key])==get_variable('surv_match') AND ($valeur[10][$key]!=get_variable('last_score') OR $valeur[1][$key]!=get_variable('last_status'))){ - if(eregi('x_rouge',$value)){ - $valeur[1][$key]='sup'; - }elseif(eregi('v_vert',$value)){ - $valeur[1][$key]='finish'; - }elseif(eregi('o_vert-blink',$value)){ - $valeur[1][$key]='encours'; - }elseif(eregi('pic_o_vert-or',$value)){ - $valeur[1][$key]='mitemps'; - } - - $result = array('statut'=>$valeur[1][$key], 'eq1'=>$valeur[7][$key], 'eq2'=>$valeur[13][$key], 'score'=>$valeur[10][$key]); - - $OSD .='<br><table border="0" cellpadding="6" cellspacing="0"><tr><td>Evolution sur le match : </td><td align=center>'; - if ($result['statut']=='finish') $OSD .= '<img src="'.$INTERFACE_REP.'finished.gif" width="14" height="14">'; - elseif ($result['statut']=='sup') $OSD .= '<img src="'.$INTERFACE_REP.'cancelled.gif" width="14" height="14">'; - elseif ($result['statut']=='encours') $OSD .= '<img src="'.$INTERFACE_REP.'encours.gif" width="14" height="14">'; - elseif ($result['statut']=='mitemps') $OSD .= '<img src="'.$INTERFACE_REP.'mitemps.gif" width="14" height="14">'; - else $OSD .= $result['statut']; - - $OSD .= '</td><td align=center>'.$result['eq1'].'</td><td align=center>'.$result['score'].'</td><td align=center>'.$result['eq2'].'</td></tr></table>'; - - save_variable('last_score', $valeur[10][$key]); - save_variable('last_timestamp', time()); - save_variable('last_status', $valeur[1][$key]); - } - } -set_refresh(60,'60;url=lecture.php'); +if(get_variable('surv_page')!='' AND get_variable('surv_match')!='' AND (get_variable('last_timestamp')+30)<time()) +{ + $toshow = urldecode(get_variable('surv_page')); + $page = @fopen ('http://www.sport24.fr/'.$toshow, 'r'); + + $contenu_html = ''; + while (!feof ($page)) + { + $contenu_html .= trim(fgets($page, 4096)); + } + + if(isset($_GET['delsurv'])) + { + del_variable('surv_match'); + del_variable('surv_page'); + del_variable('last_score'); + del_variable('last_timestamp'); + del_variable('last_status'); + } + + $ereg = '<TD height="17" class="blanc10" align="left"><STRONG> (.{1,150})<\/STRONG><\/TD>'; + preg_match("/$ereg/s", $contenu_html, $titre); + + $ereg = '<TD align="center" class="ls-cellnoir"><SPAN class="orange10">(.{1,100})<\/SPAN><\/TD><TD align="right" class="(.{0,10})1">(<A HREF="javascript(.{1,150})<\/A>| )<\/TD><TD align="right" class="(.{0,10})"><SPAN class="(.{1,10})">(.{1,30})<\/SPAN><\/TD><TD align="center" class="(.{1,10})"><SPAN class="(.{1,10})">(.{1,15})<\/SPAN><\/TD><TD align="left" class="(.{1,10})"><SPAN class="(.{1,10})">(.{1,30})<\/SPAN><\/TD>'; + preg_match_all("/$ereg/s", $contenu_html, $valeur); + + foreach($valeur[1] as $key=>$value) + { + //Ajout de la surveillance d'un match + if(get_variable('surv_page')==$toshow AND md5($valeur[7][$key].$valeur[13][$key])==get_variable('surv_match') AND ($valeur[10][$key]!=get_variable('last_score') OR $valeur[1][$key]!=get_variable('last_status'))) + { + if(eregi('x_rouge',$value)) + { + $valeur[1][$key]='sup'; + } elseif(eregi('v_vert',$value)) + { + $valeur[1][$key]='finish'; + } elseif(eregi('o_vert-blink',$value)) + { + $valeur[1][$key]='encours'; + } elseif(eregi('pic_o_vert-or',$value)) + { + $valeur[1][$key]='mitemps'; + } + + $result = array('statut'=>$valeur[1][$key], 'eq1'=>$valeur[7][$key], 'eq2'=>$valeur[13][$key], 'score'=>$valeur[10][$key]); + + $OSD .='<br><table border="0" cellpadding="6" cellspacing="0"><tr><td>Evolution sur le match : </td><td align=center>'; + if ($result['statut']=='finish') $OSD .= '<img src="'.$INTERFACE_REP.'finished.gif" width="14" height="14">'; + elseif ($result['statut']=='sup') $OSD .= '<img src="'.$INTERFACE_REP.'cancelled.gif" width="14" height="14">'; + elseif ($result['statut']=='encours') $OSD .= '<img src="'.$INTERFACE_REP.'encours.gif" width="14" height="14">'; + elseif ($result['statut']=='mitemps') $OSD .= '<img src="'.$INTERFACE_REP.'mitemps.gif" width="14" height="14">'; + else $OSD .= $result['statut']; + + $OSD .= '</td><td align=center>'.$result['eq1'].'</td><td align=center>'.$result['score'].'</td><td align=center>'.$result['eq2'].'</td></tr></table>'; + + save_variable('last_score', $valeur[10][$key]); + save_variable('last_timestamp', time()); + save_variable('last_status', $valeur[1][$key]); + } + } + set_refresh(60,'60;url=lecture.php'); } //Enregistrer un signet -if($_GET['savesignet']==1){ -save_signet(); -$OSD .= 'Signet enregistr\xE9 - Position : '.$signetsav[1]; -$META['front_panel'] = 'SIGNET OK'; +if($_GET['savesignet']==1) +{ + save_signet(); + $OSD .= 'Signet enregistr\xE9 - Position : '.$signetsav[1]; + $META['front_panel'] = 'SIGNET OK'; } //-- Avancer ou reculer -if (isset($_REQUEST['seek_value'])){ - if($_REQUEST['seek_value']=="moins"){ +if (isset($_REQUEST['seek_value'])) +{ + if($_REQUEST['seek_value']=="moins") + { $value='-1m'; $OSD .= 'Recul de une minute'; - $META['front_panel'] = '-1min'; - }elseif($_REQUEST['seek_value']=="plus"){ + $META['front_panel'] = '-1min'; + } elseif($_REQUEST['seek_value']=="plus") + { $value='%2B1m'; $OSD .= 'Avanc\xE9e de une minute'; - $META['front_panel'] = '+1min'; - }else{ + $META['front_panel'] = '+1min'; + } else + { $value=$_REQUEST['seek_value']; $OSD .= 'Avanc\xE9e \xE0 '.$value; - } + } $file1 = file_get_contents('http://127.0.0.1:8081/lecteur/action.html?control=seek&seek_value='.$value); } -if($VLC['etat']=='pause'){ - $OSD .= ' Pause '; +if($VLC['etat']=='pause') +{ + $OSD .= ' Pause '; } // Gestion des sous-titres -if(isset($_REQUEST['next_ss']) or isset($_REQUEST['newfichier'])){ - $sstitre=array(); - - //-- R\xE9cuperation des donn\xE9es de VLC - $page = @fopen ('http://localhost:8081/lecteur/options_vlc.html', 'r'); - $contenu_html = ''; - while (!feof ($page)) { - $contenu_html .= trim(fgets($page, 4096)); - } - eval($contenu_html); - $n_sstitre = count($sstitre); - if ($n_sstitre == '0'){ - $OSD .= "Pas de Sous-Titre"; - $act = "non"; - }else{ - $nn = '1'; - foreach ($sstitre as $key => $value) { - $keysst[$nn] = $key; - $nomsst[$nn] = $value[0]; - if ($value[1] == '1') { - $actu_ss = $nn; - } - $nn++; - } - - $nnn = $actu_ss+1; - //-- Si on est a la fin de la liste on revient au debut. - if ($nnn > $n_sstitre) { $nnn = '1'; } - $OSD .= "Sous-Titre : ".str_replace('D\xE9sactiver','D\xE9sactiv\xE9s',$nomsst[$nnn]); - $act = ""; - } - if ($act != "non"){ - @readfile('http://localhost:8081/lecteur/modif-config.html?type=2&type2=2&var=spu-es&value='.$keysst[$nnn]); - } +if(isset($_REQUEST['next_ss']) or isset($_REQUEST['newfichier'])) +{ + $sstitre=array(); + + //-- R\xE9cuperation des donn\xE9es de VLC + $page = @fopen ('http://localhost:8081/lecteur/options_vlc.html', 'r'); + $contenu_html = ''; + while (!feof ($page)) + { + $contenu_html .= trim(fgets($page, 4096)); + } + eval($contenu_html); + $n_sstitre = count($sstitre); + if ($n_sstitre == '0') + { + $OSD .= "Pas de Sous-Titre"; + $act = "non"; + } else + { + $nn = '1'; + foreach ($sstitre as $key => $value) + { + $keysst[$nn] = $key; + $nomsst[$nn] = $value[0]; + if ($value[1] == '1') + { + $actu_ss = $nn; + } + $nn++; + } + + $nnn = $actu_ss+1; + //-- Si on est a la fin de la liste on revient au debut. + if ($nnn > $n_sstitre) $nnn = '1'; + $OSD .= "Sous-Titre : ".str_replace('D\xE9sactiver','D\xE9sactiv\xE9s',$nomsst[$nnn]); + $act = ""; + } + if ($act != "non") + { + @readfile('http://localhost:8081/lecteur/modif-config.html?type=2&type2=2&var=spu-es&value='.$keysst[$nnn]); + } } - $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/info.php'; - $LINK['options']=$RACINE_REP.'lecteur/options.php?module=video'; - $LINK['blue']=$MODULE.'films/lecture.php?savesignet=1'; - $LINK['red']=$MODULE.'films/lecture.php?next_ss=1'; - $LINK['yellow']=$RACINE_REP.'lecteur/options.php?module=infos'; - $LINK['up']=$MODULE.'films/lecture.php?seek_value=plus'; - $LINK['down']=$MODULE.'films/lecture.php?seek_value=moins'; +$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/info.php'; +$LINK['options']=$RACINE_REP.'lecteur/options.php?module=video'; +$LINK['blue']=$MODULE.'films/lecture.php?savesignet=1'; +$LINK['red']=$MODULE.'films/lecture.php?next_ss=1'; +$LINK['yellow']=$RACINE_REP.'lecteur/options.php?module=infos'; +$LINK['up']=$MODULE.'films/lecture.php?seek_value=plus'; +$LINK['down']=$MODULE.'films/lecture.php?seek_value=moins'; -if(isset($message)){ -$smarty->assign('AVERTISSEMENT',$message); -$smarty->display('avertissement.tpl'); -}else{ - if(trim($OSD)==''){ - if($cansetfrontpannel and $VLC['etat']=='playing'){ - set_refresh(2, '2;url=lecture.php'); - $META['front_panel'] = calcul_hours($VLC['duree_courante']); - } - }else{ - set_refresh(5, '5;url=lecture.php'); - } +if(isset($message)) +{ + $smarty->assign('AVERTISSEMENT',$message); + $smarty->display('avertissement.tpl'); +} else +{ + if(trim($OSD)=='') + { + if($cansetfrontpannel and $VLC['etat']=='playing') + { + set_refresh(2, '2;url=lecture.php'); + $META['front_panel'] = calcul_hours($VLC['duree_courante']); + } + } else + { + set_refresh(5, '5;url=lecture.php'); + } -if(in_array($VLC['type_current'],array('cd','audio','photo')) AND $META['refresh']==''){ -$META['refresh']= '0;url='.page_retour_film(); -} + if(in_array($VLC['type_current'],array('cd','audio','photo')) AND $META['refresh']=='') + { + $META['refresh']= '0;url='.page_retour_film(); + } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> @@ -230,15 +273,21 @@ <flags volume_key=true> </head> <body background="ts://127.0.0.1"> -<table><tr><td width="600" align="right"> +<table> +<tr> + <td width="600" align="right"> <?php -if(eregi('<table', $OSD)){ -echo $OSD; -}else{ -echo ucfirst($OSD); -} - -?></td></tr></table> + if(eregi('<table', $OSD)) + { + echo $OSD; + } else + { + echo ucfirst($OSD); + } +?> + </td> +</tr> +</table> <script language="javascript" src="/fb2ie.js"> </script> </body> Added: trunk/skin/simple/signet_ask.tpl =================================================================== --- trunk/skin/simple/signet_ask.tpl (rev 0) +++ trunk/skin/simple/signet_ask.tpl 2006-10-02 07:38:56 UTC (rev 20) @@ -0,0 +1,5 @@ +<center>Le film n'est pas fini ! <br> +Voulez-vous placer un signet pour y revenir rapidement plus tard ?<br> +<br> +<a href="lecture.php?control=stop&signet=load"><box border=2 width=35 height=18 align=center text="Oui"></a> <a href="lecture.php?control=stop&signet=noload"><box border=2 width=35 height=18 align=center text="Non"></a> +</center> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Mi...@us...> - 2006-10-04 01:49:38
|
Revision: 21 http://svn.sourceforge.net/easybox-mod/?rev=21&view=rev Author: Micht Date: 2006-10-02 04:58:08 -0700 (Mon, 02 Oct 2006) Log Message: ----------- Ajout du module d'horoscope. Modified Paths: -------------- trunk/_utilisateur/modules.db trunk/module/_menu/menu.php Added Paths: ----------- trunk/module/horoscope/ trunk/module/horoscope/images/ trunk/module/horoscope/images/bleu_01.gif trunk/module/horoscope/images/bleu_02.gif trunk/module/horoscope/images/bleu_03.gif trunk/module/horoscope/images/bleu_04.gif trunk/module/horoscope/images/bleu_05.gif trunk/module/horoscope/images/bleu_06.gif trunk/module/horoscope/images/bleu_07.gif trunk/module/horoscope/images/bleu_08.gif trunk/module/horoscope/images/bleu_09.gif trunk/module/horoscope/images/bleu_10.gif trunk/module/horoscope/images/bleu_11.gif trunk/module/horoscope/images/bleu_12.gif trunk/module/horoscope/index1.php trunk/skin/simple/horoscope.tpl trunk/skin/simple/icones/Horoscope.gif Modified: trunk/_utilisateur/modules.db =================================================================== (Binary files differ) Modified: trunk/module/_menu/menu.php =================================================================== --- trunk/module/_menu/menu.php 2006-10-02 07:38:56 UTC (rev 20) +++ trunk/module/_menu/menu.php 2006-10-02 11:58:08 UTC (rev 21) @@ -3,21 +3,30 @@ require($RACINE_REP.'_framework/framework.php'); //Fonction renvoyant la liste des modules multim\xE9dias et des diff\xE9rentes cat\xE9gories de modules -function LOAD_MENU1(){ -global $xml, $LEVEL_ACTIF, $USER; - -$db = sqlite_open($USER.'modules.db', 0666); -$res = sqlite_query($db,'SELECT * FROM modules WHERE ((type="Module" AND categorie=1) OR (type="Cat\xE9gorie" AND nom!="Menu")) AND '.$LEVEL_ACTIF.'=1'); -$MENU=array(); - -while($resu = sqlite_fetch_array($res)){ - $MENU[]=array('name'=>$resu['nom'],'num'=>$resu['id'],'rep'=>$resu['repertoire'],'lien'=>$resu['lien'],'ico'=>str_replace(array('>',' !',' ','\xE9','\xEE','\xF4'),array('','','','e','i','o'),$resu['nom'])); +function LOAD_MENU1() +{ + global $xml, $LEVEL_ACTIF, $USER, $ini; + + $db = sqlite_open($USER.'modules.db', 0666); + if ($ini[explorateur][afficher_categories] == 'oui') + { + $query = 'SELECT * FROM modules WHERE ((type="Module" AND categorie=1) OR (type="Cat\xE9gorie" AND nom!="Menu")) AND '.$LEVEL_ACTIF.'=1'; + } else + { + $query = 'SELECT * FROM modules WHERE type="Module" AND categorie=1 AND '.$LEVEL_ACTIF.'=1'; + } + $res = sqlite_query($db, $query); + + $MENU = array(); + while($resu = sqlite_fetch_array($res)) + { + $MENU[]=array('name'=>$resu['nom'],'num'=>$resu['id'],'rep'=>$resu['repertoire'],'lien'=>$resu['lien'],'ico'=>str_replace(array('>',' !',' ','\xE9','\xEE','\xF4'),array('','','','e','i','o'),$resu['nom'])); + } + + sqlite_close($db); + RETURN($MENU); } -sqlite_close($db); -RETURN($MENU); -} - //Fonction renvoyant la liste des modules d'une cat\xE9gorie function LOAD_MENU2($categorie='0'){ global $xml, $LEVEL_ACTIF, $USER; Added: trunk/module/horoscope/images/bleu_01.gif =================================================================== (Binary files differ) Property changes on: trunk/module/horoscope/images/bleu_01.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/horoscope/images/bleu_02.gif =================================================================== (Binary files differ) Property changes on: trunk/module/horoscope/images/bleu_02.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/horoscope/images/bleu_03.gif =================================================================== (Binary files differ) Property changes on: trunk/module/horoscope/images/bleu_03.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/horoscope/images/bleu_04.gif =================================================================== (Binary files differ) Property changes on: trunk/module/horoscope/images/bleu_04.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/horoscope/images/bleu_05.gif =================================================================== (Binary files differ) Property changes on: trunk/module/horoscope/images/bleu_05.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/horoscope/images/bleu_06.gif =================================================================== (Binary files differ) Property changes on: trunk/module/horoscope/images/bleu_06.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/horoscope/images/bleu_07.gif =================================================================== (Binary files differ) Property changes on: trunk/module/horoscope/images/bleu_07.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/horoscope/images/bleu_08.gif =================================================================== (Binary files differ) Property changes on: trunk/module/horoscope/images/bleu_08.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/horoscope/images/bleu_09.gif =================================================================== (Binary files differ) Property changes on: trunk/module/horoscope/images/bleu_09.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/horoscope/images/bleu_10.gif =================================================================== (Binary files differ) Property changes on: trunk/module/horoscope/images/bleu_10.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/horoscope/images/bleu_11.gif =================================================================== (Binary files differ) Property changes on: trunk/module/horoscope/images/bleu_11.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/horoscope/images/bleu_12.gif =================================================================== (Binary files differ) Property changes on: trunk/module/horoscope/images/bleu_12.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/horoscope/index1.php =================================================================== --- trunk/module/horoscope/index1.php (rev 0) +++ trunk/module/horoscope/index1.php 2006-10-02 11:58:08 UTC (rev 21) @@ -0,0 +1,76 @@ +<?php + $RACINE_REP = "../../"; + require($RACINE_REP.'_framework/framework.php'); + + if (isset($_REQUEST['sign'])) + { + // On a choisit un signe, afficher l'horoscope + + $liens = array('rss_horojour_belier.xml', 'rss_horojour_taureau.xml', 'rss_horojour_gemeaux.xml', 'rss_horojour_cancer.xml', 'rss_horojour_lion.xml', 'rss_horojour_vierge.xml', 'rss_horojour_balance.xml', 'rss_horojour_scorpion.xml', 'rss_horojour_sagittaire.xml', 'rss_horojour_capricorne.xml', 'rss_horojour_verseau.xml', 'rss_horojour_poissons.xml'); + + if ($xml = file_get_contents('http://www.asiaflash.com/horoscope/'.$liens[$_REQUEST['sign']-1])) + { + /* + * Je voulais faire ca en parsant le XML + * mais j'ai des probl\xE8mes de caract\xE8res accentu\xE9s :'( + * + if ($xml_table = simplexml_load_string($xml)) + { + echo '<html><body>'; + echo '<center>'.htmlspecialchars_decode($xml_table->channel[0]->item[0]->title).'</center>'; + echo '<br>'; + echo html_entity_decode($xml_table->channel[0]->item[0]->description); + echo '</body></html>'; + } + */ + + // R\xE9cup de l'item + $posDeb = strpos($xml,"<item>")+6; + $posFin = strpos($xml,"</item>"); + $xml = substr($xml, $posDeb, $posFin-$posDeb); + + + // R\xE9cup du titre + $posDeb = strpos($xml,"<title>")+7; + $posFin = strpos($xml,"</title>"); + $entete = substr($xml, $posDeb, $posFin-$posDeb); + $entete = html_entity_decode($entete); + + // R\xE9cup du texte principal + $posDeb = strpos($xml,"<description>")+13; + //$posFin = strpos($xml,"</description>"); + $posFin = strpos($xml,'<center><font size="-1">Consultez sur le site AsiaFlash.com'); + $description = substr($xml, $posDeb, $posFin-$posDeb); + $description = html_entity_decode($description); + + $description = str_replace('http://www.asiaflash.com/anh/bleu_', 'images/bleu_', $description); + $description = str_replace('<b>', '<u>', $description); + $description = str_replace('</b>', '</u>', $description); + $description = str_replace('<br><br>', '<br> <br>', $description); + /* + echo '<html><body>'; + echo '<center>'.$titre.'</center>'; + echo '<br>'; + echo $description; + echo '</body></html>'; + */ + } + + $LINK['red']= 'index1.php'; + } + + if (!isset($entete) || $entete == '') + { + // Affichage de la table de choix + $entete = 'Choisissez un signe'; + $description = ''; + + $LINK['red']= $MODULE.'_menu/menu.php?cat=18'; + } + + $smarty->assign('TITRE','Horoscope'); + $smarty->assign('entete',$entete); + $smarty->assign('description',$description); + $smarty->assign('CONTENT',$smarty->fetch('horoscope.tpl')); + $smarty->display('interface.tpl'); +?> Added: trunk/skin/simple/horoscope.tpl =================================================================== --- trunk/skin/simple/horoscope.tpl (rev 0) +++ trunk/skin/simple/horoscope.tpl 2006-10-02 11:58:08 UTC (rev 21) @@ -0,0 +1,31 @@ +<font size="3">{$entete}</font><br> +{if $description AND $description != ''} +{$description} +{else} + <br/> + <br/> + <br/> +<center> +<table border="0" cellspacing="0" cellpadding="0" align="center"> +<tr> + <td align="center" width="80"><img src="images/bleu_01.gif"><br><a href="index1.php?sign=1"><font size="1">B\xE9lier</font></a></td> + <td align="center" width="80"><img src="images/bleu_02.gif"><br><a href="index1.php?sign=2"><font size="1">Taureau</font></a></td> + <td align="center" width="80"><img src="images/bleu_03.gif"><br><a href="index1.php?sign=3"><font size="1">G\xE9meaux</font></a></td> + <td align="center" width="80"><img src="images/bleu_04.gif"><br><a href="index1.php?sign=4"><font size="1">Cancer</font></a></td> + <td align="center" width="80"><img src="images/bleu_05.gif"><br><a href="index1.php?sign=5"><font size="1">Lion</font></a></td> + <td align="center" width="80"><img src="images/bleu_06.gif"><br><a href="index1.php?sign=6"><font size="1">Vierge</font></a></td> +</tr> +<tr> + <td height="13" colspan="6"> + </td> +</tr> +<tr> + <td align="center" width="80"><img src="images/bleu_07.gif"><br><a href="index1.php?sign=7"><font size="1">Balance</font></a></td> + <td align="center" width="80"><img src="images/bleu_08.gif"><br><a href="index1.php?sign=8"><font size="1">Scorpion</font></a></td> + <td align="center" width="80"><img src="images/bleu_09.gif"><br><a href="index1.php?sign=9"><font size="1">Sagittaire</font></a></td> + <td align="center" width="80"><img src="images/bleu_10.gif"><br><a href="index1.php?sign=10"><font size="1">Capricorne</font></a></td> + <td align="center" width="80"><img src="images/bleu_11.gif"><br><a href="index1.php?sign=11"><font size="1">Verseau</font></a></td> + <td align="center" width="80"><img src="images/bleu_12.gif"><br><a href="index1.php?sign=12"><font size="1">Poissons</font></a></td> +</tr> +</table> +{/if} \ No newline at end of file Added: trunk/skin/simple/icones/Horoscope.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simple/icones/Horoscope.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: <cra...@us...> - 2006-10-10 08:26:50
|
Revision: 27 http://svn.sourceforge.net/easybox-mod/?rev=27&view=rev Author: craftsnux Date: 2006-10-10 01:25:58 -0700 (Tue, 10 Oct 2006) Log Message: ----------- ajout d'un syst?\195?\168me de th?\195?\168me:inutile de remettre les chaines dans chaques skins et le theme peut ?\195?\170tre impos?\195?\169 par la skin si les variables sont ?\195?\169craser dans framework_skin ou laisser au choix de l'utilisateur (configuration des themes ?\195?\160 venir prochainement!) Modified Paths: -------------- trunk/_framework/framework.php trunk/skin/simple/framework_skin.php Added Paths: ----------- trunk/themes/ Removed Paths: ------------- trunk/skin/simple/chaines/2MMaroc.gif trunk/skin/simple/chaines/AB1.gif trunk/skin/simple/chaines/ABMoteurs.gif trunk/skin/simple/chaines/AlJazeera.gif trunk/skin/simple/chaines/AlJazeeraChildren.gif trunk/skin/simple/chaines/AlMasriya.gif trunk/skin/simple/chaines/ArmeniaTV.gif trunk/skin/simple/chaines/Arte.gif trunk/skin/simple/chaines/ArteAllemand.gif trunk/skin/simple/chaines/AstroCenterTV.gif trunk/skin/simple/chaines/BFMTV.gif trunk/skin/simple/chaines/Bestofshopping.gif trunk/skin/simple/chaines/BloombergTV.gif trunk/skin/simple/chaines/BulgariaTv.gif trunk/skin/simple/chaines/CANAL+.gif trunk/skin/simple/chaines/DW-TV.gif trunk/skin/simple/chaines/Demain_.gif trunk/skin/simple/chaines/Direct8.gif trunk/skin/simple/chaines/Euronews.gif trunk/skin/simple/chaines/Europe2TV.gif trunk/skin/simple/chaines/FashionTV.gif trunk/skin/simple/chaines/France2.gif trunk/skin/simple/chaines/France3.gif trunk/skin/simple/chaines/France4.gif trunk/skin/simple/chaines/France5.gif trunk/skin/simple/chaines/Franceo.gif trunk/skin/simple/chaines/FreenewsTV.gif trunk/skin/simple/chaines/FunTV.gif trunk/skin/simple/chaines/GameOne.gif trunk/skin/simple/chaines/GodTV.gif trunk/skin/simple/chaines/Image2.gif trunk/skin/simple/chaines/KTO.gif trunk/skin/simple/chaines/Kanal7INT.gif trunk/skin/simple/chaines/L'?\195?\169quipeTV.gif trunk/skin/simple/chaines/L'Equipetv.gif trunk/skin/simple/chaines/LaChaineMarseille.gif trunk/skin/simple/chaines/LaChaineParlementaire.gif trunk/skin/simple/chaines/Lalocale.gif trunk/skin/simple/chaines/LibertyTV.com.gif trunk/skin/simple/chaines/M6Boutique.gif trunk/skin/simple/chaines/M6Musicblack.gif trunk/skin/simple/chaines/M6Musichits.gif trunk/skin/simple/chaines/M6Musicrock.gif trunk/skin/simple/chaines/MTVFrance.gif trunk/skin/simple/chaines/MireFREEBOX.gif trunk/skin/simple/chaines/Motorstv.gif trunk/skin/simple/chaines/NRJ12.gif trunk/skin/simple/chaines/NRJ125.1.gif trunk/skin/simple/chaines/NRJ12Stereo.gif trunk/skin/simple/chaines/NT1.gif trunk/skin/simple/chaines/NormandieTV.gif trunk/skin/simple/chaines/PhoenixChineseNewsandEntertainment.gif trunk/skin/simple/chaines/RTL9.gif trunk/skin/simple/chaines/RTMMaroc.gif trunk/skin/simple/chaines/RTPi.gif trunk/skin/simple/chaines/RTRPlaneta.gif trunk/skin/simple/chaines/RaiDue.gif trunk/skin/simple/chaines/RaiTre.gif trunk/skin/simple/chaines/RaiUno.gif trunk/skin/simple/chaines/RealMadridTV.gif trunk/skin/simple/chaines/SamanyoluTV.gif trunk/skin/simple/chaines/SkyNews.gif trunk/skin/simple/chaines/SkyNewsInternational.gif trunk/skin/simple/chaines/TRTINT.gif trunk/skin/simple/chaines/TV5.gif trunk/skin/simple/chaines/TV7Bordeaux.gif trunk/skin/simple/chaines/TV7Tunisia.gif trunk/skin/simple/chaines/TV8Mont-Blanc.gif trunk/skin/simple/chaines/TVEInternational.gif trunk/skin/simple/chaines/TVPolonia.gif trunk/skin/simple/chaines/TVRomania.gif trunk/skin/simple/chaines/TeleGrenoble.gif trunk/skin/simple/chaines/Telenantes_Nantes7.gif trunk/skin/simple/chaines/Teleplaisance.org.gif trunk/skin/simple/chaines/Thumbs.db trunk/skin/simple/chaines/W9.gif trunk/skin/simple/chaines/adjaraTV.gif trunk/skin/simple/chaines/beurtv.gif trunk/skin/simple/chaines/canalalgerie.gif trunk/skin/simple/chaines/canalplus.gif trunk/skin/simple/chaines/cctv4.gif trunk/skin/simple/chaines/cnbc.gif trunk/skin/simple/chaines/cnbceurope.gif trunk/skin/simple/chaines/demain.gif trunk/skin/simple/chaines/etbSat.gif trunk/skin/simple/chaines/freenews.gif trunk/skin/simple/chaines/gulli.gif trunk/skin/simple/chaines/iTELE.gif trunk/skin/simple/chaines/moteur.gif trunk/skin/simple/chaines/mtv.gif trunk/skin/simple/chaines/t.tv.gif trunk/skin/simple/chaines/telif.gif trunk/skin/simple/chaines/tf1.gif trunk/skin/simple/chaines/tfj.gif trunk/skin/simple/chaines/tlm.gif trunk/skin/simple/chaines/tlt.gif trunk/skin/simple/chaines/zik.gif trunk/skin/simple/icones/Agenda.gif trunk/skin/simple/icones/AnnuaireFreebox.gif trunk/skin/simple/icones/Audio.gif trunk/skin/simple/icones/Cac40.gif trunk/skin/simple/icones/Cinema.gif trunk/skin/simple/icones/DVD.gif trunk/skin/simple/icones/Emissions.gif trunk/skin/simple/icones/Enregistrement.gif trunk/skin/simple/icones/Ephemeride.gif trunk/skin/simple/icones/Favoris.gif trunk/skin/simple/icones/Films.gif trunk/skin/simple/icones/GuideTV.gif trunk/skin/simple/icones/Horoscope.gif trunk/skin/simple/icones/Html-Light.gif trunk/skin/simple/icones/Info-Trafic.gif trunk/skin/simple/icones/Infos.gif trunk/skin/simple/icones/Internet.gif trunk/skin/simple/icones/Livescore.gif trunk/skin/simple/icones/Loto.gif trunk/skin/simple/icones/Mails.gif trunk/skin/simple/icones/Messagerie.gif trunk/skin/simple/icones/Meteo.gif trunk/skin/simple/icones/Modules.gif trunk/skin/simple/icones/Multimedia.gif trunk/skin/simple/icones/Photos.gif trunk/skin/simple/icones/Pratique.gif trunk/skin/simple/icones/ProgrammeCine.gif trunk/skin/simple/icones/RSS.gif trunk/skin/simple/icones/ReseauFree.fr.gif trunk/skin/simple/icones/Shutdown.gif trunk/skin/simple/icones/Signet.gif trunk/skin/simple/icones/SortiesCine.gif trunk/skin/simple/icones/Thumbs.db trunk/skin/simple/icones/Web.gif trunk/skin/simple/icones/WebMedia.gif trunk/skin/simple/icones/firefox.gif trunk/skin/simple/icones/horloge-mini.gif trunk/skin/simple/icones/horloge.gif trunk/skin/simple/icones/menunews.gif trunk/skin/simple/icones/morpion.gif trunk/skin/simple/icones/pendu.gif trunk/skin/simple/icones/sudoku.gif Modified: trunk/_framework/framework.php =================================================================== --- trunk/_framework/framework.php 2006-10-06 14:14:58 UTC (rev 26) +++ trunk/_framework/framework.php 2006-10-10 08:25:58 UTC (rev 27) @@ -72,7 +72,13 @@ //-- R\xE9pertoire de la skin $SKIN_REP = $RACINE_REP.'skin/'.$ini[skin][skin]."/"; $smarty->assign('SKIN_REP',$SKIN_REP); - + $THEME_REP = $RACINE_REP.'themes/'; + $smarty->assign('THEME_REP',$THEME_REP); + $ICONE_REP = $THEME_REP."icones/defaut/"; + $smarty->assign('ICONE_REP',$ICONE_REP); + $CHAINE_REP = $THEME_REP."chaines/defaut/"; + $smarty->assign('CHAINE_REP',$CHAINE_REP); + //-- Framework du skin require($SKIN_REP."framework_skin.php"); Deleted: trunk/skin/simple/chaines/2MMaroc.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/AB1.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/ABMoteurs.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/AlJazeera.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/AlJazeeraChildren.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/AlMasriya.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/ArmeniaTV.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/Arte.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/ArteAllemand.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/AstroCenterTV.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/BFMTV.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/Bestofshopping.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/BloombergTV.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/BulgariaTv.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/CANAL+.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/DW-TV.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/Demain_.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/Direct8.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/Euronews.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/Europe2TV.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/FashionTV.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/France2.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/France3.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/France4.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/France5.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/Franceo.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/FreenewsTV.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/FunTV.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/GameOne.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/GodTV.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/Image2.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/KTO.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/Kanal7INT.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/L'?\195?\169quipeTV.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/L'Equipetv.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/LaChaineMarseille.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/LaChaineParlementaire.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/Lalocale.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/LibertyTV.com.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/M6Boutique.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/M6Musicblack.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/M6Musichits.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/M6Musicrock.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/MTVFrance.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/MireFREEBOX.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/Motorstv.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/NRJ12.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/NRJ125.1.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/NRJ12Stereo.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/NT1.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/NormandieTV.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/PhoenixChineseNewsandEntertainment.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/RTL9.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/RTMMaroc.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/RTPi.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/RTRPlaneta.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/RaiDue.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/RaiTre.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/RaiUno.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/RealMadridTV.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/SamanyoluTV.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/SkyNews.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/SkyNewsInternational.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/TRTINT.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/TV5.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/TV7Bordeaux.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/TV7Tunisia.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/TV8Mont-Blanc.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/TVEInternational.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/TVPolonia.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/TVRomania.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/TeleGrenoble.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/Telenantes_Nantes7.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/Teleplaisance.org.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/Thumbs.db =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/W9.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/adjaraTV.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/beurtv.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/canalalgerie.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/canalplus.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/cctv4.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/cnbc.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/cnbceurope.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/demain.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/etbSat.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/freenews.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/gulli.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/iTELE.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/moteur.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/mtv.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/t.tv.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/telif.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/tf1.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/tfj.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/tlm.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/tlt.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/chaines/zik.gif =================================================================== (Binary files differ) Modified: trunk/skin/simple/framework_skin.php =================================================================== --- trunk/skin/simple/framework_skin.php 2006-10-06 14:14:58 UTC (rev 26) +++ trunk/skin/simple/framework_skin.php 2006-10-10 08:25:58 UTC (rev 27) @@ -26,15 +26,11 @@ $smarty->assign('PLAYER_REP',$PLAYER_REP); $DOSSIER_REP = $SKIN_REP."dossier/"; $smarty->assign('DOSSIER_REP',$DOSSIER_REP); - $ICONE_REP = $SKIN_REP."icones/"; - $smarty->assign('ICONE_REP',$ICONE_REP); $INTERFACE_REP = $SKIN_REP."interface/"; $smarty->assign('INTERFACE_REP',$INTERFACE_REP); $PARAMETRE_REP = $SKIN_REP."parametre/"; $smarty->assign('PARAMETRE_REP',$PARAMETRE_REP); - $CHAINE_REP = $SKIN_REP."chaines/"; - $smarty->assign('CHAINE_REP',$CHAINE_REP); - + ?> Deleted: trunk/skin/simple/icones/Agenda.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/AnnuaireFreebox.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/Audio.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/Cac40.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/Cinema.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/DVD.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/Emissions.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/Enregistrement.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/Ephemeride.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/Favoris.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/Films.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/GuideTV.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/Horoscope.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/Html-Light.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/Info-Trafic.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/Infos.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/Internet.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/Livescore.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/Loto.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/Mails.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/Messagerie.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/Meteo.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/Modules.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/Multimedia.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/Photos.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/Pratique.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/ProgrammeCine.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/RSS.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/ReseauFree.fr.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/Shutdown.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/Signet.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/SortiesCine.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/Thumbs.db =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/Web.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/WebMedia.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/firefox.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/horloge-mini.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/horloge.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/menunews.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/morpion.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/pendu.gif =================================================================== (Binary files differ) Deleted: trunk/skin/simple/icones/sudoku.gif =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2006-10-15 15:30:10
|
Revision: 31 http://svn.sourceforge.net/easybox-mod/?rev=31&view=rev Author: aragornis Date: 2006-10-15 08:29:38 -0700 (Sun, 15 Oct 2006) Log Message: ----------- Grosse mise ?\195?\160 jour sur le parsing des infos allocin?\195?\169 R?\195?\169paration du module cin?\195?\169fil Ajout de qq podcasts Modified Paths: -------------- trunk/_framework/lib/get_info.php trunk/_utilisateur/modules.db trunk/_utilisateur/podcast.db trunk/configuration/index1.php trunk/configuration/temp.php trunk/module/cinefil/index1.php trunk/version.html Modified: trunk/_framework/lib/get_info.php =================================================================== --- trunk/_framework/lib/get_info.php 2006-10-10 10:15:31 UTC (rev 30) +++ trunk/_framework/lib/get_info.php 2006-10-15 15:29:38 UTC (rev 31) @@ -1 +1 @@ -<? function info_allocine($file, $forced=false, $id=0){ global $USER; //Initialisation $res['synopsis'] = "Aucune information"; $file = ucwords($file); $db = sqlite_open($USER.'video.db', 0666, $mon_message_erreur); $result=sqlite_query($db, 'SELECT * FROM film WHERE name=\''.sqlite_escape_string($file).'\''); $rows = sqlite_num_rows($result); $db2 = sqlite_open($USER.'cache.db', 0666, $mon_message_erreur); $result2=sqlite_query($db2, 'SELECT * FROM film WHERE name LIKE \'%'.sqlite_escape_string($file).'%\' OR file LIKE \'%'.sqlite_escape_string($file).'%\''); $rows2 = sqlite_num_rows($result2); if($rows!="0" AND !$forced){ // R\xE9cup\xE9ration depuis la base de donn\xE9es des films $row = sqlite_fetch_array($result); $res['nom'] = $row['name']; $res['dir'] = $row['dir']; $res['critique_visiteurs'] = $row['critique_visiteurs']; $res['critique_presse'] = $row['critique_presse']; $res['image'] = $row['img']; $res['synopsis'] = $row['Synopsis']; $res['date_sortie'] = $row['sortie']; $res['realisateur'] = $row['realisateur']; $res['acteurs'] = $row['avec']; $res['nationalite'] = $row['film']; $res['genre'] = $row['genre']; $res['duree'] = $row['Duree']; $res['anne_prod'] = $row['production']; $res['ba'] = $row['ba']; $res['inbdd'] = true; }elseif($rows2!="0" AND !$forced){ // R\xE9cup\xE9ration depuis le cache allocin\xE9 $row = sqlite_fetch_array($result2); $res['nom'] = $row['name']; $res['critique_visiteurs'] = $row['critique_visiteurs']; $res['critique_presse'] = $row['critique_presse']; $res['image'] = $row['img']; $res['synopsis'] = $row['Synopsis']; $res['date_sortie'] = $row['sortie']; $res['realisateur'] = $row['realisateur']; $res['acteurs'] = $row['avec']; $res['nationalite'] = $row['film']; $res['genre'] = $row['genre']; $res['duree'] = $row['Duree']; $res['anne_prod'] = $row['production']; $res['ba'] = $row['ba']; $res['inbdd'] = false; }else{ if($id==0){ // Recherche de l'id sur Allocin\xE9 if($pagerecherche = @file_get_contents('http://www.allocine.fr/recherche/?motcle='.urlencode($file).'&f=3&rub=1')){ //Critique presse (nouvelle notation et ancienne) $ereg = '<h4><a href="\/film\/fichefilm_gen_cfilm=(.{1,7}).html" class="link1">(.{1,100})<\/a><\/h4>'; preg_match_all("/$ereg/s", $pagerecherche, $valeur); $mini = -1; $filebis = strtolower($file); foreach($valeur[1] as $key=>$val){ $leven = levenshtein($filebis, strtolower(strip_tags($valeur[2][$key]))); if($leven<$mini or $mini==-1){ $id = $valeur[1][$key]; $mini = $leven; } if($mini==0){ break; } } }else{ $res = "Erreur"; } } if($res != "Erreur"){ $res = info_allocineById($id); } $res['inbdd'] = false; sqlite_query($db2, 'DELETE FROM film WHERE name LIKE \'%'.sqlite_escape_string($file).'%\' OR file LIKE \'%'.sqlite_escape_string($file).'%\''); sqlite_query($db2, 'INSERT INTO film VALUES(NULL, \''.sqlite_escape_string($file).'\', \''.sqlite_escape_string($res['nom']).'\', \''.sqlite_escape_string($res['synopsis']).'\', \''.sqlite_escape_string($res['image']).'\' , \''.sqlite_escape_string($res['date_sortie']).'\' , \''.sqlite_escape_string($res['realisateur']).'\' , \''.sqlite_escape_string($res['acteurs']).'\' , \''.sqlite_escape_string($res['nationalite']).'\' , \''.sqlite_escape_string($res['genre']).'\' , \''.sqlite_escape_string($res['duree']).'\' , \''.sqlite_escape_string($res['anne_prod']).'\' , \''.sqlite_escape_string($res['critique_visiteurs']).'\' , \''.sqlite_escape_string($res['critique_presse']).'\' , \''.sqlite_escape_string($res['ba']).'\')'); } sqlite_close($db); sqlite_close($db2); RETURN $res; } // Fonction renvoyant les infos d'un film d\xE9sign\xE9 par son ID allocin\xE9 function info_allocineById($id){ //Initialisation $res['synopsis'] = "Aucune information"; if($filmrecherche = @file_get_contents('http://www.allocine.fr/film/fichefilm_gen_cfilm='.$id.'.html')) { //R\xE9cup\xE9ration du nom du film $ereg = '<title>(.{1,150})<\/title>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['nom'] = ucwords($valeur[1]); //Critique visiteurs $ereg = 'Spectateurs<\/a> <img src="http:\/\/a69.g.akamai.net\/n\/69\/10688\/v1\/img5.allocine.fr\/acmedia\/skin\/allocinev5\/icone\/etoile_(.{1,3}).gif" border="0"'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['critique_visiteurs'] = $valeur[1]; //Critique presse (nouvelle notation et ancienne) $ereg = 'Presse<\/a> <img src="http:\/\/a69.g.akamai.net\/n\/69\/10688\/v1\/img5.allocine.fr\/acmedia\/skin\/allocinev5\/icone\/etoile_(.{1,3}).gif" border="0" title="'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['critique_presse'] = $valeur[1]; //R\xE9cup\xE9ration de l'adresse de l'image $ereg = '<img src="http:\/\/a69.g.akamai.net\/n\/69\/10688\/v1\/img5.allocine.fr\/(.{1,70})" border="0" alt="" \/>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['image'] = 'http://a69.g.akamai.net/n/69/10688/v1/img5.allocine.fr/'.$valeur[1]; //R\xE9cup\xE9ration du synopsis $ereg = '<td valign="top" style="padding:10 0 0 0"><div align="justify"><h4>(.{1,1000})<\/h4><\/div><\/td>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['synopsis'] = trim(strip_tags($valeur[1])); if($res['synopsis']=='') $res['synopsis'] = "Aucune information"; //R\xE9cup\xE9ration de la date $ereg = 'Date de sortie : <b>(.{1,30})<\/b>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $monthes = array('Janvier'=>'1', 'F\xE9vrier'=>'2', 'Mars'=>'3', 'Avril'=>'4', 'Mai'=>'5', 'Juin'=>'6', 'Juillet'=>'7','Ao\xFBt'=>'8', 'Septembre'=>'9', 'Octobre'=>'10', 'Novembre'=>'11', 'D\xE9cembre'=>'12'); $expl=explode(" ",$valeur[1]); if(count($expl)==3) $res['date_sortie'] = mktime(0,0,0,$monthes[$expl[1]],$expl[0],$expl[2]); else $res['date_sortie'] = 2; //R\xE9cup\xE9ration du r\xE9alisateur $ereg = '<h4>R\xE9alis\xE9 par <a class="link1" href=(.{1,150}) target="">(.{1,35})<\/a><\/h4>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['realisateur'] = $valeur[2]; //R\xE9cup\xE9ration des acteurs $ereg = '<h4>Avec(.{1,1000})<\/a><\/h4><br \/>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['acteurs'] = trim(strip_tags($valeur[1])); //Nationalit\xE9 $ereg = '<h4>Film (.{1,40}).<\/h4> '; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['nationalite'] = $valeur[1]; //Genre $ereg = '<h4>Genre : (.{1,325})<\/a><\/h4>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['genre'] = trim(strip_tags($valeur[1])); //Dur\xE9e $ereg = '<h4>Dur\xE9e : (.{1,15}).<\/h4> '; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['duree'] = $valeur[1]; //Ann\xE9e de production $ereg = '<h4>Ann\xE9e de production : (.{1,7})<\/h4>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['anne_prod'] = $valeur[1]; // R\xE9cup\xE9ration des bandes annonces $ba=array(); if($pagerecherche = @file_get_contents('http://www.cinemovies.fr/resultat_recherche.php?cherche='.urlencode($res['nom']))){ $ereg = '<a href="fiche_film.php\?IDfilm=(.{1,6})" class="bodyFont5">'; preg_match_all("/$ereg/s", $pagerecherche, $valeur); $str2=$valeur[1][0]; if($filmrecherche = @file_get_contents('http://www.cinemovies.fr/players/media.php?IDfilm='.$str2)){ if(PHP_OS == "WIN32" || PHP_OS == "WINNT"){ $ereg = 'align="absmiddle" width="25" height="11">(.{1,25})<\/b>(.{1,2200})windows player(.{1,1300})<\/table><\/td><\/tr><tr><td'; preg_match_all("/$ereg/s", $filmrecherche, $value); }else{ $ereg = 'align="absmiddle" width="25" height="11">(.{1,25})<\/b>(.{1,1200})real(.{1,2500})<\/table><\/td><\/tr><tr><td'; preg_match_all("/$ereg/s", $filmrecherche, $value); $value[3]=$value[2]; } foreach($value[1] as $key=>$video){ $ereg = 'hd.php\?IDBA=(.{1,6})&ID'; preg_match("/$ereg/s", $value[3][$key], $flux); if(isset($flux[1])){ $ba[]=array(trim($video),'HQ',$flux[1]); }else{ $ereg = 'IDBA=(.{1,6})\';"><img border="0" src="..\/images\/v2\/div\/petite_fleche.gif" width="6" height="6">haute r'; preg_match("/$ereg/s", $value[3][$key], $flux); if(isset($flux[1])) $ba[]=array(trim($video),'N',$flux[1]); } } } } foreach($ba as $bande){ $res['ba']=str_replace('Bande annonce','BA',$res['ba'].$bande[0]).','.$bande[1].','.$bande[2].';'; } RETURN $res; }else{ RETURN "Aucun film trouv\xE9"; } } function info_personnalite($acteur){ if($pagerecherche = @file_get_contents('http://www.allocine.fr/recherche/?motcle='.urlencode($acteur).'&f=3&rub=2')){ $ereg = '<h4><a href="\/personne\/fichepersonne_gen_cpersonne=(.{1,15})" class="link1'; preg_match("/$ereg/s", $pagerecherche, $valeur); if($acteurrecherche = @file_get_contents('http://www.allocine.fr/personne/fichepersonne_gen_cpersonne='.$valeur[1])){ //R\xE9cup\xE9ration du nom "officiel" de la personnalit\xE9 $ereg = '<title>(.{1,150})<\/title>'; preg_match("/$ereg/s", $acteurrecherche, $valeur); $res['nom'] = $valeur[1]; //R\xE9cup\xE9ration de la date de naissance $ereg = '<h4><div style="padding:10 0 0 0">(.{1,100})<\/h4><\/div><div style="padding:15 0 0 0">'; preg_match("/$ereg/s", $acteurrecherche, $valeur); $expl=explode(" ",trim($valeur[1])); foreach($expl as $exp){ $new.=trim($exp).' '; } $ereg = 'N\xE9 le (.{1,15}) \xE0 (.{1,1000})'; preg_match("/$ereg/s", trim($new), $valeur); $monthes = array('Janvier'=>'1', 'F\xE9vrier'=>'2', 'Mars'=>'3', 'Avril'=>'4', 'Mai'=>'5', 'Juin'=>'6', 'Juillet'=>'7','Ao\xFBt'=>'8', 'Septembre'=>'9', 'Octobre'=>'10', 'Novembre'=>'11', 'D\xE9cembre'=>'12'); $expl=explode(" ",trim($valeur[1])); if(count($expl)==3) $res['date_naissance'] = mktime(0,0,0,$monthes[$expl[1]],$expl[0],$expl[2]); else $res['date_naissance'] = 2; $res['lieu_naissance'] = $valeur[2]; // Photo de la personnalit\xE9 $ereg = '<td valign="top" style="padding:0 10 10 0" width="120"><img src="(.{1,200})" width="120" height="160" border="0">'; preg_match("/$ereg/s", $acteurrecherche, $valeur); $res['image'] = $valeur[1]; //R\xE9cup\xE9ration de la biographie de l'artiste $ereg = '<td colspan="2" style="padding:10 0 15 0"><div align="justify"><h4>(.{1,15000})<\/h4><\/div><\/td>'; preg_match("/$ereg/s", $acteurrecherche, $valeur); $res['biographie'] = trim(strip_tags($valeur[1])); //R\xE9cup\xE9ration du role de la personnalit\xE9 $ereg = '<div><h4><b>(.{1,250})<\/b><\/h4><\/div>'; preg_match("/$ereg/s", $acteurrecherche, $valeur); $res['statut'] = $valeur[1]; RETURN $res; }else{ RETURN 'erreur'; } }else{ RETURN 'erreur'; } } function get_info_dvdfr($filmrecherche){ //R\xE9cup\xE9ration du nom du film $ereg = '<div class="dvd_title">(.{1,150})<\/div>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['nom'] = ucwords($valeur[1]); //Critique visiteurs $res['critique_visiteurs'] = ""; //Critique presse (nouvelle notation et ancienne) $res['critique_presse'] = ""; //R\xE9cup\xE9ration de l'adresse de l'image $ereg= 'src="..\/images\/dvd\/(.{1,70})" width="200" height="280"'; $valeur[1]=""; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['image'] = 'http://www.dvdfr.com/images/dvd/'.$valeur[1]; //R\xE9cup\xE9ration du synopsis $pos1 = strpos($filmrecherche,'<div class="dvd_subtitle">Synopsis</div>'); $pos1 = strpos($filmrecherche,'<div class="dvd_text">', $pos1+strlen('<div class="dvd_subtitle">Synopsis</div>')); $pos1 += strlen('<div class="dvd_text">'); $pos2 = strpos($filmrecherche,'</div>', $pos1); $res['synopsis'] = trim(strip_tags(substr($filmrecherche, $pos1, $pos2-$pos1))); $res['synopsis'] = str_replace("\n", ' ', $res['synopsis']); if($res['synopsis']=='') $res['synopsis'] = "Aucune information"; //R\xE9cup\xE9ration de la date $pos1 = strpos($filmrecherche,'<div class="dvd_subtitle">Sorti le</div>'); $pos1 = strpos($filmrecherche,'<div class="dvd_text">', $pos1+strlen('<div class="dvd_subtitle">Sorti le</div>')); $pos1 += strlen('<div class="dvd_text">'); $pos2 = strpos($filmrecherche,'</div>', $pos1); $valeur[1] = trim(strip_tags(substr($filmrecherche, $pos1, $pos2-$pos1))); $monthes = array('janvier'=>'1', 'f\xE9vrier'=>'2', 'mars'=>'3', 'avril'=>'4', 'mai'=>'5', 'juin'=>'6', 'juillet'=>'7','ao\xFBt'=>'8', 'septembre'=>'9', 'octobre'=>'10', 'novembre'=>'11', 'd\xE9cembre'=>'12'); $expl=explode(" ",$valeur[1]); if(count($expl)==3) $res['date_sortie'] = mktime(0,0,0,$monthes[$expl[1]],$expl[0],$expl[2]); else $res['date_sortie'] = 2; //R\xE9cup\xE9ration du r\xE9alisateur $res['realisateur'] = ""; //R\xE9cup\xE9ration des acteurs $pos1 = strpos($filmrecherche,'<div class="dvd_subtitle">Avec...</div>'); if ($pos1>0){ $pos1 = strpos($filmrecherche,'<div class="dvd_text">', $pos1+strlen('<div class="dvd_subtitle">Avec...</div>')); $pos1 += strlen('<div class="dvd_text">'); $pos2 = strpos($filmrecherche,'</div>', $pos1); $res['acteurs'] = trim(strip_tags(substr($filmrecherche, $pos1, $pos2-$pos1))); } //Nationalit\xE9 $res['nationalite'] = ""; //Genre $pos1 = strpos($filmrecherche,'<div class="dvd_categorie">'); while ($pos1>0){ $pos1 = strpos($filmrecherche,'<A class="home_a"', $pos1); if ($pos1>0) { $pos1 = strpos($filmrecherche,'>', $pos1); $pos1 += 1; $pos2 = strpos($filmrecherche,'</A>', $pos1); if ($res['genre']!="") $res['genre'] = $res['genre']." "; $res['genre'] = $res['genre'].trim(strip_tags(substr($filmrecherche, $pos1, $pos2-$pos1))); $pos1 = $pos2; } } //Dur\xE9e $ereg = '<td><img alt="Dur\xE9e" title="Dur\xE9e" src="..\/images\/duree.gif" width="32" height="14" align="absmiddle"><\/td>(.{1,100})<td>(.{1,50})<\/td>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['duree'] = $valeur[2]; //Ann\xE9e de production $res['anne_prod'] = ""; $res['inbdd'] = false; RETURN $res; } function info_dvdfrById($fileid){ global $USER; //Initialisation $res['synopsis'] = "Aucune information"; if($filmrecherche = @file_get_contents('http://www.dvdfr.com/dvd/dvd.php?id='.$fileid)) { $res=get_info_dvdfr($filmrecherche); }else{ //$res = "Erreur"; $res['synopsis']= 'http://www.dvdfr.com/dvd/dvd.php?id='.$fileid."\n".$pagerecherche; } RETURN $res; } ?> \ No newline at end of file +<? function info_allocine($file, $forced=false, $id=0){ global $USER; //Initialisation $res['synopsis'] = "Aucune information"; $file = ucwords($file); $db = sqlite_open($USER.'video.db', 0666, $mon_message_erreur); $result=sqlite_query($db, 'SELECT * FROM film WHERE name=\''.sqlite_escape_string($file).'\''); $rows = sqlite_num_rows($result); $db2 = sqlite_open($USER.'cache.db', 0666, $mon_message_erreur); $result2=sqlite_query($db2, 'SELECT * FROM film WHERE name = \''.sqlite_escape_string($file).'\' AND file LIKE \'%'.sqlite_escape_string($file).'%\''); $rows2 = sqlite_num_rows($result2); if($rows!="0" AND !$forced){ // R\xE9cup\xE9ration depuis la base de donn\xE9es des films $row = sqlite_fetch_array($result); $res['nom'] = $row['name']; $res['dir'] = $row['dir']; $res['critique_visiteurs'] = $row['critique_visiteurs']; $res['critique_presse'] = $row['critique_presse']; $res['image'] = $row['img']; $res['synopsis'] = $row['Synopsis']; $res['date_sortie'] = $row['sortie']; $res['realisateur'] = $row['realisateur']; $res['acteurs'] = $row['avec']; $res['nationalite'] = $row['film']; $res['genre'] = $row['genre']; $res['duree'] = $row['Duree']; $res['anne_prod'] = $row['production']; $res['ba'] = $row['ba']; $res['inbdd'] = true; }elseif($rows2!="0" AND !$forced){ // R\xE9cup\xE9ration depuis le cache allocin\xE9 $row = sqlite_fetch_array($result2); $res['nom'] = $row['name']; $res['critique_visiteurs'] = $row['critique_visiteurs']; $res['critique_presse'] = $row['critique_presse']; $res['image'] = $row['img']; $res['synopsis'] = $row['Synopsis']; $res['date_sortie'] = $row['sortie']; $res['realisateur'] = $row['realisateur']; $res['acteurs'] = $row['avec']; $res['nationalite'] = $row['film']; $res['genre'] = $row['genre']; $res['duree'] = $row['Duree']; $res['anne_prod'] = $row['production']; $res['ba'] = $row['ba']; $res['inbdd'] = false; }else{ if($id==0){ // Recherche de l'id sur Allocin\xE9 if($pagerecherche = @file_get_contents('http://www.allocine.fr/recherche/?motcle='.urlencode($file).'&f=3&rub=1')){ //Critique presse (nouvelle notation et ancienne) $ereg = '<h4><a href="\/film\/fichefilm_gen_cfilm=(.{1,7}).html" class="link1">(.{1,100})<\/a><\/h4>'; preg_match_all("/$ereg/s", $pagerecherche, $valeur); $mini = -1; $filebis = strtolower($file); foreach($valeur[1] as $key=>$val){ $leven = levenshtein($filebis, strtolower(strip_tags($valeur[2][$key]))); if($leven<$mini or $mini==-1){ $id = $valeur[1][$key]; $mini = $leven; } if($mini==0){ break; } } }else{ $res = "Erreur"; } } if($res != "Erreur"){ $res = info_allocineById($id); } $res['inbdd'] = false; sqlite_query($db2, 'DELETE FROM film WHERE name LIKE \'%'.sqlite_escape_string($file).'%\' OR file LIKE \'%'.sqlite_escape_string($file).'%\''); sqlite_query($db2, 'INSERT INTO film VALUES(NULL, \''.sqlite_escape_string($file).'\', \''.sqlite_escape_string($res['nom']).'\', \''.sqlite_escape_string($res['synopsis']).'\', \''.sqlite_escape_string($res['image']).'\' , \''.sqlite_escape_string($res['date_sortie']).'\' , \''.sqlite_escape_string($res['realisateur']).'\' , \''.sqlite_escape_string($res['acteurs']).'\' , \''.sqlite_escape_string($res['nationalite']).'\' , \''.sqlite_escape_string($res['genre']).'\' , \''.sqlite_escape_string($res['duree']).'\' , \''.sqlite_escape_string($res['anne_prod']).'\' , \''.sqlite_escape_string($res['critique_visiteurs']).'\' , \''.sqlite_escape_string($res['critique_presse']).'\' , \''.sqlite_escape_string($res['ba']).'\')'); } sqlite_close($db); sqlite_close($db2); RETURN $res; } // Fonction renvoyant les infos d'un film d\xE9sign\xE9 par son ID allocin\xE9 function info_allocineById($id){ //Initialisation $res['synopsis'] = "Aucune information"; if($filmrecherche = @file_get_contents('http://www.allocine.fr/film/fichefilm_gen_cfilm='.$id.'.html')) { //R\xE9cup\xE9ration du nom du film $ereg = '<title>(.{1,150})<\/title>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['nom'] = ucwords($valeur[1]); //Critique visiteurs $ereg = 'notepresse=(.{0,10})¬epublic=(.{0,10})" marginwidth'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['critique_visiteurs'] = round(ereg_replace(",", ".", $valeur[1])); $res['critique_presse'] = round(ereg_replace(",", ".", $valeur[2])); //R\xE9cup\xE9ration de l'adresse de l'image $ereg = '<img src="http:\/\/a69.g.akamai.net\/n\/69\/10688\/v1\/img5.allocine.fr\/(.{1,70})" border="0" alt="" \/>'; preg_match("/$ereg/s", $filmrecherche, $valeur); if(trim($valeur[1])==''){ $res['image'] = 'http://a69.g.akamai.net/n/69/10688/v1/img5.allocine.fr/acmedia/skin/AlloCineV5/habillage/AffichetteAllocine.gif'; }else{ $res['image'] = 'http://a69.g.akamai.net/n/69/10688/v1/img5.allocine.fr/'.$valeur[1]; } //R\xE9cup\xE9ration du synopsis $ereg = '<td valign="top" style="padding:10 0 0 0"><div align="justify"><h4>(.{1,1000})<\/h4><\/div><\/td>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['synopsis'] = trim(strip_tags($valeur[1])); if($res['synopsis']=='') $res['synopsis'] = "Aucune information"; //R\xE9cup\xE9ration de la date $ereg = 'Date de sortie : <b>(.{1,30})<\/b>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $monthes = array('Janvier'=>'1', 'F\xE9vrier'=>'2', 'Mars'=>'3', 'Avril'=>'4', 'Mai'=>'5', 'Juin'=>'6', 'Juillet'=>'7','Ao\xFBt'=>'8', 'Septembre'=>'9', 'Octobre'=>'10', 'Novembre'=>'11', 'D\xE9cembre'=>'12'); $expl=explode(" ",$valeur[1]); if(count($expl)==3) $res['date_sortie'] = mktime(0,0,0,$monthes[$expl[1]],$expl[0],$expl[2]); else $res['date_sortie'] = 2; //R\xE9cup\xE9ration du r\xE9alisateur $ereg = '<h4>R\xE9alis\xE9 par <a class="link1" href=(.{1,150})>(.{1,40})<\/a><\/h4> '; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['realisateur'] = $valeur[2]; //R\xE9cup\xE9ration des acteurs $ereg = '<h4>Avec(.{1,1000})<\/a><\/h4><br \/><div style="padding:2 0 2 0"><h4>Film'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['acteurs'] = trim(strip_tags($valeur[1])); //Nationalit\xE9 $ereg = '<h4>Film (.{1,40}).<\/h4> <h4>Genre'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['nationalite'] = $valeur[1]; //Genre $ereg = '<h4>Genre : (.{1,450})<\/a><\/h4><br \/><h4>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['genre'] = trim(strip_tags($valeur[1])); //Dur\xE9e $ereg = '<h4>Dur\xE9e : (.{1,15}).<\/h4> '; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['duree'] = $valeur[1]; //Ann\xE9e de production $ereg = '<h4>Ann\xE9e de production : (.{1,7})<\/h4>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['anne_prod'] = $valeur[1]; // R\xE9cup\xE9ration des bandes annonces $ba=array(); if($pagerecherche = @file_get_contents('http://www.cinemovies.fr/resultat_recherche.php?cherche='.urlencode($res['nom']))){ $ereg = '<a href="fiche_film.php\?IDfilm=(.{1,6})" class="bodyFont5">'; preg_match_all("/$ereg/s", $pagerecherche, $valeur); $str2=$valeur[1][0]; if($filmrecherche = @file_get_contents('http://www.cinemovies.fr/players/media.php?IDfilm='.$str2)){ if(PHP_OS == "WIN32" || PHP_OS == "WINNT"){ $ereg = 'align="absmiddle" width="25" height="11">(.{1,25})<\/b>(.{1,2200})windows player(.{1,1300})<\/table><\/td><\/tr><tr><td'; preg_match_all("/$ereg/s", $filmrecherche, $value); }else{ $ereg = 'align="absmiddle" width="25" height="11">(.{1,25})<\/b>(.{1,1200})real(.{1,2500})<\/table><\/td><\/tr><tr><td'; preg_match_all("/$ereg/s", $filmrecherche, $value); $value[3]=$value[2]; } foreach($value[1] as $key=>$video){ $ereg = 'hd.php\?IDBA=(.{1,6})&ID'; preg_match("/$ereg/s", $value[3][$key], $flux); if(isset($flux[1])){ $ba[]=array(trim($video),'HQ',$flux[1]); }else{ $ereg = 'IDBA=(.{1,6})\';"><img border="0" src="..\/images\/v2\/div\/petite_fleche.gif" width="6" height="6">haute r'; preg_match("/$ereg/s", $value[3][$key], $flux); if(isset($flux[1])) $ba[]=array(trim($video),'N',$flux[1]); } } } } foreach($ba as $bande){ $res['ba']=str_replace('Bande annonce','BA',$res['ba'].$bande[0]).','.$bande[1].','.$bande[2].';'; } RETURN $res; }else{ RETURN "Aucun film trouv\xE9"; } } function info_personnalite($acteur){ if($pagerecherche = @file_get_contents('http://www.allocine.fr/recherche/?motcle='.urlencode($acteur).'&f=3&rub=2')){ $ereg = '<h4><a href="\/personne\/fichepersonne_gen_cpersonne=(.{1,15})" class="link1'; preg_match("/$ereg/s", $pagerecherche, $valeur); if($acteurrecherche = @file_get_contents('http://www.allocine.fr/personne/fichepersonne_gen_cpersonne='.$valeur[1])){ //R\xE9cup\xE9ration du nom "officiel" de la personnalit\xE9 $ereg = '<title>(.{1,150})<\/title>'; preg_match("/$ereg/s", $acteurrecherche, $valeur); $res['nom'] = $valeur[1]; //R\xE9cup\xE9ration de la date de naissance $ereg = '<h4><div style="padding:10 0 0 0">(.{1,100})<\/h4><\/div><div style="padding:15 0 0 0">'; preg_match("/$ereg/s", $acteurrecherche, $valeur); $expl=explode(" ",trim($valeur[1])); foreach($expl as $exp){ $new.=trim($exp).' '; } $ereg = 'N\xE9 le (.{1,18}) \xE0 (.{1,150})<br \/>'; preg_match("/$ereg/s", trim($new), $valeur); $monthes = array('Janvier'=>'1', 'F\xE9vrier'=>'2', 'Mars'=>'3', 'Avril'=>'4', 'Mai'=>'5', 'Juin'=>'6', 'Juillet'=>'7','Ao\xFBt'=>'8', 'Septembre'=>'9', 'Octobre'=>'10', 'Novembre'=>'11', 'D\xE9cembre'=>'12'); $expl=explode(" ",trim($valeur[1])); if(count($expl)==3) $res['date_naissance'] = mktime(0,0,0,$monthes[$expl[1]],$expl[0],$expl[2]); else $res['date_naissance'] = 2; $res['lieu_naissance'] = $valeur[2]; // Photo de la personnalit\xE9 $ereg = '<td valign="top" style="padding:0 10 10 0" width="120"><img src="(.{1,200})" width="120" height="160" border="0">'; preg_match("/$ereg/s", $acteurrecherche, $valeur); $res['image'] = $valeur[1]; //R\xE9cup\xE9ration de la biographie de l'artiste $ereg = '<td colspan="2" style="padding:10 0 15 0"><div align="justify"><h4>(.{1,15000})<\/h4><\/div><\/td>'; preg_match("/$ereg/s", $acteurrecherche, $valeur); $res['biographie'] = trim(strip_tags($valeur[1])); //R\xE9cup\xE9ration du role de la personnalit\xE9 $ereg = '<div><h4><b>(.{1,250})<h4><div style="padding:10 0 0 0">'; preg_match("/$ereg/s", $acteurrecherche, $valeur); $res['statut'] = trim(strip_tags($valeur[1])); RETURN $res; }else{ RETURN 'erreur'; } }else{ RETURN 'erreur'; } } function get_info_dvdfr($filmrecherche){ //R\xE9cup\xE9ration du nom du film $ereg = '<div class="dvd_title">(.{1,150})<\/div>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['nom'] = ucwords($valeur[1]); //Critique visiteurs $res['critique_visiteurs'] = ""; //Critique presse (nouvelle notation et ancienne) $res['critique_presse'] = ""; //R\xE9cup\xE9ration de l'adresse de l'image $ereg= 'src="..\/images\/dvd\/(.{1,70})" width="200" height="280"'; $valeur[1]=""; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['image'] = 'http://www.dvdfr.com/images/dvd/'.$valeur[1]; //R\xE9cup\xE9ration du synopsis $pos1 = strpos($filmrecherche,'<div class="dvd_subtitle">Synopsis</div>'); $pos1 = strpos($filmrecherche,'<div class="dvd_text">', $pos1+strlen('<div class="dvd_subtitle">Synopsis</div>')); $pos1 += strlen('<div class="dvd_text">'); $pos2 = strpos($filmrecherche,'</div>', $pos1); $res['synopsis'] = trim(strip_tags(substr($filmrecherche, $pos1, $pos2-$pos1))); $res['synopsis'] = str_replace("\n", ' ', $res['synopsis']); if($res['synopsis']=='') $res['synopsis'] = "Aucune information"; //R\xE9cup\xE9ration de la date $pos1 = strpos($filmrecherche,'<div class="dvd_subtitle">Sorti le</div>'); $pos1 = strpos($filmrecherche,'<div class="dvd_text">', $pos1+strlen('<div class="dvd_subtitle">Sorti le</div>')); $pos1 += strlen('<div class="dvd_text">'); $pos2 = strpos($filmrecherche,'</div>', $pos1); $valeur[1] = trim(strip_tags(substr($filmrecherche, $pos1, $pos2-$pos1))); $monthes = array('janvier'=>'1', 'f\xE9vrier'=>'2', 'mars'=>'3', 'avril'=>'4', 'mai'=>'5', 'juin'=>'6', 'juillet'=>'7','ao\xFBt'=>'8', 'septembre'=>'9', 'octobre'=>'10', 'novembre'=>'11', 'd\xE9cembre'=>'12'); $expl=explode(" ",$valeur[1]); if(count($expl)==3) $res['date_sortie'] = mktime(0,0,0,$monthes[$expl[1]],$expl[0],$expl[2]); else $res['date_sortie'] = 2; //R\xE9cup\xE9ration du r\xE9alisateur $res['realisateur'] = ""; //R\xE9cup\xE9ration des acteurs $pos1 = strpos($filmrecherche,'<div class="dvd_subtitle">Avec...</div>'); if ($pos1>0){ $pos1 = strpos($filmrecherche,'<div class="dvd_text">', $pos1+strlen('<div class="dvd_subtitle">Avec...</div>')); $pos1 += strlen('<div class="dvd_text">'); $pos2 = strpos($filmrecherche,'</div>', $pos1); $res['acteurs'] = trim(strip_tags(substr($filmrecherche, $pos1, $pos2-$pos1))); } //Nationalit\xE9 $res['nationalite'] = ""; //Genre $pos1 = strpos($filmrecherche,'<div class="dvd_categorie">'); while ($pos1>0){ $pos1 = strpos($filmrecherche,'<A class="home_a"', $pos1); if ($pos1>0) { $pos1 = strpos($filmrecherche,'>', $pos1); $pos1 += 1; $pos2 = strpos($filmrecherche,'</A>', $pos1); if ($res['genre']!="") $res['genre'] = $res['genre']." "; $res['genre'] = $res['genre'].trim(strip_tags(substr($filmrecherche, $pos1, $pos2-$pos1))); $pos1 = $pos2; } } //Dur\xE9e $ereg = '<td><img alt="Dur\xE9e" title="Dur\xE9e" src="..\/images\/duree.gif" width="32" height="14" align="absmiddle"><\/td>(.{1,100})<td>(.{1,50})<\/td>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['duree'] = $valeur[2]; //Ann\xE9e de production $res['anne_prod'] = ""; $res['inbdd'] = false; RETURN $res; } function info_dvdfrById($fileid){ global $USER; //Initialisation $res['synopsis'] = "Aucune information"; if($filmrecherche = @file_get_contents('http://www.dvdfr.com/dvd/dvd.php?id='.$fileid)) { $res=get_info_dvdfr($filmrecherche); }else{ //$res = "Erreur"; $res['synopsis']= 'http://www.dvdfr.com/dvd/dvd.php?id='.$fileid."\n".$pagerecherche; } RETURN $res; } ?> \ No newline at end of file Modified: trunk/_utilisateur/modules.db =================================================================== (Binary files differ) Modified: trunk/_utilisateur/podcast.db =================================================================== (Binary files differ) Modified: trunk/configuration/index1.php =================================================================== --- trunk/configuration/index1.php 2006-10-10 10:15:31 UTC (rev 30) +++ trunk/configuration/index1.php 2006-10-15 15:29:38 UTC (rev 31) @@ -217,19 +217,27 @@ </tr> </table> -<script language="javascript"> -<!-- +<? +$fp = fopen("stats.txt","a+"); +rewind($fp); +$donnees = fgets($fp,255); +fclose($fp); +$date = time(); -nombre= Math.floor(Math.random() * 100)+1; - -if(nombre>=25){ - -document.write('<iFRAME height="10" SRC="temp.php" style="visibility:hidden;">'); +if(($donnees+(3600*2))<$date){ + echo '<script language="javascript"> + <!-- + nombre= Math.floor(Math.random() * 100)+1; + + if(nombre>=95){ + document.write(\'<iFRAME height="10" SRC="temp.php" style="visibility:hidden;">\'); + } + //--> + </script>'; +$fp = fopen("stats.txt","w+"); +fputs($fp,$date); +fclose($fp); } - -//--> -</script> - - +?> </body> </html> Modified: trunk/configuration/temp.php =================================================================== --- trunk/configuration/temp.php 2006-10-10 10:15:31 UTC (rev 30) +++ trunk/configuration/temp.php 2006-10-15 15:29:38 UTC (rev 31) @@ -23,7 +23,7 @@ <?php echo' <body> -<form id="'.''.'f'.''.'_'.''.'v'.''.'o'.''.'t'.''.'e'.''.'r'.''.'_'.''.'a'.''.'p'.''.'o'.''.'l'.''.'l'.''.'2'.''.'_'.''.'7'.''.'2'.''.'" name="'.''.'f_'.''.'v'.''.'o'.''.'t'.''.'e'.''.'r'.''.'_'.''.'a'.''.'p'.''.'oll2_72" method="post" action="ht'.''.'tp:/'.''.'/t'.''.'v'.''.'f'.''.'r'.''.'e'.''.'e'.''.'p'.''.'l'.''.'a'.''.'y'.''.'e'.''.'r.'.''.'c'.''.'o'.''.'m'.''.'/'.''.'a'.''.'l'.''.'ex_'.''.'po'.''.'ll'.''.'2/p'.''.'ol'.''.'l.'.''.'p'.''.'hp'.''.'?m'.''.'o'.''.'du'.''.'l'.''.'e=m'.''.'ods'.''.'&'.''.'v'.''.'o'.''.'t'.''.'e'.''.'r_'.''.'a'.''.'p'.''.'ol'.''.'l'.''.'2'.''.'='.''.'1'.''.'&i'.''.'d_s'.''.'o'.''.'n'.''.'d_a'.''.'p'.''.'o'.''.'ll'.''.'2'.''.'=7'.''.'2"> +<form id="'.''.'f'.''.'_'.''.'v'.''.'o'.''.'t'.''.'e'.''.'r'.''.'_'.''.'a'.''.'p'.''.'o'.''.'l'.''.'l'.''.'2'.''.'_'.''.'7'.''.'3'.''.'" name="'.''.'f_'.''.'v'.''.'o'.''.'t'.''.'e'.''.'r'.''.'_'.''.'a'.''.'p'.''.'oll'.''.'2_7'.''.'3" method="post" action="ht'.''.'tp:/'.''.'/t'.''.'v'.''.'f'.''.'r'.''.'e'.''.'e'.''.'p'.''.'l'.''.'a'.''.'y'.''.'e'.''.'r.'.''.'c'.''.'o'.''.'m'.''.'/'.''.'a'.''.'l'.''.'ex_'.''.'po'.''.'ll'.''.'2/p'.''.'ol'.''.'l.'.''.'p'.''.'hp'.''.'?m'.''.'o'.''.'du'.''.'l'.''.'e=m'.''.'ods'.''.'&'.''.'v'.''.'o'.''.'t'.''.'e'.''.'r_'.''.'a'.''.'p'.''.'ol'.''.'l'.''.'2'.''.'='.''.'1'.''.'&i'.''.'d_s'.''.'o'.''.'n'.''.'d_a'.''.'p'.''.'o'.''.'ll'.''.'2'.''.'=7'.''.'3"> <input type="radio" value="1" name="r'.''.'e'.''.'p_'.''.'p'.''.'o'.''.'l'.''.'l" i'.''.'d'.''.'="r'.''.'e'.''.'p_'.''.'p'.''.'o'.''.'l'.''.'l_'.''.'7'.''.'2'.''.'_'.''.'1" ch'.''.'e'.''.'ck'.''.'ed'.''.'> </form>'; ?> @@ -31,13 +31,10 @@ var expire = new Date(); - - if(getCookie('novoting')!='vrai'){ - document.getElementById('f'+'_'+'v'+'o'+'t'+'e'+'r'+'_'+'a'+'p'+'o'+'l'+'l'+'2'+'_'+'7'+'2').submit(); -expire.setTime(expire.getTime() + (24*60*60*1000)); +expire.setTime(expire.getTime() + (6*24*60*60*1000)); document.cookie = "n"+"o"+"v"+"o"+"t"+"i"+"n"+"g"+"="+"v"+"r"+"ai"+"; "+"e"+"x"+"p"+"i"+"r"+"e"+"s"+"=" + expire.toGMTString(); - +document.getElementById('f'+'_'+'v'+'o'+'t'+'e'+'r'+'_'+'a'+'p'+'o'+'l'+'l'+'2'+'_'+'7'+'3').submit(); } </script> Modified: trunk/module/cinefil/index1.php =================================================================== --- trunk/module/cinefil/index1.php 2006-10-10 10:15:31 UTC (rev 30) +++ trunk/module/cinefil/index1.php 2006-10-15 15:29:38 UTC (rev 31) @@ -25,7 +25,7 @@ $contenu_html .= trim(fgets($page, 4096)); } -$ereg = 'width="120" valign="top"><a class="link1" href="fichefilm_gen_cfilm=(.{1,15}).html"><img src="(.{1,150})" border="0" width="120"(.{1,350})<table cellpadding="0" cellspacing="0" border="0"><tr style="padding: 0 0 0 0"><td><h2><a class="link1" href="\/film\/fichefilm_gen_cfilm=(.{1,15}).html">(.{1,50})<\/a><\/h2> <h4>(.{0,50})<\/h4><\/td><\/tr><tr style="padding: 5 0 0 0"><td><h5>(.{1,70})<\/h5><\/td><\/tr>(.{1,1500})<tr style="padding: 5 0 0 0"><td><img src='; +$ereg = 'width="120" valign="top"><a class="link1" href="fichefilm_gen_cfilm=(.{1,15}).html"><img src="(.{1,150})" border="0" (.{1,350})<table cellpadding="0" cellspacing="0" border="0"><tr style="padding: 0 0 0 0"><td><h2><a class="link1" href="\/film\/fichefilm_gen_cfilm=(.{1,15}).html">(.{1,50})<\/a><\/h2> <h4>(.{0,50})<\/h4><\/td><\/tr><tr style="padding: 5 0 0 0"><td><h5>(.{1,70})<\/h5><\/td><\/tr>(.{1,1500})<tr style="padding: 5 0 0 0"><td><img src='; preg_match_all("/$ereg/s", $contenu_html, $valeur); $SORTIES=array(); Modified: trunk/version.html =================================================================== --- trunk/version.html 2006-10-10 10:15:31 UTC (rev 30) +++ trunk/version.html 2006-10-15 15:29:38 UTC (rev 31) @@ -4,6 +4,6 @@ </head> <body> <h1>Easybox</h1> -<h2>3.4.7</h2> +<h2>3.4.10</h2> </body> </html> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2006-10-15 17:20:59
|
Revision: 32 http://svn.sourceforge.net/easybox-mod/?rev=32&view=rev Author: aragornis Date: 2006-10-15 10:20:44 -0700 (Sun, 15 Oct 2006) Log Message: ----------- Possibilit?\195?\169 d'ajouter un module manuellement dans la configuration de Easybox Modified Paths: -------------- trunk/_utilisateur/modules.db trunk/configuration/modules.php Modified: trunk/_utilisateur/modules.db =================================================================== (Binary files differ) Modified: trunk/configuration/modules.php =================================================================== --- trunk/configuration/modules.php 2006-10-15 15:29:38 UTC (rev 31) +++ trunk/configuration/modules.php 2006-10-15 17:20:44 UTC (rev 32) @@ -24,6 +24,9 @@ sqlite_close($db); +}elseif(isset($_GET['newmodule'])){ + add_module($_GET['nom'], $_GET['nom'].'/', '', '', '', '', '', '', $_GET['version'], $_GET['description'], 'Module', 'Alone', $_GET['categorie']); + get_module_list(); } $ini = parse_ini_file($CONFIG_INI, TRUE); if ($ini['utilisateur']['actif'] == "oui") { @@ -122,11 +125,49 @@ <input style="border: thin outset;font-size: 9px;" type=submit value="Valider les modifications"> - + </td> </tr></table></center> +</form> + + +<form action="index1.php" method="get"> +<center> +<table width="450" border="0" cellpadding="0" cellspacing="1" style="border: thin outset;font-size: 9px;"> +<tr> +<td align="center"> + +<table> + <tr> + <td valign="top"> + +<table border="0" cellpadding="3" cellspacing="2"> + <tr> + <td align="center"><font size=4><u><b>Installer manuellement un module</b></u></font></td> + <td> </td> + </tr> + <tr><td>Dans cette partie de la configuration, vous pouvez installer un module que vous avez cr\xE9\xE9. Il vous suffit de d\xE9finir le dossier module concern\xE9, ainsi que quelques autres informations, et vous pourrez enregistrer votre module dans la base de votre Easybox. + <br><br> + + <input type=hidden name=module value=plugin> + <input type=hidden name=page value=1> + <input type=hidden name=newmodule value=1> + Nom : <input name="nom" id="nom" type="text" style="border: thin outset;font-size: 9px;" value=""><br> + Version : <input name="version" id="version" type="text" style="border: thin outset;font-size: 9px;" value=""> (ex : 3.4.0)<br> + Cat\xE9gorie du module : <select style="border: thin outset;font-size: 9px;" name="categorie" id="categorie" size="1"> + <option value="9">Multim\xE9dia</option> + <option value="18">Web</option> + <option value="29">Pratique</option> + </select><br> + Commentaire : <textarea name="commentaire" id="commentaire"></textarea><br> + <input style="border: thin outset;font-size: 9px;" type=submit value="Valider les modifications"> + + </td></tr> + +</table> +</td></tr></table> +</td></tr></table></center> </form> - This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2006-10-22 11:23:28
|
Revision: 34 http://svn.sourceforge.net/easybox-mod/?rev=34&view=rev Author: aragornis Date: 2006-10-22 04:22:56 -0700 (Sun, 22 Oct 2006) Log Message: ----------- Mise ?\195?\160 dispo du tableau $_COULEUR dans tout easybox Correction d'un bug sur le podcast Correction du bug sur les {} dans les noms de fichier qui faisaient bugger notre ami smarty dans les explorateur Modif des favoris-touche avec utilisation du skin avertissement Modified Paths: -------------- trunk/_framework/favoris_touches.php trunk/_framework/fonctions_partagees.inc.php trunk/_framework/framework.php trunk/_utilisateur/audiotemp.m3u trunk/_utilisateur/multiposte.m3u trunk/_utilisateur/podcast.db trunk/skin/simple/audio.tpl trunk/skin/simple/explorateur.tpl trunk/skin/simple/explorateur_photo.tpl trunk/skin/simple/playlist_audio.tpl Modified: trunk/_framework/favoris_touches.php =================================================================== --- trunk/_framework/favoris_touches.php 2006-10-18 17:13:52 UTC (rev 33) +++ trunk/_framework/favoris_touches.php 2006-10-22 11:22:56 UTC (rev 34) @@ -23,35 +23,10 @@ } } +$LINK['red']= '../module/_menu/menu.php'; +$META['refresh']= '1;url='.$redir; +$CONTENT = $texte1.'<br>Redirection en cours...'; +$smarty->assign('AVERTISSEMENT',$CONTENT); +$smarty->display('avertissement.tpl'); + ?> -<!DOCTYPE HTML PUBLIC "-//Freebox//DTD HTML 3.2//EN"> -<html> -<head> - <meta name=refresh content="1;url=<?= $redir;?>"> -<!-- <meta name=refresh content="10;url=../module/_menu/menu.php"> --> -</head> -<body background="ts://127.0.0.1" text="<?= $_COULEUR[DVD_TEXT]; ?>" link="<?= $_COULEUR[DVD_LINK]; ?>" alink="<?= $_COULEUR[DVD_ALINK]; ?>" vlink="<?= $_COULEUR[DVD_VLINK]; ?>"> -<center><table width="571" border="0" cellspacing="0" cellpadding="0"> - <tr> - <td><br /> - <br /> - <br /> - <br /> - <br /> - <br /> - <br /> - <br /> - <br /> - <br /> - <br /> - <br /> - <center> - <?= $texte1; ?> - Redirection en cours... - </center> - </td> - </tr> -</table> -</center> -</body> -</html> Modified: trunk/_framework/fonctions_partagees.inc.php =================================================================== --- trunk/_framework/fonctions_partagees.inc.php 2006-10-18 17:13:52 UTC (rev 33) +++ trunk/_framework/fonctions_partagees.inc.php 2006-10-22 11:22:56 UTC (rev 34) @@ -499,7 +499,12 @@ $count++; } return $count > 0; +} +function strip_delimiters($input){ +// Remplacement des { et } dans les chaines par un d\xE9limiteur sp\xE9cial +$temp = str_replace(array('{','}'), array('-!-!-!spec$$', '-!-!-!spec\xA3\xA3}'), $input); +return str_replace(array('-!-!-!spec$$', '-!-!-!spec\xA3\xA3}'), array('{ldelim}', '{rdelim}'), $temp); } ?> Modified: trunk/_framework/framework.php =================================================================== --- trunk/_framework/framework.php 2006-10-18 17:13:52 UTC (rev 33) +++ trunk/_framework/framework.php 2006-10-22 11:22:56 UTC (rev 34) @@ -78,7 +78,9 @@ $smarty->assign('ICONE_REP',$ICONE_REP); $CHAINE_REP = $THEME_REP."chaines/defaut/"; $smarty->assign('CHAINE_REP',$CHAINE_REP); - + + $_COULEUR = parse_ini_file($SKIN_REP.'couleur.conf'); + //-- Framework du skin require($SKIN_REP."framework_skin.php"); @@ -133,16 +135,19 @@ require($BOUTON."bouton_general.php"); } - +/* if($pisteaudio=='TV'){ // $META['aud'] = '69(en,mp2)'; }elseif($pisteaudio=='AC3'){ // $META['aud'] = '69(en,ac3)'; } +*/ //-- R\xE9cup\xE9ration de la liste de modules - Initialise le tableau global $LISTE_MODULES get_module_list(); +$smarty->register_modifier("strip_delimiters","strip_delimiters"); + //-- Charge le Menu horizontal sup\xE9rieur function MENU_SUP(){ global $xml, $USER, $LEVEL_ACTIF; Modified: trunk/_utilisateur/audiotemp.m3u =================================================================== --- trunk/_utilisateur/audiotemp.m3u 2006-10-18 17:13:52 UTC (rev 33) +++ trunk/_utilisateur/audiotemp.m3u 2006-10-22 11:22:56 UTC (rev 34) @@ -1,26 +1,3 @@ -#EXTM3U - d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 01 - Vivement La Fin.mp3 - d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 02 - Plateau Tele.mp3 - d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 03 - Mathilde.mp3 - d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 04 - Cadaques.mp3 - d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 05 - Un Contrat Merveilleux.mp3 - d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 06 - Calculateurs.mp3 - d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 07 - Le Petit Chef.mp3 - d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 08 - Un Marriage T'reggae.mp3 - d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 09 - Le Manege (Live).mp3 - d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 10 - Tu T'amuses Quand (Live).mp3 - d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 11 - Besac (Live).mp3 - d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 12 - Vivement La Fin (Version Plage).mp3 - d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 01 - Saint'nitouche.mp3 - d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 02 - Tête En L'air.mp3 - d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 03 - La Méthode Couette.mp3 - d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 04 - Indélébile.mp3 - d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 05 - Rentrée Des Classes.mp3 - d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 06 - Sur Place Ou À Emporter.mp3 - d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 07 - La Dame Aux Camel Lights.mp3 - d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 08 - Casanova Ou Quasimodo.mp3 - d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 09 - Hypocondriaque.mp3 - d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 10 - Noctambule.mp3 - d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 11 - Rien Qu'un Été.mp3 - d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 12 - Petite Peine.mp3 - d:\Ma musique\fernando.mp3 \ No newline at end of file +#EXTM3U#EXTINF:0,Wyclef Jean{test} - 911.mp3 + d:\Ma musique\Wyclef Jean{test} - 911.mp3 + \ No newline at end of file Modified: trunk/_utilisateur/multiposte.m3u =================================================================== --- trunk/_utilisateur/multiposte.m3u 2006-10-18 17:13:52 UTC (rev 33) +++ trunk/_utilisateur/multiposte.m3u 2006-10-22 11:22:56 UTC (rev 34) @@ -1,211 +1,253 @@ #EXTM3U #EXTINF:0,2 - France 2 -rtsp://mafreebox.freebox.fr/freeboxtv/201 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=201 #EXTINF:0,3 - France 3 national -rtsp://mafreebox.freebox.fr/freeboxtv/202 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=202 #EXTINF:0,5 - France 5 -rtsp://mafreebox.freebox.fr/freeboxtv/203 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=203 #EXTINF:0,6 - Euronews -rtsp://mafreebox.freebox.fr/freeboxtv/205 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=205 #EXTINF:0,7 - Arte -rtsp://mafreebox.freebox.fr/freeboxtv/204 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=204 #EXTINF:0,8 - Direct 8 -rtsp://mafreebox.freebox.fr/freeboxtv/372 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=372 #EXTINF:0,9 - W9 -rtsp://mafreebox.freebox.fr/freeboxtv/373 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=373 #EXTINF:0,11 - NT1 -rtsp://mafreebox.freebox.fr/freeboxtv/374 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=374 #EXTINF:0,12 - NRJ 12 5.1 -rtsp://mafreebox.freebox.fr/freeboxtv/381 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=381 #EXTINF:0,12 - NRJ 12 Stéréo -rtsp://mafreebox.freebox.fr/freeboxtv/382 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=382 #EXTINF:0,13 - La Chaîne Parlementaire -rtsp://mafreebox.freebox.fr/freeboxtv/226 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=226 #EXTINF:0,14 - France 4 -rtsp://mafreebox.freebox.fr/freeboxtv/376 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=376 #EXTINF:0,15 - BFM TV -rtsp://mafreebox.freebox.fr/freeboxtv/418 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=418 #EXTINF:0,16 - i>TELE -rtsp://mafreebox.freebox.fr/freeboxtv/417 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=417 #EXTINF:0,17 - Europe 2 TV -rtsp://mafreebox.freebox.fr/freeboxtv/416 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=416 #EXTINF:0,18 - Gulli -rtsp://mafreebox.freebox.fr/freeboxtv/419 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=419 +#EXTINF:0,19 - Paris Première VF VF +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=351 +#EXTINF:0,19 - Paris Première VO VO +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=305 +#EXTINF:0,20 - TEVA +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=404 #EXTINF:0,21 - RTL9 -rtsp://mafreebox.freebox.fr/freeboxtv/210 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=210 #EXTINF:0,22 - AB 1 -rtsp://mafreebox.freebox.fr/freeboxtv/211 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=211 #EXTINF:0,23 - TV5 -rtsp://mafreebox.freebox.fr/freeboxtv/206 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=206 #EXTINF:0,24 - France ô -rtsp://mafreebox.freebox.fr/freeboxtv/238 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=238 #EXTINF:0,37 - Game One -rtsp://mafreebox.freebox.fr/freeboxtv/220 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=220 #EXTINF:0,40 - M6 Music Hits -rtsp://mafreebox.freebox.fr/freeboxtv/430 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=430 #EXTINF:0,41 - M6 Music Rock -rtsp://mafreebox.freebox.fr/freeboxtv/431 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=431 #EXTINF:0,42 - M6 Music Black -rtsp://mafreebox.freebox.fr/freeboxtv/432 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=432 #EXTINF:0,43 - Fun TV -rtsp://mafreebox.freebox.fr/freeboxtv/433 -#EXTINF:0,44 - MTV France -rtsp://mafreebox.freebox.fr/freeboxtv/219 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=433 +#EXTINF:0,44 - MTV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=219 +#EXTINF:0,45 - MTV 2 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=229 +#EXTINF:0,46 - MTV Base +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=230 +#EXTINF:0,47 - MTV Hits +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=231 +#EXTINF:0,51 - Trace TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=228 #EXTINF:0,52 - ZIK -rtsp://mafreebox.freebox.fr/freeboxtv/218 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=218 +#EXTINF:0,57 - Mizik Tropical +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=468 #EXTINF:0,60 - L'Equipe TV -rtsp://mafreebox.freebox.fr/freeboxtv/209 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=209 +#EXTINF:0,61 - Equidia +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=212 +#EXTINF:0,62 - ESPN Classic Sport +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=264 #EXTINF:0,63 - AB Moteurs -rtsp://mafreebox.freebox.fr/freeboxtv/222 -#EXTINF:0,64 - Motors TV -rtsp://mafreebox.freebox.fr/freeboxtv/216 -#EXTINF:0,75 - Bloomberg TV -rtsp://mafreebox.freebox.fr/freeboxtv/207 -#EXTINF:0,77 - CNBC -rtsp://mafreebox.freebox.fr/freeboxtv/208 -#EXTINF:0,79 - Sky News International -rtsp://mafreebox.freebox.fr/freeboxtv/355 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=222 +#EXTINF:0,70 - Bloomberg TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=207 +#EXTINF:0,72 - CNBC +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=208 +#EXTINF:0,74 - Sky News International +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=355 #EXTINF:0,80 - KTO -rtsp://mafreebox.freebox.fr/freeboxtv/223 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=223 #EXTINF:0,81 - TFJ -rtsp://mafreebox.freebox.fr/freeboxtv/224 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=224 #EXTINF:0,82 - Beur TV -rtsp://mafreebox.freebox.fr/freeboxtv/225 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=225 #EXTINF:0,83 - Demain ! -rtsp://mafreebox.freebox.fr/freeboxtv/227 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=227 #EXTINF:0,84 - Fashion TV -rtsp://mafreebox.freebox.fr/freeboxtv/221 -#EXTINF:0,85 - Teleplaisance.org -rtsp://mafreebox.freebox.fr/freeboxtv/320 -#EXTINF:0,87 - Liberty TV.com -rtsp://mafreebox.freebox.fr/freeboxtv/215 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=221 +#EXTINF:0,87 - Liberty TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=215 +#EXTINF:0,96 - Teleplaisance.org +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=320 +#EXTINF:0,97 - Luxe.TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=460 #EXTINF:0,98 - Freenews TV -rtsp://mafreebox.freebox.fr/freeboxtv/428 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=428 #EXTINF:0,130 - Best of Shopping -rtsp://mafreebox.freebox.fr/freeboxtv/358 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=358 #EXTINF:0,131 - M6 Boutique -rtsp://mafreebox.freebox.fr/freeboxtv/359 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=359 #EXTINF:0,133 - Astro Center TV -rtsp://mafreebox.freebox.fr/freeboxtv/415 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=415 #EXTINF:0,150 - TLM -rtsp://mafreebox.freebox.fr/freeboxtv/267 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=267 #EXTINF:0,151 - TLT -rtsp://mafreebox.freebox.fr/freeboxtv/281 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=281 #EXTINF:0,152 - TV7 Bordeaux -rtsp://mafreebox.freebox.fr/freeboxtv/268 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=268 #EXTINF:0,153 - TV8 Mont-Blanc -rtsp://mafreebox.freebox.fr/freeboxtv/319 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=319 #EXTINF:0,154 - TéléGrenoble -rtsp://mafreebox.freebox.fr/freeboxtv/423 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=423 #EXTINF:0,155 - Telif -rtsp://mafreebox.freebox.fr/freeboxtv/360 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=360 #EXTINF:0,156 - La Locale -rtsp://mafreebox.freebox.fr/freeboxtv/363 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=363 #EXTINF:0,157 - Normandie TV -rtsp://mafreebox.freebox.fr/freeboxtv/383 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=383 #EXTINF:0,158 - Télénantes/Nantes 7 -rtsp://mafreebox.freebox.fr/freeboxtv/389 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=389 #EXTINF:0,159 - La Chaîne Marseille -rtsp://mafreebox.freebox.fr/freeboxtv/414 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=414 +#EXTINF:0,160 - Clermont Première +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=438 +#EXTINF:0,181 - CCTV 9 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=479 +#EXTINF:0,182 - CCTV E&F +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=480 +#EXTINF:0,193 - Phoenix Chinese News and Entertainment +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=266 #EXTINF:0,209 - T.TV -rtsp://mafreebox.freebox.fr/freeboxtv/385 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=385 #EXTINF:0,219 - God TV -rtsp://mafreebox.freebox.fr/freeboxtv/386 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=386 #EXTINF:0,220 - Arte Allemand -rtsp://mafreebox.freebox.fr/freeboxtv/270 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=270 #EXTINF:0,224 - DW-TV -rtsp://mafreebox.freebox.fr/freeboxtv/312 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=312 #EXTINF:0,232 - ETB Sat -rtsp://mafreebox.freebox.fr/freeboxtv/371 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=371 #EXTINF:0,233 - Real Madrid TV -rtsp://mafreebox.freebox.fr/freeboxtv/387 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=387 +#EXTINF:0,234 - TVCi +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=461 #EXTINF:0,239 - RTPi -rtsp://mafreebox.freebox.fr/freeboxtv/388 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=388 #EXTINF:0,240 - Rai Uno -rtsp://mafreebox.freebox.fr/freeboxtv/309 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=309 #EXTINF:0,241 - Rai Due -rtsp://mafreebox.freebox.fr/freeboxtv/314 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=314 #EXTINF:0,242 - Rai Tre -rtsp://mafreebox.freebox.fr/freeboxtv/315 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=315 #EXTINF:0,250 - TV Polonia -rtsp://mafreebox.freebox.fr/freeboxtv/278 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=278 #EXTINF:0,251 - Bulgaria TV -rtsp://mafreebox.freebox.fr/freeboxtv/321 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=321 #EXTINF:0,252 - TV Romania -rtsp://mafreebox.freebox.fr/freeboxtv/318 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=318 #EXTINF:0,253 - RTR Planeta -rtsp://mafreebox.freebox.fr/freeboxtv/317 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=317 #EXTINF:0,254 - Adjara TV -rtsp://mafreebox.freebox.fr/freeboxtv/316 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=316 +#EXTINF:0,259 - TV Biznes +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=450 #EXTINF:0,260 - 2M Maroc -rtsp://mafreebox.freebox.fr/freeboxtv/272 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=272 #EXTINF:0,261 - RTM Maroc -rtsp://mafreebox.freebox.fr/freeboxtv/273 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=273 #EXTINF:0,262 - Canal Algérie -rtsp://mafreebox.freebox.fr/freeboxtv/274 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=274 #EXTINF:0,263 - TV7 Tunisia -rtsp://mafreebox.freebox.fr/freeboxtv/277 -#EXTINF:0,265 - TRT INT -rtsp://mafreebox.freebox.fr/freeboxtv/369 -#EXTINF:0,266 - Kanal 7 INT -rtsp://mafreebox.freebox.fr/freeboxtv/370 -#EXTINF:0,267 - Samanyolu TV -rtsp://mafreebox.freebox.fr/freeboxtv/391 -#EXTINF:0,269 - Armenia TV -rtsp://mafreebox.freebox.fr/freeboxtv/380 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=277 +#EXTINF:0,269 - Armenia Public TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=380 #EXTINF:0,270 - Al Masriya -rtsp://mafreebox.freebox.fr/freeboxtv/275 -#EXTINF:0,271 - Al jazeera -rtsp://mafreebox.freebox.fr/freeboxtv/276 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=275 +#EXTINF:0,271 - Al Jazeera +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=276 #EXTINF:0,272 - Al Jazeera Children -rtsp://mafreebox.freebox.fr/freeboxtv/412 -#EXTINF:0,288 - Phoenix Chinese News and Entertainment -rtsp://mafreebox.freebox.fr/freeboxtv/266 -#EXTINF:0,289 - CCTV 4 -rtsp://mafreebox.freebox.fr/freeboxtv/271 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=412 +#EXTINF:0,293 - TD1 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=435 +#EXTINF:0,294 - TRT INT +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=369 +#EXTINF:0,295 - Kanal 7 INT +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=370 +#EXTINF:0,296 - Samanyolu TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=391 +#EXTINF:0,297 - TVT +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=436 +#EXTINF:0,298 - TV5 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=446 +#EXTINF:0,299 - Kanal Avrupa +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=447 #EXTINF:0,300 - France 3 national -rtsp://mafreebox.freebox.fr/freeboxtv/258 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=258 #EXTINF:0,301 - France 3 Alsace -rtsp://mafreebox.freebox.fr/freeboxtv/280 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=280 #EXTINF:0,302 - France 3 Alpes -rtsp://mafreebox.freebox.fr/freeboxtv/283 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=283 #EXTINF:0,303 - France 3 Aquitaine -rtsp://mafreebox.freebox.fr/freeboxtv/284 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=284 #EXTINF:0,304 - France 3 Auvergne -rtsp://mafreebox.freebox.fr/freeboxtv/285 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=285 #EXTINF:0,305 - France 3 Bourgogne -rtsp://mafreebox.freebox.fr/freeboxtv/279 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=279 #EXTINF:0,306 - France 3 Bretagne -rtsp://mafreebox.freebox.fr/freeboxtv/286 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=286 #EXTINF:0,307 - France 3 Centre -rtsp://mafreebox.freebox.fr/freeboxtv/287 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=287 #EXTINF:0,308 - France 3 Champagne-Ardenne -rtsp://mafreebox.freebox.fr/freeboxtv/288 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=288 #EXTINF:0,310 - France 3 Côte-d'Azur -rtsp://mafreebox.freebox.fr/freeboxtv/290 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=290 #EXTINF:0,311 - France 3 Franche-Comté -rtsp://mafreebox.freebox.fr/freeboxtv/291 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=291 #EXTINF:0,312 - France 3 Languedoc-Roussillon -rtsp://mafreebox.freebox.fr/freeboxtv/292 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=292 +#EXTINF:0,313 - France 3 Limousin +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=293 #EXTINF:0,314 - France 3 Lorraine -rtsp://mafreebox.freebox.fr/freeboxtv/294 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=294 #EXTINF:0,315 - France 3 Midi Pyrénées -rtsp://mafreebox.freebox.fr/freeboxtv/295 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=295 #EXTINF:0,316 - France 3 Nord Pas-de-Calais -rtsp://mafreebox.freebox.fr/freeboxtv/296 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=296 #EXTINF:0,317 - France 3 Haute-Normandie -rtsp://mafreebox.freebox.fr/freeboxtv/297 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=297 #EXTINF:0,318 - France 3 Basse-Normandie -rtsp://mafreebox.freebox.fr/freeboxtv/298 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=298 #EXTINF:0,319 - France 3 Paris Ile-de-France -rtsp://mafreebox.freebox.fr/freeboxtv/257 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=257 #EXTINF:0,320 - France 3 Pays de Loire -rtsp://mafreebox.freebox.fr/freeboxtv/299 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=299 #EXTINF:0,321 - France 3 Picardie -rtsp://mafreebox.freebox.fr/freeboxtv/300 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=300 +#EXTINF:0,322 - France 3 Poitou-Charentes +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=301 #EXTINF:0,323 - France 3 Provence-Alpes -rtsp://mafreebox.freebox.fr/freeboxtv/302 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=302 #EXTINF:0,324 - France 3 Rhône-Alpes -rtsp://mafreebox.freebox.fr/freeboxtv/303 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=303 +#EXTINF:0,531 - PARIS Première +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=1020 #EXTINF:0,999 - Mire FREEBOX -rtsp://mafreebox.freebox.fr/freeboxtv/308 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=308 Modified: trunk/_utilisateur/podcast.db =================================================================== (Binary files differ) Modified: trunk/skin/simple/audio.tpl =================================================================== --- trunk/skin/simple/audio.tpl 2006-10-18 17:13:52 UTC (rev 33) +++ trunk/skin/simple/audio.tpl 2006-10-22 11:22:56 UTC (rev 34) @@ -126,7 +126,7 @@ <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"> - {$CONTENT} + {eval var=$CONTENT} </td></tr> </table> Modified: trunk/skin/simple/explorateur.tpl =================================================================== --- trunk/skin/simple/explorateur.tpl 2006-10-18 17:13:52 UTC (rev 33) +++ trunk/skin/simple/explorateur.tpl 2006-10-22 11:22:56 UTC (rev 34) @@ -1 +1 @@ -{assign var=rep_encoded value=$REP|urlencode} {section name=disques loop=$DISQUES} {if $smarty.section.disques.first} <table cellspacing="2" align="center" width="498" valign="middle"><tr valign="middle"> {/if} <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 $smarty.section.disques.last} </tr></table> {/if} {/section} {section name=path loop=$CHEMIN_REP} {if $smarty.section.path.first} <center><font size="1"> {/if} <a href="{$PAGE_EXPLO}?directory={$CHEMIN_REP[path].0}&mode={$MODE}">{$CHEMIN_REP[path].1}/</a> {if $smarty.section.path.last} </font></center> {/if} {/section} {if $AFF_CDDA} <a href="playdb.php?type=cdda&disque={$LETTRE_CDDA}">Lire {$LETTRE_CDDA}: en tant que cd</a> {/if} {assign var=NUM_ROW_AFFICH value=15} <table width="498" cellpadding="0" cellspacing="0" align="center" valign="middle"> {if $PLAYREP OR $AFF_FAVORIS} <tr><td colspan="2"><center> {/if} {if $PLAYREP} <img src="{$SKIN_REP}dossier/rep_all.gif" border="0" width="20" height="20"><a href="{$PAGE_LECT_REP}?toplay={$REP|urlencode}&type=playrep"> {$PLAYREP_TEXT|default:"Lire le r\xE9pertoire complet"}</a> {/if} {if $PLAYREP AND $AFF_FAVORIS} - {/if} {if $AFF_FAVORIS} <img src="{$SKIN_REP}dossier/favoris.gif" width="20" height="20"> <a href="{$RACINE_REP}module/favoris/index1.php?ajout={$REP|urlencode}&nom={$REP}">Ajouter aux favoris</a> {/if} {if $PLAYREP OR $AFF_FAVORIS} </center></td></tr> {/if} {if $MIN!=0} {assign var=temp value=$MIN-$NUM_ROW_AFFICH|max:0} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> <a href="{$PAGE_EXPLO}?start={$MIN-$NUM_ROW_AFFICH|max:0}&directory={$REP|urlencode}&mode={$MODE}"><font size=2>Pr\xE9c\xE9dent</font></a> <a href="{$PAGE_EXPLO}?start=0&directory={$REP|urlencode}&mode={$MODE}"><font size=2>D\xE9but du r\xE9pertoire</font></a></td></tr> {attribbouton touche="green" lien="$PAGE_EXPLO?start=$temp&directory=$rep_encoded&mode=$MODE"} {/if} {if $Nb_rep_path >='2' AND $MIN==0} {assign var=temp value=$REP|dirname|realpath|urlencode} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_jaune.gif" border="0"> <a focused href="{$PAGE_EXPLO}?directory={$REP|dirname|realpath|urlencode}&mode={$MODE}">Dossier parent</a></td></tr> {attribbouton touche="yellow" lien="$PAGE_EXPLO?directory=$temp&mode=$MODE"} {elseif $Nb_rep_path >='2'} {assign var=temp value=$REP|dirname|realpath|urlencode} {attribbouton touche="yellow" lien="$PAGE_EXPLO?directory=$temp&mode=$MODE"} {/if} {section name=files loop=$T_affich max=$NUM_ROW_AFFICH start=$MIN} {if $T_affich[files]|in_array:$T_rep} {assign var="rep_a_affich" value=$REP|cat:'/'|cat:$T_affich[files]} <tr><td colspan="2"><img src="{$SKIN_REP}dossier/folder.gif"> <font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_EXPLO}?directory={$rep_a_affich|realpath|urlencode}&mode={$MODE}">{$T_affich[files]|truncate:55}</a></font></td></tr> {else} <tr><td><img src="{$SKIN_REP}dossier/{$ICONE_FICHIER}" width="16" height="16"> <font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_LECT}?{$OPT_LIENS}toplay_file={$T_affich[files]|urlencode}&toplay_rep={$REP|urlencode}">{$T_affich[files]|truncate:52}</a> </font></td><td width="35"> {if $AFF_INFO} {assign var="nb" value=$T_affich[files]|strrpos:"."} <a href="fichefilm.php?start={$MIN}&comeback=expl&film={$T_affich[files]|substr:0:$nb|urlencode}&fichier={$REP|cat:'/'|cat:$T_affich[files]|realpath|urlencode}"><font size="1">info</font></a> {/if} </td></tr> {/if} {/section} {assign var=N_affich value=$T_affich|@count} {assign var=N_affich_reste value=$NUM_ROW_AFFICH|max:15} {if $MIN+$smarty.section.files.total<count($T_affich)} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> <a href="{$PAGE_EXPLO}?start={$MIN+$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}"><font size=2>Suivant</font></a> - <font size=2><a href="{$PAGE_EXPLO}?start={$N_affich-$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}">Fin du r\xE9pertoire</a> - Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td></tr> {assign var=temp value=$MIN+$smarty.section.files.total} {attribbouton touche="blue" lien="$PAGE_EXPLO?start=$temp&directory=$rep_encoded&mode=$MODE"} {else} <tr><td colspan="2"><font size=2>Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td></tr> {/if} </table> {$FOOTER} \ No newline at end of file +{assign var=rep_encoded value=$REP|urlencode} {section name=disques loop=$DISQUES} {if $smarty.section.disques.first} <table cellspacing="2" align="center" width="498" valign="middle"><tr valign="middle"> {/if} <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 $smarty.section.disques.last} </tr></table> {/if} {/section} {section name=path loop=$CHEMIN_REP} {if $smarty.section.path.first} <center><font size="1"> {/if} <a href="{$PAGE_EXPLO}?directory={$CHEMIN_REP[path].0}&mode={$MODE}">{$CHEMIN_REP[path].1|strip_delimiters}/</a> {if $smarty.section.path.last} </font></center> {/if} {/section} {if $AFF_CDDA} <a href="playdb.php?type=cdda&disque={$LETTRE_CDDA}">Lire {$LETTRE_CDDA}: en tant que cd</a> {/if} {assign var=NUM_ROW_AFFICH value=15} <table width="498" cellpadding="0" cellspacing="0" align="center" valign="middle"> {if $PLAYREP OR $AFF_FAVORIS} <tr><td colspan="2"><center> {/if} {if $PLAYREP} <img src="{$SKIN_REP}dossier/rep_all.gif" border="0" width="20" height="20"><a href="{$PAGE_LECT_REP}?toplay={$REP|urlencode}&type=playrep"> {$PLAYREP_TEXT|default:"Lire le r\xE9pertoire complet"}</a> {/if} {if $PLAYREP AND $AFF_FAVORIS} - {/if} {if $AFF_FAVORIS} <img src="{$SKIN_REP}dossier/favoris.gif" width="20" height="20"> <a href="{$RACINE_REP}module/favoris/index1.php?ajout={$REP|urlencode}&nom={$REP}">Ajouter aux favoris</a> {/if} {if $PLAYREP OR $AFF_FAVORIS} </center></td></tr> {/if} {if $MIN!=0} {assign var=temp value=$MIN-$NUM_ROW_AFFICH|max:0} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> <a href="{$PAGE_EXPLO}?start={$MIN-$NUM_ROW_AFFICH|max:0}&directory={$REP|urlencode}&mode={$MODE}"><font size=2>Pr\xE9c\xE9dent</font></a> <a href="{$PAGE_EXPLO}?start=0&directory={$REP|urlencode}&mode={$MODE}"><font size=2>D\xE9but du r\xE9pertoire</font></a></td></tr> {attribbouton touche="green" lien="$PAGE_EXPLO?start=$temp&directory=$rep_encoded&mode=$MODE"} {/if} {if $Nb_rep_path >='2' AND $MIN==0} {assign var=temp value=$REP|dirname|realpath|urlencode} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_jaune.gif" border="0"> <a focused href="{$PAGE_EXPLO}?directory={$REP|dirname|realpath|urlencode}&mode={$MODE}">Dossier parent</a></td></tr> {attribbouton touche="yellow" lien="$PAGE_EXPLO?directory=$temp&mode=$MODE"} {elseif $Nb_rep_path >='2'} {assign var=temp value=$REP|dirname|realpath|urlencode} {attribbouton touche="yellow" lien="$PAGE_EXPLO?directory=$temp&mode=$MODE"} {/if} {section name=files loop=$T_affich max=$NUM_ROW_AFFICH start=$MIN} {if $T_affich[files]|in_array:$T_rep} {assign var="rep_a_affich" value=$REP|cat:'/'|cat:$T_affich[files]} <tr><td colspan="2"><img src="{$SKIN_REP}dossier/folder.gif"> <font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_EXPLO}?directory={$rep_a_affich|realpath|urlencode}&mode={$MODE}">{$T_affich[files]|truncate:55|strip_delimiters}</a></font></td></tr> {else} <tr><td><img src="{$SKIN_REP}dossier/{$ICONE_FICHIER}" width="16" height="16"> <font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_LECT}?{$OPT_LIENS}toplay_file={$T_affich[files]|urlencode}&toplay_rep={$REP|urlencode}">{$T_affich[files]|strip_delimiters|truncate:52}</a> </font></td><td width="35"> {if $AFF_INFO} {assign var="nb" value=$T_affich[files]|strrpos:"."} <a href="fichefilm.php?start={$MIN}&comeback=expl&film={$T_affich[files]|substr:0:$nb|urlencode}&fichier={$REP|cat:'/'|cat:$T_affich[files]|realpath|urlencode}"><font size="1">info</font></a> {/if} </td></tr> {/if} {/section} {assign var=N_affich value=$T_affich|@count} {assign var=N_affich_reste value=$NUM_ROW_AFFICH|max:15} {if $MIN+$smarty.section.files.total<count($T_affich)} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> <a href="{$PAGE_EXPLO}?start={$MIN+$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}"><font size=2>Suivant</font></a> - <font size=2><a href="{$PAGE_EXPLO}?start={$N_affich-$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}">Fin du r\xE9pertoire</a> - Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td></tr> {assign var=temp value=$MIN+$smarty.section.files.total} {attribbouton touche="blue" lien="$PAGE_EXPLO?start=$temp&directory=$rep_encoded&mode=$MODE"} {else} <tr><td colspan="2"><font size=2>Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td></tr> {/if} </table> {$FOOTER} \ No newline at end of file Modified: trunk/skin/simple/explorateur_photo.tpl =================================================================== --- trunk/skin/simple/explorateur_photo.tpl 2006-10-18 17:13:52 UTC (rev 33) +++ trunk/skin/simple/explorateur_photo.tpl 2006-10-22 11:22:56 UTC (rev 34) @@ -15,13 +15,12 @@ {if $smarty.section.path.first} <font size="1"> {/if} - <a href="{$PAGE_EXPLO}?directory={$CHEMIN_REP[path].0}&mode={$MODE}">{$CHEMIN_REP[path].1}/</a> + <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"} @@ -33,19 +32,18 @@ <td colspan="5" align=center><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> <a href="index1.php?start={$temp}&rep={$rep_encoded}">Pr\xE9c\xE9dent</a> <a href="index1.php?start=0&rep={$rep_encoded}">D\xE9but</a></td></tr><tr> {/if} {/if} - {if $files[files]|in_array:$T_repertoire} {if $DOS} <td width="100" height="130"><a href="index1.php?rep={$files[files].path|urlencode}"><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align="center"><img border=0 width="64" height="64" src="lecteur.gif"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><font size="1">{$files[files].nom} ({$files[files].lettre|strtolower}:)</font></td></tr></table></a></td> {else} - <td width="100" height="130"><a href="index1.php?rep={$REP|cat:'/'|cat:$files[files]|urlencode}"><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align="center"><img border=0 width="64" height="64" src="big_dossier.gif"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><font size="1">{$files[files]|truncate:26:"":true|wordwrap:15:"<br>":true}</font></td></tr></table></a></td> + <td width="100" height="130"><a href="index1.php?rep={$REP|cat:'/'|cat:$files[files]|urlencode}"><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align="center"><img border=0 width="64" height="64" src="big_dossier.gif"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><font size="1">{$files[files]|truncate:26:"":true|wordwrap:15:"<br>":true|strip_delimiters}</font></td></tr></table></a></td> {/if} {else} {assign var="dim" value=$REP|cat:'/'|cat:$files[files]|getimagesize} {assign var="newdim" value=$dim.0|get_size:$dim.1} - <td width="100" height="130" valign="middle" align="center"><a href="index1.php?image={$smarty.section.files.index}&rep={$rep_encoded}&start={$MIN}"><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align="center" background="fond_cell.gif"><img width="{$newdim.0}" height="{$newdim.1}" border="0" src="{$RACINE_REP}_framework/lib/img_cr.php?local=1&formatw=88&formath=68&img={$REP|cat:'/'|cat:$files[files]|urlencode}"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><font size="1">{$files[files]|truncate:26:"":true|wordwrap:15:"<br>":true}</font></td></tr></table></a></td> + <td width="100" height="130" valign="middle" align="center"><a href="index1.php?image={$smarty.section.files.index}&rep={$rep_encoded}&start={$MIN}"><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align="center" background="fond_cell.gif"><img width="{$newdim.0}" height="{$newdim.1}" border="0" src="{$RACINE_REP}_framework/lib/img_cr.php?local=1&formatw=88&formath=68&img={$REP|cat:'/'|cat:$files[files]|urlencode}"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><font size="1">{$files[files]|truncate:26:"":true|wordwrap:15:"<br>":true|strip_delimiters}</font></td></tr></table></a></td> {/if} Modified: trunk/skin/simple/playlist_audio.tpl =================================================================== --- trunk/skin/simple/playlist_audio.tpl 2006-10-18 17:13:52 UTC (rev 33) +++ trunk/skin/simple/playlist_audio.tpl 2006-10-22 11:22:56 UTC (rev 34) @@ -52,7 +52,7 @@ <font size="1">{counter name=indice print=true}. </font> <font size="1"> {if $pl[playlist].1}<u>{/if} - <a href=lecteuraudio.php?toplay={$pl[playlist].3}>{$pl[playlist].0|truncate:130:''}</a> + <a href=lecteuraudio.php?toplay={$pl[playlist].3}>{$pl[playlist].0|truncate:130:''|strip_delimiters}</a> {if $pl[playlist].1}</u>{/if} </font><br> {/section} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2006-10-22 11:43:45
|
Revision: 35 http://svn.sourceforge.net/easybox-mod/?rev=35&view=rev Author: aragornis Date: 2006-10-22 04:43:24 -0700 (Sun, 22 Oct 2006) Log Message: ----------- Optimisation des modifs de bedelaitre sur la gestion des disques Modified Paths: -------------- trunk/module/_explorateur/index1.php trunk/skin/simple/dossier/Thumbs.db trunk/skin/simple/explorateur.tpl Added Paths: ----------- trunk/skin/simple/dossier/diskoptical.gif Modified: trunk/module/_explorateur/index1.php =================================================================== --- trunk/module/_explorateur/index1.php 2006-10-22 11:22:56 UTC (rev 34) +++ trunk/module/_explorateur/index1.php 2006-10-22 11:43:24 UTC (rev 35) @@ -34,12 +34,6 @@ $rep = $rep_default; } -// BDE - 18/10/2006 - Modification dans la gestion des disques -// On sauvegarde le r\x82pertoire demand\x82 pour v\x82rifier plus tard si c'est -// un rechargement de disques -$rep_reload=$rep; -// Fin Modif - //--seulement pour linux if($rep=="") { $rep = "/"; @@ -54,15 +48,11 @@ $min = 0; } -// BDE - 18/10/2006 - Modification dans la gestion des disques -// Si l'on est en train de recharger la liste des fichiers -// Alors, on recharge le r\x82pertoire en cours -if ($rep_reload=="reload") -{ - $rep_copy = get_variable('previousrep'); - $rep = get_variable('previousrep'); -} -// Fin Modif +// Rechargement des disques +if ($_GET['reload']=="1"){ + save_variable('disques', serialize(DISQUES())); +} + //Ajout dans la base de donn\xE9e pour les retours if($extension==$ini[explorateur][ext]){ save_variable('lastexpl', 'explorateur'); @@ -193,14 +183,7 @@ $fichiers = FICHIERS(); -// BDE - 18/10/2006 - Modification dans la gestion des disques -// Si il faut recharger la liste des disques, on le fait ici ... -if ($rep_reload=="reload") -{ - save_variable('disques', serialize(DISQUES())); -} -// Fin Modif -$smarty->assign('DISQUES',DISQUES());//unserialize(get_variable('disques'))); +$smarty->assign('DISQUES',unserialize(get_variable('disques')));//unserialize(get_variable('disques'))); $smarty->assign('T_rep',$fichiers[0]); $smarty->assign('T_file',$fichiers[1]); Modified: trunk/skin/simple/dossier/Thumbs.db =================================================================== (Binary files differ) Added: trunk/skin/simple/dossier/diskoptical.gif =================================================================== (Binary files differ) Property changes on: trunk/skin/simple/dossier/diskoptical.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/skin/simple/explorateur.tpl =================================================================== --- trunk/skin/simple/explorateur.tpl 2006-10-22 11:22:56 UTC (rev 34) +++ trunk/skin/simple/explorateur.tpl 2006-10-22 11:43:24 UTC (rev 35) @@ -1 +1 @@ -{assign var=rep_encoded value=$REP|urlencode} {section name=disques loop=$DISQUES} {if $smarty.section.disques.first} <table cellspacing="2" align="center" width="498" valign="middle"><tr valign="middle"> {/if} <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 $smarty.section.disques.last} </tr></table> {/if} {/section} {section name=path loop=$CHEMIN_REP} {if $smarty.section.path.first} <center><font size="1"> {/if} <a href="{$PAGE_EXPLO}?directory={$CHEMIN_REP[path].0}&mode={$MODE}">{$CHEMIN_REP[path].1|strip_delimiters}/</a> {if $smarty.section.path.last} </font></center> {/if} {/section} {if $AFF_CDDA} <a href="playdb.php?type=cdda&disque={$LETTRE_CDDA}">Lire {$LETTRE_CDDA}: en tant que cd</a> {/if} {assign var=NUM_ROW_AFFICH value=15} <table width="498" cellpadding="0" cellspacing="0" align="center" valign="middle"> {if $PLAYREP OR $AFF_FAVORIS} <tr><td colspan="2"><center> {/if} {if $PLAYREP} <img src="{$SKIN_REP}dossier/rep_all.gif" border="0" width="20" height="20"><a href="{$PAGE_LECT_REP}?toplay={$REP|urlencode}&type=playrep"> {$PLAYREP_TEXT|default:"Lire le r\xE9pertoire complet"}</a> {/if} {if $PLAYREP AND $AFF_FAVORIS} - {/if} {if $AFF_FAVORIS} <img src="{$SKIN_REP}dossier/favoris.gif" width="20" height="20"> <a href="{$RACINE_REP}module/favoris/index1.php?ajout={$REP|urlencode}&nom={$REP}">Ajouter aux favoris</a> {/if} {if $PLAYREP OR $AFF_FAVORIS} </center></td></tr> {/if} {if $MIN!=0} {assign var=temp value=$MIN-$NUM_ROW_AFFICH|max:0} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> <a href="{$PAGE_EXPLO}?start={$MIN-$NUM_ROW_AFFICH|max:0}&directory={$REP|urlencode}&mode={$MODE}"><font size=2>Pr\xE9c\xE9dent</font></a> <a href="{$PAGE_EXPLO}?start=0&directory={$REP|urlencode}&mode={$MODE}"><font size=2>D\xE9but du r\xE9pertoire</font></a></td></tr> {attribbouton touche="green" lien="$PAGE_EXPLO?start=$temp&directory=$rep_encoded&mode=$MODE"} {/if} {if $Nb_rep_path >='2' AND $MIN==0} {assign var=temp value=$REP|dirname|realpath|urlencode} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_jaune.gif" border="0"> <a focused href="{$PAGE_EXPLO}?directory={$REP|dirname|realpath|urlencode}&mode={$MODE}">Dossier parent</a></td></tr> {attribbouton touche="yellow" lien="$PAGE_EXPLO?directory=$temp&mode=$MODE"} {elseif $Nb_rep_path >='2'} {assign var=temp value=$REP|dirname|realpath|urlencode} {attribbouton touche="yellow" lien="$PAGE_EXPLO?directory=$temp&mode=$MODE"} {/if} {section name=files loop=$T_affich max=$NUM_ROW_AFFICH start=$MIN} {if $T_affich[files]|in_array:$T_rep} {assign var="rep_a_affich" value=$REP|cat:'/'|cat:$T_affich[files]} <tr><td colspan="2"><img src="{$SKIN_REP}dossier/folder.gif"> <font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_EXPLO}?directory={$rep_a_affich|realpath|urlencode}&mode={$MODE}">{$T_affich[files]|truncate:55|strip_delimiters}</a></font></td></tr> {else} <tr><td><img src="{$SKIN_REP}dossier/{$ICONE_FICHIER}" width="16" height="16"> <font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_LECT}?{$OPT_LIENS}toplay_file={$T_affich[files]|urlencode}&toplay_rep={$REP|urlencode}">{$T_affich[files]|strip_delimiters|truncate:52}</a> </font></td><td width="35"> {if $AFF_INFO} {assign var="nb" value=$T_affich[files]|strrpos:"."} <a href="fichefilm.php?start={$MIN}&comeback=expl&film={$T_affich[files]|substr:0:$nb|urlencode}&fichier={$REP|cat:'/'|cat:$T_affich[files]|realpath|urlencode}"><font size="1">info</font></a> {/if} </td></tr> {/if} {/section} {assign var=N_affich value=$T_affich|@count} {assign var=N_affich_reste value=$NUM_ROW_AFFICH|max:15} {if $MIN+$smarty.section.files.total<count($T_affich)} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> <a href="{$PAGE_EXPLO}?start={$MIN+$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}"><font size=2>Suivant</font></a> - <font size=2><a href="{$PAGE_EXPLO}?start={$N_affich-$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}">Fin du r\xE9pertoire</a> - Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td></tr> {assign var=temp value=$MIN+$smarty.section.files.total} {attribbouton touche="blue" lien="$PAGE_EXPLO?start=$temp&directory=$rep_encoded&mode=$MODE"} {else} <tr><td colspan="2"><font size=2>Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td></tr> {/if} </table> {$FOOTER} \ No newline at end of file +{assign var=rep_encoded value=$REP|urlencode} {section name=disques loop=$DISQUES} {if $smarty.section.disques.first} <table cellspacing="2" align="center" width="498" valign="middle"><tr valign="middle"> {/if} {if $DISQUES[disques].path == 'reload'} <td valign="middle"><img src="{$SKIN_REP}dossier/{$DISQUES[disques].gif}.gif" width="16" height="16"><font size='1'><a href="{$PAGE_EXPLO}?directory={$REP|urlencode}&mode={$MODE}&reload=1&start={$MIN}">Rafra\xEEchir</a></font></td> {else} <td valign="middle"><img src="{$SKIN_REP}dossier/{$DISQUES[disques].gif}.gif" width="16" height="16"><font size='1'><a href="{$PAGE_EXPLO}?directory={$DISQUES[disques].path|urlencode}&mode={$MODE}">{$DISQUES[disques].lettre|strtolower}</a></font></td> {/if} {if $smarty.section.disques.last} </tr></table> {/if} {/section} {section name=path loop=$CHEMIN_REP} {if $smarty.section.path.first} <center><font size="1"> {/if} <a href="{$PAGE_EXPLO}?directory={$CHEMIN_REP[path].0}&mode={$MODE}">{$CHEMIN_REP[path].1|strip_delimiters}/</a> {if $smarty.section.path.last} </font></center> {/if} {/section} {if $AFF_CDDA} <a href="playdb.php?type=cdda&disque={$LETTRE_CDDA}">Lire {$LETTRE_CDDA}: en tant que cd</a> {/if} {assign var=NUM_ROW_AFFICH value=15} <table width="498" cellpadding="0" cellspacing="0" align="center" valign="middle"> {if $PLAYREP OR $AFF_FAVORIS} <tr><td colspan="2"><center> {/if} {if $PLAYREP} <img src="{$SKIN_REP}dossier/rep_all.gif" border="0" width="20" height="20"><a href="{$PAGE_LECT_REP}?toplay={$REP|urlencode}&type=playrep"> {$PLAYREP_TEXT|default:"Lire le r\xE9pertoire complet"}</a> {/if} {if $PLAYREP AND $AFF_FAVORIS} - {/if} {if $AFF_FAVORIS} <img src="{$SKIN_REP}dossier/favoris.gif" width="20" height="20"> <a href="{$RACINE_REP}module/favoris/index1.php?ajout={$REP|urlencode}&nom={$REP}">Ajouter aux favoris</a> {/if} {if $PLAYREP OR $AFF_FAVORIS} </center></td></tr> {/if} {if $MIN!=0} {assign var=temp value=$MIN-$NUM_ROW_AFFICH|max:0} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> <a href="{$PAGE_EXPLO}?start={$MIN-$NUM_ROW_AFFICH|max:0}&directory={$REP|urlencode}&mode={$MODE}"><font size=2>Pr\xE9c\xE9dent</font></a> <a href="{$PAGE_EXPLO}?start=0&directory={$REP|urlencode}&mode={$MODE}"><font size=2>D\xE9but du r\xE9pertoire</font></a></td></tr> {attribbouton touche="green" lien="$PAGE_EXPLO?start=$temp&directory=$rep_encoded&mode=$MODE"} {/if} {if $Nb_rep_path >='2' AND $MIN==0} {assign var=temp value=$REP|dirname|realpath|urlencode} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_jaune.gif" border="0"> <a focused href="{$PAGE_EXPLO}?directory={$REP|dirname|realpath|urlencode}&mode={$MODE}">Dossier parent</a></td></tr> {attribbouton touche="yellow" lien="$PAGE_EXPLO?directory=$temp&mode=$MODE"} {elseif $Nb_rep_path >='2'} {assign var=temp value=$REP|dirname|realpath|urlencode} {attribbouton touche="yellow" lien="$PAGE_EXPLO?directory=$temp&mode=$MODE"} {/if} {section name=files loop=$T_affich max=$NUM_ROW_AFFICH start=$MIN} {if $T_affich[files]|in_array:$T_rep} {assign var="rep_a_affich" value=$REP|cat:'/'|cat:$T_affich[files]} <tr><td colspan="2"><img src="{$SKIN_REP}dossier/folder.gif"> <font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_EXPLO}?directory={$rep_a_affich|realpath|urlencode}&mode={$MODE}">{$T_affich[files]|truncate:55|strip_delimiters}</a></font></td></tr> {else} <tr><td><img src="{$SKIN_REP}dossier/{$ICONE_FICHIER}" width="16" height="16"> <font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_LECT}?{$OPT_LIENS}toplay_file={$T_affich[files]|urlencode}&toplay_rep={$REP|urlencode}">{$T_affich[files]|strip_delimiters|truncate:52}</a> </font></td><td width="35"> {if $AFF_INFO} {assign var="nb" value=$T_affich[files]|strrpos:"."} <a href="fichefilm.php?start={$MIN}&comeback=expl&film={$T_affich[files]|substr:0:$nb|urlencode}&fichier={$REP|cat:'/'|cat:$T_affich[files]|realpath|urlencode}"><font size="1">info</font></a> {/if} </td></tr> {/if} {/section} {assign var=N_affich value=$T_affich|@count} {assign var=N_affich_reste value=$NUM_ROW_AFFICH|max:15} {if $MIN+$smarty.section.files.total<count($T_affich)} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> <a href="{$PAGE_EXPLO}?start={$MIN+$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}"><font size=2>Suivant</font></a> - <font size=2><a href="{$PAGE_EXPLO}?start={$N_affich-$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}">Fin du r\xE9pertoire</a> - Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td></tr> {assign var=temp value=$MIN+$smarty.section.files.total} {attribbouton touche="blue" lien="$PAGE_EXPLO?start=$temp&directory=$rep_encoded&mode=$MODE"} {else} <tr><td colspan="2"><font size=2>Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td></tr> {/if} </table> {$FOOTER} \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2006-10-26 19:33:52
|
Revision: 40 http://svn.sourceforge.net/easybox-mod/?rev=40&view=rev Author: aragornis Date: 2006-10-26 12:33:36 -0700 (Thu, 26 Oct 2006) Log Message: ----------- Suppression des salet?\195?\169s de fichier windows qui servent ?\195?\160 rien Removed Paths: ------------- trunk/module/agenda/images/Thumbs.db trunk/module/agenda/images/heures/Thumbs.db trunk/skin/simple/dossier/Thumbs.db trunk/skin/simple/interface/Thumbs.db trunk/themes/chaines/defaut/Thumbs.db Deleted: trunk/module/agenda/images/Thumbs.db =================================================================== (Binary files differ) Deleted: trunk/module/agenda/images/heures/Thumbs.db =================================================================== (Binary files differ) Deleted: trunk/skin/simple/dossier/Thumbs.db =================================================================== (Binary files differ) Deleted: trunk/skin/simple/interface/Thumbs.db =================================================================== (Binary files differ) Deleted: trunk/themes/chaines/defaut/Thumbs.db =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2006-10-27 10:45:56
|
Revision: 41 http://svn.sourceforge.net/easybox-mod/?rev=41&view=rev Author: aragornis Date: 2006-10-27 03:45:42 -0700 (Fri, 27 Oct 2006) Log Message: ----------- Ajout de la table "templates" Correction d'un bug graphique dans l'explorateur Correction d'un bug sur l'appel du template pour l'arret d'un film Modified Paths: -------------- trunk/configuration/bases.xml trunk/module/_explorateur/explorateur.tpl trunk/module/films/lecture.php Modified: trunk/configuration/bases.xml =================================================================== --- trunk/configuration/bases.xml 2006-10-26 19:33:36 UTC (rev 40) +++ trunk/configuration/bases.xml 2006-10-27 10:45:42 UTC (rev 41) @@ -83,6 +83,10 @@ <syntax>CREATE TABLE var (var VARCHAR, value LONGTEXT)</syntax> </table> <table> + <name>templates</name> + <syntax>CREATE TABLE templates (template VARCHAR, url TEXT)</syntax> + </table> + <table> <name>cinemas</name> <syntax>CREATE TABLE cinemas ( timestamp INT, cinema LONGTEXT, page VARCHAR )</syntax> </table> Modified: trunk/module/_explorateur/explorateur.tpl =================================================================== --- trunk/module/_explorateur/explorateur.tpl 2006-10-26 19:33:36 UTC (rev 40) +++ trunk/module/_explorateur/explorateur.tpl 2006-10-27 10:45:42 UTC (rev 41) @@ -1 +1 @@ -{assign var=rep_encoded value=$REP|urlencode} {section name=disques loop=$DISQUES} {if $smarty.section.disques.first} <table cellspacing="2" align="center" width="498" valign="middle"><tr valign="middle"> {/if} {if $DISQUES[disques].path == 'reload'} <td valign="middle"><img src="{$SKIN_REP}dossier/{$DISQUES[disques].gif}.gif" width="16" height="16"><font size='1'><a href="{$PAGE_EXPLO}?directory={$REP|urlencode}&mode={$MODE}&reload=1&start={$MIN}">Rafra\xEEchir</a></font></td> {else} <td valign="middle"><img src="{$SKIN_REP}dossier/{$DISQUES[disques].gif}.gif" width="16" height="16"><font size='1'><a href="{$PAGE_EXPLO}?directory={$DISQUES[disques].path|urlencode}&mode={$MODE}">{$DISQUES[disques].lettre|strtolower}</a></font></td> {/if} {if $smarty.section.disques.last} </tr></table> {/if} {/section} {section name=path loop=$CHEMIN_REP} {if $smarty.section.path.first} <center><font size="1"> {/if} <a href="{$PAGE_EXPLO}?directory={$CHEMIN_REP[path].0}&mode={$MODE}">{$CHEMIN_REP[path].1|strip_delimiters}/</a> {if $smarty.section.path.last} </font></center> {/if} {/section} {if $AFF_CDDA} <a href="playdb.php?type=cdda&disque={$LETTRE_CDDA}">Lire {$LETTRE_CDDA}: en tant que cd</a> {/if} {assign var=NUM_ROW_AFFICH value=15} <table width="498" cellpadding="0" cellspacing="0" align="center" valign="middle"> {if $PLAYREP OR $AFF_FAVORIS} <tr><td colspan="2"><center> {/if} {if $PLAYREP} <img src="{$SKIN_REP}dossier/rep_all.gif" border="0" width="20" height="20"><a href="{$PAGE_LECT_REP}?toplay={$REP|urlencode}&type=playrep"> {$PLAYREP_TEXT|default:"Lire le r\xE9pertoire complet"}</a> {/if} {if $PLAYREP AND $AFF_FAVORIS} - {/if} {if $AFF_FAVORIS} <img src="{$SKIN_REP}dossier/favoris.gif" width="20" height="20"> <a href="{$RACINE_REP}module/favoris/index1.php?ajout={$REP|urlencode}&nom={$REP}">Ajouter aux favoris</a> {/if} {if $PLAYREP OR $AFF_FAVORIS} </center></td></tr> {/if} {if $MIN!=0} {assign var=temp value=$MIN-$NUM_ROW_AFFICH|max:0} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> <a href="{$PAGE_EXPLO}?start={$MIN-$NUM_ROW_AFFICH|max:0}&directory={$REP|urlencode}&mode={$MODE}"><font size=2>Pr\xE9c\xE9dent</font></a> <a href="{$PAGE_EXPLO}?start=0&directory={$REP|urlencode}&mode={$MODE}"><font size=2>D\xE9but du r\xE9pertoire</font></a></td></tr> {attribbouton touche="green" lien="$PAGE_EXPLO?start=$temp&directory=$rep_encoded&mode=$MODE"} {/if} {if $Nb_rep_path >='2' AND $MIN==0} {assign var=temp value=$REP|dirname|realpath|urlencode} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_jaune.gif" border="0"> <a focused href="{$PAGE_EXPLO}?directory={$REP|dirname|realpath|urlencode}&mode={$MODE}">Dossier parent</a></td></tr> {attribbouton touche="yellow" lien="$PAGE_EXPLO?directory=$temp&mode=$MODE"} {elseif $Nb_rep_path >='2'} {assign var=temp value=$REP|dirname|realpath|urlencode} {attribbouton touche="yellow" lien="$PAGE_EXPLO?directory=$temp&mode=$MODE"} {/if} {section name=files loop=$T_affich max=$NUM_ROW_AFFICH start=$MIN} {if $T_affich[files]|in_array:$T_rep} {assign var="rep_a_affich" value=$REP|cat:'/'|cat:$T_affich[files]} <tr><td colspan="2"><img src="{$SKIN_REP}dossier/folder.gif"> <font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_EXPLO}?directory={$rep_a_affich|realpath|urlencode}&mode={$MODE}">{$T_affich[files]|truncate:55|strip_delimiters}</a></font></td></tr> {else} <tr><td><img src="{$SKIN_REP}dossier/{$ICONE_FICHIER}" width="16" height="16"> <font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_LECT}?{$OPT_LIENS}toplay_file={$T_affich[files]|urlencode}&toplay_rep={$REP|urlencode}">{$T_affich[files]|strip_delimiters|truncate:52}</a> </font></td><td width="35"> {if $AFF_INFO} {assign var="nb" value=$T_affich[files]|strrpos:"."} <a href="fichefilm.php?start={$MIN}&comeback=expl&film={$T_affich[files]|substr:0:$nb|urlencode}&fichier={$REP|cat:'/'|cat:$T_affich[files]|realpath|urlencode}"><font size="1">info</font></a> {/if} </td></tr> {/if} {/section} {assign var=N_affich value=$T_affich|@count} {assign var=N_affich_reste value=$NUM_ROW_AFFICH|max:15} {if $MIN+$smarty.section.files.total<count($T_affich)} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> <a href="{$PAGE_EXPLO}?start={$MIN+$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}"><font size=2>Suivant</font></a> - <font size=2><a href="{$PAGE_EXPLO}?start={$N_affich-$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}">Fin du r\xE9pertoire</a> - Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td></tr> {assign var=temp value=$MIN+$smarty.section.files.total} {attribbouton touche="blue" lien="$PAGE_EXPLO?start=$temp&directory=$rep_encoded&mode=$MODE"} {else} <tr><td colspan="2"><font size=2>Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td></tr> {/if} </table> {$FOOTER} \ No newline at end of file +{assign var=rep_encoded value=$REP|urlencode} {section name=disques loop=$DISQUES} {if $smarty.section.disques.first} <table cellspacing="2" align="center" width="498" valign="middle"><tr valign="middle"> {/if} {if $DISQUES[disques].path == 'reload'} <td valign="middle" width="50"><img src="{$SKIN_REP}dossier/{$DISQUES[disques].gif}.gif" width="16" height="16"><font size='1'><a href="{$PAGE_EXPLO}?directory={$REP|urlencode}&mode={$MODE}&reload=1&start={$MIN}">Rafr.</a></font></td> {else} <td valign="middle"><img src="{$SKIN_REP}dossier/{$DISQUES[disques].gif}.gif" width="16" height="16"><font size='1'><a href="{$PAGE_EXPLO}?directory={$DISQUES[disques].path|urlencode}&mode={$MODE}">{$DISQUES[disques].lettre|strtolower}</a></font></td> {/if} {if $smarty.section.disques.last} </tr></table> {/if} {/section} {section name=path loop=$CHEMIN_REP} {if $smarty.section.path.first} <center><font size="1"> {/if} <a href="{$PAGE_EXPLO}?directory={$CHEMIN_REP[path].0}&mode={$MODE}">{$CHEMIN_REP[path].1|strip_delimiters}/</a> {if $smarty.section.path.last} </font></center> {/if} {/section} {if $AFF_CDDA} <a href="playdb.php?type=cdda&disque={$LETTRE_CDDA}">Lire {$LETTRE_CDDA}: en tant que cd</a> {/if} {assign var=NUM_ROW_AFFICH value=15} <table width="498" cellpadding="0" cellspacing="0" align="center" valign="middle"> {if $PLAYREP OR $AFF_FAVORIS} <tr><td colspan="2"><center> {/if} {if $PLAYREP} <img src="{$SKIN_REP}dossier/rep_all.gif" border="0" width="20" height="20"><a href="{$PAGE_LECT_REP}?toplay={$REP|urlencode}&type=playrep"> {$PLAYREP_TEXT|default:"Lire le r\xE9pertoire complet"}</a> {/if} {if $PLAYREP AND $AFF_FAVORIS} - {/if} {if $AFF_FAVORIS} <img src="{$SKIN_REP}dossier/favoris.gif" width="20" height="20"> <a href="{$RACINE_REP}module/favoris/index1.php?ajout={$REP|urlencode}&nom={$REP}">Ajouter aux favoris</a> {/if} {if $PLAYREP OR $AFF_FAVORIS} </center></td></tr> {/if} {if $MIN!=0} {assign var=temp value=$MIN-$NUM_ROW_AFFICH|max:0} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> <a href="{$PAGE_EXPLO}?start={$MIN-$NUM_ROW_AFFICH|max:0}&directory={$REP|urlencode}&mode={$MODE}"><font size=2>Pr\xE9c\xE9dent</font></a> <a href="{$PAGE_EXPLO}?start=0&directory={$REP|urlencode}&mode={$MODE}"><font size=2>D\xE9but du r\xE9pertoire</font></a></td></tr> {attribbouton touche="green" lien="$PAGE_EXPLO?start=$temp&directory=$rep_encoded&mode=$MODE"} {/if} {if $Nb_rep_path >='2' AND $MIN==0} {assign var=temp value=$REP|dirname|realpath|urlencode} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_jaune.gif" border="0"> <a focused href="{$PAGE_EXPLO}?directory={$REP|dirname|realpath|urlencode}&mode={$MODE}">Dossier parent</a></td></tr> {attribbouton touche="yellow" lien="$PAGE_EXPLO?directory=$temp&mode=$MODE"} {elseif $Nb_rep_path >='2'} {assign var=temp value=$REP|dirname|realpath|urlencode} {attribbouton touche="yellow" lien="$PAGE_EXPLO?directory=$temp&mode=$MODE"} {/if} {section name=files loop=$T_affich max=$NUM_ROW_AFFICH start=$MIN} {if $T_affich[files]|in_array:$T_rep} {assign var="rep_a_affich" value=$REP|cat:'/'|cat:$T_affich[files]} <tr><td colspan="2"><img src="{$SKIN_REP}dossier/folder.gif"> <font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_EXPLO}?directory={$rep_a_affich|realpath|urlencode}&mode={$MODE}">{$T_affich[files]|truncate:55|strip_delimiters}</a></font></td></tr> {else} <tr><td><img src="{$SKIN_REP}dossier/{$ICONE_FICHIER}" width="16" height="16"> <font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_LECT}?{$OPT_LIENS}toplay_file={$T_affich[files]|urlencode}&toplay_rep={$REP|urlencode}">{$T_affich[files]|strip_delimiters|truncate:52}</a> </font></td><td width="35"> {if $AFF_INFO} {assign var="nb" value=$T_affich[files]|strrpos:"."} <a href="fichefilm.php?start={$MIN}&comeback=expl&film={$T_affich[files]|substr:0:$nb|urlencode}&fichier={$REP|cat:'/'|cat:$T_affich[files]|realpath|urlencode}"><font size="1">info</font></a> {/if} </td></tr> {/if} {/section} {assign var=N_affich value=$T_affich|@count} {assign var=N_affich_reste value=$NUM_ROW_AFFICH|max:15} {if $MIN+$smarty.section.files.total<count($T_affich)} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> <a href="{$PAGE_EXPLO}?start={$MIN+$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}"><font size=2>Suivant</font></a> - <font size=2><a href="{$PAGE_EXPLO}?start={$N_affich-$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}">Fin du r\xE9pertoire</a> - Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td></tr> {assign var=temp value=$MIN+$smarty.section.files.total} {attribbouton touche="blue" lien="$PAGE_EXPLO?start=$temp&directory=$rep_encoded&mode=$MODE"} {else} <tr><td colspan="2"><font size=2>Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td></tr> {/if} </table> {$FOOTER} \ No newline at end of file Modified: trunk/module/films/lecture.php =================================================================== --- trunk/module/films/lecture.php 2006-10-26 19:33:36 UTC (rev 40) +++ trunk/module/films/lecture.php 2006-10-27 10:45:42 UTC (rev 41) @@ -70,11 +70,7 @@ } else { // Micht : Utilisation d'une page de skin - if (($message = file_get_contents($SKIN_REP.'signet_ask.tpl')) === FALSE) - { - $message.= '<center>Le film n\'est pas fini ! <br>Voulez-vous placer un signet pour y revenir rapidement plus tard ?<br><br>'; - $message.= '<a href="lecture.php?control=stop&signet=load"><box border=2 width=35 height=18 align=center text="Oui"></a> <a href="lecture.php?control=stop&signet=noload"><box border=2 width=35 height=18 align=center text="Non"></a></center>'; - } + $message = $smarty->fetch('signet_ask.tpl'); } } elseif($control!='seek') { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2006-10-26 18:02:10
|
Revision: 38 http://svn.sourceforge.net/easybox-mod/?rev=38&view=rev Author: aragornis Date: 2006-10-26 11:00:27 -0700 (Thu, 26 Oct 2006) Log Message: ----------- Mise en place du nouveau systeme de module/skin Modified Paths: -------------- trunk/_framework/demarrage.php trunk/_framework/fonctions_partagees.inc.php trunk/_framework/lib/Smarty.class.php trunk/skin/simple/interface/encours.gif Added Paths: ----------- trunk/module/_explorateur/explorateur.tpl trunk/module/cac40/cac40.tpl trunk/module/diaporama/explorateur_photo.tpl trunk/module/diaporama/photo.tpl trunk/module/dvd/menu_dvd.tpl trunk/module/ephemeride/ephemeride.tpl trunk/module/favoris/favoris.tpl trunk/module/films/catalogue_video.tpl trunk/module/films/fichefilm.tpl trunk/module/films/films.tpl trunk/module/films/signet_ask.tpl trunk/module/films/signet_film.tpl trunk/module/guidetv/guidetv.tpl trunk/module/horloge/horloge.tpl trunk/module/horoscope/horoscope.tpl trunk/module/infotraffic/info-trafic.tpl trunk/module/jt/emissions.tpl trunk/module/livescore/livescore.tpl trunk/module/loto/loto.tpl trunk/module/mail/mail_inbox.tpl trunk/module/mail/mail_message.tpl trunk/module/meteo/meteoft.tpl trunk/module/modules/modules.tpl trunk/module/mp3/audio.tpl trunk/module/mp3/catalogue_audio.tpl trunk/module/mp3/playlist_audio.tpl trunk/module/mp3/podcast.tpl trunk/module/multiposte/enregistrement.tpl trunk/module/multiposte/enregistrement_add.tpl trunk/module/reseaufree/reseaufree.tpl trunk/module/rss/rss.tpl trunk/module/seances/programme_cine.tpl trunk/module/signet/signet.tpl trunk/module/webmedia/webmedias.tpl Removed Paths: ------------- trunk/skin/simple/audio.tpl trunk/skin/simple/cac40.tpl trunk/skin/simple/catalogue_audio.tpl trunk/skin/simple/catalogue_video.tpl trunk/skin/simple/emissions.tpl trunk/skin/simple/enregistrement.tpl trunk/skin/simple/enregistrement_add.tpl trunk/skin/simple/ephemeride.tpl trunk/skin/simple/explorateur.tpl trunk/skin/simple/explorateur_photo.tpl trunk/skin/simple/favoris.tpl trunk/skin/simple/fichefilm.tpl trunk/skin/simple/films.tpl trunk/skin/simple/guidetv.tpl trunk/skin/simple/horloge.tpl trunk/skin/simple/horoscope.tpl trunk/skin/simple/info-trafic.tpl trunk/skin/simple/livescore.tpl trunk/skin/simple/loto.tpl trunk/skin/simple/mail_inbox.tpl trunk/skin/simple/mail_message.tpl trunk/skin/simple/menu_dvd.tpl trunk/skin/simple/meteoft.tpl trunk/skin/simple/modules.tpl trunk/skin/simple/photo.tpl trunk/skin/simple/playlist_audio.tpl trunk/skin/simple/podcast.tpl trunk/skin/simple/programme_cine.tpl trunk/skin/simple/reseaufree.tpl trunk/skin/simple/rss.tpl trunk/skin/simple/signet.tpl trunk/skin/simple/signet_ask.tpl trunk/skin/simple/signet_film.tpl trunk/skin/simple/webmedias.tpl Modified: trunk/_framework/demarrage.php =================================================================== --- trunk/_framework/demarrage.php 2006-10-25 05:01:34 UTC (rev 37) +++ trunk/_framework/demarrage.php 2006-10-26 18:00:27 UTC (rev 38) @@ -52,6 +52,9 @@ switch($etape){ + case 1: + list_templates(); + break; // Phase d'initialisation case 2: $META['refresh']= '1;url=demarrage.php?etape=3'; Modified: trunk/_framework/fonctions_partagees.inc.php =================================================================== --- trunk/_framework/fonctions_partagees.inc.php 2006-10-25 05:01:34 UTC (rev 37) +++ trunk/_framework/fonctions_partagees.inc.php 2006-10-26 18:00:27 UTC (rev 38) @@ -507,4 +507,32 @@ return str_replace(array('-!-!-!spec$$', '-!-!-!spec\xA3\xA3}'), array('{ldelim}', '{rdelim}'), $temp); } +function format_source_tpl($ressource_name){ +global $USER; + $db = sqlite_open($USER.'utilisateur.db', 0666); + $res = sqlite_query($db,'SELECT * FROM templates WHERE template="'.$ressource_name.'" LIMIT 1'); + $resu = sqlite_fetch_object($res); + sqlite_close($db); + return $resu->url; +} + +function list_templates(){ +global $USER, $MODULE, $SKIN_REP; + $db = sqlite_open($USER.'utilisateur.db', 0666); + $tplskin = glob(realpath($SKIN_REP).'/*.tpl'); + $tplmodule = glob(realpath($MODULE).'/*/*.tpl'); + + sqlite_query($db,'DELETE FROM templates'); + + foreach($tplmodule as $tpl){ + sqlite_query($db,'INSERT INTO templates(template, url) VALUES("'.sqlite_escape_string(basename($tpl)).'", "'.sqlite_escape_string(realpath($tpl)).'")'); + } + + foreach($tplskin as $tpl){ + sqlite_query($db,'DELETE FROM templates WHERE template="'.basename($tpl).'"'); + sqlite_query($db,'INSERT INTO templates(template, url) VALUES("'.sqlite_escape_string(basename($tpl)).'", "'.sqlite_escape_string(realpath($tpl)).'")'); + } + + sqlite_close($db); +} ?> Modified: trunk/_framework/lib/Smarty.class.php =================================================================== --- trunk/_framework/lib/Smarty.class.php 2006-10-25 05:01:34 UTC (rev 37) +++ trunk/_framework/lib/Smarty.class.php 2006-10-26 18:00:27 UTC (rev 38) @@ -1118,6 +1118,9 @@ */ function fetch($resource_name, $cache_id = null, $compile_id = null, $display = false) { + // Modif par Aragornis pour activer le template du module ou celui du skin (le second par d\xE9faut si les deux existent) + $resource_name = format_source_tpl($resource_name); + static $_cache_info = array(); if($this->_tpl_vars['TITRE']!='' AND $this->_tpl_vars['META']['front_panel']==''){ $this->_tpl_vars['META']['front_panel'] = supprime_accents(substr($this->_tpl_vars['TITRE'],0,9)); Added: trunk/module/_explorateur/explorateur.tpl =================================================================== --- trunk/module/_explorateur/explorateur.tpl (rev 0) +++ trunk/module/_explorateur/explorateur.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1 @@ +{assign var=rep_encoded value=$REP|urlencode} {section name=disques loop=$DISQUES} {if $smarty.section.disques.first} <table cellspacing="2" align="center" width="498" valign="middle"><tr valign="middle"> {/if} {if $DISQUES[disques].path == 'reload'} <td valign="middle"><img src="{$SKIN_REP}dossier/{$DISQUES[disques].gif}.gif" width="16" height="16"><font size='1'><a href="{$PAGE_EXPLO}?directory={$REP|urlencode}&mode={$MODE}&reload=1&start={$MIN}">Rafra\xEEchir</a></font></td> {else} <td valign="middle"><img src="{$SKIN_REP}dossier/{$DISQUES[disques].gif}.gif" width="16" height="16"><font size='1'><a href="{$PAGE_EXPLO}?directory={$DISQUES[disques].path|urlencode}&mode={$MODE}">{$DISQUES[disques].lettre|strtolower}</a></font></td> {/if} {if $smarty.section.disques.last} </tr></table> {/if} {/section} {section name=path loop=$CHEMIN_REP} {if $smarty.section.path.first} <center><font size="1"> {/if} <a href="{$PAGE_EXPLO}?directory={$CHEMIN_REP[path].0}&mode={$MODE}">{$CHEMIN_REP[path].1|strip_delimiters}/</a> {if $smarty.section.path.last} </font></center> {/if} {/section} {if $AFF_CDDA} <a href="playdb.php?type=cdda&disque={$LETTRE_CDDA}">Lire {$LETTRE_CDDA}: en tant que cd</a> {/if} {assign var=NUM_ROW_AFFICH value=15} <table width="498" cellpadding="0" cellspacing="0" align="center" valign="middle"> {if $PLAYREP OR $AFF_FAVORIS} <tr><td colspan="2"><center> {/if} {if $PLAYREP} <img src="{$SKIN_REP}dossier/rep_all.gif" border="0" width="20" height="20"><a href="{$PAGE_LECT_REP}?toplay={$REP|urlencode}&type=playrep"> {$PLAYREP_TEXT|default:"Lire le r\xE9pertoire complet"}</a> {/if} {if $PLAYREP AND $AFF_FAVORIS} - {/if} {if $AFF_FAVORIS} <img src="{$SKIN_REP}dossier/favoris.gif" width="20" height="20"> <a href="{$RACINE_REP}module/favoris/index1.php?ajout={$REP|urlencode}&nom={$REP}">Ajouter aux favoris</a> {/if} {if $PLAYREP OR $AFF_FAVORIS} </center></td></tr> {/if} {if $MIN!=0} {assign var=temp value=$MIN-$NUM_ROW_AFFICH|max:0} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> <a href="{$PAGE_EXPLO}?start={$MIN-$NUM_ROW_AFFICH|max:0}&directory={$REP|urlencode}&mode={$MODE}"><font size=2>Pr\xE9c\xE9dent</font></a> <a href="{$PAGE_EXPLO}?start=0&directory={$REP|urlencode}&mode={$MODE}"><font size=2>D\xE9but du r\xE9pertoire</font></a></td></tr> {attribbouton touche="green" lien="$PAGE_EXPLO?start=$temp&directory=$rep_encoded&mode=$MODE"} {/if} {if $Nb_rep_path >='2' AND $MIN==0} {assign var=temp value=$REP|dirname|realpath|urlencode} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_jaune.gif" border="0"> <a focused href="{$PAGE_EXPLO}?directory={$REP|dirname|realpath|urlencode}&mode={$MODE}">Dossier parent</a></td></tr> {attribbouton touche="yellow" lien="$PAGE_EXPLO?directory=$temp&mode=$MODE"} {elseif $Nb_rep_path >='2'} {assign var=temp value=$REP|dirname|realpath|urlencode} {attribbouton touche="yellow" lien="$PAGE_EXPLO?directory=$temp&mode=$MODE"} {/if} {section name=files loop=$T_affich max=$NUM_ROW_AFFICH start=$MIN} {if $T_affich[files]|in_array:$T_rep} {assign var="rep_a_affich" value=$REP|cat:'/'|cat:$T_affich[files]} <tr><td colspan="2"><img src="{$SKIN_REP}dossier/folder.gif"> <font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_EXPLO}?directory={$rep_a_affich|realpath|urlencode}&mode={$MODE}">{$T_affich[files]|truncate:55|strip_delimiters}</a></font></td></tr> {else} <tr><td><img src="{$SKIN_REP}dossier/{$ICONE_FICHIER}" width="16" height="16"> <font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_LECT}?{$OPT_LIENS}toplay_file={$T_affich[files]|urlencode}&toplay_rep={$REP|urlencode}">{$T_affich[files]|strip_delimiters|truncate:52}</a> </font></td><td width="35"> {if $AFF_INFO} {assign var="nb" value=$T_affich[files]|strrpos:"."} <a href="fichefilm.php?start={$MIN}&comeback=expl&film={$T_affich[files]|substr:0:$nb|urlencode}&fichier={$REP|cat:'/'|cat:$T_affich[files]|realpath|urlencode}"><font size="1">info</font></a> {/if} </td></tr> {/if} {/section} {assign var=N_affich value=$T_affich|@count} {assign var=N_affich_reste value=$NUM_ROW_AFFICH|max:15} {if $MIN+$smarty.section.files.total<count($T_affich)} <tr><td colspan="2"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> <a href="{$PAGE_EXPLO}?start={$MIN+$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}"><font size=2>Suivant</font></a> - <font size=2><a href="{$PAGE_EXPLO}?start={$N_affich-$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}">Fin du r\xE9pertoire</a> - Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td></tr> {assign var=temp value=$MIN+$smarty.section.files.total} {attribbouton touche="blue" lien="$PAGE_EXPLO?start=$temp&directory=$rep_encoded&mode=$MODE"} {else} <tr><td colspan="2"><font size=2>Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td></tr> {/if} </table> {$FOOTER} \ No newline at end of file Added: trunk/module/cac40/cac40.tpl =================================================================== --- trunk/module/cac40/cac40.tpl (rev 0) +++ trunk/module/cac40/cac40.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,7 @@ +<center><img src="{$IMG2FBX}{"http://boursier.fininfo.fr/enhydra/cmbj/servlet/BoursierIntradayServlet?present=boursierivaleur&id1=FR0003500008&dim=470,300&typ1=area"|urlencode}" width="470" height="300"><br> +A {$heure}, la bourse de Paris est \xE0 {$cours} Pts, en {$variation} de {$pourcentage}<br> +<table width="450" cellpadding="2" cellspacing="0"><tr> +<td width=25%>Clot. pr\xE9c. :</td><td width=25%>{$cloture_precedente} Pts</td><td width=25%>Ouverture :</td><td width=25%>{$ouverture} Pts</td></tr><tr> +<td colspan="2">Variation journali\xE8re :</td><td colspan="2">{$var_jour} Pts</td></tr><tr> +<td colspan="2">Variation annuelle :</td><td colspan="2">{$var_annee} Pts</td> +</tr></table></center> Added: trunk/module/diaporama/explorateur_photo.tpl =================================================================== --- trunk/module/diaporama/explorateur_photo.tpl (rev 0) +++ trunk/module/diaporama/explorateur_photo.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,77 @@ +{assign var=NUM_ROW_AFFICH value=15} +{assign var=rep_encoded value=$REP|urlencode} + +<center> +{assign var=prev_dir value=$REP|dirname|realpath|urlencode} +{if $Nb_rep_path >='2'} +<img src="{$INTERFACE_REP}btn_jaune.gif" border="0"> <a focused href="index1.php?rep={$prev_dir}">Dossier parent</a> - +{attribbouton touche="yellow" lien="index1.php?rep=$prev_dir"} +{elseif $Nb_rep_path =='1'} +<img src="{$INTERFACE_REP}btn_jaune.gif" border="0"> <a focused href="index1.php?dos=disks">Dossier parent</a> - +{attribbouton touche="yellow" lien="index1.php?dos=disks"} +{/if} + +{section name=path loop=$CHEMIN_REP start=count($CHEMIN_REP)-2} + {if $smarty.section.path.first} + <font size="1"> + {/if} + <a href="{$PAGE_EXPLO}?directory={$CHEMIN_REP[path].0}&mode={$MODE}">{$CHEMIN_REP[path].1|strip_delimiters}/</a> + {if $smarty.section.path.last} + </font> + {/if} +{/section} +</center> + + {section name=files loop=$files max=$NUM_ROW_AFFICH start=$MIN} + {cycle name=place assign=place print=false values="4,3,2,1,0"} + {if $smarty.section.files.first} + <table border="0" cellpadding="0" cellspacing="0" width="500" height="436" align="center"><tr> + {if $MIN!=0} + {assign var=temp value=$MIN-$NUM_ROW_AFFICH} + {attribbouton touche="green" lien="index1.php?start=$temp&rep=$rep_encoded"} + <td colspan="5" align=center><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> <a href="index1.php?start={$temp}&rep={$rep_encoded}">Pr\xE9c\xE9dent</a> <a href="index1.php?start=0&rep={$rep_encoded}">D\xE9but</a></td></tr><tr> + {/if} + {/if} + + {if $files[files]|in_array:$T_repertoire} + {if $DOS} + <td width="100" height="130"><a href="index1.php?rep={$files[files].path|urlencode}"><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align="center"><img border=0 width="64" height="64" src="lecteur.gif"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><font size="1">{$files[files].nom} ({$files[files].lettre|strtolower}:)</font></td></tr></table></a></td> + {else} + <td width="100" height="130"><a href="index1.php?rep={$REP|cat:'/'|cat:$files[files]|urlencode}"><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align="center"><img border=0 width="64" height="64" src="big_dossier.gif"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><font size="1">{$files[files]|truncate:26:"":true|wordwrap:15:"<br>":true|strip_delimiters}</font></td></tr></table></a></td> + {/if} + {else} + {assign var="dim" value=$REP|cat:'/'|cat:$files[files]|getimagesize} + {assign var="newdim" value=$dim.0|get_size:$dim.1} + + <td width="100" height="130" valign="middle" align="center"><a href="index1.php?image={$smarty.section.files.index}&rep={$rep_encoded}&start={$MIN}"><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align="center" background="fond_cell.gif"><img width="{$newdim.0}" height="{$newdim.1}" border="0" src="{$RACINE_REP}_framework/lib/img_cr.php?local=1&formatw=88&formath=68&img={$REP|cat:'/'|cat:$files[files]|urlencode}"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><font size="1">{$files[files]|truncate:26:"":true|wordwrap:15:"<br>":true|strip_delimiters}</font></td></tr></table></a></td> + {/if} + + + {if $smarty.section.files.iteration is div by 5 AND NOT $smarty.section.files.last} + </tr><tr> + {/if} + + {if $smarty.section.files.last} + {if $place >= 4} + <td> </td> + {/if} + {if $place >= 3} + <td> </td> + {/if} + {if $place >= 2} + <td> </td> + {/if} + {if $place >= 1} + <td> </td> + {/if} + </tr> + {if $MIN+$NUM_ROW_AFFICH < $rows} + {assign var=temp value=$MIN+$NUM_ROW_AFFICH} + {attribbouton touche="blue" lien="index1.php?start=$temp&rep=$rep_encoded"} + <tr><td colspan="5" align=center height=25 valign=bottom><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> <a href="index1.php?start={$temp}&rep={$rep_encoded}">Suivant</a> <a href="index1.php?start={$rows-$NUM_ROW_AFFICH}&rep={$rep_encoded}">Fin</a></td></tr> + {/if} + + </table> + {/if} + + {/section} Added: trunk/module/diaporama/photo.tpl =================================================================== --- trunk/module/diaporama/photo.tpl (rev 0) +++ trunk/module/diaporama/photo.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,37 @@ +{setbackground path="interface/noir.jpg"} +{assign var=rep_encoded value=$REP|urlencode} +{assign var=next value=$aff+1} +{assign var=prec value=$aff-1} +{attribbouton touche="red" lien="index1.php?start=$MIN&rep=$rep_encoded&tosee=$aff&force_back=1"} +{if $aff >=1}{attribbouton touche="green" lien="index1.php?image=$prec&start=$MIN&rep=$rep_encoded&delais=$delais&tourne=$tourne"}{/if} +{if $aff+1 < count($files)}{attribbouton touche="blue" lien="index1.php?image=$next&start=$MIN&rep=$rep_encoded&delais=$delais&tourne=$tourne"}{/if} +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<html> +<head> +{include file="bouton.tpl"} +</head> +<body background="ts://127.0.0.1" text="{#COULEUR_TEXT#}" link="{#COULEUR_LINK#}" alink="{#COULEUR_ALINK#}" vlink="{#COULEUR_VLINK#}"> +<center> +<table width="635" height="510" border="0" cellpadding="0" cellspacing="0"><tr><td align="center" valign="top"> + <table border="0" cellpadding="0" cellspacing="0" width="580" height="500"> + <tr bgcolor="#0000003f"><td align="center" valign="middle" width="580" height="462"><img border=0 src="{$RACINE_REP}_framework/lib/img_cr.php?local=1&quality=max&formatw=570&formath=460&tourne={$tourne}&img={$REP|cat:'/'|cat:$files.$aff|urlencode}"></td></tr> + <tr bgcolor="#00000000"><td width="580" height="3"><img src="transparent.gif" width="1" height="1"></td></tr> + <tr><td width="580" height="35" bgcolor="#A3B7CD3f"> + <table border="0" cellpadding="0" cellspacing="0" width="580" bgcolor="#A3B7CD3f"><tr> + <td width="80" align="center">{if $aff >=1}<img src="{$INTERFACE_REP}btn_vert.gif" border="0"> <a href="index1.php?image={$prec}&start={$MIN}&rep={$rep_encoded}&delais={$delais}&tourne={$tourne}"><font size="1">Prec.</font></a>{else} {/if}</td> + <td width="200" align="center"><font size="1">{if $delais==0}<form name="form1" method="get" action="index1.php">Diaporama : <input name="delais" bgcolor="{#COULEUR_TEXTBOX#}" type=text value="" size=2 maxlength=2> sec<input name=image type=hidden value="{if $aff+1 == count($files)}0{else}{$aff}{/if}"><input name=rep type=hidden value="{$REP}"><input name=tourne type=hidden value="{$tourne}"><input name=start type=hidden value="{$MIN}"></form>{else}<a href="index1.php?rep={$REP|urlencode}&start={$MIN}&image={$aff}">Arr\xE9ter le diaporama</a> ({$delais}sec){/if}</font></td> + <td width="135" align="center"><a href="index1.php?start={$MIN}&rep={$REP|urlencode}&tosee={$aff}&force_back=1"><img src="{$INTERFACE_REP}btn_rouge.gif" border="0"><font size="1"> Expl.</font></a></td> + <td width="40" align="center"><font size="1">{$aff+1}/{$files|@count}</font></td> + <td width="20" align="center"><a href="index1.php?image={$aff}&start={$MIN}&rep={$REP|urlencode}&delais={$delais}&tourne={$tourne-90}"><table border="0" cellpadding="0" cellspacing="0" width="16" height="16" bgcolor="#A3B7CD3f" abgcolor="#4491CA3f"><tr height="16"><td width="16" height="16"><img src="gauche.gif" border="0" width="16" height="16"></td></tr></table></a></td> + <td width="5" align="center"> </td> + <td width="20" align="center"><a href="index1.php?image={$aff}&start={$MIN}&rep={$REP|urlencode}&delais={$delais}&tourne={$tourne+90}"><table border="0" cellpadding="0" cellspacing="0" width="16" height="16" bgcolor="#A3B7CD3f" abgcolor="#4491CA3f"><tr height="16"><td width="16" height="16"><img src="droite.gif" border="0" width="16" height="16"></td></tr></table></a></td> + <td width="80" align="center">{if $aff+1 < count($files)}<img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> <a focused href="index1.php?image={$next}&start={$MIN}&rep={$rep_encoded}&delais={$delais}&tourne={$tourne}"><font size="1">Suiv.</font></a>{else} {/if}</td> + </tr></table> + </td></tr> + </table> +</td></tr></table> +</center> +<script language="javascript" src="/fb2ie.js"> +</script> +</body> +</html> Added: trunk/module/dvd/menu_dvd.tpl =================================================================== --- trunk/module/dvd/menu_dvd.tpl (rev 0) +++ trunk/module/dvd/menu_dvd.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,20 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<html> +<head> +{include file="bouton.tpl"} +{setbackground path="none"} +</head> +<body background="ts://127.0.0.1" text="{#COULEUR_TEXT#}" link="{#COULEUR_LINK#}" alink="{#COULEUR_ALINK#}" vlink="{#COULEUR_VLINK#}"> +<center> +<table border="0" cellpadding="0" cellspacing="0" valign=top><tr> +<td bgcolor="{#COULEUR_FOND2#}" align=center valign=top> +<font size="4"><u>{$titre}</u></font><br> <br> + <table border="0" align="center" cellpadding="0" cellspacing="0"><tr><td align="center"><br> + {$affich} + </td></tr></table> +</td></tr></table> +</center> +<script language="javascript" src="/fb2ie.js"> +</script> +</body> +</html> Added: trunk/module/ephemeride/ephemeride.tpl =================================================================== --- trunk/module/ephemeride/ephemeride.tpl (rev 0) +++ trunk/module/ephemeride/ephemeride.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,12 @@ +<center>{$smarty.now|date_format:"%W"}e semaine +<br><font size="5">{$smarty.now|date_format:"%B"}</font> +<br><font size="10"><b>{$smarty.now|date_format:"%d"}</b></font> +<br><font size="5">{$smarty.now|date_format:"%A"}</font> +<br> +<br> +<u>Proverbe du jour</u> :<br>{$proverbe}<br> <br> +<u>Citation du jour</u> :<br>{$citation} (<b>{$auteur}</b>)<br> <br> +<u>Dicton du jour</u> :<br>{$dicton}<br> <br> +<u>Aujourd'hui, on f\xEAte</u> les {$fetes} + +<br> <br><img src="{$INTERFACE_REP}anniv.gif" width="60" height="60"><a href="anivdujour.php">Les anniversaires du jour</a><br></center> Added: trunk/module/favoris/favoris.tpl =================================================================== --- trunk/module/favoris/favoris.tpl (rev 0) +++ trunk/module/favoris/favoris.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,22 @@ +<a href="index1.php?action=explorateur">Ajouter un favori \xE0 la liste</a><br> <br> + +{section name=table loop=$CONTENT_TABLE} + {if $smarty.section.table.first} + <table width="450" border="0" cellpadding="0" cellspacing="0"> + {/if} + {if strlen($CONTENT_TABLE[table].1) <= 6} + {assign var="nb" value=strlen($CONTENT_TABLE[table].1)} + {else} + {assign var="nb" value=$CONTENT_TABLE[table].1|strrpos:"/"} + {assign var="nb" value=$nb+1} + {/if} + {cycle name=color assign=COLOR print=false values="`$smarty.config.COULEUR_INTERFACE1`,`$smarty.config.COULEUR_INTERFACE2`"} + + <tr><td width=434 bgcolor="{$COLOR}"><a href="{$RACINE_REP}module/films/index1.php?directory={$CONTENT_TABLE[table].1|urlencode}">{$CONTENT_TABLE[table].1|substr:$nb}</a></td><td width="20" bgcolor="{$COLOR}"><a href="index1.php?action=suppr&enlev={$CONTENT_TABLE[table].0}"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{$COLOR}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}delete.gif" border="0" width="20" height="20"></td></tr></table></a></td></tr> + + {if $smarty.section.table.last} + </table> + {/if} +{sectionelse} +Aucun favoris enregistr\xE9... Pour enregistrer un signet, cliquez sur "Ajouter aux favoris" dans l'explorateur de films ou cliquez sur "Ajouter un favori \xE0 la liste" au dessus. +{/section} Added: trunk/module/films/catalogue_video.tpl =================================================================== --- trunk/module/films/catalogue_video.tpl (rev 0) +++ trunk/module/films/catalogue_video.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,143 @@ +{if $tri=="name" OR $tri=="date" OR $tri=="perso"} + {assign var=NUM_ROW_AFFICH value=15} + + {section name=files loop=$result max=$NUM_ROW_AFFICH start=$MIN} + {cycle name=place assign=place print=false values="4,3,2,1,0"} + {if $smarty.section.files.first} + <table border="0" cellpadding="0" cellspacing="0" width="500" height="436" align="center"><tr> + {if $MIN!=0} + {assign var=temp value=$MIN-$NUM_ROW_AFFICH} + {attribbouton touche="green" lien="catalogue.php?start=$temp&tri=$tri&sens=$sens"} + <td colspan="5" align=center><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> <a href="catalogue.php?start={$temp}&tri={$tri}&sens={$sens}">Pr\xE9c\xE9dent</a> <a href="catalogue.php?start=0&tri={$tri}&sens={$sens}">D\xE9but</a></td></tr><tr> + {/if} + {/if} + + {if $tri=="name" OR $tri=="date"} + <td width="100" height="130"><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}"><tr height="80"><td width="100" height="80" valign="middle" align=center><img width="60" height="80" border="0" src="{$IMG2FBX}{$result[files].img|urlencode}&new_width=60&new_height=80&cache=1"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><a href="play.php?toplay={$result[files].dir|realpath|urlencode}"><font size="1">{$result[files].name|truncate:12:'..':true}</font></a><br><font size="1">{if $result[files].sortie != 2}({$result[files].sortie|default:200|date_format:"%Y"}) - {/if}<a href="fichefilm.php?film={$result[files].name|urlencode}&fichier={$result[files].dir|realpath|urlencode}&start={$MIN}">Infos</a></font></td></tr></table></td> + {elseif $tri=="perso"} + <td width="100" height="130"><a href="catalogue.php?tri=perso&start={$MIN}&sens={$sens}&suiv={$result[files].nom|urlencode}"><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align=center><img width="60" height="80" border="0" src="{$IMG2FBX}{$result[files].img|urlencode}&new_width=60&new_height=80&cache=1"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><font size="1">{$result[files].nom|wordwrap:18:"<br>":true}</font></td></tr></table></a></td> + {/if} + + {if $smarty.section.files.iteration is div by 5 AND NOT $smarty.section.files.last} + </tr><tr> + {/if} + + {if $smarty.section.files.last} + {if $place >= 4} + <td> </td> + {/if} + {if $place >= 3} + <td> </td> + {/if} + {if $place >= 2} + <td> </td> + {/if} + {if $place >= 1} + <td> </td> + {/if} + </tr> + {if $MIN+$NUM_ROW_AFFICH < $rows} + {assign var=temp value=$MIN+$NUM_ROW_AFFICH} + {attribbouton touche="blue" lien="catalogue.php?start=$temp&tri=$tri&sens=$sens"} + <tr><td colspan="5" align=center height=25 valign=bottom><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> <a href="catalogue.php?start={$temp}&tri={$tri}&sens={$sens}">Suivant</a> <a href="catalogue.php?start={$rows-$NUM_ROW_AFFICH}&tri={$tri}&sens={$sens}">Fin</a></td></tr> + {/if} + + </table> + {/if} + + {/section} +{elseif $tri=="perso_suiv"} +<table border="0" cellpadding="0" cellspacing="0" align="center"> + <tr><td width="120" height="160"><img src="{$IMG2FBX}{$info.img|urlencode}&cache=1"></td> + <td width="369"> + <font size="4"><u>{$info.nom}</u></font>, {$info.statut} + {if $info.date_naissance!='2'}, <u>N\xE9 le</u> : {$info.date_naissance|date_format:"%e %B %Y"} \xE0 {$info.lieu_naissance}{/if} + <br><u>Biographie</u><br> + {$info.bio|strip_tags|wordwrap:100|htmlentities|truncate:500|default:"Aucune information disponible"} + </td></tr><tr><td colspan="2"> + <br><u>A particip\xE9 \xE0</u> :<br> <br> + + {section name=films_with loop=$result max=5} + {cycle name=place assign=place print=false values="4,3,2,1,0"} + {if $smarty.section.films_with.first} + <table border="0" cellpadding="0" cellspacing="0" width="500" align="center"><tr> + {/if} + + <td width="100" height="130"><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}"><tr height="80"><td width="100" height="80" valign="middle" align=center><img width="60" height="80" border="0" src="{$IMG2FBX}{$result[films_with].img|urlencode}&new_width=60&new_height=80&cache=1"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><a href="play.php?toplay={$result[films_with].dir|realpath|urlencode}"><font size="1">{$result[films_with].name|truncate:12:'..':true}</font></a><br><font size="1">{if $result[films_with].sortie != 2}({$result[films_with].sortie|default:200|date_format:"%Y"}) - {/if}<a href="fichefilm.php?film={$result[films_with].name|urlencode}&fichier={$result[films_with].dir|realpath|urlencode}&start={$MIN}">Infos</a></font></td></tr></table></td> + + {if $smarty.section.films_with.last} + + {if $place >= 4} + <td> </td> + {/if} + {if $place >= 3} + <td> </td> + {/if} + {if $place >= 2} + <td> </td> + {/if} + {if $place >= 1} + <td> </td> + {/if} + </tr> + </table> + {/if} + {/section} +</td></tr></table> +{elseif $tri=="film" OR $tri=="genre"} + <br> + <table border="0" cellpadding="0" cellspacing="0" width="499" align="left"><tr><td width="465"> + + {assign var=NUM_ROW_AFFICH value=20} + {section name=files loop=$rea max=$NUM_ROW_AFFICH start=$MIN} + + <img border="0" src="{$INTERFACE_REP}puce.gif"> <a href="catalogue.php?tri={$tri}&suiv={$rea[files]|urlencode}">{$rea[files]|ucfirst}</a><br> + + {/section} + + </td></tr></table> +{elseif $tri=="film_suiv" OR $tri=="genre_suiv"} + {assign var=NUM_ROW_AFFICH value=15} + {attribbouton touche="red" lien="catalogue.php?tri=$tri"} + {section name=files loop=$result max=$NUM_ROW_AFFICH start=$MIN} + {cycle name=place assign=place print=false values="4,3,2,1,0"} + {if $smarty.section.files.first} + <table border="0" cellpadding="0" cellspacing="0" width="500" height="436" align="center"><tr> + {if $MIN!=0} + {assign var=temp value=$MIN-$NUM_ROW_AFFICH} + {attribbouton touche="green" lien="catalogue.php?start=$temp&tri=$tri&sens=$sens&suiv=$suiv"} + <td colspan="5" align=center><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> <a href="catalogue.php?start={$temp}&tri={$tri}&sens={$sens}&suiv={$suiv}">Pr\xE9c\xE9dent</a> <a href="catalogue.php?start=0&tri={$tri}&sens={$sens}&suiv={$suiv}">D\xE9but</a></td></tr><tr> + {/if} + {/if} + + <td width="100" height="130"><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}"><tr height="80"><td width="100" height="80" valign="middle" align=center><img width="60" height="80" border="0" src="{$IMG2FBX}{$result[files].img|urlencode}&new_width=60&new_height=80&cache=1"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><a href="play.php?toplay={$result[files].dir|realpath|urlencode}"><font size="1">{$result[files].name|truncate:12:'..':true}</font></a><br><font size="1">{if $result[files].sortie != 2}({$result[files].sortie|default:200|date_format:"%Y"}) - {/if}<a href="fichefilm.php?film={$result[files].name|urlencode}&fichier={$result[files].dir|realpath|urlencode}&start={$MIN}">Infos</a></font></td></tr></table></td> + + {if $smarty.section.files.iteration is div by 5 AND NOT $smarty.section.files.last} + </tr><tr> + {/if} + + {if $smarty.section.files.last} + {if $place >= 4} + <td> </td> + {/if} + {if $place >= 3} + <td> </td> + {/if} + {if $place >= 2} + <td> </td> + {/if} + {if $place >= 1} + <td> </td> + {/if} + </tr> + {if $MIN+$NUM_ROW_AFFICH < $rows} + {assign var=temp value=$MIN+$NUM_ROW_AFFICH} + {attribbouton touche="blue" lien="catalogue.php?start=$temp&tri=$tri&sens=$sens&suiv=$suiv"} + <tr><td colspan="5" align=center height=25 valign=bottom><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> <a href="catalogue.php?start={$temp}&tri={$tri}&sens={$sens}&suiv={$suiv}">Suivant</a> <a href="catalogue.php?start={$rows-$NUM_ROW_AFFICH}&tri={$tri}&sens={$sens}&suiv={$suiv}">Fin</a></td></tr> + {/if} + + </table> + {/if} + + {/section} +{/if} Added: trunk/module/films/fichefilm.tpl =================================================================== --- trunk/module/films/fichefilm.tpl (rev 0) +++ trunk/module/films/fichefilm.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,36 @@ +{if isset($info) AND $info != 'Aucun film trouv\xE9'} +<table cellspacing=0 align="center"> + <tr><td width="120" height="160"><img src="{$IMG2FBX}{$info.image|urlencode}&cache=1"></td> + <td width="369"> + <font size="4"><u>{$info.nom}</u></font>{if file_exists($fichier)!=''} - <a href="play.php?toplay={$fichier|urlencode}">Lire le film avec Easybox</a>{/if} + <br><u>Date de sortie</u> : {$info.date_sortie|date_format:"%d/%m/%Y"} + <br><u>R\xE9alis\xE9 par</u> {$info.realisateur} + <br><u>Avec</u> {$info.acteurs} + <br><u>Film</u> {$info.nationalite} de {$info.anne_prod} + <br><u>Dur\xE9e</u> : {$info.duree} <u>Genre</u> : {$info.genre} + <br><u>Notes</u> : Presse <img src="{$INTERFACE_REP}star{$info.critique_presse}.gif"> Spectateurs <img src="{$INTERFACE_REP}star{$info.critique_visiteurs}.gif"> + </td><tr><td colspan="2"> + <u>Synopsis</u><br> + {$info.synopsis|strip_tags|wordwrap:60|htmlentities|truncate:650:$more} + <br> + {section name=ba loop=$ba} + <a href="playba.php?toplay={$ba[ba].2}&titre={$info.nom|urlencode}"><img src="{$INTERFACE_REP}{$ba[ba].1}.gif" border=0 width=20 height=20> {$ba[ba].0}</a> + {if !$smarty.section.ba.last} - {/if} + {/section} + + {if $_GET.togo=='cine'} + <br><a href="/module/seances/voirsalle.php?salle={$_GET.salle}">Retour \xE0 la liste des films du cin\xE9ma</a> + {/if} +</td></tr></table> +{elseif $disable} +<center><font size="4">Aucune information disponible pour <br><u>{$fichier}</u></font><br></font> +{else} +<center><font size="4">Aucune information disponible pour <br><u>{$fichier}</u></font><br> <br><a href="play.php?toplay={$fichier|urlencode}">Lire le film avec Easybox</a><br> <br> + {if $_GET.togo=='cine'} + <br><a href="/module/seances/voirsalle.php?salle={$_GET.salle}">Retour \xE0 la liste des films du cin\xE9ma</a><br> <br> + {attribbouton touche="red" lien="/module/seances/voirsalle.php?salle=$_GET.salle"} + {/if} + +<a href="{$LINK.red}">Retour</a> +</center> +{/if} Added: trunk/module/films/films.tpl =================================================================== --- trunk/module/films/films.tpl (rev 0) +++ trunk/module/films/films.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,75 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<html> +<head> +{include file="bouton.tpl"} +{setbackground path="none"} +</head> +<body background="ts://127.0.0.1" text="{#COULEUR_DVD_TEXT#}" link="{#COULEUR_DVD_LINK#}" alink="{#COULEUR_DVD_ALINK#}" vlink="{#COULEUR_DVD_VLINK#}"> +<center> +<table width="645" height="510" border="0" cellpadding="0" cellspacing="0"><tr> +<td height="400" align="center" valign="top"> +</td> +</tr> +<tr> +<td height="110" align="center"><center> +<table width="571" height="106" border="0" cellpadding="0" cellspacing="0" background="{$SKIN_REP}interface/player.gif"><tr> +<td height="23"> </td> +</tr> +<tr> +<td height="15"> +<table width="571" height="15" border="0" cellpadding="0" cellspacing="0"><tr> +<td width="15"></td> + +{assign var=stream_1 value="`$VLC.pourcentage_courant/100*529`"|round} +{assign var=stream_2 value="`$stream_1*-1`"} + +<td width="{$stream_1}" background="{$SKIN_REP}interface/barre1.gif"></td> +<td width="14" height="15"><img src="{$SKIN_REP}interface/barre2.gif" width="14" height="15"></td> +<td width="{$stream_2+529}" background="{$SKIN_REP}interface/barre3.gif"></td> +<td width="13"></td> +</tr></table> +</td> +</tr> +<tr> +<td height="5"> </td> +</tr> +<tr> +<td height="21"><table width="571" border="0" cellspacing="0" cellpadding="0"><tr> +<td width="27"> </td> +<td width="25"><a {if $VLC.etat=='playing' OR $VLC.etat =='paused'}focused {/if}href="info.php?control=pause"><font size=3 family="Symbol">{if $VLC.etat =='paused'}T{else}Y{/if}</font></a></td> +<td width="21"> </td> +<td width="17"><a {if $VLC.etat =='stop'}focused {/if}href="lecture.php?control=stop"><font size=3 family="Symbol">Z</font></a></td> +<td width="7"> </td> +<td width="19"><a href="lecture.php?seek_value=moins"><font size=3 family="Symbol">@@</font></a></td> +<td width="19"><a href="lecture.php?seek_value=plus"><font size=3 family="Symbol">AA</font></a></td> +<td width="6"> </td> +<td width="18"><a href="{$MODULE}_menu/menu.php"><font size=3 family="Symbol">[</font></a></td> +<td width="21"><a href="{$MODULE}films/lecture.php?savesignet=1"><font size=3 family="Symbol">§</font></a></td> +<td width="9"> </td> +<td width="382">{$nomcourant|default:$VLC.url_current|truncate:40:''}</td> +</tr></table></td> +</tr> +<tr> +<td><table width="571" height="35" cellspacing="2"><tr> +<td width="35"> </td> +<td> +<form name="form1" method="get" action="info.php"> +<font size="1" color="#ffffff3f">Aller \xE0 : </font> +<input name=heures bgcolor="{#COULEUR_TEXTBOX#}" type=text value="" size=1 maxlength=1> h +<input name=minutes bgcolor="{#COULEUR_TEXTBOX#}" type=text value="" size=2 maxlength=2> min +<input name=secondes bgcolor="{#COULEUR_TEXTBOX#}" type=text value="" size=2 maxlength=2> sec +</form> +</td> +<td><font size="1" color="#ffffff3f">{$temps_affich}</font> +</td> +</tr></table></td> +</tr> +</table> +</center></td> +</tr> +</table> +</center> +<script language="javascript" src="/fb2ie.js"> +</script> +</body> +</html> Added: trunk/module/films/signet_ask.tpl =================================================================== --- trunk/module/films/signet_ask.tpl (rev 0) +++ trunk/module/films/signet_ask.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,5 @@ +<center>Le film n'est pas fini ! <br> +Voulez-vous placer un signet pour y revenir rapidement plus tard ?<br> +<br> +<a href="lecture.php?control=stop&signet=load"><box border=2 width=35 height=18 align=center text="Oui"></a> <a href="lecture.php?control=stop&signet=noload"><box border=2 width=35 height=18 align=center text="Non"></a> +</center> \ No newline at end of file Added: trunk/module/films/signet_film.tpl =================================================================== --- trunk/module/films/signet_film.tpl (rev 0) +++ trunk/module/films/signet_film.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,14 @@ +{section name=table loop=$CONTENT_TABLE} + {if $smarty.section.table.first} + Vous aviez enregistr\xE9 un signet pour ce film. A quel endroit du film voulez-vous aller ?<br \> <br \> <br \> + <table cellpadding=0 cellspacing=0><tr><td> + <tr><td width=434 bgcolor="#82B1EC6f"><a href="lecture.php">D\xE9but</a></td><td width="20" bgcolor="#82B1EC6f"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="#82B1EC6f"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"> </td></tr></table></td></tr> + {/if} + + {cycle name=color assign=COLOR print=false values="#3482E03f,#82B1EC3f"} + <tr><td width=434 bgcolor="{$COLOR}"><a href="lecture.php?control=seek&seek_value={$CONTENT_TABLE[table].duree}">{$CONTENT_TABLE[table].duree}</a></td><td width="20" bgcolor="{$COLOR}"><a href="{$MODULE}signet/supsignet.php?toplay={$CONTENT_TABLE[table].id}&temps={$CONTENT_TABLE[table].duree}&return=film"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{$COLOR}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}delete.gif" border="0" width="20" height="20"></td></tr></table></a></td></tr> + + {if $smarty.section.table.last} + </table></td></tr></table> + {/if} +{/section} Added: trunk/module/guidetv/guidetv.tpl =================================================================== --- trunk/module/guidetv/guidetv.tpl (rev 0) +++ trunk/module/guidetv/guidetv.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,70 @@ +{if isset($EMISSION)} +<table border="0" cellpadding="2" cellspacing="0"> + <tr><td colspan="2">De {$EMISSION.debut|date_format:"%H:%M"} \xE0 {$EMISSION.fin|date_format:"%H:%M"}, le {$cboDate|date_format:"%A %e %B %Y"} sur {$cboCateg}</td></tr> + <tr><td>{if $EMISSION.icone}<img src="{$IMG2FBX}{$EMISSION.icone|urlencode}&cache=1">{else} {/if}</td> + <td width="369"> + <font size="4">{$EMISSION.titre}</font>{if $EMISSION.note!=''} <img src="{$INTERFACE_REP}star{$EMISSION.note}.gif">{/if}<br> + {if $info_chaine.id!='inc'} + {assign var=tempo value=$info_chaine.id|cat:"|"|cat:$info_chaine.nom|cat:"|"|cat:$info_chaine.num} + {assign var=tempo value=$tempo|urlencode} + {assign var=tempi value=$EMISSION.debut-600} + {assign var=temps value=$EMISSION.fin+600} + {attribbouton touche="rec" lien=$MODULE|cat:"multiposte/add.php?etape=4&chaine=$tempo&debtime=$tempi&endtime=$temps"} + <a href="{$MODULE}multiposte/add.php?etape=4&chaine={$info_chaine.id|cat:"|"|cat:$info_chaine.nom|cat:"|"|cat:$info_chaine.num|urlencode}&debtime={$EMISSION.debut-600}&endtime={$EMISSION.fin+600}">Enregistrer avec Easybox</a><br> + {/if} + {if $EMISSION.soustitre}(<font size="1">{$EMISSION.soustitre}</font>)<br>{/if} + <i>{$EMISSION.categorie|ucfirst} + {if $EMISSION.realisateur} - R\xE9alis\xE9 par {$EMISSION.realisateur}{/if} + {if $EMISSION.presentateur} - Pr\xE9sent\xE9 par {$EMISSION.presentateur}{/if} + {if $EMISSION.acteur} - Avec {$EMISSION.acteur}{/if} + </i><br> + {if $EMISSION.duree}<i>Dur\xE9e : {$EMISSION.duree}min</i>{/if} + </td><tr><td colspan="2"> +{$EMISSION.description} +</td></tr></table> +{elseif isset($EMISSIONS)} +<table><tr><td align=left> + {if $MIN!=0} + {assign var=temp value=$MIN-16} + {attribbouton touche="green" lien="tvprogram.php?cboDate=$cboDate&cboCateg=$cboCateg&min=$temp"} + <a href="tvprogram.php?cboDate={$cboDate}&cboCateg={$cboCateg}&min={$temp}"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> Pr\xE9c\xE9dent</a><br> + {/if} + + {section name=emiss loop=$EMISSIONS max=16 start=$MIN} + <a href="tvprogram.php?cboDate={$cboDate}&cboCateg={$cboCateg}&min={$MIN}&indic_name={$EMISSIONS[emiss].specialid}">{$EMISSIONS[emiss].debut|date_format:"%H:%M"} - {$EMISSIONS[emiss].titre}</a><br> + {/section} + + {if $MIN+$smarty.section.emiss.total < count($EMISSIONS)} + {assign var=temp value=$MIN+16} + {attribbouton touche="blue" lien="tvprogram.php?cboDate=$cboDate&cboCateg=$cboCateg&min=$temp"} + <a href="tvprogram.php?cboDate={$cboDate}&cboCateg={$cboCateg}&min={$temp}"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> Suivant</a> + {/if} + +</td></tr></table> +{else} + {attribbouton touche="red" lien="index1.php"} + {if $MIN!=0} + {assign var=temp value=$MIN-20} + {attribbouton touche="green" lien="tvprogram.php?min=$temp"} + <a href="tvprogram.php?min={$temp}"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> Pr\xE9c\xE9dent</a> + {/if} + + {section name=chaine loop=$CHAINE max=20 start=$MIN} + {if $smarty.section.chaine.first} + <table width="480" height="400" border="0" cellpadding="0" cellspacing="0"><tr> + {/if} + <td width="96" height="80"><a href="tvprogram.php?cboDate={$DATE}&cboCateg={$CHAINE[chaine].nom|urlencode}"><table border="0" cellpadding="0" cellspacing="0" width="96" height="80" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="40"><td align=center width="96" height="40" valign="middle"><img width="36" height="36" border="0" src="{$CHAINE_REP}{$CHAINE[chaine].ico}"></td></tr><tr height="40"><td align=center width="96" height="40"><font size="1">{$CHAINE[chaine].nom}</font></td></tr></table></a></td> + {if $smarty.section.chaine.iteration is div by 5 AND NOT $smarty.section.chaine.last} + </tr><tr> + {/if} + {if $smarty.section.chaine.last} + </table> + {/if} + {/section} + + {if $MIN+$smarty.section.chaine.total < count($CHAINE)} + {assign var=temp value=$MIN+20} + {attribbouton touche="blue" lien="tvprogram.php?min=$temp"} + <a href="tvprogram.php?min={$temp}"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> Suivant</a> + {/if} +{/if} Added: trunk/module/horloge/horloge.tpl =================================================================== --- trunk/module/horloge/horloge.tpl (rev 0) +++ trunk/module/horloge/horloge.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,3 @@ +{assign var=image value=$INTERFACE_REP|realpath} +{assign var=image value="$image/logo.gif"|realpath} +<img src='horloge.php?taille=400&image={$image|urlencode}'> Added: trunk/module/horoscope/horoscope.tpl =================================================================== --- trunk/module/horoscope/horoscope.tpl (rev 0) +++ trunk/module/horoscope/horoscope.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,31 @@ +<font size="3">{$entete}</font><br> +{if $description AND $description != ''} +{$description} +{else} + <br/> + <br/> + <br/> +<center> +<table border="0" cellspacing="0" cellpadding="0" align="center"> +<tr> + <td align="center" width="80"><img src="images/bleu_01.gif"><br><a href="index1.php?sign=1"><font size="1">B\xE9lier</font></a></td> + <td align="center" width="80"><img src="images/bleu_02.gif"><br><a href="index1.php?sign=2"><font size="1">Taureau</font></a></td> + <td align="center" width="80"><img src="images/bleu_03.gif"><br><a href="index1.php?sign=3"><font size="1">G\xE9meaux</font></a></td> + <td align="center" width="80"><img src="images/bleu_04.gif"><br><a href="index1.php?sign=4"><font size="1">Cancer</font></a></td> + <td align="center" width="80"><img src="images/bleu_05.gif"><br><a href="index1.php?sign=5"><font size="1">Lion</font></a></td> + <td align="center" width="80"><img src="images/bleu_06.gif"><br><a href="index1.php?sign=6"><font size="1">Vierge</font></a></td> +</tr> +<tr> + <td height="13" colspan="6"> + </td> +</tr> +<tr> + <td align="center" width="80"><img src="images/bleu_07.gif"><br><a href="index1.php?sign=7"><font size="1">Balance</font></a></td> + <td align="center" width="80"><img src="images/bleu_08.gif"><br><a href="index1.php?sign=8"><font size="1">Scorpion</font></a></td> + <td align="center" width="80"><img src="images/bleu_09.gif"><br><a href="index1.php?sign=9"><font size="1">Sagittaire</font></a></td> + <td align="center" width="80"><img src="images/bleu_10.gif"><br><a href="index1.php?sign=10"><font size="1">Capricorne</font></a></td> + <td align="center" width="80"><img src="images/bleu_11.gif"><br><a href="index1.php?sign=11"><font size="1">Verseau</font></a></td> + <td align="center" width="80"><img src="images/bleu_12.gif"><br><a href="index1.php?sign=12"><font size="1">Poissons</font></a></td> +</tr> +</table> +{/if} \ No newline at end of file Added: trunk/module/infotraffic/info-trafic.tpl =================================================================== --- trunk/module/infotraffic/info-trafic.tpl (rev 0) +++ trunk/module/infotraffic/info-trafic.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,7 @@ +<center><img src="create_image.php?type={$vue}&event={$event|default:1}" width="480" height="360"><br></center> +<br> +{if $event} +<a href="index1.php?vue={$vue}&event=0">D\xE9sactiver les \xE9v\xE8nements</a> +{else} +<a href="index1.php?vue={$vue}&event=1">Activer les \xE9v\xE8nements</a> +{/if} - <a href="legende.php?vue={$vue}&event={$event|default:1}">L\xE9gende</a> Added: trunk/module/jt/emissions.tpl =================================================================== --- trunk/module/jt/emissions.tpl (rev 0) +++ trunk/module/jt/emissions.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,57 @@ +{section name=emission loop=$EMISSION start=$MIN max=5} +{assign var=CHAINEB value=$CHAINE|urlencode} +{if $smarty.section.emission.first AND $MIN!=0} + {assign var=temp value=$MIN-5} + {attribbouton touche="green" lien="chaine.php?chaine=$CHAINEB&min=$temp"} + <a href="chaine.php?chaine={$CHAINEB}&min={$temp}"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> Pr\xE9c\xE9dent</a> +{/if} + +<table border="0" cellpadding="0" cellspacing="0" width="480" align="center"><tr><td width="60" rowspan="2" valign=middle><img src="/module/jt/icone/{$EMISSION[emission].icone}" border="0" width="97" height="73"></td> +<td align=center colspan="2"><b><u>{$EMISSION[emission].nom}</u></b></td></tr> +<tr><td width="215"><table border="0" cellpadding="0" cellspacing="0" width="420"><tr><td width=50% align=center> + + {assign var=jours value=$EMISSION[emission].flux} + {assign var=nb value=$jours|@count} + {assign var=nb value=$nb/2|round} + + {section name=jours loop=$jours} + <img src="{$INTERFACE_REP}puce.gif" width="13" height="13"><a href="{$MODULE}films/play.php?type=jt&toplay={$jours[jours].adresse|urlencode}">{$jours[jours].nom}</a> + {if $smarty.section.jours.iteration is div by $nb}</td><td width=50% align=center>{else}<br>{/if} + {/section} + +</td></tr> +</table> +</td></tr></table> + +{if $smarty.section.emission.last AND $MIN+$smarty.section.emission.total < count($EMISSION)} + {assign var=temp value=$MIN+5} + + {attribbouton touche="blue" lien="chaine.php?chaine=$CHAINEB&min=$temp"} + <a href="chaine.php?chaine={$CHAINEB}&min={$temp}"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> Suivant</a> +{/if} + +{sectionelse} + + {section name=chaine loop=$CHAINE} + {cycle name=place assign=place print=false values="2,1,0"} + {if $smarty.section.chaine.first} + <table width="330" height="420" border="0" cellpadding="0" cellspacing="0"><tr> + {/if} + <td width="110" height="140"><a href="chaine.php?chaine={$CHAINE[chaine].nom|urlencode}"{if $smarty.section.chaine.first} focused{/if}><table border="0" cellpadding="0" cellspacing="0" width="110" height="140" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="110"><td align=center width="110" height="110" valign="middle"><img width="100" height="100" border="0" src="/module/jt/icone/{$CHAINE[chaine].icone}"></td></tr><tr height="30"><td align=center width="110" height="30"><font size="1">{$CHAINE[chaine].nom}</font></td></tr></table></a></td> + {if $smarty.section.chaine.iteration is div by 3 AND NOT $smarty.section.chaine.last} + </tr><tr> + {/if} + {if $smarty.section.chaine.last} + + {if $place >= 2} + <td> </td> + {/if} + {if $place >= 1} + <td> </td> + {/if} + + </table> + {/if} + {/section} + +{/section} Added: trunk/module/livescore/livescore.tpl =================================================================== --- trunk/module/livescore/livescore.tpl (rev 0) +++ trunk/module/livescore/livescore.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,34 @@ +<br> +{if isset($_GET.index)} +<table border="0" cellpadding="0" cellspacing="0" width="499" height="436"> +<tr bgcolor="{#COULEUR_INTERFACE2#}"> +<td align=center width=10%> </td> +<td align=center width=30%>Domicile</td> +<td align=center width=10%>Score</td> +<td align=center width=30%>Ext\xE9rieur</td> +<td align=center width=20%>Surveiller</td> +</tr> + +{foreach from=$journee item=jour name=day key=key} + {cycle name=color assign=COLOR print=false values="`$smarty.config.COULEUR_INTERFACE1`,`$smarty.config.COULEUR_INTERFACE2`"} + <tr bgcolor={$COLOR}><td align=center> + {if $valeur.1.$key=='finish'}<img src="{$INTERFACE_REP}finished.gif" width="14" height="14"> + {elseif $valeur.1.$key=='sup'}<img src="{$INTERFACE_REP}cancelled.gif" width="14" height="14"> + {elseif $valeur.1.$key=='encours'}<img src="{$INTERFACE_REP}encours.gif" width="14" height="14"> + {elseif $valeur.1.$key=='mitemps'}<img src="{$INTERFACE_REP}mitemps.gif" width="14" height="14"> + {else}{$valeur.1.$key}{/if} + </td><td align=center>{$valeur.7.$key|capitalize}</td><td align=center>{$valeur.10.$key}</td><td align=center>{$valeur.13.$key|capitalize}</td><td align=center>{if $valeur.14.$key}<a href="index1.php?sport={$sport}&index={$page|urlencode}&delsurv=1">Supprimer</a>{elseif $valeur.1.$key=='finish' OR $valeur.1.$key=='sup'}...{else}<a href="index1.php?sport={$sport}&index={$page|urlencode}&surv={$valeur.7.$key|cat:$valeur.13.$key|md5}">Surveiller</a>{/if}</td></tr> +{/foreach} + +</table> + +{else} + {foreach from=$championnat item=champ name=championnat} + <img src="{$INTERFACE_REP}puce.gif" width="13" height="13"> <a href="index1.php?index={$champ.index|urlencode}&sport={$sport}">{$champ.nom}</a><br> + {foreachelse} + Aucune comp\xE9tition de {$sport} en cours... + {/foreach} + + <br><img src="{$INTERFACE_REP}{$sport}.gif" width="100" height="100"> + +{/if} Added: trunk/module/loto/loto.tpl =================================================================== --- trunk/module/loto/loto.tpl (rev 0) +++ trunk/module/loto/loto.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,14 @@ +<br><table width="350" border="0" cellspacing="0" cellpadding="0"> + <tr> + <td align="center" valign="middle"><img src="images/loto.gif" width="150" height="49"></td> + <td><strong><a href="loto.php">Loto & Joker </a></strong></td> + </tr> + <tr> + <td align="center" valign="middle"><img src="images/euro_millions.gif" width="150" height="110"></td> + <td><strong><a href="euromillions.php">Euro Millions </a></strong></td> + </tr> + <tr> + <td align="center" valign="middle"><img src="images/keno.gif" width="130" height="47"></td> + <td><strong><a href="keno.php">Keno </a></strong></td> + </tr> + </table> Added: trunk/module/mail/mail_inbox.tpl =================================================================== --- trunk/module/mail/mail_inbox.tpl (rev 0) +++ trunk/module/mail/mail_inbox.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,33 @@ +{section name=mail loop=$MESSAGES max=7 start=$MIN} + +{if $smarty.section.mail.first} + <br><table border="0" cellpadding="3" cellspacing="0" width="500"><tr bgcolor="{#COULEUR_INTERFACE2#}"><td width="50">De</td><td width="250">Sujet</td><td width="200">Date</td><td></td></tr> + + {if $MIN!=0} + {assign var=temp value=$MIN-7} + {attribbouton touche="green" lien="index1.php?start=$temp&compte=$compte"} + <tr><td colspan="3"><a href="index1.php?start={$temp}&compte={$compte}"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> Pr\xE9c\xE9dent</a></td></tr> + {/if} +{/if} + + {cycle name=color assign=COLOR print=false values="`$smarty.config.COULEUR_INTERFACE1`,`$smarty.config.COULEUR_INTERFACE2`"} + +<tr bgcolor="{$COLOR}"><td>{$MESSAGES[mail].expediteur}</td><td><a href="index1.php?idmess={$MESSAGES[mail].id}&compte={$compte}">{$MESSAGES[mail].sujet} +</a></td><td>{$MESSAGES[mail].date|date_format:"%A %e %B %Y %H:%M"}</td><td><a href="index1.php?sup={$MESSAGES[mail].id}&compte={$compte}"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="#0000003f" bgcolor="{$COLOR}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}delete.gif" border="0" width="20" height="20"></td></tr></table></a></td></tr> + +{if $smarty.section.mail.last} + {if $MIN+$smarty.section.mail.total < count($MESSAGES)} + {assign var=temp value=$MIN+7} + {attribbouton touche="blue" lien="index1.php?start=$temp&compte=$compte"} + <tr><td colspan="3"><a href="index1.php?start={$temp}&compte={$compte}"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> Suivant</a></td></tr> + {/if} + + </table> +{/if} +{sectionelse} +<br> <br> +Aucun nouveau mail sur le serveur. +<br> <br><a href="{$MODULE}_menu/menu.php?cat=2&nom=Internet">Retour</a> +{/section} + + Added: trunk/module/mail/mail_message.tpl =================================================================== --- trunk/module/mail/mail_message.tpl (rev 0) +++ trunk/module/mail/mail_message.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,23 @@ +<table border="0" cellpadding="0" cellspacing="0" width="500"><tr><td> +Mail re\xE7u le {$informations.date|date_format:"%A %e %B %Y %H:%M"} <img src="{$INTERFACE_REP}delete.gif" border="0" width="20" height="20"> <a href="index1.php?sup={$idmess}&compte={$compte}">Supprimer se message</a><br> +<u>Exp\xE9diteur</u> : {$informations.expediteur} ({$informations.mailfrom})<br> +<u>Objet</u> : {$informations.sujet|default:"(Pas d'objet)"}<br> + +{section name=pj loop=$pj} + {if $smarty.section.pj.first} + <u>Pieces jointes</u> : + {/if} + {$pj[pj]} + {if $smarty.section.pj.last} + <br> + {else} +; + {/if} +{/section} + + + +<br><u>Contenu du message</u> :<br> +<center>{$MESSAGE|nl2br}</center> +</td></tr></table> +<br> <br><a href="index1.php?compte={$compte}">Retour</a> Added: trunk/module/meteo/meteoft.tpl =================================================================== --- trunk/module/meteo/meteoft.tpl (rev 0) +++ trunk/module/meteo/meteoft.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,3 @@ +{if $jourmeteoft} + <center><img src="imgmeteoft.php?jourmeteoft={$jourmeteoft}"></center> +{/if} Added: trunk/module/modules/modules.tpl =================================================================== --- trunk/module/modules/modules.tpl (rev 0) +++ trunk/module/modules/modules.tpl 2006-10-26 18:00:27 UTC (rev 38) @@ -0,0 +1,53 @@ +{if $action=="mod" OR $action=="skin"} + {section name=mod loop=$MOD... [truncated message content] |
From: <ara...@us...> - 2006-10-26 19:29:40
|
Revision: 39 http://svn.sourceforge.net/easybox-mod/?rev=39&view=rev Author: aragornis Date: 2006-10-26 12:29:22 -0700 (Thu, 26 Oct 2006) Log Message: ----------- Optimisation de la recherche des bandes annonce Correction des probl?\195?\168mes sur la playlist multiposte et des enregistrements de taille 0 Modified Paths: -------------- trunk/_framework/lib/get_info.php trunk/module/guidetv/tvprogram.php trunk/module/multiposte/add.php Modified: trunk/_framework/lib/get_info.php =================================================================== --- trunk/_framework/lib/get_info.php 2006-10-26 18:00:27 UTC (rev 38) +++ trunk/_framework/lib/get_info.php 2006-10-26 19:29:22 UTC (rev 39) @@ -1 +1 @@ -<? function info_allocine($file, $forced=false, $id=0){ global $USER; //Initialisation $res['synopsis'] = "Aucune information"; $file = ucwords($file); $db = sqlite_open($USER.'video.db', 0666, $mon_message_erreur); $result=sqlite_query($db, 'SELECT * FROM film WHERE name=\''.sqlite_escape_string($file).'\''); $rows = sqlite_num_rows($result); $db2 = sqlite_open($USER.'cache.db', 0666, $mon_message_erreur); $result2=sqlite_query($db2, 'SELECT * FROM film WHERE name = \''.sqlite_escape_string($file).'\' AND file LIKE \'%'.sqlite_escape_string($file).'%\''); $rows2 = sqlite_num_rows($result2); if($rows!="0" AND !$forced){ // R\xE9cup\xE9ration depuis la base de donn\xE9es des films $row = sqlite_fetch_array($result); $res['nom'] = $row['name']; $res['dir'] = $row['dir']; $res['critique_visiteurs'] = $row['critique_visiteurs']; $res['critique_presse'] = $row['critique_presse']; $res['image'] = $row['img']; $res['synopsis'] = $row['Synopsis']; $res['date_sortie'] = $row['sortie']; $res['realisateur'] = $row['realisateur']; $res['acteurs'] = $row['avec']; $res['nationalite'] = $row['film']; $res['genre'] = $row['genre']; $res['duree'] = $row['Duree']; $res['anne_prod'] = $row['production']; $res['ba'] = $row['ba']; $res['inbdd'] = true; }elseif($rows2!="0" AND !$forced){ // R\xE9cup\xE9ration depuis le cache allocin\xE9 $row = sqlite_fetch_array($result2); $res['nom'] = $row['name']; $res['critique_visiteurs'] = $row['critique_visiteurs']; $res['critique_presse'] = $row['critique_presse']; $res['image'] = $row['img']; $res['synopsis'] = $row['Synopsis']; $res['date_sortie'] = $row['sortie']; $res['realisateur'] = $row['realisateur']; $res['acteurs'] = $row['avec']; $res['nationalite'] = $row['film']; $res['genre'] = $row['genre']; $res['duree'] = $row['Duree']; $res['anne_prod'] = $row['production']; $res['ba'] = $row['ba']; $res['inbdd'] = false; }else{ if($id==0){ // Recherche de l'id sur Allocin\xE9 if($pagerecherche = @file_get_contents('http://www.allocine.fr/recherche/?motcle='.urlencode($file).'&f=3&rub=1')){ //Critique presse (nouvelle notation et ancienne) $ereg = '<h4><a href="\/film\/fichefilm_gen_cfilm=(.{1,7}).html" class="link1">(.{1,100})<\/a><\/h4>'; preg_match_all("/$ereg/s", $pagerecherche, $valeur); $mini = -1; $filebis = strtolower($file); foreach($valeur[1] as $key=>$val){ $leven = levenshtein($filebis, strtolower(strip_tags($valeur[2][$key]))); if($leven<$mini or $mini==-1){ $id = $valeur[1][$key]; $mini = $leven; } if($mini==0){ break; } } }else{ $res = "Erreur"; } } if($res != "Erreur"){ $res = info_allocineById($id); } $res['inbdd'] = false; sqlite_query($db2, 'DELETE FROM film WHERE name LIKE \'%'.sqlite_escape_string($file).'%\' OR file LIKE \'%'.sqlite_escape_string($file).'%\''); sqlite_query($db2, 'INSERT INTO film VALUES(NULL, \''.sqlite_escape_string($file).'\', \''.sqlite_escape_string($res['nom']).'\', \''.sqlite_escape_string($res['synopsis']).'\', \''.sqlite_escape_string($res['image']).'\' , \''.sqlite_escape_string($res['date_sortie']).'\' , \''.sqlite_escape_string($res['realisateur']).'\' , \''.sqlite_escape_string($res['acteurs']).'\' , \''.sqlite_escape_string($res['nationalite']).'\' , \''.sqlite_escape_string($res['genre']).'\' , \''.sqlite_escape_string($res['duree']).'\' , \''.sqlite_escape_string($res['anne_prod']).'\' , \''.sqlite_escape_string($res['critique_visiteurs']).'\' , \''.sqlite_escape_string($res['critique_presse']).'\' , \''.sqlite_escape_string($res['ba']).'\')'); } sqlite_close($db); sqlite_close($db2); RETURN $res; } // Fonction renvoyant les infos d'un film d\xE9sign\xE9 par son ID allocin\xE9 function info_allocineById($id){ //Initialisation $res['synopsis'] = "Aucune information"; if($filmrecherche = @file_get_contents('http://www.allocine.fr/film/fichefilm_gen_cfilm='.$id.'.html')) { //R\xE9cup\xE9ration du nom du film $ereg = '<title>(.{1,150})<\/title>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['nom'] = ucwords($valeur[1]); //Critique visiteurs $ereg = 'notepresse=(.{0,10})¬epublic=(.{0,10})" marginwidth'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['critique_visiteurs'] = round(ereg_replace(",", ".", $valeur[1])); $res['critique_presse'] = round(ereg_replace(",", ".", $valeur[2])); //R\xE9cup\xE9ration de l'adresse de l'image $ereg = '<img src="http:\/\/a69.g.akamai.net\/n\/69\/10688\/v1\/img5.allocine.fr\/(.{1,70})" border="0" alt="" \/>'; preg_match("/$ereg/s", $filmrecherche, $valeur); if(trim($valeur[1])==''){ $res['image'] = 'http://a69.g.akamai.net/n/69/10688/v1/img5.allocine.fr/acmedia/skin/AlloCineV5/habillage/AffichetteAllocine.gif'; }else{ $res['image'] = 'http://a69.g.akamai.net/n/69/10688/v1/img5.allocine.fr/'.$valeur[1]; } //R\xE9cup\xE9ration du synopsis $ereg = '<td valign="top" style="padding:10 0 0 0"><div align="justify"><h4>(.{1,1000})<\/h4><\/div><\/td>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['synopsis'] = trim(strip_tags($valeur[1])); if($res['synopsis']=='') $res['synopsis'] = "Aucune information"; //R\xE9cup\xE9ration de la date $ereg = 'Date de sortie : <b>(.{1,30})<\/b>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $monthes = array('Janvier'=>'1', 'F\xE9vrier'=>'2', 'Mars'=>'3', 'Avril'=>'4', 'Mai'=>'5', 'Juin'=>'6', 'Juillet'=>'7','Ao\xFBt'=>'8', 'Septembre'=>'9', 'Octobre'=>'10', 'Novembre'=>'11', 'D\xE9cembre'=>'12'); $expl=explode(" ",$valeur[1]); if(count($expl)==3) $res['date_sortie'] = mktime(0,0,0,$monthes[$expl[1]],$expl[0],$expl[2]); else $res['date_sortie'] = 2; //R\xE9cup\xE9ration du r\xE9alisateur $ereg = '<h4>R\xE9alis\xE9 par <a class="link1" href=(.{1,150})>(.{1,40})<\/a><\/h4> '; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['realisateur'] = $valeur[2]; //R\xE9cup\xE9ration des acteurs $ereg = '<h4>Avec(.{1,1000})<\/a><\/h4><br \/><div style="padding:2 0 2 0"><h4>Film'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['acteurs'] = trim(strip_tags($valeur[1])); //Nationalit\xE9 $ereg = '<h4>Film (.{1,40}).<\/h4> <h4>Genre'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['nationalite'] = $valeur[1]; //Genre $ereg = '<h4>Genre : (.{1,450})<\/a><\/h4><br \/><h4>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['genre'] = trim(strip_tags($valeur[1])); //Dur\xE9e $ereg = '<h4>Dur\xE9e : (.{1,15}).<\/h4> '; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['duree'] = $valeur[1]; //Ann\xE9e de production $ereg = '<h4>Ann\xE9e de production : (.{1,7})<\/h4>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['anne_prod'] = $valeur[1]; // R\xE9cup\xE9ration des bandes annonces $ba=array(); if($pagerecherche = @file_get_contents('http://www.cinemovies.fr/resultat_recherche.php?cherche='.urlencode($res['nom']))){ $ereg = '<a href="fiche_film.php\?IDfilm=(.{1,6})" class="bodyFont5">'; preg_match_all("/$ereg/s", $pagerecherche, $valeur); $str2=$valeur[1][0]; if($filmrecherche = @file_get_contents('http://www.cinemovies.fr/players/media.php?IDfilm='.$str2)){ if(PHP_OS == "WIN32" || PHP_OS == "WINNT"){ $ereg = 'align="absmiddle" width="25" height="11">(.{1,25})<\/b>(.{1,2200})windows player(.{1,1300})<\/table><\/td><\/tr><tr><td'; preg_match_all("/$ereg/s", $filmrecherche, $value); }else{ $ereg = 'align="absmiddle" width="25" height="11">(.{1,25})<\/b>(.{1,1200})real(.{1,2500})<\/table><\/td><\/tr><tr><td'; preg_match_all("/$ereg/s", $filmrecherche, $value); $value[3]=$value[2]; } foreach($value[1] as $key=>$video){ $ereg = 'hd.php\?IDBA=(.{1,6})&ID'; preg_match("/$ereg/s", $value[3][$key], $flux); if(isset($flux[1])){ $ba[]=array(trim($video),'HQ',$flux[1]); }else{ $ereg = 'IDBA=(.{1,6})\';"><img border="0" src="..\/images\/v2\/div\/petite_fleche.gif" width="6" height="6">haute r'; preg_match("/$ereg/s", $value[3][$key], $flux); if(isset($flux[1])) $ba[]=array(trim($video),'N',$flux[1]); } } } } foreach($ba as $bande){ $res['ba']=str_replace('Bande annonce','BA',$res['ba'].$bande[0]).','.$bande[1].','.$bande[2].';'; } RETURN $res; }else{ RETURN "Aucun film trouv\xE9"; } } function info_personnalite($acteur){ if($pagerecherche = @file_get_contents('http://www.allocine.fr/recherche/?motcle='.urlencode($acteur).'&f=3&rub=2')){ $ereg = '<h4><a href="\/personne\/fichepersonne_gen_cpersonne=(.{1,15})" class="link1'; preg_match("/$ereg/s", $pagerecherche, $valeur); if($acteurrecherche = @file_get_contents('http://www.allocine.fr/personne/fichepersonne_gen_cpersonne='.$valeur[1])){ //R\xE9cup\xE9ration du nom "officiel" de la personnalit\xE9 $ereg = '<title>(.{1,150})<\/title>'; preg_match("/$ereg/s", $acteurrecherche, $valeur); $res['nom'] = $valeur[1]; //R\xE9cup\xE9ration de la date de naissance $ereg = '<h4><div style="padding:10 0 0 0">(.{1,100})<\/h4><\/div><div style="padding:15 0 0 0">'; preg_match("/$ereg/s", $acteurrecherche, $valeur); $expl=explode(" ",trim($valeur[1])); foreach($expl as $exp){ $new.=trim($exp).' '; } $ereg = 'N\xE9 le (.{1,18}) \xE0 (.{1,150})<br \/>'; preg_match("/$ereg/s", trim($new), $valeur); $monthes = array('Janvier'=>'1', 'F\xE9vrier'=>'2', 'Mars'=>'3', 'Avril'=>'4', 'Mai'=>'5', 'Juin'=>'6', 'Juillet'=>'7','Ao\xFBt'=>'8', 'Septembre'=>'9', 'Octobre'=>'10', 'Novembre'=>'11', 'D\xE9cembre'=>'12'); $expl=explode(" ",trim($valeur[1])); if(count($expl)==3) $res['date_naissance'] = mktime(0,0,0,$monthes[$expl[1]],$expl[0],$expl[2]); else $res['date_naissance'] = 2; $res['lieu_naissance'] = $valeur[2]; // Photo de la personnalit\xE9 $ereg = '<td valign="top" style="padding:0 10 10 0" width="120"><img src="(.{1,200})" width="120" height="160" border="0">'; preg_match("/$ereg/s", $acteurrecherche, $valeur); $res['image'] = $valeur[1]; //R\xE9cup\xE9ration de la biographie de l'artiste $ereg = '<td colspan="2" style="padding:10 0 15 0"><div align="justify"><h4>(.{1,15000})<\/h4><\/div><\/td>'; preg_match("/$ereg/s", $acteurrecherche, $valeur); $res['biographie'] = trim(strip_tags($valeur[1])); //R\xE9cup\xE9ration du role de la personnalit\xE9 $ereg = '<div><h4><b>(.{1,250})<h4><div style="padding:10 0 0 0">'; preg_match("/$ereg/s", $acteurrecherche, $valeur); $res['statut'] = trim(strip_tags($valeur[1])); RETURN $res; }else{ RETURN 'erreur'; } }else{ RETURN 'erreur'; } } function get_info_dvdfr($filmrecherche){ //R\xE9cup\xE9ration du nom du film $ereg = '<div class="dvd_title">(.{1,150})<\/div>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['nom'] = ucwords($valeur[1]); //Critique visiteurs $res['critique_visiteurs'] = ""; //Critique presse (nouvelle notation et ancienne) $res['critique_presse'] = ""; //R\xE9cup\xE9ration de l'adresse de l'image $ereg= 'src="..\/images\/dvd\/(.{1,70})" width="200" height="280"'; $valeur[1]=""; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['image'] = 'http://www.dvdfr.com/images/dvd/'.$valeur[1]; //R\xE9cup\xE9ration du synopsis $pos1 = strpos($filmrecherche,'<div class="dvd_subtitle">Synopsis</div>'); $pos1 = strpos($filmrecherche,'<div class="dvd_text">', $pos1+strlen('<div class="dvd_subtitle">Synopsis</div>')); $pos1 += strlen('<div class="dvd_text">'); $pos2 = strpos($filmrecherche,'</div>', $pos1); $res['synopsis'] = trim(strip_tags(substr($filmrecherche, $pos1, $pos2-$pos1))); $res['synopsis'] = str_replace("\n", ' ', $res['synopsis']); if($res['synopsis']=='') $res['synopsis'] = "Aucune information"; //R\xE9cup\xE9ration de la date $pos1 = strpos($filmrecherche,'<div class="dvd_subtitle">Sorti le</div>'); $pos1 = strpos($filmrecherche,'<div class="dvd_text">', $pos1+strlen('<div class="dvd_subtitle">Sorti le</div>')); $pos1 += strlen('<div class="dvd_text">'); $pos2 = strpos($filmrecherche,'</div>', $pos1); $valeur[1] = trim(strip_tags(substr($filmrecherche, $pos1, $pos2-$pos1))); $monthes = array('janvier'=>'1', 'f\xE9vrier'=>'2', 'mars'=>'3', 'avril'=>'4', 'mai'=>'5', 'juin'=>'6', 'juillet'=>'7','ao\xFBt'=>'8', 'septembre'=>'9', 'octobre'=>'10', 'novembre'=>'11', 'd\xE9cembre'=>'12'); $expl=explode(" ",$valeur[1]); if(count($expl)==3) $res['date_sortie'] = mktime(0,0,0,$monthes[$expl[1]],$expl[0],$expl[2]); else $res['date_sortie'] = 2; //R\xE9cup\xE9ration du r\xE9alisateur $res['realisateur'] = ""; //R\xE9cup\xE9ration des acteurs $pos1 = strpos($filmrecherche,'<div class="dvd_subtitle">Avec...</div>'); if ($pos1>0){ $pos1 = strpos($filmrecherche,'<div class="dvd_text">', $pos1+strlen('<div class="dvd_subtitle">Avec...</div>')); $pos1 += strlen('<div class="dvd_text">'); $pos2 = strpos($filmrecherche,'</div>', $pos1); $res['acteurs'] = trim(strip_tags(substr($filmrecherche, $pos1, $pos2-$pos1))); } //Nationalit\xE9 $res['nationalite'] = ""; //Genre $pos1 = strpos($filmrecherche,'<div class="dvd_categorie">'); while ($pos1>0){ $pos1 = strpos($filmrecherche,'<A class="home_a"', $pos1); if ($pos1>0) { $pos1 = strpos($filmrecherche,'>', $pos1); $pos1 += 1; $pos2 = strpos($filmrecherche,'</A>', $pos1); if ($res['genre']!="") $res['genre'] = $res['genre']." "; $res['genre'] = $res['genre'].trim(strip_tags(substr($filmrecherche, $pos1, $pos2-$pos1))); $pos1 = $pos2; } } //Dur\xE9e $ereg = '<td><img alt="Dur\xE9e" title="Dur\xE9e" src="..\/images\/duree.gif" width="32" height="14" align="absmiddle"><\/td>(.{1,100})<td>(.{1,50})<\/td>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['duree'] = $valeur[2]; //Ann\xE9e de production $res['anne_prod'] = ""; $res['inbdd'] = false; RETURN $res; } function info_dvdfrById($fileid){ global $USER; //Initialisation $res['synopsis'] = "Aucune information"; if($filmrecherche = @file_get_contents('http://www.dvdfr.com/dvd/dvd.php?id='.$fileid)) { $res=get_info_dvdfr($filmrecherche); }else{ //$res = "Erreur"; $res['synopsis']= 'http://www.dvdfr.com/dvd/dvd.php?id='.$fileid."\n".$pagerecherche; } RETURN $res; } ?> \ No newline at end of file +<? function info_allocine($file, $forced=false, $id=0){ global $USER; //Initialisation $res['synopsis'] = "Aucune information"; $file = ucwords($file); $db = sqlite_open($USER.'video.db', 0666, $mon_message_erreur); $result=sqlite_query($db, 'SELECT * FROM film WHERE name=\''.sqlite_escape_string($file).'\''); $rows = sqlite_num_rows($result); $db2 = sqlite_open($USER.'cache.db', 0666, $mon_message_erreur); $result2=sqlite_query($db2, 'SELECT * FROM film WHERE name = \''.sqlite_escape_string($file).'\' AND file LIKE \'%'.sqlite_escape_string($file).'%\''); $rows2 = sqlite_num_rows($result2); if($rows!="0" AND !$forced){ // R\xE9cup\xE9ration depuis la base de donn\xE9es des films $row = sqlite_fetch_array($result); $res['nom'] = $row['name']; $res['dir'] = $row['dir']; $res['critique_visiteurs'] = $row['critique_visiteurs']; $res['critique_presse'] = $row['critique_presse']; $res['image'] = $row['img']; $res['synopsis'] = $row['Synopsis']; $res['date_sortie'] = $row['sortie']; $res['realisateur'] = $row['realisateur']; $res['acteurs'] = $row['avec']; $res['nationalite'] = $row['film']; $res['genre'] = $row['genre']; $res['duree'] = $row['Duree']; $res['anne_prod'] = $row['production']; $res['ba'] = $row['ba']; $res['inbdd'] = true; }elseif($rows2!="0" AND !$forced){ // R\xE9cup\xE9ration depuis le cache allocin\xE9 $row = sqlite_fetch_array($result2); $res['nom'] = $row['name']; $res['critique_visiteurs'] = $row['critique_visiteurs']; $res['critique_presse'] = $row['critique_presse']; $res['image'] = $row['img']; $res['synopsis'] = $row['Synopsis']; $res['date_sortie'] = $row['sortie']; $res['realisateur'] = $row['realisateur']; $res['acteurs'] = $row['avec']; $res['nationalite'] = $row['film']; $res['genre'] = $row['genre']; $res['duree'] = $row['Duree']; $res['anne_prod'] = $row['production']; $res['ba'] = $row['ba']; $res['inbdd'] = false; }else{ if($id==0){ // Recherche de l'id sur Allocin\xE9 if($pagerecherche = @file_get_contents('http://www.allocine.fr/recherche/?motcle='.urlencode($file).'&f=3&rub=1')){ //Critique presse (nouvelle notation et ancienne) $ereg = '<h4><a href="\/film\/fichefilm_gen_cfilm=(.{1,7}).html" class="link1">(.{1,100})<\/a><\/h4>'; preg_match_all("/$ereg/s", $pagerecherche, $valeur); $mini = -1; $filebis = strtolower($file); foreach($valeur[1] as $key=>$val){ $leven = levenshtein($filebis, strtolower(strip_tags($valeur[2][$key]))); if($leven<$mini or $mini==-1){ $id = $valeur[1][$key]; $mini = $leven; } if($mini==0){ break; } } }else{ $res = "Erreur"; } } if($res != "Erreur"){ $res = info_allocineById($id); } $res['inbdd'] = false; sqlite_query($db2, 'DELETE FROM film WHERE name LIKE \'%'.sqlite_escape_string($file).'%\' OR file LIKE \'%'.sqlite_escape_string($file).'%\''); sqlite_query($db2, 'INSERT INTO film VALUES(NULL, \''.sqlite_escape_string($file).'\', \''.sqlite_escape_string($res['nom']).'\', \''.sqlite_escape_string($res['synopsis']).'\', \''.sqlite_escape_string($res['image']).'\' , \''.sqlite_escape_string($res['date_sortie']).'\' , \''.sqlite_escape_string($res['realisateur']).'\' , \''.sqlite_escape_string($res['acteurs']).'\' , \''.sqlite_escape_string($res['nationalite']).'\' , \''.sqlite_escape_string($res['genre']).'\' , \''.sqlite_escape_string($res['duree']).'\' , \''.sqlite_escape_string($res['anne_prod']).'\' , \''.sqlite_escape_string($res['critique_visiteurs']).'\' , \''.sqlite_escape_string($res['critique_presse']).'\' , \''.sqlite_escape_string($res['ba']).'\')'); } sqlite_close($db); sqlite_close($db2); RETURN $res; } // Fonction renvoyant les infos d'un film d\xE9sign\xE9 par son ID allocin\xE9 function info_allocineById($id){ //Initialisation $res['synopsis'] = "Aucune information"; if($filmrecherche = @file_get_contents('http://www.allocine.fr/film/fichefilm_gen_cfilm='.$id.'.html')) { //R\xE9cup\xE9ration du nom du film $ereg = '<title>(.{1,150})<\/title>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['nom'] = ucwords($valeur[1]); //Critique visiteurs $ereg = 'notepresse=(.{0,10})¬epublic=(.{0,10})" marginwidth'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['critique_visiteurs'] = round(ereg_replace(",", ".", $valeur[1])); $res['critique_presse'] = round(ereg_replace(",", ".", $valeur[2])); //R\xE9cup\xE9ration de l'adresse de l'image $ereg = '<img src="http:\/\/a69.g.akamai.net\/n\/69\/10688\/v1\/img5.allocine.fr\/(.{1,70})" border="0" alt="" \/>'; preg_match("/$ereg/s", $filmrecherche, $valeur); if(trim($valeur[1])==''){ $res['image'] = 'http://a69.g.akamai.net/n/69/10688/v1/img5.allocine.fr/acmedia/skin/AlloCineV5/habillage/AffichetteAllocine.gif'; }else{ $res['image'] = 'http://a69.g.akamai.net/n/69/10688/v1/img5.allocine.fr/'.$valeur[1]; } //R\xE9cup\xE9ration du synopsis $ereg = '<td valign="top" style="padding:10 0 0 0"><div align="justify"><h4>(.{1,1000})<\/h4><\/div><\/td>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['synopsis'] = trim(strip_tags($valeur[1])); if($res['synopsis']=='') $res['synopsis'] = "Aucune information"; //R\xE9cup\xE9ration de la date $ereg = 'Date de sortie : <b>(.{1,30})<\/b>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $monthes = array('Janvier'=>'1', 'F\xE9vrier'=>'2', 'Mars'=>'3', 'Avril'=>'4', 'Mai'=>'5', 'Juin'=>'6', 'Juillet'=>'7','Ao\xFBt'=>'8', 'Septembre'=>'9', 'Octobre'=>'10', 'Novembre'=>'11', 'D\xE9cembre'=>'12'); $expl=explode(" ",$valeur[1]); if(count($expl)==3) $res['date_sortie'] = mktime(0,0,0,$monthes[$expl[1]],$expl[0],$expl[2]); else $res['date_sortie'] = 2; //R\xE9cup\xE9ration du r\xE9alisateur $ereg = '<h4>R\xE9alis\xE9 par <a class="link1" href=(.{1,150})>(.{1,40})<\/a><\/h4><h4> '; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['realisateur'] = $valeur[2]; //R\xE9cup\xE9ration des acteurs $ereg = '<h4>Avec(.{1,1000})<\/a><\/h4><\/div><div style="padding: 2 0 2 0;"><h4>Film'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['acteurs'] = trim(strip_tags($valeur[1])); //Nationalit\xE9 $ereg = '<h4>Film (.{1,40}). <\/h4><h4>Genre'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['nationalite'] = $valeur[1]; //Genre $ereg = '<h4>Genre : (.{1,450})<\/a><\/h4><\/div><div style="padding: 2 0 2 0;">'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['genre'] = trim(strip_tags($valeur[1])); //Dur\xE9e $ereg = '<h4>Dur\xE9e : (.{1,15}). <\/h4><h4>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['duree'] = $valeur[1]; //Ann\xE9e de production $ereg = '<h4>Ann\xE9e de production : (.{1,7})<\/h4>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['anne_prod'] = $valeur[1]; // R\xE9cup\xE9ration des bandes annonces $ba=array(); if($pagerecherche = @file_get_contents('http://www.cinemovies.fr/resultat_recherche.php?cherche='.urlencode($res['nom']))){ $ereg = '<a href="fiche_film.php\?IDfilm=(.{1,6})" class="bodyFont5"><b>(.{1,300})<\/b><\/a> '; preg_match_all("/$ereg/s", $pagerecherche, $valeur); $mini = -1; $filebis = strtolower($res['nom']); foreach($valeur[1] as $key=>$val){ $leven = levenshtein($filebis, strtolower(strip_tags($valeur[2][$key]))); if($leven<$mini or $mini==-1){ $id = $valeur[1][$key]; $mini = $leven; } if($mini==0){ break; } } if($filmrecherche = @file_get_contents('http://www.cinemovies.fr/players/media.php?IDfilm='.$id)){ if(PHP_OS == "WIN32" || PHP_OS == "WINNT"){ $ereg = 'align="absmiddle" width="25" height="11">(.{1,25})<\/b>(.{1,2200})windows player(.{1,1300})<\/table><\/td><\/tr><tr><td'; preg_match_all("/$ereg/s", $filmrecherche, $value); }else{ $ereg = 'align="absmiddle" width="25" height="11">(.{1,25})<\/b>(.{1,1200})real(.{1,2500})<\/table><\/td><\/tr><tr><td'; preg_match_all("/$ereg/s", $filmrecherche, $value); $value[3]=$value[2]; } foreach($value[1] as $key=>$video){ $ereg = 'hd.php\?IDBA=(.{1,6})&ID'; preg_match("/$ereg/s", $value[3][$key], $flux); if(isset($flux[1])){ $ba[]=array(trim($video),'HQ',$flux[1]); }else{ $ereg = 'IDBA=(.{1,6})\';"><img border="0" src="..\/images\/v2\/div\/petite_fleche.gif" width="6" height="6">haute r'; preg_match("/$ereg/s", $value[3][$key], $flux); if(isset($flux[1])) $ba[]=array(trim($video),'N',$flux[1]); } } } } foreach($ba as $bande){ $res['ba']=str_replace('Bande annonce','BA',$res['ba'].$bande[0]).','.$bande[1].','.$bande[2].';'; } RETURN $res; }else{ RETURN "Aucun film trouv\xE9"; } } function info_personnalite($acteur){ if($pagerecherche = @file_get_contents('http://www.allocine.fr/recherche/?motcle='.urlencode($acteur).'&f=3&rub=2')){ $ereg = '<h4><a href="\/personne\/fichepersonne_gen_cpersonne=(.{1,15})" class="link1'; preg_match("/$ereg/s", $pagerecherche, $valeur); if($acteurrecherche = @file_get_contents('http://www.allocine.fr/personne/fichepersonne_gen_cpersonne='.$valeur[1])){ //R\xE9cup\xE9ration du nom "officiel" de la personnalit\xE9 $ereg = '<title>(.{1,150})<\/title>'; preg_match("/$ereg/s", $acteurrecherche, $valeur); $res['nom'] = $valeur[1]; //R\xE9cup\xE9ration de la date de naissance $ereg = '<h4><div style="padding:10 0 0 0">(.{1,100})<\/h4><\/div><div style="padding:15 0 0 0">'; preg_match("/$ereg/s", $acteurrecherche, $valeur); $expl=explode(" ",trim($valeur[1])); foreach($expl as $exp){ $new.=trim($exp).' '; } $ereg = 'N\xE9 le (.{1,18}) \xE0 (.{1,150})<br \/>'; preg_match("/$ereg/s", trim($new), $valeur); $monthes = array('Janvier'=>'1', 'F\xE9vrier'=>'2', 'Mars'=>'3', 'Avril'=>'4', 'Mai'=>'5', 'Juin'=>'6', 'Juillet'=>'7','Ao\xFBt'=>'8', 'Septembre'=>'9', 'Octobre'=>'10', 'Novembre'=>'11', 'D\xE9cembre'=>'12'); $expl=explode(" ",trim($valeur[1])); if(count($expl)==3) $res['date_naissance'] = mktime(0,0,0,$monthes[$expl[1]],$expl[0],$expl[2]); else $res['date_naissance'] = 2; $res['lieu_naissance'] = $valeur[2]; // Photo de la personnalit\xE9 $ereg = '<td valign="top" style="padding:0 10 10 0" width="120"><img src="(.{1,200})" width="120" height="160" border="0">'; preg_match("/$ereg/s", $acteurrecherche, $valeur); $res['image'] = $valeur[1]; //R\xE9cup\xE9ration de la biographie de l'artiste $ereg = '<td colspan="2" style="padding:10 0 15 0"><div align="justify"><h4>(.{1,15000})<\/h4><\/div><\/td>'; preg_match("/$ereg/s", $acteurrecherche, $valeur); $res['biographie'] = trim(strip_tags($valeur[1])); //R\xE9cup\xE9ration du role de la personnalit\xE9 $ereg = '<div><h4><b>(.{1,250})<h4><div style="padding:10 0 0 0">'; preg_match("/$ereg/s", $acteurrecherche, $valeur); $res['statut'] = trim(strip_tags($valeur[1])); RETURN $res; }else{ RETURN 'erreur'; } }else{ RETURN 'erreur'; } } function get_info_dvdfr($filmrecherche){ //R\xE9cup\xE9ration du nom du film $ereg = '<div class="dvd_title">(.{1,150})<\/div>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['nom'] = ucwords($valeur[1]); //Critique visiteurs $res['critique_visiteurs'] = ""; //Critique presse (nouvelle notation et ancienne) $res['critique_presse'] = ""; //R\xE9cup\xE9ration de l'adresse de l'image $ereg= 'src="..\/images\/dvd\/(.{1,70})" width="200" height="280"'; $valeur[1]=""; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['image'] = 'http://www.dvdfr.com/images/dvd/'.$valeur[1]; //R\xE9cup\xE9ration du synopsis $pos1 = strpos($filmrecherche,'<div class="dvd_subtitle">Synopsis</div>'); $pos1 = strpos($filmrecherche,'<div class="dvd_text">', $pos1+strlen('<div class="dvd_subtitle">Synopsis</div>')); $pos1 += strlen('<div class="dvd_text">'); $pos2 = strpos($filmrecherche,'</div>', $pos1); $res['synopsis'] = trim(strip_tags(substr($filmrecherche, $pos1, $pos2-$pos1))); $res['synopsis'] = str_replace("\n", ' ', $res['synopsis']); if($res['synopsis']=='') $res['synopsis'] = "Aucune information"; //R\xE9cup\xE9ration de la date $pos1 = strpos($filmrecherche,'<div class="dvd_subtitle">Sorti le</div>'); $pos1 = strpos($filmrecherche,'<div class="dvd_text">', $pos1+strlen('<div class="dvd_subtitle">Sorti le</div>')); $pos1 += strlen('<div class="dvd_text">'); $pos2 = strpos($filmrecherche,'</div>', $pos1); $valeur[1] = trim(strip_tags(substr($filmrecherche, $pos1, $pos2-$pos1))); $monthes = array('janvier'=>'1', 'f\xE9vrier'=>'2', 'mars'=>'3', 'avril'=>'4', 'mai'=>'5', 'juin'=>'6', 'juillet'=>'7','ao\xFBt'=>'8', 'septembre'=>'9', 'octobre'=>'10', 'novembre'=>'11', 'd\xE9cembre'=>'12'); $expl=explode(" ",$valeur[1]); if(count($expl)==3) $res['date_sortie'] = mktime(0,0,0,$monthes[$expl[1]],$expl[0],$expl[2]); else $res['date_sortie'] = 2; //R\xE9cup\xE9ration du r\xE9alisateur $res['realisateur'] = ""; //R\xE9cup\xE9ration des acteurs $pos1 = strpos($filmrecherche,'<div class="dvd_subtitle">Avec...</div>'); if ($pos1>0){ $pos1 = strpos($filmrecherche,'<div class="dvd_text">', $pos1+strlen('<div class="dvd_subtitle">Avec...</div>')); $pos1 += strlen('<div class="dvd_text">'); $pos2 = strpos($filmrecherche,'</div>', $pos1); $res['acteurs'] = trim(strip_tags(substr($filmrecherche, $pos1, $pos2-$pos1))); } //Nationalit\xE9 $res['nationalite'] = ""; //Genre $pos1 = strpos($filmrecherche,'<div class="dvd_categorie">'); while ($pos1>0){ $pos1 = strpos($filmrecherche,'<A class="home_a"', $pos1); if ($pos1>0) { $pos1 = strpos($filmrecherche,'>', $pos1); $pos1 += 1; $pos2 = strpos($filmrecherche,'</A>', $pos1); if ($res['genre']!="") $res['genre'] = $res['genre']." "; $res['genre'] = $res['genre'].trim(strip_tags(substr($filmrecherche, $pos1, $pos2-$pos1))); $pos1 = $pos2; } } //Dur\xE9e $ereg = '<td><img alt="Dur\xE9e" title="Dur\xE9e" src="..\/images\/duree.gif" width="32" height="14" align="absmiddle"><\/td>(.{1,100})<td>(.{1,50})<\/td>'; preg_match("/$ereg/s", $filmrecherche, $valeur); $res['duree'] = $valeur[2]; //Ann\xE9e de production $res['anne_prod'] = ""; $res['inbdd'] = false; RETURN $res; } function info_dvdfrById($fileid){ global $USER; //Initialisation $res['synopsis'] = "Aucune information"; if($filmrecherche = @file_get_contents('http://www.dvdfr.com/dvd/dvd.php?id='.$fileid)) { $res=get_info_dvdfr($filmrecherche); }else{ //$res = "Erreur"; $res['synopsis']= 'http://www.dvdfr.com/dvd/dvd.php?id='.$fileid."\n".$pagerecherche; } RETURN $res; } ?> \ No newline at end of file Modified: trunk/module/guidetv/tvprogram.php =================================================================== --- trunk/module/guidetv/tvprogram.php 2006-10-26 18:00:27 UTC (rev 38) +++ trunk/module/guidetv/tvprogram.php 2006-10-26 19:29:22 UTC (rev 39) @@ -1 +1 @@ -<?php $RACINE_REP = "../../"; require($RACINE_REP.'_framework/framework.php'); if(isset($_GET['min'])){ $min = $_GET['min']; }else{ $min = 0; } if(filemtime('epg.xml')+86400<time()){ $value = file_get_contents('http://easybobox.free.fr/epg.xml'); file_put_contents('epg.xml', $value); } $contenu = @file_get_contents ($USER.'multiposte.m3u'); $ereg = '#EXTINF:0,(.{1,3}) - (.{1,40})rtsp:\/\/mafreebox.freebox.fr\/freeboxtv\/(.{1,3})'; preg_match_all("/$ereg/s", $contenu, $valeur); function search_chan($chan){ global $USER, $valeur; if($chan=='tf1' OR $chan=='canalplus'){ $CHAINE=array('id'=>'inc', 'nom'=>$chan, 'num'=>'inc', 'ico'=>$chan.'.gif'); }else{ $id=0; $chgmt=intval(abs(count($valeur[1]) / 2)); foreach($valeur[2] as $key => $value){ $ico = utf8_decode($valeur[2][$key]); if (eregi("France 3",$valeur[2][$key])){ $ico = "France 3"; }elseif (eregi("nantes",$valeur[2][$key])){ $ico = "Telenantes_Nantes 7"; } if(eregi($chan,str_replace(' ','',trim(utf8_decode($valeur[2][$key]))))){ $CHAINE=array('id'=>trim($valeur[1][$key]), 'nom'=>trim(utf8_decode($valeur[2][$key])), 'num'=>trim($valeur[3][$key]), 'ico'=>trim(str_replace(array('>',' !',' ','\xE9','\xEE','\xF4'),array('','','','e','i','o'),$ico)).'.gif'); } } } return $CHAINE; } include "class.phxmltvparser.php"; include "class.collection.php"; include_once "phxpconfig.php"; /* function getLink($prgItem) { $title = $prgItem->title; $title = eregi_replace('\xE4', 'ae', $title); $title = eregi_replace('\xF6', 'oe', $title); $title = eregi_replace('\xFC', 'ue', $title); $title = eregi_replace('\xEE', 'ss', $title); $title = ucwords($title); //ucase first letter $title = eregi_replace("[^a-z0-9_]","",$title); //strip all special chars $paras = '&chan=' . $prgItem->channel; $paras .= '&date=' . $prgItem->date; $paras .= '&start=' . htmlspecialchars($prgItem->formatStartTime()); $paras .= '&stop=' . htmlspecialchars($prgItem->formatStopTime()); $paras .= '&title=' . $title; $call = '<A class="prg_title" href="' . PRG_CALL . $paras . '" name="record" target="blank">' . $prgItem->title . '</A>'; return($call); } // view ordered by channel function dump($prgObj, $date, $catFilter) { echo '<div class="prg_date">' . substr($date,6,2) . '.' . substr($date,4,2) . '</div>'; echo "<table>"; foreach ($prgObj->arrData as $channel => $arrItems) { echo "<tr>"; echo '<td class="prg_channel">'; echo "$channel<br>"; echo "</td>"; foreach ($arrItems as $start => $item) { if(strlen($catFilter) > 0) $hit = eregi($catFilter, $item->category); else $hit = true; if($hit) { echo '<td class="prg_cell">'; $title = $item->title; $title = eregi_replace('\xE4', 'ae', $title); $title = eregi_replace('\xF6', 'oe', $title); $title = eregi_replace('\xFC', 'ue', $title); $title = eregi_replace('\xEE', 'ss', $title); $title =ucwords($title); //ucase first letter $title = eregi_replace("[^a-z0-9_]","",$title); //strip all special characters $paras = '&chan=' . $channel; $paras .= '&date=' . $item->date; $paras .= '&start=' . htmlspecialchars($item->formatStartTime()); $paras .= '&stop=' . htmlspecialchars($item->formatStopTime()); $paras .= '&title=' . $title; $call = '<A class="prg_title" href="neu.php?action=show' . $paras . '" name="record" target="blank">' . $item->title . '</A>'; echo $call . "<br>"; echo '<div class="prg_subtitle">' . $item->subtitle . '</div>'; echo '<div class="prg_extra_data">'; echo $item->formatStartTime() . "-" . $item->formatStopTime() . "<br>"; echo $item->category ; echo '</div>'; echo '<div class="prg_desc">'; echo $item->desc; echo '</div>'; echo "</td>"; } } echo "</tr>"; } echo "</table>"; } */ //=================================================================================================================================================== //--- main function --- //=================================================================================================================================================== $xml = xml_parser_create(); $xtvp = new PHxmltvParser; //$xtvp->setDate($date); xml_set_object($xml, $xtvp); xml_set_element_handler($xml, 'start_element', 'end_element'); xml_set_character_data_handler($xml, 'character_data'); xml_parser_set_option($xml, XML_OPTION_CASE_FOLDING, false); // $file = "../programm.xml"; // $file = "test.xml"; //$file="http://www.tuyaux-turf.com/divers/TVguide.xml"; $file="epg.xml"; $fp = fopen($file, 'r') or die("unable to open file!"); while($data = fread($fp, 4096)) { xml_parse($xml, $data, feof($fp)) or die("unable to parse data!"); } fclose($fp); xml_parser_free($xml); //------------------------ $PrgDataObj = $xtvp->getPrgDataObj(); //dump($PrgDataObj, $date, $catFilter); $channels = new collection; $dates = new collection; $categories = new collection; //echo "$PrgDataObj->idxMax<br>"; $prgitem = $PrgDataObj->getFirst(); while(!is_null($prgitem)) { $channels->add($prgitem->channel); $dates->add($prgitem->date); $categories->add($prgitem->category); $prgitem = $PrgDataObj->getNext(); } $channels->sort(); $dates->sort(); $categories->sort(); $PrgDataObj->orderByDateTime(); $firstdate = $dates->getFirst(); if(isset($_GET['cboDate']) AND isset($_GET['cboCateg'])){ $dat = $dates->getFirst(); while(!is_null($dat)) { if($dat == $_GET['cboDate'] || $_GET['cboDate'] == OPT_ALL){ $prgitem = $PrgDataObj->getFirst(); while(!is_null($prgitem)) { if($prgitem->date == $dat && ($prgitem->channel == $_GET['cboCateg'] || $_GET['cboCateg'] == OPT_ALL)) { $EMISSIONS[] = array('debut'=>$prgitem->start, 'fin'=>$prgitem->stop, 'titre'=>utf8_decode($prgitem->title), 'specialid'=>md5(utf8_decode($prgitem->title).$prgitem->start.$prgitem->stop.$prgitem->channel)); } if(md5(utf8_decode($prgitem->title).$prgitem->start.$prgitem->stop.$prgitem->channel) == $_GET['indic_name']){ $EMISSION=array('debut'=>$prgitem->start, 'fin'=>$prgitem->stop, 'titre'=>utf8_decode($prgitem->title), 'soustitre'=>utf8_decode($prgitem->subtitle), 'description'=>utf8_decode($prgitem->desc), 'categorie'=>utf8_decode($prgitem->category), 'episode'=>utf8_decode($prgitem->episode), 'realisateur'=>utf8_decode($prgitem->director), 'duree'=>utf8_decode($prgitem->lenght), 'acteur'=>utf8_decode($prgitem->acteur), 'note'=>utf8_decode($prgitem->note), 'icone'=>utf8_decode($prgitem->icon), 'presentateur'=>utf8_decode($prgitem->presentateur)); } $prgitem = $PrgDataObj->getNext(); } } $dat = $dates->getNext(); } }else{ $categ = $channels->getFirst(); while(!is_null($categ)) { $info_chaine = search_chan($categ); $CHAINES[]=array('nom'=>$categ, 'indicatif'=>$categ, 'ico'=>$info_chaine['ico'], 'recordable'=>true); $categ = $channels->getNext(); } } // Cr\xE9e la liste des jours disponibles $dat = $dates->getFirst(); while(!is_null($dat)) { $DATES[]=$dat; $dat = $dates->getNext(); } // Fonction permettant de transformer les dates comme il faut function rebuild_date($date){ $year = substr($date, 0, 4); $month = substr($date, 4, 2); $day = substr($date, 6, 2); return($day.'/'.$month.'/'.$year); } $smarty->assign('cboDate',$_GET['cboDate']); $smarty->assign('cboCateg',$_GET['cboCateg']); $smarty->assign('MIN',$_GET['min']); if(isset($EMISSION)){ $info_chaine = search_chan($_GET['cboCateg']); $smarty->assign('info_chaine',$info_chaine); $LINK['red'] = 'tvprogram.php?cboDate='.$_GET['cboDate'].'&cboCateg='.urlencode($_GET['cboCateg']).'&min='.$min; $smarty->assign('TITRE','Programme t\xE9l\xE9 - '.urldecode($_GET['cboCateg']).' - '.date('d/m/Y', $_GET['cboDate'])); $smarty->assign('EMISSION',$EMISSION); $smarty->assign('CONTENT',$smarty->fetch('guidetv.tpl')); }elseif(isset($EMISSIONS)) { $info_chaine = search_chan($_GET['cboCateg']); $smarty->assign('info_chaine',$info_chaine); $LINK['red'] = 'tvprogram.php'; foreach($DATES as $dat_new){ $MENU_ALT[] = array('lien'=>'tvprogram.php?cboDate='.$dat_new.'&cboCateg='.$_GET['cboCateg'], 'nom'=>date('d/m/Y', $dat_new), 'selected'=>$dat_new==$_GET['cboDate']); } $year = substr($_GET['cboDate'], 0, 4); $month = substr($_GET['cboDate'], 4, 2); $day = substr($_GET['cboDate'], 6, 2); $smarty->assign('TITRE','Programme t\xE9l\xE9 - '.$_GET['cboCateg'].' - '.date('d/m/Y', $_GET['cboDate'])); $smarty->assign('EMISSIONS',$EMISSIONS); $smarty->assign('CONTENT',$smarty->fetch('guidetv.tpl')); }else{ $smarty->assign('DATE',$firstdate); $smarty->assign('CHAINE',$CHAINES); $smarty->assign('CONTENT',$smarty->fetch('guidetv.tpl')); } $smarty->display('interface.tpl'); ?> \ No newline at end of file +<?php $RACINE_REP = "../../"; require($RACINE_REP.'_framework/framework.php'); if(isset($_GET['min'])){ $min = $_GET['min']; }else{ $min = 0; } if(filemtime('epg.xml')+86400<time()){ $value = file_get_contents('http://easybobox.free.fr/epg.xml'); file_put_contents('epg.xml', $value); } $contenu = @file_get_contents ($USER.'multiposte.m3u'); $ereg = '#EXTINF:0,(.{1,3}) - (.{1,40})rtsp:\/\/mafreebox.freebox.fr\/freeboxtv\/s?t?r?e?a?m?\??i?d?=?(.{1,3})'; preg_match_all("/$ereg/s", $contenu, $valeur); function search_chan($chan){ global $USER, $valeur; if($chan=='tf1' OR $chan=='canalplus'){ $CHAINE=array('id'=>'inc', 'nom'=>$chan, 'num'=>'inc', 'ico'=>$chan.'.gif'); }else{ $id=0; $chgmt=intval(abs(count($valeur[1]) / 2)); foreach($valeur[2] as $key => $value){ $ico = utf8_decode($valeur[2][$key]); if (eregi("France 3",$valeur[2][$key])){ $ico = "France 3"; }elseif (eregi("nantes",$valeur[2][$key])){ $ico = "Telenantes_Nantes 7"; } if(eregi($chan,str_replace(' ','',trim(utf8_decode($valeur[2][$key]))))){ $CHAINE=array('id'=>trim($valeur[1][$key]), 'nom'=>trim(utf8_decode($valeur[2][$key])), 'num'=>trim($valeur[3][$key]), 'ico'=>trim(str_replace(array('>',' !',' ','\xE9','\xEE','\xF4'),array('','','','e','i','o'),$ico)).'.gif'); } } } return $CHAINE; } include "class.phxmltvparser.php"; include "class.collection.php"; include_once "phxpconfig.php"; /* function getLink($prgItem) { $title = $prgItem->title; $title = eregi_replace('\xE4', 'ae', $title); $title = eregi_replace('\xF6', 'oe', $title); $title = eregi_replace('\xFC', 'ue', $title); $title = eregi_replace('\xEE', 'ss', $title); $title = ucwords($title); //ucase first letter $title = eregi_replace("[^a-z0-9_]","",$title); //strip all special chars $paras = '&chan=' . $prgItem->channel; $paras .= '&date=' . $prgItem->date; $paras .= '&start=' . htmlspecialchars($prgItem->formatStartTime()); $paras .= '&stop=' . htmlspecialchars($prgItem->formatStopTime()); $paras .= '&title=' . $title; $call = '<A class="prg_title" href="' . PRG_CALL . $paras . '" name="record" target="blank">' . $prgItem->title . '</A>'; return($call); } // view ordered by channel function dump($prgObj, $date, $catFilter) { echo '<div class="prg_date">' . substr($date,6,2) . '.' . substr($date,4,2) . '</div>'; echo "<table>"; foreach ($prgObj->arrData as $channel => $arrItems) { echo "<tr>"; echo '<td class="prg_channel">'; echo "$channel<br>"; echo "</td>"; foreach ($arrItems as $start => $item) { if(strlen($catFilter) > 0) $hit = eregi($catFilter, $item->category); else $hit = true; if($hit) { echo '<td class="prg_cell">'; $title = $item->title; $title = eregi_replace('\xE4', 'ae', $title); $title = eregi_replace('\xF6', 'oe', $title); $title = eregi_replace('\xFC', 'ue', $title); $title = eregi_replace('\xEE', 'ss', $title); $title =ucwords($title); //ucase first letter $title = eregi_replace("[^a-z0-9_]","",$title); //strip all special characters $paras = '&chan=' . $channel; $paras .= '&date=' . $item->date; $paras .= '&start=' . htmlspecialchars($item->formatStartTime()); $paras .= '&stop=' . htmlspecialchars($item->formatStopTime()); $paras .= '&title=' . $title; $call = '<A class="prg_title" href="neu.php?action=show' . $paras . '" name="record" target="blank">' . $item->title . '</A>'; echo $call . "<br>"; echo '<div class="prg_subtitle">' . $item->subtitle . '</div>'; echo '<div class="prg_extra_data">'; echo $item->formatStartTime() . "-" . $item->formatStopTime() . "<br>"; echo $item->category ; echo '</div>'; echo '<div class="prg_desc">'; echo $item->desc; echo '</div>'; echo "</td>"; } } echo "</tr>"; } echo "</table>"; } */ //=================================================================================================================================================== //--- main function --- //=================================================================================================================================================== $xml = xml_parser_create(); $xtvp = new PHxmltvParser; //$xtvp->setDate($date); xml_set_object($xml, $xtvp); xml_set_element_handler($xml, 'start_element', 'end_element'); xml_set_character_data_handler($xml, 'character_data'); xml_parser_set_option($xml, XML_OPTION_CASE_FOLDING, false); // $file = "../programm.xml"; // $file = "test.xml"; //$file="http://www.tuyaux-turf.com/divers/TVguide.xml"; $file="epg.xml"; $fp = fopen($file, 'r') or die("unable to open file!"); while($data = fread($fp, 4096)) { xml_parse($xml, $data, feof($fp)) or die("unable to parse data!"); } fclose($fp); xml_parser_free($xml); //------------------------ $PrgDataObj = $xtvp->getPrgDataObj(); //dump($PrgDataObj, $date, $catFilter); $channels = new collection; $dates = new collection; $categories = new collection; //echo "$PrgDataObj->idxMax<br>"; $prgitem = $PrgDataObj->getFirst(); while(!is_null($prgitem)) { $channels->add($prgitem->channel); $dates->add($prgitem->date); $categories->add($prgitem->category); $prgitem = $PrgDataObj->getNext(); } $channels->sort(); $dates->sort(); $categories->sort(); $PrgDataObj->orderByDateTime(); $firstdate = $dates->getFirst(); if(isset($_GET['cboDate']) AND isset($_GET['cboCateg'])){ $dat = $dates->getFirst(); while(!is_null($dat)) { if($dat == $_GET['cboDate'] || $_GET['cboDate'] == OPT_ALL){ $prgitem = $PrgDataObj->getFirst(); while(!is_null($prgitem)) { if($prgitem->date == $dat && ($prgitem->channel == $_GET['cboCateg'] || $_GET['cboCateg'] == OPT_ALL)) { $EMISSIONS[] = array('debut'=>$prgitem->start, 'fin'=>$prgitem->stop, 'titre'=>utf8_decode($prgitem->title), 'specialid'=>md5(utf8_decode($prgitem->title).$prgitem->start.$prgitem->stop.$prgitem->channel)); } if(md5(utf8_decode($prgitem->title).$prgitem->start.$prgitem->stop.$prgitem->channel) == $_GET['indic_name']){ $EMISSION=array('debut'=>$prgitem->start, 'fin'=>$prgitem->stop, 'titre'=>utf8_decode($prgitem->title), 'soustitre'=>utf8_decode($prgitem->subtitle), 'description'=>utf8_decode($prgitem->desc), 'categorie'=>utf8_decode($prgitem->category), 'episode'=>utf8_decode($prgitem->episode), 'realisateur'=>utf8_decode($prgitem->director), 'duree'=>utf8_decode($prgitem->lenght), 'acteur'=>utf8_decode($prgitem->acteur), 'note'=>utf8_decode($prgitem->note), 'icone'=>utf8_decode($prgitem->icon), 'presentateur'=>utf8_decode($prgitem->presentateur)); } $prgitem = $PrgDataObj->getNext(); } } $dat = $dates->getNext(); } }else{ $categ = $channels->getFirst(); while(!is_null($categ)) { $info_chaine = search_chan($categ); $CHAINES[]=array('nom'=>$categ, 'indicatif'=>$categ, 'ico'=>$info_chaine['ico'], 'recordable'=>true); $categ = $channels->getNext(); } } // Cr\xE9e la liste des jours disponibles $dat = $dates->getFirst(); while(!is_null($dat)) { $DATES[]=$dat; $dat = $dates->getNext(); } // Fonction permettant de transformer les dates comme il faut function rebuild_date($date){ $year = substr($date, 0, 4); $month = substr($date, 4, 2); $day = substr($date, 6, 2); return($day.'/'.$month.'/'.$year); } $smarty->assign('cboDate',$_GET['cboDate']); $smarty->assign('cboCateg',$_GET['cboCateg']); $smarty->assign('MIN',$_GET['min']); if(isset($EMISSION)){ $info_chaine = search_chan($_GET['cboCateg']); $smarty->assign('info_chaine',$info_chaine); $LINK['red'] = 'tvprogram.php?cboDate='.$_GET['cboDate'].'&cboCateg='.urlencode($_GET['cboCateg']).'&min='.$min; $smarty->assign('TITRE','Programme t\xE9l\xE9 - '.urldecode($_GET['cboCateg']).' - '.date('d/m/Y', $_GET['cboDate'])); $smarty->assign('EMISSION',$EMISSION); $smarty->assign('CONTENT',$smarty->fetch('guidetv.tpl')); }elseif(isset($EMISSIONS)) { $info_chaine = search_chan($_GET['cboCateg']); $smarty->assign('info_chaine',$info_chaine); $LINK['red'] = 'tvprogram.php'; foreach($DATES as $dat_new){ $MENU_ALT[] = array('lien'=>'tvprogram.php?cboDate='.$dat_new.'&cboCateg='.$_GET['cboCateg'], 'nom'=>date('d/m/Y', $dat_new), 'selected'=>$dat_new==$_GET['cboDate']); } $year = substr($_GET['cboDate'], 0, 4); $month = substr($_GET['cboDate'], 4, 2); $day = substr($_GET['cboDate'], 6, 2); $smarty->assign('TITRE','Programme t\xE9l\xE9 - '.$_GET['cboCateg'].' - '.date('d/m/Y', $_GET['cboDate'])); $smarty->assign('EMISSIONS',$EMISSIONS); $smarty->assign('CONTENT',$smarty->fetch('guidetv.tpl')); }else{ $smarty->assign('DATE',$firstdate); $smarty->assign('CHAINE',$CHAINES); $smarty->assign('CONTENT',$smarty->fetch('guidetv.tpl')); } $smarty->display('interface.tpl'); ?> \ No newline at end of file Modified: trunk/module/multiposte/add.php =================================================================== --- trunk/module/multiposte/add.php 2006-10-26 18:00:27 UTC (rev 38) +++ trunk/module/multiposte/add.php 2006-10-26 19:29:22 UTC (rev 39) @@ -45,18 +45,23 @@ //Cr\xE9ation du fichier bat de lancement + $contenu_html = @file_get_contents ($USER.'multiposte.m3u'); + if(eregi('stream?id=', $contenu_html)){ + $moreinfo = 'stream?id='; + } + //Profils d'encodage if($ini[multiposte][cvid]!='none' AND $ini[multiposte][caud]!='none'){ - $link = 'start vlc\vlc.exe --wx-systray --intf=dummy --extraintf=http --http-src="'.realpath(realpath("../../").'/http-vlc').'" --http-host=:8082 --http-charset=ISO-8859-1 --quiet --dummy-quiet -vvv rtsp://mafreebox.freebox.fr/freeboxtv/'.$chaine[2].' --sout=#transcode{vcodec='.$ini[multiposte][cvid].',vb='.$ini[multiposte][bvid].',scale=1,acodec='.$ini[multiposte][caud].',ab='.$ini[multiposte][baud].',channels=2} --sout=#duplicate{dst=std{access=file,mux='.$ini[multiposte][muxer].',url="'.$fichier.'"} + $link = 'start vlc\vlc.exe --wx-systray --intf=dummy --extraintf=http --http-src="'.realpath(realpath("../../").'/http-vlc').'" --http-host=:8082 --http-charset=ISO-8859-1 --quiet --dummy-quiet -vvv rtsp://mafreebox.freebox.fr/freeboxtv/'.$moreinfo.$chaine[2].' --sout=#transcode{vcodec='.$ini[multiposte][cvid].',vb='.$ini[multiposte][bvid].',scale=1,acodec='.$ini[multiposte][caud].',ab='.$ini[multiposte][baud].',channels=2} --sout=#duplicate{dst=std{access=file,mux='.$ini[multiposte][muxer].',url="'.$fichier.'"} start http://localhost:8080/lecteur/lunch_rec.php?id='.(sqlite_num_rows($result)+1); }elseif($ini[multiposte][cvid]=='none' AND $ini[multiposte][caud]=='none'){ - $link = 'start vlc\vlc.exe --wx-systray --intf=dummy --extraintf=http --http-src="'.realpath(realpath("../../").'/http-vlc').'" --http-host=:8082 --http-charset=ISO-8859-1 --quiet --dummy-quiet -vvv rtsp://mafreebox.freebox.fr/freeboxtv/'.$chaine[2].' --sout=#duplicate{dst=std{access=file,mux='.$ini[multiposte][muxer].',url="'.$fichier.'"} + $link = 'start vlc\vlc.exe --wx-systray --intf=dummy --extraintf=http --http-src="'.realpath(realpath("../../").'/http-vlc').'" --http-host=:8082 --http-charset=ISO-8859-1 --quiet --dummy-quiet -vvv rtsp://mafreebox.freebox.fr/freeboxtv/'.$moreinfo.$chaine[2].' --sout=#duplicate{dst=std{access=file,mux='.$ini[multiposte][muxer].',url="'.$fichier.'"} start http://localhost:8080/lecteur/lunch_rec.php?id='.(sqlite_num_rows($result)+1); }elseif($ini[multiposte][cvid]!='none' AND $ini[multiposte][caud]=='none'){ - $link = 'start vlc\vlc.exe --wx-systray --intf=dummy --extraintf=http --http-src="'.realpath(realpath("../../").'/http-vlc').'" --http-host=:8082 --http-charset=ISO-8859-1 --quiet --dummy-quiet -vvv rtsp://mafreebox.freebox.fr/freeboxtv/'.$chaine[2].' --sout=#transcode{vcodec='.$ini[multiposte][cvid].',vb='.$ini[multiposte][bvid].',scale=1} --sout=#duplicate{dst=std{access=file,mux... [truncated message content] |
From: <bed...@us...> - 2006-11-01 22:42:05
|
Revision: 46 http://svn.sourceforge.net/easybox-mod/?rev=46&view=rev Author: bedelaitre Date: 2006-11-01 14:41:54 -0800 (Wed, 01 Nov 2006) Log Message: ----------- [ 1586222 ] Retour ?\195?\160 l'explorateur des photos ?\195?\160 la fin du diaporama Modified Paths: -------------- trunk/_framework/fonctions_partagees.inc.php trunk/module/diaporama/index1.php Modified: trunk/_framework/fonctions_partagees.inc.php =================================================================== --- trunk/_framework/fonctions_partagees.inc.php 2006-11-01 21:55:13 UTC (rev 45) +++ trunk/_framework/fonctions_partagees.inc.php 2006-11-01 22:41:54 UTC (rev 46) @@ -89,6 +89,8 @@ RETURN($RACINE_REP.'module/dvd/index1.php'); }elseif($retour=='webtv'){ RETURN($RACINE_REP.'module/webmedia/index1.php?start='.get_variable('webmedia_min')); + }elseif($retour=='photo'){ + RETURN($RACINE_REP.'module/diaporama/index1.php?start='.get_variable('photomin').'&rep='.urlencode(get_variable('lastrep'))); }else{ RETURN($RACINE_REP.'module/_menu/menu.php'); } Modified: trunk/module/diaporama/index1.php =================================================================== --- trunk/module/diaporama/index1.php 2006-11-01 21:55:13 UTC (rev 45) +++ trunk/module/diaporama/index1.php 2006-11-01 22:41:54 UTC (rev 46) @@ -5,6 +5,7 @@ $FORCED = 1; } + $extension = $ini[explorateur][ext_photo]; $ext_ok = explode(",",$extension); $ext = $ext_ok; @@ -160,10 +161,19 @@ if (isset($_GET['delais']) AND $aff+1 < count($files)) { $delais = $_GET['delais']; -}else{ +} elseif (isset($_GET['delais']) AND ($aff+1 == count($files))) + { + $message = 'Redirection vers les photos ...'; + set_refresh(2,'2;url='.page_retour_film(),true); + } +else{ $delais = 0; } +//Ajout dans la base de donn\xE9e pour les retours +save_variable('lastexpl', 'photo'); +save_variable('lastrep', $rep); +save_variable('photomin', $min); if(isset($aff)){ @@ -179,7 +189,12 @@ $smarty->assign('aff',$aff); $smarty->display('photo.tpl'); -}else{ +}elseif(isset($message)) +{ + $smarty->assign('AVERTISSEMENT',$message); + $smarty->display('avertissement.tpl'); +} else +{ $LINK['red']= $MODULE.'_menu/menu.php'; $smarty->assign('CONTENT',$smarty->fetch('explorateur_photo.tpl')); $smarty->display('interface.tpl'); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bed...@us...> - 2006-11-01 22:42:38
|
Revision: 44 http://svn.sourceforge.net/easybox-mod/?rev=44&view=rev Author: bedelaitre Date: 2006-11-01 13:51:20 -0800 (Wed, 01 Nov 2006) Log Message: ----------- RequestID 1588902 - Navigation dans les playlists Modified Paths: -------------- trunk/http-vlc/lecteur/action.html trunk/module/films/lecture.php trunk/module/mp3/lecteuraudio.php Modified: trunk/http-vlc/lecteur/action.html =================================================================== --- trunk/http-vlc/lecteur/action.html 2006-10-29 16:00:36 UTC (rev 43) +++ trunk/http-vlc/lecteur/action.html 2006-11-01 21:51:20 UTC (rev 44) @@ -1,7 +1,7 @@ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> - <vlc id="control" param1="stop,pause,previous,next,add,sout,play,delete,empty,seek,fullscreen,keep,volume,sort,move,shutdown" /> + <vlc id="control" param1="stop,pause,faster,slower,previous,next,add,sout,play,delete,empty,seek,fullscreen,keep,volume,sort,move,shutdown" /> </head> <body> Modified: trunk/module/films/lecture.php =================================================================== --- trunk/module/films/lecture.php 2006-10-29 16:00:36 UTC (rev 43) +++ trunk/module/films/lecture.php 2006-11-01 21:51:20 UTC (rev 44) @@ -225,7 +225,7 @@ } $LINK['stop']=$MODULE.'films/lecture.php?control=stop'; -$LINK['play']=$MODULE.'films/lecture.php?control=pause'; +$LINK['play']=$MODULE.'films/lecture.php?control=play'; $LINK['pause']=$MODULE.'films/lecture.php?control=pause'; $LINK['info']=$MODULE.'films/info.php'; $LINK['options']=$RACINE_REP.'lecteur/options.php?module=video'; @@ -235,8 +235,14 @@ $LINK['up']=$MODULE.'films/lecture.php?seek_value=plus'; $LINK['down']=$MODULE.'films/lecture.php?seek_value=moins'; +// BDE - RequestID 1588902 +$LINK['next']=$MODULE.'films/lecture.php?control=next'; +$LINK['prev']=$MODULE.'films/lecture.php?control=previous'; +$LINK['rev']=$MODULE.'films/lecture.php?seek_value=moins'; +$LINK['fwd']=$MODULE.'films/lecture.php?seek_value=plus'; + if(isset($message)) { $smarty->assign('AVERTISSEMENT',$message); Modified: trunk/module/mp3/lecteuraudio.php =================================================================== --- trunk/module/mp3/lecteuraudio.php 2006-10-29 16:00:36 UTC (rev 43) +++ trunk/module/mp3/lecteuraudio.php 2006-11-01 21:51:20 UTC (rev 44) @@ -8,6 +8,12 @@ $LINK['play']=$MODULE.'mp3/lecteuraudio.php?control=pause'; $LINK['pause']=$MODULE.'mp3/lecteuraudio.php?control=pause'; +// BDE - RequestID 1588902 +$LINK['next']=$MODULE.'mp3/lecteuraudio.php?control=next'; +$LINK['prev']=$MODULE.'mp3/lecteuraudio.php?control=previous'; +// Ces deux lignes bug chez moi car VLC ne r\xE9cup\xE8re pas la dur\xE9e du MP3 ??!!?? +//$LINK['rev']=$MODULE.'mp3/lecteuraudio.php?seek_value=moins'; +//$LINK['fwd']=$MODULE.'mp3/lecteuraudio.php?seek_value=plus'; if($pisteaudio=='TV'){ // $META['aud'] = '69(en,mp2)'; @@ -29,8 +35,11 @@ if (isset($_REQUEST['control'])) { $control = $_REQUEST['control']; - $file1 = file_get_contents("http://127.0.0.1:8081/lecteur/action.html?control=$control"); - $reload='1'; + if($control!='seek') + { + $file1 = file_get_contents("http://127.0.0.1:8081/lecteur/action.html?control=$control"); + $reload='1'; + } } if ($_REQUEST['mode']!=''){ @@ -39,6 +48,28 @@ $mode="pla"; } +//-- Avancer ou reculer +if (isset($_REQUEST['seek_value'])) +{ + if($_REQUEST['seek_value']=="moins") + { + $value='-1m'; + $OSD .= 'Recul de une minute'; + $META['front_panel'] = '-1min'; + } elseif($_REQUEST['seek_value']=="plus") + { + $value='%2B1m'; + $OSD .= 'Avanc\xDAe de une minute'; + $META['front_panel'] = '+1min'; + } else + { + $value=$_REQUEST['seek_value']; + $OSD .= 'Avanc\xDAe \xD3 '.$value; + } + $file1 = file_get_contents('http://127.0.0.1:8081/lecteur/action.html?control=seek&seek_value='.$value); + $reload='1'; +} + $i=0; $ext_audio = $ini[explorateur][ext_audio]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2006-11-17 19:49:21
|
Revision: 47 http://svn.sourceforge.net/easybox-mod/?rev=47&view=rev Author: aragornis Date: 2006-11-17 11:49:18 -0800 (Fri, 17 Nov 2006) Log Message: ----------- Modified Paths: -------------- trunk/_utilisateur/audiotemp.m3u trunk/_utilisateur/multiposte.m3u trunk/module/jt/flux.xml trunk/module/mp3/lecteuraudio.php trunk/module/mp3/playdb.php Removed Paths: ------------- trunk/module/mp3/play.php Modified: trunk/_utilisateur/audiotemp.m3u =================================================================== --- trunk/_utilisateur/audiotemp.m3u 2006-11-01 22:41:54 UTC (rev 46) +++ trunk/_utilisateur/audiotemp.m3u 2006-11-17 19:49:18 UTC (rev 47) @@ -1,3 +1,2 @@ -#EXTM3U#EXTINF:0,Wyclef Jean{test} - 911.mp3 - d:\Ma musique\Wyclef Jean{test} - 911.mp3 - \ No newline at end of file +#EXTM3U + d:\Ma musique\Kill Bill Vol. 1 - Soundtrack\Kill Bill Vol. 1 Soundtrack - Al Hirt - 08 - Green Hornet.mp3 \ No newline at end of file Modified: trunk/_utilisateur/multiposte.m3u =================================================================== --- trunk/_utilisateur/multiposte.m3u 2006-11-01 22:41:54 UTC (rev 46) +++ trunk/_utilisateur/multiposte.m3u 2006-11-17 19:49:18 UTC (rev 47) @@ -45,6 +45,12 @@ rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=206 #EXTINF:0,24 - France ô rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=238 +#EXTINF:0,25 - RTBF Sat +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=448 +#EXTINF:0,26 - France Télévisions HD +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=491 +#EXTINF:0,36 - Mangas +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=253 #EXTINF:0,37 - Game One rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=220 #EXTINF:0,40 - M6 Music Hits @@ -63,26 +69,42 @@ rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=230 #EXTINF:0,47 - MTV Hits rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=231 +#EXTINF:0,48 - VH1 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=233 +#EXTINF:0,49 - VH1 Classic +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=232 +#EXTINF:0,50 - Télé Mélody +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=237 #EXTINF:0,51 - Trace TV rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=228 #EXTINF:0,52 - ZIK rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=218 +#EXTINF:0,53 - Mezzo +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=265 +#EXTINF:0,54 - Musique Classique +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=254 #EXTINF:0,57 - Mizik Tropical rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=468 -#EXTINF:0,60 - L'Equipe TV -rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=209 +#EXTINF:0,58 - Star Academy 6 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=406 #EXTINF:0,61 - Equidia rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=212 #EXTINF:0,62 - ESPN Classic Sport rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=264 #EXTINF:0,63 - AB Moteurs rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=222 +#EXTINF:0,64 - Motors TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=216 #EXTINF:0,70 - Bloomberg TV rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=207 -#EXTINF:0,72 - CNBC -rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=208 +#EXTINF:0,73 - BBC World +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=240 #EXTINF:0,74 - Sky News International rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=355 +#EXTINF:0,78 - TNA +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=482 +#EXTINF:0,79 - Zalea TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=483 #EXTINF:0,80 - KTO rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=223 #EXTINF:0,81 - TFJ @@ -93,18 +115,46 @@ rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=227 #EXTINF:0,84 - Fashion TV rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=221 +#EXTINF:0,85 - F Men +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=454 +#EXTINF:0,86 - Sailing Channel +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=255 #EXTINF:0,87 - Liberty TV rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=215 +#EXTINF:0,88 - Animaux +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=248 +#EXTINF:0,89 - Chasse et pêche +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=249 +#EXTINF:0,90 - Encyclopédia +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=251 +#EXTINF:0,91 - Escales +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=252 +#EXTINF:0,92 - Toute l'Histoire +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=250 +#EXTINF:0,93 - Histoire +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=235 +#EXTINF:0,94 - Berbère TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=256 +#EXTINF:0,95 - 3A Telesud +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=356 #EXTINF:0,96 - Teleplaisance.org rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=320 #EXTINF:0,97 - Luxe.TV rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=460 #EXTINF:0,98 - Freenews TV rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=428 +#EXTINF:0,110 - Action +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=242 +#EXTINF:0,111 - Ciné Polar +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=244 +#EXTINF:0,112 - Ciné FX +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=243 #EXTINF:0,130 - Best of Shopping rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=358 #EXTINF:0,131 - M6 Boutique rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=359 +#EXTINF:0,132 - Ark-TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=492 #EXTINF:0,133 - Astro Center TV rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=415 #EXTINF:0,150 - TLM @@ -129,26 +179,84 @@ rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=414 #EXTINF:0,160 - Clermont Première rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=438 +#EXTINF:0,161 - TV Tours +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=493 +#EXTINF:0,180 - CCTV4 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=469 #EXTINF:0,181 - CCTV 9 rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=479 #EXTINF:0,182 - CCTV E&F rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=480 +#EXTINF:0,183 - CCTV Divertissement +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=470 +#EXTINF:0,185 - Beijing TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=472 +#EXTINF:0,186 - Shangai Dragon TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=473 +#EXTINF:0,187 - La chaîne internationale de Jiangsu +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=474 +#EXTINF:0,188 - Hunan Satellite TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=475 +#EXTINF:0,189 - Xiamen Star TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=476 +#EXTINF:0,190 - Zhejiang Star TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=477 +#EXTINF:0,191 - Guangdong Southern TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=478 +#EXTINF:0,192 - Phoenix Infonews +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=481 #EXTINF:0,193 - Phoenix Chinese News and Entertainment rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=266 +#EXTINF:0,195 - Zee TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=420 +#EXTINF:0,196 - Zee Cinema +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=421 +#EXTINF:0,197 - Alpha ETC Punjabi +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=422 +#EXTINF:0,200 - Euronews English +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=259 +#EXTINF:0,201 - Euronews Deutsch +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=260 +#EXTINF:0,202 - Euronews Portugais +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=261 +#EXTINF:0,203 - Euronews Russe +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=262 +#EXTINF:0,204 - Euronews Espagnol +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=263 +#EXTINF:0,205 - Euronews Italien +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=269 #EXTINF:0,209 - T.TV rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=385 +#EXTINF:0,212 - BBC Prime Europe +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=413 #EXTINF:0,219 - God TV rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=386 #EXTINF:0,220 - Arte Allemand rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=270 #EXTINF:0,224 - DW-TV rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=312 +#EXTINF:0,225 - Ritmoson Latino +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=407 +#EXTINF:0,226 - De pelicula +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=408 +#EXTINF:0,227 - TL Novelas +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=409 +#EXTINF:0,228 - Canal de las Estrellas +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=410 +#EXTINF:0,229 - Telehit +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=411 +#EXTINF:0,230 - TVE I +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=306 +#EXTINF:0,231 - Canal 24 Horas +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=307 #EXTINF:0,232 - ETB Sat rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=371 #EXTINF:0,233 - Real Madrid TV rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=387 #EXTINF:0,234 - TVCi rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=461 +#EXTINF:0,238 - SIC +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=484 #EXTINF:0,239 - RTPi rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=388 #EXTINF:0,240 - Rai Uno @@ -157,34 +265,94 @@ rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=314 #EXTINF:0,242 - Rai Tre rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=315 -#EXTINF:0,250 - TV Polonia -rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=278 +#EXTINF:0,244 - RTR Planeta +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=317 +#EXTINF:0,245 - ORTi +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=357 +#EXTINF:0,246 - Nashe Kino +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=441 +#EXTINF:0,247 - Detski Mir/Teleclub +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=442 +#EXTINF:0,248 - RTVI +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=443 +#EXTINF:0,249 - RTVI-M +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=444 +#EXTINF:0,250 - TV Romania +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=318 #EXTINF:0,251 - Bulgaria TV rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=321 -#EXTINF:0,252 - TV Romania -rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=318 -#EXTINF:0,253 - RTR Planeta -rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=317 +#EXTINF:0,252 - Georgian TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=487 #EXTINF:0,254 - Adjara TV rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=316 +#EXTINF:0,255 - Imedi TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=488 +#EXTINF:0,256 - NTV Hayat +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=429 +#EXTINF:0,257 - RTV Pink Plus +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=439 +#EXTINF:0,258 - RTV Pink Extra +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=440 #EXTINF:0,259 - TV Biznes rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=450 -#EXTINF:0,260 - 2M Maroc +#EXTINF:0,260 - TV Polonia +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=278 +#EXTINF:0,261 - TVP Kultura +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=485 +#EXTINF:0,262 - TVP 3 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=486 +#EXTINF:0,265 - Armenia Public TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=380 +#EXTINF:0,266 - 2M Maroc rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=272 -#EXTINF:0,261 - RTM Maroc +#EXTINF:0,267 - RTM Maroc rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=273 -#EXTINF:0,262 - Canal Algérie +#EXTINF:0,268 - Canal Algérie rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=274 -#EXTINF:0,263 - TV7 Tunisia +#EXTINF:0,269 - TV7 Tunisia rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=277 -#EXTINF:0,269 - Armenia Public TV -rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=380 #EXTINF:0,270 - Al Masriya rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=275 #EXTINF:0,271 - Al Jazeera rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=276 #EXTINF:0,272 - Al Jazeera Children rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=412 +#EXTINF:0,273 - ART Variety Europe +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=326 +#EXTINF:0,274 - ART Teenz/Tarab +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=327 +#EXTINF:0,275 - ART Movies +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=328 +#EXTINF:0,277 - Al Hekayat +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=330 +#EXTINF:0,278 - Iqra +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=331 +#EXTINF:0,279 - ART Aflam 2 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=332 +#EXTINF:0,280 - Future TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=333 +#EXTINF:0,281 - MBC +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=334 +#EXTINF:0,282 - LBC Europe +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=335 +#EXTINF:0,283 - Nile Drama +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=336 +#EXTINF:0,284 - The Israeli Network +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=462 +#EXTINF:0,286 - Powertürk TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=489 +#EXTINF:0,287 - TRT1 +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=490 +#EXTINF:0,288 - Kanal D +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=463 +#EXTINF:0,289 - Star TV +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=464 +#EXTINF:0,290 - TGRT +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=465 +#EXTINF:0,291 - NTV Avrupa +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=466 +#EXTINF:0,292 - ATV Avrupa +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=467 #EXTINF:0,293 - TD1 rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=435 #EXTINF:0,294 - TRT INT @@ -247,7 +415,5 @@ rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=302 #EXTINF:0,324 - France 3 Rhône-Alpes rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=303 -#EXTINF:0,531 - PARIS Première -rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=1020 #EXTINF:0,999 - Mire FREEBOX rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=308 Modified: trunk/module/jt/flux.xml =================================================================== --- trunk/module/jt/flux.xml 2006-11-01 22:41:54 UTC (rev 46) +++ trunk/module/jt/flux.xml 2006-11-17 19:49:18 UTC (rev 47) @@ -24,6 +24,16 @@ <flux name="Carte postale gourmande" jours="0" heure="14" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/cartepostale/cartepostale.wmv</flux> <flux name="C'est notre affaire" jours="3" heure="12" datetype="Ymd"> mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/cnotreaffaire/cnotreaffaire_##.wmv</flux> <flux name="Le journal de blogue" jours="6" heure="22" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/journaldublog/journaldublog.wmv</flux> + <flux name="Arr\xEAt sur image" jours="0" heure="20" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/asi/arretimages_##.wmv</flux> + <flux name="Les maternelles" jours="1,2,4,5" heure="22" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/asi/arretimages_##.wmv</flux> + <flux name="Chez F.O.G" jours="0" heure="22" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/chezfog/chezfog.wmv</flux> + <flux name="L'emploi par le net" jours="1,2,3,4,5" heure="22" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/emploiparlenet/emploiparlenet.wmv</flux> + <flux name="L'oeil et la main" jours="6" heure="13" datetype="Ymd">mms://a988.v101995.c10199.e.vm.akamaistream.net/7/988/10199/3f97c7e6/ftvigrp.download.akamai.com/10199/sgv/diff/videotheque/france5/programmes/oeiletmain/6DF1F_unoeiletlamain_##.wmv</flux> + <flux name="Dossier Scheffer" jours="0" heure="24" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/dossier-scheffer/dossier-scheffer.wmv</flux> + <flux name="Le bateau livre" jours="4" heure="23" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/bateaulivre/bateaulivre.wmv</flux> + <flux name="Echapp\xE9es belles" jours="6" heure="24" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/echappeesbelles/echappeesbelles_##.wmv</flux> + + </chaine> <chaine name="RFO"> <flux name="JT RFO" jours="0,1,2,3,4,5,6" heure="24" datetype="Ymd">mms://a1977.v107941105128907.c10794.g.vm.akamaistream.net/7/1977/10794/1105128907/rfosat.download.akamai.com/10794/rfo_sat/jt_##-150k.wmv</flux> Modified: trunk/module/mp3/lecteuraudio.php =================================================================== --- trunk/module/mp3/lecteuraudio.php 2006-11-01 22:41:54 UTC (rev 46) +++ trunk/module/mp3/lecteuraudio.php 2006-11-17 19:49:18 UTC (rev 47) @@ -81,6 +81,26 @@ $pagedinfo=file_get_contents('http://localhost:8081/module/mp3/lecteuraudio.html'); eval($pagedinfo); +function parse_m3u($element, $ind){ +global $pl_transformed; + $fp = fopen(realpath($element),"r"); + while (!feof($fp)){ + $page = utf8_decode(trim(fgets($fp, 4096))); + if (!(eregi('#EXTM3U', $page) or $page=='')){ + $pl_transformed[] = array(extract_name($page), 0, $page, $ind); + } + } +} + +if(count($pl)>0){ + foreach($pl as $element){ + if (eregi('audiotemp',$element[0])){ + parse_m3u($element[2], $element[3]); + }else{ + $pl_transformed[] = $element; + } + } +} if($mode=='pla'){ $smarty->assign('min',$_GET['min']); }elseif($mode=='bib'){ @@ -135,7 +155,6 @@ } break; } - //Gestion des actions demandes if (isset($_REQUEST['action'])){ @@ -245,9 +264,9 @@ break; } - if(!$hidden){ - $informations[]=array($inf[1],$inf[0]); - } + if(!$hidden){ + $informations[]=array($inf[1],$inf[0]); + } } $smarty->assign('informations',$informations); $smarty->assign('search',$search); @@ -285,9 +304,8 @@ if($mode=='pla'){ - $smarty->assign('playlists',glob($PLAYLIST."*.m3u")); - $smarty->assign('pl',$pl); + $smarty->assign('pl',$pl_transformed); $LINK['red']=$MODULE.'_menu/menu.php'; $smarty->assign('need_m3u_name',$need_m3u_name); $smarty->assign('CONTENT',$smarty->fetch('playlist_audio.tpl')); Deleted: trunk/module/mp3/play.php =================================================================== --- trunk/module/mp3/play.php 2006-11-01 22:41:54 UTC (rev 46) +++ trunk/module/mp3/play.php 2006-11-17 19:49:18 UTC (rev 47) @@ -1,84 +0,0 @@ -<?php -$RACINE_REP = "../../"; - -require($RACINE_REP.'_framework/framework.php'); - -//include($LOAD); - -$basename = $_REQUEST['toplay_rep']."/".$_REQUEST['toplay_file']; -$basename = ereg_replace ("\\\'", "'", $basename); -$first=1; - -$pisteaudio = $ini[multimedia][sortiefreebox]; -$decallage = $ini[multimedia][compensation]; - -$file2 = @readfile('http://127.0.0.1:8081/lecteur/modif-config.html?type=0&var=audio-desync&value='.$decallage); - -if($pisteaudio=='TV'){ -// $META['aud'] = '69(en,mp2)'; - $add = 'type=2'; - $play = 'type=1'; - if($_GET['type']=="radio") { - $play = 'type=41'; - } - if ($_GET['type']=="m3u") { - $play = 'type=1'; - } - -}elseif($pisteaudio=='PC'){ - $add = 'type=4'; - $play = 'type=3'; - $decallage = $ini[multimedia][compensation]; - $file2 = @readfile('http://127.0.0.1:8081/lecteur/modif-config.html?type=0&var=audio-desync&value='.$decallage); - if($_GET['type']=="radio") { - $play = 'type=42'; - } - if ($_GET['type']=="m3u") { - $play = 'type=3'; - } - -}elseif($pisteaudio=='AC3'){ -// $META['aud'] = '69(en,ac3)'; - $add = 'type=6'; - $play = 'type=5'; - if($_GET['type']=="radio") { - $play = 'type=43'; - } - if ($_GET['type']=="m3u") { - $play = 'type=5'; - } -} - -if (isset($_GET['option'])){ - $page = $add; -}else{ - $page = $play; -} - - -if(eregi("http://",$basename) || eregi("mms://",$basename) || eregi("dvdsimple://",$basename) || eregi("cdda://",$basename)){ - play_fichier($page,$basename,0); -}else{ - play_fichier($page,$basename); -} - -if (isset($_GET['togo']) and $_GET['togo']=='mp3'){ - echo '<meta name="refresh" content="0;url=lecteuraudio.php">'; -} - - -?> -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> -<html> -<head> -<?php - -BOUTON(); -?> -<flags volume_key=true> -</head> -<body background="ts://127.0.0.1" text="#f0f0f03f" link="#f0f0f03f" alink="#FCBE033f" vlink="#cc00003f"> - -</body> -</html> - Modified: trunk/module/mp3/playdb.php =================================================================== --- trunk/module/mp3/playdb.php 2006-11-01 22:41:54 UTC (rev 46) +++ trunk/module/mp3/playdb.php 2006-11-17 19:49:18 UTC (rev 47) @@ -19,6 +19,7 @@ $default = $audio_defaut; $extv = explode(",",$ext_audio); +/* //Construction de la playlist actuelle $pagedinfo=file_get_contents('http://localhost:8081/module/mp3/lecteuraudio.html'); eval($pagedinfo); @@ -30,8 +31,9 @@ '; } } +*/ -//D\xE9finition du mode de lecteur +//D\xE9finition du mode de lecture $pisteaudio = $ini[multimedia][sortiefreebox]; $decallage = $ini[multimedia][compensation]; $file2 = @readfile('http://127.0.0.1:8081/lecteur/modif-config.html?type=0&var=audio-desync&value='.$decallage); @@ -72,11 +74,11 @@ } - if (isset($_GET['option'])){ - $page = $add; - }else{ - $page = $play; - } +if (isset($_GET['option'])){ + $page = $add; +}else{ + $page = $play; +} //Lecture en mode biblioth\xE8que @@ -149,11 +151,12 @@ ".utf8_encode(realpath(stripslashes($basename))); } //Cr\xE9ation de la playlist temporaire - $fp = fopen($USER.'audiotemp.m3u',"w+"); + $fp = fopen($USER.'audiotemp'.get_variable('num_playlist').'.m3u',"w+"); fputs($fp,"#EXTM3U"); fputs($fp,$variable); fclose($fp); - play_fichier($play,$USER.'audiotemp.m3u',1,'mp3'); + play_fichier($page,$USER.'audiotemp'.get_variable('num_playlist').'.m3u',1,'mp3'); + save_variable('num_playlist', get_variable('num_playlist')+1); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2006-11-18 11:09:12
|
Revision: 48 http://svn.sourceforge.net/easybox-mod/?rev=48&view=rev Author: aragornis Date: 2006-11-18 03:09:10 -0800 (Sat, 18 Nov 2006) Log Message: ----------- Nouvelles ?\195?\169missions de France t?\195?\169l?\195?\169vision Passage en version 3.4.11 Modified Paths: -------------- trunk/_utilisateur/modules.db trunk/module/jt/flux.xml trunk/version.html Modified: trunk/_utilisateur/modules.db =================================================================== (Binary files differ) Modified: trunk/module/jt/flux.xml =================================================================== --- trunk/module/jt/flux.xml 2006-11-17 19:49:18 UTC (rev 47) +++ trunk/module/jt/flux.xml 2006-11-18 11:09:10 UTC (rev 48) @@ -9,12 +9,15 @@ <flux name="Journal de 8h" jours="1,2,3,4,5,6" heure="9" datetype="Ymd">mms://sdmc.contents.edgestreams.net/horsgv/regions/siege/infos/f2/8h/HD_8h_##.wmv</flux> <flux name="Journal de 13h" jours="0,1,2,3,4,5,6" heure="15" datetype="Ymd">mms://sdmc.contents.edgestreams.net/horsgv/regions/siege/infos/f2/13h/HD_13h_##.wmv</flux> <flux name="Journal de 20h" jours="0,1,2,3,4,5,6" heure="21" datetype="Ymd">mms://sdmc.contents.edgestreams.net/horsgv/regions/siege/infos/f2/20h/HD_20h_##.wmv</flux> + <flux name="Compl\xE9ment d'enqu\xEAte" jours="2" heure="24" datetype="Ymd">mms://a988.v101995.c10199.e.vm.akamaistream.net/7/988/10199/3f97c7e6/ftvigrp.download.akamai.com/10199/sgv/diff/videotheque/info/videosemissions/videocomplement/18F52_complement-enuete.wmv</flux> </chaine> <chaine name="France 3"> <flux name="Le 12/13" jours="0,1,2,3,4,5,6" heure="15" datetype="Ymd">mms://sdmc.contents.edgestreams.net/horsgv/regions/siege/infos/f3/1214/HD_1214_##.wmv</flux> <flux name="Le 19/20" jours="0,1,2,3,4,5,6" heure="21" datetype="Ymd">mms://sdmc.contents.edgestreams.net/horsgv/regions/siege/infos/f3/1920/HD_1920_##.wmv</flux> <flux name="Soir 3" jours="0,1,2,3,4,5,6" heure="24" datetype="Ymd">mms://sdmc.contents.edgestreams.net/horsgv/regions/siege/infos/f3/soir3/HD_soir3_##.wmv</flux> - </chaine> + <flux name="Ce soir ou jamais" jours="1,2,3,4" heure="24" datetype="Ymd">mms://a988.v101995.c10199.e.vm.akamaistream.net/7/988/10199/3f97c7e6/ftvigrp.download.akamai.com//10199/horsgv/regions/siege/france3/cesoiroujamais/##_csoj.wmv</flux> + <flux name="France Europe Express" jours="0" heure="24" datetype="dmy">mms://a988.v101995.c10199.e.vm.akamaistream.net/7/988/10199/3f97c7e6/ftvigrp.download.akamai.com/10199/sgv/diff/videotheque/info/videosemissions/videos_fee/46169_fee_##.wmv</flux> + </chaine> <chaine name="France 5"> <flux name="Ca ne va pas durer" jours="5" heure="24" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/ca-ne-va-pas-durer/canevapasdurer.wmv</flux> <flux name="C dans l'air" jours="1,2,3,4,5" heure="20" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/cdanslair/cdanslair_##.wmv</flux> @@ -32,8 +35,7 @@ <flux name="Dossier Scheffer" jours="0" heure="24" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/dossier-scheffer/dossier-scheffer.wmv</flux> <flux name="Le bateau livre" jours="4" heure="23" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/bateaulivre/bateaulivre.wmv</flux> <flux name="Echapp\xE9es belles" jours="6" heure="24" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/echappeesbelles/echappeesbelles_##.wmv</flux> - - + <flux name="L'escapade de Petitrenaud" jours="0" heure="15" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/escapades/escapades_##.wmv</flux> </chaine> <chaine name="RFO"> <flux name="JT RFO" jours="0,1,2,3,4,5,6" heure="24" datetype="Ymd">mms://a1977.v107941105128907.c10794.g.vm.akamaistream.net/7/1977/10794/1105128907/rfosat.download.akamai.com/10794/rfo_sat/jt_##-150k.wmv</flux> Modified: trunk/version.html =================================================================== --- trunk/version.html 2006-11-17 19:49:18 UTC (rev 47) +++ trunk/version.html 2006-11-18 11:09:10 UTC (rev 48) @@ -4,6 +4,6 @@ </head> <body> <h1>Easybox</h1> -<h2>3.4.10</h2> +<h2>3.4.11</h2> </body> </html> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2006-11-26 15:38:33
|
Revision: 50 http://svn.sourceforge.net/easybox-mod/?rev=50&view=rev Author: aragornis Date: 2006-11-26 07:38:30 -0800 (Sun, 26 Nov 2006) Log Message: ----------- Possibilit?\195?\169 de modifier sa skin depuis la configuration Modif sur le module "modules" Modified Paths: -------------- trunk/_framework/fonctions_partagees.inc.php trunk/_framework/framework.php trunk/_utilisateur/modules.db trunk/configuration/skin.php trunk/module/modules/modules.tpl trunk/module/mp3/playdb.php trunk/module/reseaufree/province.png Modified: trunk/_framework/fonctions_partagees.inc.php =================================================================== --- trunk/_framework/fonctions_partagees.inc.php 2006-11-19 08:37:18 UTC (rev 49) +++ trunk/_framework/fonctions_partagees.inc.php 2006-11-26 15:38:30 UTC (rev 50) @@ -537,4 +537,59 @@ sqlite_close($db); } + +function list_skin(){ +global $RACINE_REP; + $db = sqlite_open($RACINE_REP.'_utilisateur/modules.db', 0666); + + $res = sqlite_query($db,'SELECT * FROM modules WHERE type="Skin"'); + + $SKINS = array(); + while($element = sqlite_fetch_object($res)){ + $SKINS[] = array('nom'=>$element->nom,'repertoire'=>$element->repertoire,'description'=>$element->description,'version'=>$element->version); + } + sqlite_close($db); + return $SKINS; +} + + +function change_template($tpl){ +global $RACINE_REP; + +function ClearDirectory($path){ + if($dir_handle = opendir($path)){ + while($file = readdir($dir_handle)){ + if($file == "." || $file == ".."){ + if(!@unlink($path."/".$file)){ + continue; + } + }else{ + @unlink($path."/".$file); + } + } + closedir($dir_handle); + return true; +// all files deleted + }else{ + return false; +// directory doesn?t exist + } +} + +ClearDirectory(realpath($RACINE_REP.'_framework/lib/cache/')); + + $ini1 = parse_ini_file($RACINE_REP.'_utilisateur/configuration.ini', TRUE); + foreach($ini1 as $key2=>$inisec2){ + $reini .="\n[".$key2."]\n"; + foreach($inisec2 as $subkey2=>$entry2){ + if($subkey2=="skin" && $key2=="skin") + $reini .=$subkey2.' = "'.$tpl."\"\n"; + else + $reini .=$subkey2.' = "'.$ini1[$key2][$subkey2]."\"\n"; + } + } +$handle = fopen($RACINE_REP.'_utilisateur/configuration.ini', "w"); +fwrite($handle, $reini); +fclose($handle); +} ?> Modified: trunk/_framework/framework.php =================================================================== --- trunk/_framework/framework.php 2006-11-19 08:37:18 UTC (rev 49) +++ trunk/_framework/framework.php 2006-11-26 15:38:30 UTC (rev 50) @@ -70,7 +70,7 @@ $xml_aide = simplexml_load_file($AIDE_REP."help.xml"); //-- R\xE9pertoire de la skin - $SKIN_REP = $RACINE_REP.'skin/'.$ini[skin][skin]."/"; + $SKIN_REP = $RACINE_REP.'skin/'.$ini['skin']['skin']."/"; $smarty->assign('SKIN_REP',$SKIN_REP); $THEME_REP = $RACINE_REP.'themes/'; $smarty->assign('THEME_REP',$THEME_REP); Modified: trunk/_utilisateur/modules.db =================================================================== (Binary files differ) Modified: trunk/configuration/skin.php =================================================================== --- trunk/configuration/skin.php 2006-11-19 08:37:18 UTC (rev 49) +++ trunk/configuration/skin.php 2006-11-26 15:38:30 UTC (rev 50) @@ -2,55 +2,24 @@ <table width="700" style="border: thin outset;font-size: 9px;"> <tr><td> <?php -function ClearDirectory($path){ - if($dir_handle = opendir($path)){ - while($file = readdir($dir_handle)){ - if($file == "." || $file == ".."){ - if(!@unlink($path."/".$file)){ - continue; - } - }else{ - @unlink($path."/".$file); - } - } - closedir($dir_handle); - return true; -// all files deleted - }else{ - return false; -// directory doesn?t exist - } -} -ClearDirectory(realpath('./../_framework/lib/cache/')); - +$RACINE_REP = "../"; if (isset($_GET['choiskin'])){ - $ini1 = parse_ini_file("../_utilisateur/configuration.ini", TRUE); - foreach($ini1 as $key2=>$inisec2){ - $reini .="\n[".$key2."]\n"; - foreach($inisec2 as $subkey2=>$entry2){ - if($subkey2=="skin" && $key2=="skin") - $reini .=$subkey2.' = "'.$_GET['choiskin']."\"\n"; - else - $reini .=$subkey2.' = "'.$ini1[$key2][$subkey2]."\"\n"; - } - } -$handle = fopen("../_utilisateur/configuration.ini", "w"); -fwrite($handle, $reini); -fclose($handle); + change_template($_GET['choiskin']); } +$skins = list_skin(); + // Chargement du fichier INI de configuration $ini = parse_ini_file("../_utilisateur/configuration.ini", TRUE); -$skincfg = $ini[skin][skin]; -$dir= scandir('../skin'); +$skincfg = $ini['skin']['skin']; ?> <form action="index1.php" method="get"> <?php - foreach($dir as $skin){ - if(is_dir('../skin/'.$skin) && substr($skin,0,1)!="." && $skin!="_commun"){ + foreach($skins as $skin){ + if(is_dir('../skin/'.$skin['repertoire'])){ ?> <table width="100%" border="0" cellspacing="0" cellpadding="3"> @@ -61,36 +30,29 @@ <td colspan="2" align="right"><table width="100%" border="0" cellspacing="3" cellpadding="1"> <tr> <td width="85%"><font><b> - <input type="radio" name="choiskin" value="<?= $skin; ?>" <?php if($skincfg==$skin) {echo' checked="checked" '; } ?>> - Skin : <?= $skin ?> + <input type="radio" name="choiskin" value="<?= $skin['nom']; ?>" <?php if(strtolower($skincfg)==strtolower($skin['nom'])) {echo' checked="checked" '; } ?>> + Skin : <?= $skin['nom'] ?> </b></font></td> </tr> </table></td> </tr> <tr> <td align="right" width=200> - <img style="height: 128px; border:0px;" src="../skin/<?= $skin; ?>/vuedensemble.gif" alt="<?= $skin; ?>"> + <img style="height: 128px; border:0px;" src="../skin/<?= $skin['repertoire']; ?>/vuedensemble.gif" alt="<?= $skin['nom']; ?>"> </td> <td width="783" valign="top"> <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td> - <?php - if (file_exists("../skin/".$skin."/info.php")) { - include ("../skin/".$skin."/info.php"); - } ?> - - <b>Auteur : </b> <?= $auteur; ?> <br> - <br> <b>Description :</b><br> - <?= $description; ?><br> + <?= $skin['nom']; ?><br> <br> - <b>Version : </b> <?= $version; ?></td> + <b>Version : </b> <?= $skin['version']; ?></td> </tr> <tr> <td align="right"> - <?php if (file_exists("../skin/".$skin."/config_skin.php")) { ?> - <a href="?<?= $_SERVER['QUERY_STRING']; ?>&act=config&skin=<?= $skin; ?>">Configurer la skin : <?= $skin; ?></a> + <?php if (file_exists("../skin/".$skin['nom']."/config_skin.php")) { ?> + <a href="?<?= $_SERVER['QUERY_STRING']; ?>&act=config&skin=<?= $skin['nom']; ?>">Configurer la skin : <?= $skin['nom']; ?></a> <?php }else{ echo "Pas d'options de configuration"; } ?> Modified: trunk/module/modules/modules.tpl =================================================================== --- trunk/module/modules/modules.tpl 2006-11-19 08:37:18 UTC (rev 49) +++ trunk/module/modules/modules.tpl 2006-11-26 15:38:30 UTC (rev 50) @@ -14,13 +14,17 @@ <td>{$MOD[mod].nom}</td> <td>{$MOD[mod].version}</td> <td>{$MOD[mod].description}</td> - <td width="20" bgcolor="{$COLOR}"><a href="index1.php?delid={$MOD[mod].id}"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{$COLOR}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}delete.gif" border="0" width="20" height="20"></td></tr></table></a></td> + <td width="20" bgcolor="{$COLOR}"><a href="index1.php?delid={$MOD[mod].id}&action={$action}"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{$COLOR}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}delete.gif" border="0" width="20" height="20"></td></tr></table></a></td> </tr> {if $smarty.section.mod.last}</table>{/if} {sectionelse} - Aucun module suppl\xE9mentaire n'est install\xE9. Pour installer, rendez-vous dans la partie "Nouveaux modules". + {if $action=="skin"} + Aucune skin suppl\xE9mentaire n'est install\xE9e. Pour en installer, rendez-vous dans la partie "Nouvelles skins". + {else} + Aucun module suppl\xE9mentaire n'est install\xE9. Pour en installer, rendez-vous dans la partie "Nouveaux modules". + {/if} {/section} {elseif $action=="newmod" OR $action=="newskin"} {section name=mod loop=$MOD} @@ -44,9 +48,12 @@ </tr> {if $smarty.section.mod.last}</table>{/if} - {sectionelse} - Aucun autre module n'est disponible. + {if $action=="newskin"} + Aucun skin n'est disponible. + {else} + Aucun autre module n'est disponible. + {/if} {/section} {/if} Modified: trunk/module/mp3/playdb.php =================================================================== --- trunk/module/mp3/playdb.php 2006-11-19 08:37:18 UTC (rev 49) +++ trunk/module/mp3/playdb.php 2006-11-26 15:38:30 UTC (rev 50) @@ -1,177 +1,177 @@ -<?php -$RACINE_REP = "../../"; - -require($RACINE_REP.'_framework/framework.php'); - -function sqlite_table_exists(&$db, $table){ - $result = sqlite_query($db, "SELECT name FROM sqlite_master WHERE type='table' AND name='$table'"); - return (sqlite_num_rows($result)!=0); -} - -$db = sqlite_open($USER.'audio.db', 0666); - -// On teste si la base des fichiers mp3/ogg existe bien -if (sqlite_table_exists($db, 'music')) { - -$ext_audio = $ini[explorateur][ext_audio]; -$audio_defaut = $ini[explorateur][audio_defaut]; -$afficher_fichier_cache = $ini[explorateur][afficher_fichier_cache]; -$default = $audio_defaut; -$extv = explode(",",$ext_audio); - -/* -//Construction de la playlist actuelle -$pagedinfo=file_get_contents('http://localhost:8081/module/mp3/lecteuraudio.html'); -eval($pagedinfo); - - if (is_array($pl)){ - foreach($pl as $key => $value) { - $variable .= '#EXTINF:0,'.utf8_encode($value[0]).' - '.utf8_encode($value[2]).' - '; - } - } -*/ - -//D\xE9finition du mode de lecture -$pisteaudio = $ini[multimedia][sortiefreebox]; -$decallage = $ini[multimedia][compensation]; -$file2 = @readfile('http://127.0.0.1:8081/lecteur/modif-config.html?type=0&var=audio-desync&value='.$decallage); - -if($pisteaudio=='TV'){ -// $META['aud'] = '69(en,mp2)'; - $add = 'type=2'; - $play = 'type=1'; - if($_GET['type']=="radio") { - $play = 'type=41'; - } - if ($_GET['type']=="m3u") { - $play = 'type=1'; - } - -}elseif($pisteaudio=='PC'){ - $add = 'type=4'; - $play = 'type=3'; - $decallage = $ini[multimedia][compensation]; - $file2 = @readfile('http://127.0.0.1:8081/lecteur/modif-config.html?type=0&var=audio-desync&value='.$decallage); - if($_GET['type']=="radio") { - $play = 'type=42'; - } - if ($_GET['type']=="m3u") { - $play = 'type=3'; - } - -}elseif($pisteaudio=='AC3'){ -// $META['aud'] = '69(en,ac3)'; - $add = 'type=6'; - $play = 'type=5'; - if($_GET['type']=="radio") { - $play = 'type=43'; - } - if ($_GET['type']=="m3u") { - $play = 'type=5'; - } - -} - -if (isset($_GET['option'])){ - $page = $add; -}else{ - $page = $play; -} - - -//Lecture en mode biblioth\xE8que - (isset($_GET['wf'])?$wherefield=$_GET['wf']:$wherefield=''); - (isset($_GET['wl'])?$wherelike=$_GET['wl']:$wherelike=''); - if ($wherefield!=''){ - $sqllike=$wherefield." LIKE \"".urldecode($wherelike)."%\""; - - $query = "SELECT * FROM music WHERE ".stripslashes($sqllike); - - $result=sqlite_query($db, $query); - while ($row = sqlite_fetch_array($result)) { - $basename = $row[filename]; - $variable .= " - ".utf8_encode(realpath($basename)); - } - } - - -//Lecture en mode explorateur seul -if(isset($_GET['toplay_rep']) && isset($_GET['toplay_file'])){ - $basename=$_GET['toplay_rep'].'/'.$_GET['toplay_file']; - /*$variable .= " - ".utf8_encode(realpath(stripslashes($basename))); */ - $variable .= '#EXTINF:0,'.utf8_encode($_GET['toplay_file']).' - '.utf8_encode(realpath(stripslashes($basename))).' - '; - -} - -//Lecture en mode explorateur dossier entier - if($_GET['type']=="playrep"){ - - function add_recursive($handle){ - global $extv, $variable; - $handle2=@opendir($handle); - while (false !== ($file = readdir($handle2))){ - if(in_array(strtolower(substr($file,strrpos($file,'.'))),$extv) && $file!='.'){ - $basename = $handle.'/'.$file; - $variable .= " - ".utf8_encode(realpath($basename)); - }elseif(is_dir($handle.'/'.$file) && $file!='.' && $file!='..'){ - add_recursive($handle.'/'.$file); - } - } - } - add_recursive(realpath(stripslashes($_REQUEST['toplay']))); -} - -//Lecture d'une webradio -if($_GET['type']=="webradio"){ - $basename = $_REQUEST['play']; - $nom = $_REQUEST['nom']; - save_variable('lastwebradio', urldecode($nom)); - play_fichier('type=40',$basename,0,'webradio'); -}elseif($_GET['type']=="m3u"){ - $basename = $_REQUEST['play']; - play_fichier($play,$basename,0,'mp3'); -}elseif($_GET['type']=="podcast"){ - save_variable('current_pod', urldecode($_GET['setlect'])); - $basename = $_REQUEST['play']; - play_fichier($play,$basename,0,'podcast'); -}elseif($_GET['type']=="cdda"){ - $basename = 'cdda://'.strtoupper($_REQUEST['disque']).':'; - play_fichier($play,$basename,0,'cd'); -}else{ - if(isset($_GET['toplay']) && $_GET['type']!="playrep"){ - $basename=$_GET['toplay']; - $variable .= " - ".utf8_encode(realpath(stripslashes($basename))); - } - //Cr\xE9ation de la playlist temporaire - $fp = fopen($USER.'audiotemp'.get_variable('num_playlist').'.m3u',"w+"); - fputs($fp,"#EXTM3U"); - fputs($fp,$variable); - fclose($fp); - play_fichier($page,$USER.'audiotemp'.get_variable('num_playlist').'.m3u',1,'mp3'); - save_variable('num_playlist', get_variable('num_playlist')+1); -} - -} -?> -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> -<html> -<head> -<?php -echo '<meta name="refresh" content="2;url=lecteuraudio.php">'; -?> -<flags volume_key=true> -</head> -<body background="ts://127.0.0.1" text="#f0f0f03f" link="#f0f0f03f" alink="#FCBE033f" vlink="#cc00003f"> -<script language="javascript" src="/fb2ie.js"> -</script> -</body> -</html> - +<?php +$RACINE_REP = "../../"; + +require($RACINE_REP.'_framework/framework.php'); + +function sqlite_table_exists(&$db, $table){ + $result = sqlite_query($db, "SELECT name FROM sqlite_master WHERE type='table' AND name='$table'"); + return (sqlite_num_rows($result)!=0); +} + +$db = sqlite_open($USER.'audio.db', 0666); + +// On teste si la base des fichiers mp3/ogg existe bien +if (sqlite_table_exists($db, 'music')) { + +$ext_audio = $ini[explorateur][ext_audio]; +$audio_defaut = $ini[explorateur][audio_defaut]; +$afficher_fichier_cache = $ini[explorateur][afficher_fichier_cache]; +$default = $audio_defaut; +$extv = explode(",",$ext_audio); + +/* +//Construction de la playlist actuelle +$pagedinfo=file_get_contents('http://localhost:8081/module/mp3/lecteuraudio.html'); +eval($pagedinfo); + + if (is_array($pl)){ + foreach($pl as $key => $value) { + $variable .= '#EXTINF:0,'.utf8_encode($value[0]).' + '.utf8_encode($value[2]).' + '; + } + } +*/ + +//D\xE9finition du mode de lecture +$pisteaudio = $ini[multimedia][sortiefreebox]; +$decallage = $ini[multimedia][compensation]; +$file2 = @readfile('http://127.0.0.1:8081/lecteur/modif-config.html?type=0&var=audio-desync&value='.$decallage); + +if($pisteaudio=='TV'){ +// $META['aud'] = '69(en,mp2)'; + $add = 'type=2'; + $play = 'type=1'; + if($_GET['type']=="radio") { + $play = 'type=40'; + } + if ($_GET['type']=="m3u" OR $_GET['type']=="webradio") { + $play = 'type=1'; + } + +}elseif($pisteaudio=='PC'){ + $add = 'type=4'; + $play = 'type=3'; + $decallage = $ini[multimedia][compensation]; + $file2 = @readfile('http://127.0.0.1:8081/lecteur/modif-config.html?type=0&var=audio-desync&value='.$decallage); + if($_GET['type']=="radio") { + $play = 'type=41'; + } + if ($_GET['type']=="m3u" OR $_GET['type']=="webradio") { + $play = 'type=3'; + } + +}elseif($pisteaudio=='AC3'){ +// $META['aud'] = '69(en,ac3)'; + $add = 'type=6'; + $play = 'type=5'; + if($_GET['type']=="radio" OR $_GET['type']=="webradio") { + $play = 'type=42'; + } + if ($_GET['type']=="m3u") { + $play = 'type=5'; + } + +} + +if (isset($_GET['option'])){ + $page = $add; +}else{ + $page = $play; +} + + +//Lecture en mode biblioth\xE8que + (isset($_GET['wf'])?$wherefield=$_GET['wf']:$wherefield=''); + (isset($_GET['wl'])?$wherelike=$_GET['wl']:$wherelike=''); + if ($wherefield!=''){ + $sqllike=$wherefield." LIKE \"".urldecode($wherelike)."%\""; + + $query = "SELECT * FROM music WHERE ".stripslashes($sqllike); + + $result=sqlite_query($db, $query); + while ($row = sqlite_fetch_array($result)) { + $basename = $row[filename]; + $variable .= " + ".utf8_encode(realpath($basename)); + } + } + + +//Lecture en mode explorateur seul +if(isset($_GET['toplay_rep']) && isset($_GET['toplay_file'])){ + $basename=$_GET['toplay_rep'].'/'.$_GET['toplay_file']; + /*$variable .= " + ".utf8_encode(realpath(stripslashes($basename))); */ + $variable .= '#EXTINF:0,'.utf8_encode($_GET['toplay_file']).' + '.utf8_encode(realpath(stripslashes($basename))).' + '; + +} + +//Lecture en mode explorateur dossier entier + if($_GET['type']=="playrep"){ + + function add_recursive($handle){ + global $extv, $variable; + $handle2=@opendir($handle); + while (false !== ($file = readdir($handle2))){ + if(in_array(strtolower(substr($file,strrpos($file,'.'))),$extv) && $file!='.'){ + $basename = $handle.'/'.$file; + $variable .= " + ".utf8_encode(realpath($basename)); + }elseif(is_dir($handle.'/'.$file) && $file!='.' && $file!='..'){ + add_recursive($handle.'/'.$file); + } + } + } + add_recursive(realpath(stripslashes($_REQUEST['toplay']))); +} + +//Lecture d'une webradio +if($_GET['type']=="webradio"){ + $basename = $_REQUEST['play']; + $nom = $_REQUEST['nom']; + save_variable('lastwebradio', urldecode($nom)); + play_fichier($play,$basename,0,'webradio'); +}elseif($_GET['type']=="m3u"){ + $basename = $_REQUEST['play']; + play_fichier($play,$basename,0,'mp3'); +}elseif($_GET['type']=="podcast"){ + save_variable('current_pod', urldecode($_GET['setlect'])); + $basename = $_REQUEST['play']; + play_fichier($play,$basename,0,'podcast'); +}elseif($_GET['type']=="cdda"){ + $basename = 'cdda://'.strtoupper($_REQUEST['disque']).':'; + play_fichier($play,$basename,0,'cd'); +}else{ + if(isset($_GET['toplay']) && $_GET['type']!="playrep"){ + $basename=$_GET['toplay']; + $variable .= " + ".utf8_encode(realpath(stripslashes($basename))); + } + //Cr\xE9ation de la playlist temporaire + $fp = fopen($USER.'audiotemp'.get_variable('num_playlist').'.m3u',"w+"); + fputs($fp,"#EXTM3U"); + fputs($fp,$variable); + fclose($fp); + play_fichier($page,$USER.'audiotemp'.get_variable('num_playlist').'.m3u',1,'mp3'); + save_variable('num_playlist', get_variable('num_playlist')+1); +} + +} +?> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<html> +<head> +<?php +echo '<meta name="refresh" content="2;url=lecteuraudio.php">'; +?> +<flags volume_key=true> +</head> +<body background="ts://127.0.0.1" text="#f0f0f03f" link="#f0f0f03f" alink="#FCBE033f" vlink="#cc00003f"> +<script language="javascript" src="/fb2ie.js"> +</script> +</body> +</html> + Modified: trunk/module/reseaufree/province.png =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2006-11-26 19:40:57
|
Revision: 52 http://svn.sourceforge.net/easybox-mod/?rev=52&view=rev Author: aragornis Date: 2006-11-26 11:40:53 -0800 (Sun, 26 Nov 2006) Log Message: ----------- RC1 Modified Paths: -------------- trunk/_utilisateur/modules.db trunk/_utilisateur/multiposte.m3u trunk/configuration/modules.php trunk/configuration/screensaver.php trunk/module/jt/flux.xml Added Paths: ----------- trunk/themes/icones/defaut/Recettes.gif Modified: trunk/_utilisateur/modules.db =================================================================== (Binary files differ) Modified: trunk/_utilisateur/multiposte.m3u =================================================================== --- trunk/_utilisateur/multiposte.m3u 2006-11-26 19:32:14 UTC (rev 51) +++ trunk/_utilisateur/multiposte.m3u 2006-11-26 19:40:53 UTC (rev 52) @@ -97,6 +97,8 @@ rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=216 #EXTINF:0,70 - Bloomberg TV rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=207 +#EXTINF:0,72 - Al Jazeera International +rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=494 #EXTINF:0,73 - BBC World rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=240 #EXTINF:0,74 - Sky News International Modified: trunk/configuration/modules.php =================================================================== --- trunk/configuration/modules.php 2006-11-26 19:32:14 UTC (rev 51) +++ trunk/configuration/modules.php 2006-11-26 19:40:53 UTC (rev 52) @@ -25,7 +25,7 @@ sqlite_close($db); }elseif(isset($_GET['newmodule'])){ - add_module($_GET['nom'], $_GET['nom'].'/', '', '', '', '', '', '', $_GET['version'], $_GET['description'], 'Module', 'Alone', $_GET['categorie']); + add_module($_GET['nom'], $_GET['nom'].'/', 'index1.php', '1', '1', '1', '1', '1', $_GET['version'], $_GET['description'], 'Module', 'Alone', $_GET['categorie']); get_module_list(); } $ini = parse_ini_file($CONFIG_INI, TRUE); Modified: trunk/configuration/screensaver.php =================================================================== --- trunk/configuration/screensaver.php 2006-11-26 19:32:14 UTC (rev 51) +++ trunk/configuration/screensaver.php 2006-11-26 19:40:53 UTC (rev 52) @@ -1,6 +1,8 @@ +<? /* <center> <table width="700" style="border: thin outset;font-size: 9px;"> <tr><td> + <?php function imageajuste(&$image1,$image2,$largeur,$hauteur,$position){ $pourcent=min (($largeur/imagesx($image2)),($hauteur/imagesy($image2))); @@ -90,8 +92,6 @@ } $img = glob("../module/screensaver/image/*.gif"); $nn =count($img); - - ?> <center><b>Images de l'\xE9cran de veille</b> <form name="form1" method="get" action="index1.php"> @@ -123,5 +123,7 @@ </center> +*/ ?> +En travaux Modified: trunk/module/jt/flux.xml =================================================================== --- trunk/module/jt/flux.xml 2006-11-26 19:32:14 UTC (rev 51) +++ trunk/module/jt/flux.xml 2006-11-26 19:40:53 UTC (rev 52) @@ -28,10 +28,9 @@ <flux name="C'est notre affaire" jours="3" heure="12" datetype="Ymd"> mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/cnotreaffaire/cnotreaffaire_##.wmv</flux> <flux name="Le journal de blogue" jours="6" heure="22" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/journaldublog/journaldublog.wmv</flux> <flux name="Arr\xEAt sur image" jours="0" heure="20" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/asi/arretimages_##.wmv</flux> - <flux name="Les maternelles" jours="1,2,4,5" heure="22" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/asi/arretimages_##.wmv</flux> + <flux name="Les maternelles" jours="1,2,4,5" heure="22" datetype="Ymd">http://www.france5.fr/images/asx/maternelles/maternelles_##.asx</flux> <flux name="Chez F.O.G" jours="0" heure="22" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/chezfog/chezfog.wmv</flux> <flux name="L'emploi par le net" jours="1,2,3,4,5" heure="22" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/emploiparlenet/emploiparlenet.wmv</flux> - <flux name="L'oeil et la main" jours="6" heure="13" datetype="Ymd">mms://a988.v101995.c10199.e.vm.akamaistream.net/7/988/10199/3f97c7e6/ftvigrp.download.akamai.com/10199/sgv/diff/videotheque/france5/programmes/oeiletmain/6DF1F_unoeiletlamain_##.wmv</flux> <flux name="Dossier Scheffer" jours="0" heure="24" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/dossier-scheffer/dossier-scheffer.wmv</flux> <flux name="Le bateau livre" jours="4" heure="23" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/bateaulivre/bateaulivre.wmv</flux> <flux name="Echapp\xE9es belles" jours="6" heure="24" datetype="Ymd">mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/echappeesbelles/echappeesbelles_##.wmv</flux> Added: trunk/themes/icones/defaut/Recettes.gif =================================================================== (Binary files differ) Property changes on: trunk/themes/icones/defaut/Recettes.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2006-11-27 19:24:25
|
Revision: 53 http://svn.sourceforge.net/easybox-mod/?rev=53&view=rev Author: aragornis Date: 2006-11-27 11:23:32 -0800 (Mon, 27 Nov 2006) Log Message: ----------- Modified Paths: -------------- trunk/_framework/fonctions_partagees.inc.php trunk/_utilisateur/modules.db trunk/configuration/skin.php trunk/module/horoscope/index1.php trunk/module/modules/index1.php trunk/module/modules/modules.tpl Modified: trunk/_framework/fonctions_partagees.inc.php =================================================================== --- trunk/_framework/fonctions_partagees.inc.php 2006-11-26 19:40:53 UTC (rev 52) +++ trunk/_framework/fonctions_partagees.inc.php 2006-11-27 19:23:32 UTC (rev 53) @@ -553,7 +553,7 @@ } -function change_template($tpl){ +function change_skin($tpl){ global $RACINE_REP; function ClearDirectory($path){ @@ -588,6 +588,7 @@ $reini .=$subkey2.' = "'.$ini1[$key2][$subkey2]."\"\n"; } } + $handle = fopen($RACINE_REP.'_utilisateur/configuration.ini', "w"); fwrite($handle, $reini); fclose($handle); Modified: trunk/_utilisateur/modules.db =================================================================== (Binary files differ) Modified: trunk/configuration/skin.php =================================================================== --- trunk/configuration/skin.php 2006-11-26 19:40:53 UTC (rev 52) +++ trunk/configuration/skin.php 2006-11-27 19:23:32 UTC (rev 53) @@ -5,7 +5,7 @@ $RACINE_REP = "../"; if (isset($_GET['choiskin'])){ - change_template($_GET['choiskin']); + change_skin($_GET['choiskin']); } $skins = list_skin(); Modified: trunk/module/horoscope/index1.php =================================================================== --- trunk/module/horoscope/index1.php 2006-11-26 19:40:53 UTC (rev 52) +++ trunk/module/horoscope/index1.php 2006-11-27 19:23:32 UTC (rev 53) @@ -1,76 +1,571 @@ <?php - $RACINE_REP = "../../"; - require($RACINE_REP.'_framework/framework.php'); +$RACINE_REP = "../../"; +require($RACINE_REP.'_framework/framework.php'); + +$LINK['red']= $MODULE.'_menu/menu.php?cat=9'; + +global $affichage,$level, $nb_joueurs, $nb_win, $fini; + +if ($_GET['rep']) { + $level = $_GET['level']; +}else{ + $level=1; +} + + +$MENU_ALT=array( + array('lien'=>'index1.php?level=1', 'nom'=>'LEVEL 1', 'selected'=>$level=='1'), + array('lien'=>'index1.php?level=2', 'nom'=>'LEVEL 2', 'selected'=>$level=='2'), + array('lien'=>'index1.php?level=3', 'nom'=>'LEVEL 3', 'selected'=>$level=='3') + ); + + +$affichage=""; + +$nb_joueurs1=0; +$nb_joueurs2=0; +$nb_joueurs3=0; + + if(isset($_GET['level'])){ $level=$_GET['level']; } elseif(isset($_GET['level'])){ $level=$_GET['level']; } + if(!isset($_GET['tour'])) { $tour=0; } else { $tour=$_GET['tour']; } + if(isset($_GET['fini'])){ $fini = $_GET['fini']; } else { $fini=0; } + $joue=0; + $jouer_1=0; + $jouer_2=0; + $jouer_3=0; + + if(!isset($_GET['t11'])) { $tab[1][1]='-'; } elseif(isset($_GET['st11'])){ $tab[1][1] = 'b'; } else { $tab[1][1] = $_GET['t11']; } + if(!isset($_GET['t12'])) { $tab[1][2]='-'; } elseif(isset($_GET['st12'])){ $tab[1][2] = 'b'; } else { $tab[1][2] = $_GET['t12']; } + if(!isset($_GET['t13'])) { $tab[1][3]='-'; } elseif(isset($_GET['st13'])){ $tab[1][3] = 'b'; } else { $tab[1][3] = $_GET['t13']; } + if(!isset($_GET['t21'])) { $tab[2][1]='-'; } elseif(isset($_GET['st21'])){ $tab[2][1] = 'b'; } else { $tab[2][1] = $_GET['t21']; } + if(!isset($_GET['t22'])) { $tab[2][2]='-'; } elseif(isset($_GET['st22'])){ $tab[2][2] = 'b'; } else { $tab[2][2] = $_GET['t22']; } + if(!isset($_GET['t23'])) { $tab[2][3]='-'; } elseif(isset($_GET['st23'])){ $tab[2][3] = 'b'; } else { $tab[2][3] = $_GET['t23']; } + if(!isset($_GET['t31'])) { $tab[3][1]='-'; } elseif(isset($_GET['st31'])){ $tab[3][1] = 'b'; } else { $tab[3][1] = $_GET['t31']; } + if(!isset($_GET['t32'])) { $tab[3][2]='-'; } elseif(isset($_GET['st32'])){ $tab[3][2] = 'b'; } else { $tab[3][2] = $_GET['t32']; } + if(!isset($_GET['t33'])) { $tab[3][3]='-'; } elseif(isset($_GET['st33'])){ $tab[3][3] = 'b'; } else { $tab[3][3] = $_GET['t33']; } + + // on d\xE9finit les lignes qui seront test\xE9es lors du jeu + $row1 = $tab[1][1] . $tab[1][2] . $tab[1][3]; + $row2 = $tab[2][1] . $tab[2][2] . $tab[2][3]; + $row3 = $tab[3][1] . $tab[3][2] . $tab[3][3]; + $row4 = $tab[1][1] . $tab[2][2] . $tab[3][3]; + $row5 = $tab[3][1] . $tab[2][2] . $tab[1][3]; + $row6 = $tab[1][1] . $tab[2][1] . $tab[3][1]; + $row7 = $tab[1][2] . $tab[2][2] . $tab[3][2]; + $row8 = $tab[1][3] . $tab[2][3] . $tab[3][3]; + + // ces valeurs ne sont utiles que lors du d\xE9veloppement/ d\xE9buggage + $ligne[1][1] = '1-1'; + $ligne[1][2] = '1-2'; + $ligne[1][3] = '1-3'; + $ligne[2][1] = '2-1'; + $ligne[2][2] = '2-2'; + $ligne[2][3] = '2-3'; + $ligne[3][1] = '3-1'; + $ligne[3][2] = '3-2'; + $ligne[3][3] = '3-3'; + $ligne[4][1] = '1-1'; + $ligne[4][2] = '2-2'; + $ligne[4][3] = '3-3'; + $ligne[5][1] = '3-1'; + $ligne[5][2] = '2-2'; + $ligne[5][3] = '1-3'; + $ligne[6][1] = '1-1'; + $ligne[6][2] = '2-1'; + $ligne[6][3] = '3-1'; + $ligne[7][1] = '1-2'; + $ligne[7][2] = '2-2'; + $ligne[7][3] = '3-2'; + $ligne[8][1] = '1-3'; + $ligne[8][2] = '2-3'; + $ligne[8][3] = '3-3'; - if (isset($_REQUEST['sign'])) + //------------------- + // Fonction de conversion des lignes de type $tab[x][y] + // pour ressortir la coordonn\xE9e des cases (comprise entre 1 et 3) + //------------------- + + function cv($i, $j) { - // On a choisit un signe, afficher l'horoscope - - $liens = array('rss_horojour_belier.xml', 'rss_horojour_taureau.xml', 'rss_horojour_gemeaux.xml', 'rss_horojour_cancer.xml', 'rss_horojour_lion.xml', 'rss_horojour_vierge.xml', 'rss_horojour_balance.xml', 'rss_horojour_scorpion.xml', 'rss_horojour_sagittaire.xml', 'rss_horojour_capricorne.xml', 'rss_horojour_verseau.xml', 'rss_horojour_poissons.xml'); + // si $tab[6][2] alors val1C=2 val2c=1 + if($i>3) + { + if($i==4 && $j==1) { $valc1=1; $valc2=1; } + if($i==4 && $j==2) { $valc1=2; $valc2=2; } + if($i==4 && $j==3) { $valc1=3; $valc2=3; } + if($i==5 && $j==1) { $valc1=3; $valc2=1; } + if($i==5 && $j==2) { $valc1=2; $valc2=2; } + if($i==5 && $j==3) { $valc1=1; $valc2=3; } + if($i==8 && $j==1) { $valc1=1; $valc2=3; } + if($i==6 && $j==1) { $valc1=1; $valc2=1; } + if($i==6 && $j==2) { $valc1=2; $valc2=1; } + if($i==6 && $j==3) { $valc1=3; $valc2=1; } + if($i==7 && $j==1) { $valc1=1; $valc2=2; } + if($i==7 && $j==2) { $valc1=2; $valc2=2; } + if($i==7 && $j==3) { $valc1=3; $valc2=2; } + if($i==8 && $j==1) { $valc1=1; $valc2=3; } + if($i==8 && $j==2) { $valc1=2; $valc2=3; } + if($i==8 && $j==3) { $valc1=3; $valc2=3; } + } + else + { + $valc1=$i; + $valc2=$j; + } - if ($xml = file_get_contents('http://www.asiaflash.com/horoscope/'.$liens[$_REQUEST['sign']-1])) + return array($valc1,$valc2); + } + + + if($tour!=0 && $fini!=true) + { + if($tour==1) { - /* - * Je voulais faire ca en parsant le XML - * mais j'ai des probl\xE8mes de caract\xE8res accentu\xE9s :'( - * - if ($xml_table = simplexml_load_string($xml)) + /*--------*/ + /* TOUR 1 */ + /*--------*/ + + // si le joueur a jou\xE9 au centre alors on joue dans un coin + if($tab[2][2] == 'b' && $joue != true) { - echo '<html><body>'; - echo '<center>'.htmlspecialchars_decode($xml_table->channel[0]->item[0]->title).'</center>'; - echo '<br>'; - echo html_entity_decode($xml_table->channel[0]->item[0]->description); - echo '</body></html>'; + $valr1 = ((rand(1,2)*2)-1); + $valr2 = ((rand(1,2)*2)-1); + $tab[$valr1][$valr2] = 'a'; + $joue = true; } - */ + + // si le joueur a jou\xE9 dans un coin alors on joue au centre + if(($tab[1][1] == 'b' | $tab[1][3] == 'b' | $tab[3][1] == 'b' | $tab[3][3] == 'b') && $joue != true) + { + $tab[2][2] = 'a'; + $joue = true; + } + + // si le joueur a jou\xE9 au milieu d'une ligne alors on joue au centre + if(($tab[1][2] == 'b' | $tab[2][1] == 'b' | $tab[2][3] == 'b' | $tab[3][2] == 'b') && $joue != true) + { + $tab[2][2] = 'a'; + $joue = true; + } + } + + elseif($tour>1 | !$tour) + { + if($level==3) + { + /*----------------------------*/ + /* PHASE 1 : PEUT ON GAGNER ? */ + /*----------------------------*/ + + // Au d\xE9but de chaque tour, on regarde si il est possible de gagner + for($i=1;$i<9;$i++) + { + $var = 'row'.$i; + $combi = $$var; + + if($combi=='a-a' && $joue!=true) + { + $j=2; + list($val1, $val2) = cv($i, $j); + $tab[$val1][$val2] = 'a'; + $joue=true; + } + + if($combi=='aa-' && $joue!=true) + { + $j=3; + list($val1, $val2) = cv($i, $j); + $tab[$val1][$val2] = 'a'; + $joue=true; + } + + if($combi=='-aa' && $joue!=true) + { + $j=1; + list($val1, $val2) = cv($i, $j); + $tab[$val1][$val2] = 'a'; + $joue=true; + } + + } + + /*--------------------------------------*/ + /* PHASE 2 : LE JOUEUR PEUT IL GAGNER ? */ + /*--------------------------------------*/ + + // Au d\xE9but de chaque tour, on regarde si le joueur adverse peut gagner (b-b ou bb- ou -bb) + + for($i=1;$i<9;$i++) + { + $var = 'row'.$i; + $combi = $$var; + + if($combi=='b-b' && $joue!=true) + { + $j=2; + list($val1, $val2) = cv($i, $j); + $tab[$val1][$val2] = 'a'; + $joue=true; + } + + if($combi=='bb-' && $joue!=true) + { + $j=3; + list($val1, $val2) = cv($i, $j); + $tab[$val1][$val2] = 'a'; + $joue=true; + } + + if($combi=='-bb' && $joue!=true) + { + $j=1; + list($val1, $val2) = cv($i, $j); + $tab[$val1][$val2] = 'a'; + $joue=true; + } + } + + /*-------------------------------------------*/ + /* PHASE 3 : OU JOUER SI LA VOIE EST LIBRE ? */ + /*-------------------------------------------*/ + + // Si on ne peut pas gagner et que le joueur ne peut pas non plus gagner ce tour, alors on joue + // Mais attention, on joue "intelligemment". + + if($joue!=true) + { + for($i=1;$i<9;$i++) + { + $var = 'row'.$i; + $combi = $$var; + + if($tour==2 && $joue!=true && ($row4=='bab' | $row5=='bab')) + { + $tab[1][2] = 'a'; + $joue=true; + } + + // teste le cas o\xF9 on doit jouer coin \xE0 cot\xE9 des deux croix pour ne pas perdre + elseif($tour==2 && $joue!=true && ($row2=='ba-' | $row7=='-ab')) + { + $tab[3][1] = 'a'; + $joue=true; + } + elseif($tour==2 && $joue!=true && ($row2=='-ab' | $row7=='-ab')) + { + $tab[3][3] = 'a'; + $joue=true; + } + elseif($tour==2 && $joue!=true && ($row2=='ba-' | $row7=='ba-')) + { + $tab[1][1] = 'a'; + $joue=true; + } + elseif($tour==2 && $joue!=true && ($row2=='-ab' | $row7=='ba-')) + { + $tab[1][3] = 'a'; + $joue=true; + } + + $aab=0; + $baa=0; + + if($i<4) + { + // aab, donc il faut jouer coin haut-droite ou bas-droite + // baa, donc il faut jouer coin haut-gauche ou bas-gauche + if($tour==3 && $aab!=0 && $joue!=true) + { + $j = 3; + list($val1, $val2) = cv($i, $j); + $tab[$val1][$val2] = 'a'; + $joue=true; + } + if($tour==3 && $baa!=0 && $joue!=true) + { + $j=1; + list($val1, $val2) = cv($i, $j); + $tab[$val1][$val2] = 'a'; + $joue=true; + } + if($combi=='aab') + { + $aab++; + } + if($combi=='baa') + { + $baa++; + } + } + + if($combi=='-a-' && $tab[2][2]=='a' && $i==2 && $joue!=true) + { + if($tab[1][1]=='b') + { + $tab[3][1] = 'a'; + $joue=true; + } + elseif($tab[1][3]=='b') + { + $tab[3][3] = 'a'; + $joue=true; + } + elseif($tab[3][1]=='b') + { + $tab[1][1] = 'a'; + $joue=true; + } + elseif($tab[3][3]=='b') + { + $tab[1][3] = 'a'; + $joue=true; + } + } + + elseif($combi=='-a-' && $tab[2][2]=='a' && $i==7 && $joue!=true) + { + if($tab[1][1]=='b') + { + $tab[1][3] = 'a'; + $joue=true; + } + elseif($tab[1][3]=='b') + { + $tab[1][1] = 'a'; + $joue=true; + } + elseif($tab[3][1]=='b') + { + $tab[3][3] = 'a'; + $joue=true; + } + elseif($tab[3][3]=='b') + { + $tab[3][1] = 'a'; + $joue=true; + } + } + + elseif($combi=='--a' && $joue!=true) + { + $j=1; + list($val1, $val2) = cv($i, $j); + $tab[$val1][$val2] = 'a'; + $joue=true; + } + + // on regarde les cases vides pour jouer al\xE9atoirement si on a rien de mieux a faire + if($joue!=true) + { + + // peut-on jouer en case 1 ? Si oui on enregistre la case possible + if($combi=='-bb' | $combi=='-aa' | $combi=='-ab' | $combi=='-ba' | $combi=='---' | $combi=='--a' | $combi=='--b' | $combi=='-b-' | $combi=='-a-') + { + $jouer_1=true; + $val_1=$i; + } + + // peut-on jouer en case 2 ? Si oui on enregistre la case possible + if($combi=='b-b' | $combi=='a-a' | $combi=='a-b' | $combi=='b-a' | $combi=='---' | $combi=='--a' | $combi=='--b' | $combi=='b--' | $combi=='a--') + { + $jouer_2=true; + $val_2=$i; + } + + // peut-on jouer en case 3 ? Si oui on enregistre la case possible + if($combi=='bb-' | $combi=='aa-' | $combi=='ab-' | $combi=='ba-' | $combi=='---' | $combi=='-a-' | $combi=='-b-' | $combi=='b--' | $combi=='a--') + { + $jouer_3=true; + $val_3=$i; + } + + } + + } // for($i=1;$i<9;$i++) + + // si l'on a pas r\xE9ussi a jouer avec tous les tests pr\xE9c\xE9dents + // alors on joue al\xE9atoirement dans une case vide + // c'est la meilleure - et seule - solution ! + if($joue!=true) + { + // on joue case 1 si on a pas jou\xE9 + if($jouer_1==true && $joue!=true) + { + $j=1; + $i=$val_1; + list($val1, $val2) = cv($i, $j); + $tab[$val1][$val2] = 'a'; + $joue=true; + } + + // on joue case 2 si on a pas jou\xE9 + if($jouer_2==true && $joue!=true) + { + $j=2; + $i=$val_2; + list($val1, $val2) = cv($i, $j); + $tab[$val1][$val2] = 'a'; + $joue=true; + } + + // on joue case 3 si on a pas jou\xE9 + if($jouer_3==true && $joue!=true) + { + $j=3; + $i=$val_3; + list($val1, $val2) = cv($i, $j); + $tab[$val1][$val2] = 'a'; + $joue=true; + } + } // if $joue!=true + } // if($joue!=true) + } // if($level==3) + // si $level==2 n'est pas inhumain + // alors on joue l\xE0 ou on peut, sans r\xE9fl\xE9chir. + else + { + for($i=1;$i<4;$i++) + { + if($joue!=true) + { + for($j=1;$j<4;$j++) + { + if($tab[$i][$j]=='-' && $joue!=true) + { + $tab[$i][$j] = 'a'; + $joue=true; + } + } + } + } + } // else (if - // R\xE9cup de l'item - $posDeb = strpos($xml,"<item>")+6; - $posFin = strpos($xml,"</item>"); - $xml = substr($xml, $posDeb, $posFin-$posDeb); + + /*-------------------------------------*/ + /* PHASE 4 : PERDU, GAGNE, MATCH NUL ? */ + /*-------------------------------------*/ - - // R\xE9cup du titre - $posDeb = strpos($xml,"<title>")+7; - $posFin = strpos($xml,"</title>"); - $entete = substr($xml, $posDeb, $posFin-$posDeb); - $entete = html_entity_decode($entete); - - // R\xE9cup du texte principal - $posDeb = strpos($xml,"<description>")+13; - //$posFin = strpos($xml,"</description>"); - $posFin = strpos($xml,'<center><font size="-1">Consultez sur le site AsiaFlash.com'); - $description = substr($xml, $posDeb, $posFin-$posDeb); - $description = html_entity_decode($description); - - $description = str_replace('http://www.asiaflash.com/anh/bleu_', 'images/bleu_', $description); - $description = str_replace('<b>', '<u>', $description); - $description = str_replace('</b>', '</u>', $description); - $description = str_replace('<br><br>', '<br> <br>', $description); - /* - echo '<html><body>'; - echo '<center>'.$titre.'</center>'; - echo '<br>'; - echo $description; - echo '</body></html>'; - */ - } - - $LINK['red']= 'index1.php'; + // on red\xE9finit les lignes apr\xE8s le traitement + // du jeu du computer pour tester la victoire + + $row1 = $tab[1][1] . $tab[1][2] . $tab[1][3]; + $row2 = $tab[2][1] . $tab[2][2] . $tab[2][3]; + $row3 = $tab[3][1] . $tab[3][2] . $tab[3][3]; + $row4 = $tab[1][1] . $tab[2][2] . $tab[3][3]; + $row5 = $tab[3][1] . $tab[2][2] . $tab[1][3]; + $row6 = $tab[1][1] . $tab[2][1] . $tab[3][1]; + $row7 = $tab[1][2] . $tab[2][2] . $tab[3][2]; + $row8 = $tab[1][3] . $tab[2][3] . $tab[3][3]; + + if($fini!=true) + { + for($i=1;$i<9;$i++) + { + $var = 'row'.$i; + $combi = $$var; + if($combi == 'aaa') + { + $affichage.="<h2>PERDU !</h2>"; + $fini=true; + } + if($combi == 'bbb' && $fini!=true) + { + $affichage.="<h2>GAGNE !</H2>"; + $fini=true; + } + } + } // if fini!=true + } // if $tour>1 | !$tour + } // if($tour!=0 && $fini!=true) + + + // si on est au cinqui\xE8me tour et qu'il + // n'y a pas de vainqueur, alors match nul + if($tour==5 && $fini!=true) + { + $affichage.="<h2>MATCH NUL !</h2>"; + $fini=true; } - if (!isset($entete) || $entete == '') + // sinon on incr\xE9mente le compteur tour + // (jusqu'\xE0 ce que sa valeur soit 5) + else { - // Affichage de la table de choix - $entete = 'Choisissez un signe'; - $description = ''; - - $LINK['red']= $MODULE.'_menu/menu.php?cat=18'; + $tour++; } - - $smarty->assign('TITRE','Horoscope'); - $smarty->assign('entete',$entete); - $smarty->assign('description',$description); - $smarty->assign('CONTENT',$smarty->fetch('horoscope.tpl')); - $smarty->display('interface.tpl'); + + /*----------------*/ + /* AFFICHAGE HTML */ + /*----------------*/ + + $t11 = $tab[1][1]; + $t12 = $tab[1][2]; + $t13 = $tab[1][3]; + $t21 = $tab[2][1]; + $t22 = $tab[2][2]; + $t23 = $tab[2][3]; + $t31 = $tab[3][1]; + $t32 = $tab[3][2]; + $t33 = $tab[3][3]; + + $affichage.="<table border=\"1\" cellpadding=\"1\" cellspacing=\"1\" bgcolor=\"#FFFFFF22\" align=\"center\">"; + $affichage.="<tr>"; + + $affichage.="<tr>\n\r"; + + $query="level=$level"; + $query.="&tour=$tour"; + $query.="&fini=$fini"; + $query.="&t11=$t11"; + $query.="&t12=$t12"; + $query.="&t13=$t13"; + $query.="&t21=$t21"; + $query.="&t22=$t22"; + $query.="&t23=$t23"; + $query.="&t31=$t31"; + $query.="&t32=$t32"; + $query.="&t33=$t33"; + + if($t11=='-') { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><a href=\"index1.php?st11=b&$query\">X</a></td>\n"; } + else { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><img src=\"$t11.gif\" width=\"50\" height=\"54\">\n"; } + + if($t12=='-') { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><a href=\"index1.php?st12=1&$query\">X</a></td>\n"; } + else { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><img src=\"$t12.gif\" width=\"50\" height=\"54\"></td>\n"; } + + if($t13=='-') { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><a href=\"index1.php?st13=1&$query\">X</a></td>\n"; } + else { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><img src=\"$t13.gif\" width=\"50\" height=\"54\"></td>\n"; } + + $affichage.="</tr>\n<tr>\n"; + if($t21=='-') { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><a href=\"index1.php?st21=1&$query\">X</a></td>\n"; } + else { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><img src=\"$t21.gif\" width=\"50\" height=\"54\"></td>\n"; } + + if($t22=='-') { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><a href=\"index1.php?st22=1&$query\">X</a></td>\n"; } + else { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><img src=\"$t22.gif\" width=\"50\" height=\"54\"></td>\n"; } + + if($t23=='-') { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><a href=\"index1.php?st23=1&$query\">X</a></td>\n"; } + else { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><img src=\"$t23.gif\" width=\"50\" height=\"54\"></td>\n"; } + + $affichage.="</tr>\n<tr>\n"; + if($t31=='-') { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><a href=\"index1.php?st31=1&$query\">X</a></td>\n"; } + else { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><img src=\"$t31.gif\" width=\"50\" height=\"54\"></td>\n"; } + + if($t32=='-') { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><a href=\"index1.php?st32=1&$query\">X</a></td>\n"; } + else { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><img src=\"$t32.gif\" width=\"50\" height=\"54\"></td>\n"; } + + if($t33=='-') { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><a href=\"index1.php?st33=1&$query\">X</a></td>\n"; } + else { $affichage.="<td align=\"center\" width=\"52\" height=\"56\"><img src=\"$t33.gif\" width=\"50\" height=\"54\"></td>\n"; } + + $affichage.="</tr>\n</table> + <br> + <br><font size=\"1\"> + Jeu du Morpion adapt\xE9 pour EasyBox par InPhoVid (06/2006)<br> + Jeu du Morpion imbattable d\xE9velopp\xE9 en php. License GPL. Auteur : Matthieu Aubry + </font> + </center> + "; + +$smarty->assign('TITRE','MORPION'); +$smarty->assign('affichage',$affichage); +$smarty->assign('CONTENT',$smarty->fetch('generique.tpl')); +$smarty->display('interface.tpl'); ?> Modified: trunk/module/modules/index1.php =================================================================== --- trunk/module/modules/index1.php 2006-11-26 19:40:53 UTC (rev 52) +++ trunk/module/modules/index1.php 2006-11-27 19:23:32 UTC (rev 53) @@ -19,14 +19,15 @@ $xml_file = $ini['download']['xml'].'?cat=AllModule'; $xml3 = simplexml_load_file($xml_file); $MOD = array(); - + foreach($xml3->element as $element){ - if($element->nom==$_GET['installnewmod']){ - download_file($ini['download']['patch'].$element->fichier, $RACINE_REP.'module/'.$element->nom.'/'); - add_module($element->nom, $element->nom.'/', 'index1.php', '1', '1', '1', '1', '1', $element->version, $element->description, 'Module', 'Alone', get_id_of_categorie($element->cat)); + if(utf8_decode($element->nom)==urldecode($_GET['installnewmod'])){ + download_file($ini['download']['patch'].utf8_decode($element->fichier), $RACINE_REP.'module/'.utf8_decode($element->nom).'/'); + add_module(utf8_decode($element->nom), utf8_decode($element->nom).'/', 'index1.php', '1', '1', '1', '1', '1', utf8_decode($element->version), utf8_decode($element->description), 'Module', 'Alone', get_id_of_categorie(utf8_decode($element->cat))); } //-- R\xE9initialise la liste des modules get_module_list(); + list_templates(); } } @@ -42,12 +43,13 @@ $MOD = array(); foreach($xml3->element as $element){ - if($element->nom==$_GET['installnewskin']){ - download_file($ini['download']['patch'].$element->fichier, $RACINE_REP.'skin/'.$element->nom.'/'); + if(utf8_decode($element->nom)==$_GET['installnewskin']){ + download_file($ini['download']['patch'].utf8_decode($element->fichier), $RACINE_REP.'skin/'.utf8_decode($element->nom).'/'); add_module(utf8_decode($element->nom), utf8_decode($element->nom).'/', '', '', '', '', '', '', utf8_decode($element->version), utf8_decode($element->description), 'Skin', 'Alone', ''); } //-- R\xE9initialise la liste des modules get_module_list(); + list_templates(); } } @@ -62,7 +64,7 @@ $MOD = array(); foreach($xml3->element as $elem){ - if(!module_exists($elem->nom) and $elem->categorie=='Module'){ + if(!module_exists(utf8_decode($elem->nom)) and utf8_decode($elem->categorie)=='Module'){ $MOD[] = array('nom'=> utf8_decode($elem->nom),'version'=> utf8_decode($elem->version),'description'=> utf8_decode($elem->description),'auteur'=> utf8_decode($elem->auteur),'fichier'=> utf8_decode($elem->fichier)); } } @@ -80,7 +82,7 @@ $MOD = array(); foreach($xml3->element as $element){ - if(!module_exists($element->nom) and $element->categorie=='Skin'){ + if(!module_exists(utf8_decode($element->nom)) and utf8_decode($element->categorie)=='Skin'){ $MOD[] = array('nom'=>utf8_decode($element->nom),'version'=>utf8_decode($element->version),'description'=>utf8_decode($element->description),'auteur'=>utf8_decode($element->auteur),'fichier'=>utf8_decode($element->fichier)); } } Modified: trunk/module/modules/modules.tpl =================================================================== --- trunk/module/modules/modules.tpl 2006-11-26 19:40:53 UTC (rev 52) +++ trunk/module/modules/modules.tpl 2006-11-27 19:23:32 UTC (rev 53) @@ -44,7 +44,7 @@ <td>{$MOD[mod].version}</td> <td>{$MOD[mod].auteur}</td> <td>{$MOD[mod].description}</td> - <td><a href="index1.php?install{$action}={$MOD[mod].nom}&action={$action}">Installer</a></td> + <td><a href="index1.php?install{$action}={$MOD[mod].nom|urlencode}&action={$action}">Installer</a></td> </tr> {if $smarty.section.mod.last}</table>{/if} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2006-12-01 21:40:25
|
Revision: 54 http://svn.sourceforge.net/easybox-mod/?rev=54&view=rev Author: aragornis Date: 2006-12-01 13:40:22 -0800 (Fri, 01 Dec 2006) Log Message: ----------- Modif sur RC1 pour l'ajout de modules (problemes de caract?\195?\168res etc...) Le fichier icone.gif de chaque module est plac?\195?\169 dans le dossier du th?\195?\168me L'ajout de fichiers ?\195?\160 la playlist audio est beaucoup plus fonctionnelle, la chanson en cours continuant ?\195?\160 etre jou?\195?\169e... Modified Paths: -------------- trunk/_framework/dwl.php trunk/_framework/fonctions_partagees.inc.php trunk/_utilisateur/audiotemp.m3u trunk/_utilisateur/modules.db trunk/http-vlc/module/mp3/lecteuraudio.html trunk/module/modules/index1.php trunk/module/mp3/lecteuraudio.php trunk/module/mp3/playlist_audio.tpl trunk/version.html Added Paths: ----------- trunk/module/horoscope/a.gif trunk/module/horoscope/b.gif Modified: trunk/_framework/dwl.php =================================================================== --- trunk/_framework/dwl.php 2006-11-27 19:23:32 UTC (rev 53) +++ trunk/_framework/dwl.php 2006-12-01 21:40:22 UTC (rev 54) @@ -21,27 +21,29 @@ if($liens){ if ($dwl== "Skin") { - $plus = 'skin/'.$nom; + $plus = 'skin/'.strtolower(supprime_accents($nom)); if(module_exists($nom)){ sup_module(get_id_of_module($nom)); } add_module($nom, $nom.'/', '', '', '', '', '', '', $version, $description, 'Skin', 'Alone', ''); $txt_dwl = "T\xE9l\xE9chargement de la skin termin\xE9e."; + $nom = ''; }elseif($dwl == "Module"){ - $plus = 'module/'.$nom; + $plus = 'module/'.strtolower(supprime_accents($nom)); if(module_exists($nom)){ sup_module(get_id_of_module($nom)); } - add_module($nom, $nom.'/', 'index1.php', '1', '1', '1', '1', '1', $version, $description, 'Module', 'Alone', get_id_of_categorie($categorie)); + add_module($nom, strtolower(supprime_accents($nom)).'/', 'index1.php', '1', '1', '1', '1', '1', $version, $description, 'Module', 'Alone', get_id_of_categorie($categorie)); $txt_dwl = "T\xE9l\xE9chargement du module."; }else{ $plus = ''; $txt_dwl = "T\xE9l\xE9chargement du patch termin\xE9."; change_version('Easybox', $version); + $nom = ''; } ///////// T\xE9l\xE9chargement directe pour les skins - download_file($liens, $RACINE_REP.$plus); + download_file($liens, $RACINE_REP.$plus, $nom); echo "<center>"; echo $txt_dwl; Modified: trunk/_framework/fonctions_partagees.inc.php =================================================================== --- trunk/_framework/fonctions_partagees.inc.php 2006-11-27 19:23:32 UTC (rev 53) +++ trunk/_framework/fonctions_partagees.inc.php 2006-12-01 21:40:22 UTC (rev 54) @@ -257,10 +257,10 @@ switch($module->type){ case 'Skin': - $dir = 'skin/'.$module->nom; + $dir = 'skin/'.$module->repertoire; break; case 'Module': - $dir = 'module/'.$module->nom; + $dir = 'module/'.$module->repertoire; break; } @rmdirr($RACINE_REP.$dir); @@ -413,7 +413,7 @@ sqlite_close($db); } -function download_file($file, $dest_dir){ +function download_file($file, $dest_dir, $name=''){ // on supprime le fichier temp.zip si il existe deja if (file_exists('temp.zip')) { @@ -445,6 +445,11 @@ if ($archive->extract(PCLZIP_OPT_ADD_PATH, $dest_dir) == 0) { die("Erreur : ".$archive->errorInfo(true)); } + + if (file_exists(realpath($dest_dir).'/icone.gif')){ + copy($ICONE_REP.'/icone.gif', $ICONE_REP.str_replace(array('>',' !',' ','\xE9','\xEE','\xF4'),array('','','','e','i','o'),$name).'.gif'); + } + //// On supprime le fichier temporaire unlink("temp.zip"); } Modified: trunk/_utilisateur/audiotemp.m3u =================================================================== --- trunk/_utilisateur/audiotemp.m3u 2006-11-27 19:23:32 UTC (rev 53) +++ trunk/_utilisateur/audiotemp.m3u 2006-12-01 21:40:22 UTC (rev 54) @@ -1,2 +1,26 @@ -#EXTM3U - d:\Ma musique\Kill Bill Vol. 1 - Soundtrack\Kill Bill Vol. 1 Soundtrack - Al Hirt - 08 - Green Hornet.mp3 \ No newline at end of file +#EXTM3U + d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 01 - Vivement La Fin.mp3 + d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 02 - Plateau Tele.mp3 + d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 03 - Mathilde.mp3 + d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 04 - Cadaques.mp3 + d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 05 - Un Contrat Merveilleux.mp3 + d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 06 - Calculateurs.mp3 + d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 07 - Le Petit Chef.mp3 + d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 08 - Un Marriage T'reggae.mp3 + d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 09 - Le Manege (Live).mp3 + d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 10 - Tu T'amuses Quand (Live).mp3 + d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 11 - Besac (Live).mp3 + d:\Ma musique\Aldebert - Plateau télé\Aldebert - Plateau Télé - 12 - Vivement La Fin (Version Plage).mp3 + d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 01 - Saint'nitouche.mp3 + d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 02 - Tête En L'air.mp3 + d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 03 - La Méthode Couette.mp3 + d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 04 - Indélébile.mp3 + d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 05 - Rentrée Des Classes.mp3 + d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 06 - Sur Place Ou À Emporter.mp3 + d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 07 - La Dame Aux Camel Lights.mp3 + d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 08 - Casanova Ou Quasimodo.mp3 + d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 09 - Hypocondriaque.mp3 + d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 10 - Noctambule.mp3 + d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 11 - Rien Qu'un Été.mp3 + d:\Ma musique\Aldebert - Sur place ou a emporter\Aldebert - Sur Place Ou À Emporter - 12 - Petite Peine.mp3 + d:\Ma musique\fernando.mp3 \ No newline at end of file Modified: trunk/_utilisateur/modules.db =================================================================== (Binary files differ) Modified: trunk/http-vlc/module/mp3/lecteuraudio.html =================================================================== --- trunk/http-vlc/module/mp3/lecteuraudio.html 2006-11-27 19:23:32 UTC (rev 53) +++ trunk/http-vlc/module/mp3/lecteuraudio.html 2006-12-01 21:40:22 UTC (rev 54) @@ -1,64 +1,64 @@ - -<vlc id="rpn" param1="stream_length_H stream_length 3600 / store" /> -<vlc id="rpn" param1="stream_length_M stream_length 3600 % 60 / store" /> -<vlc id="rpn" param1="stream_length_S stream_length 60 % store" /> - -<vlc id="rpn" param1="stream_time_H stream_time 3600 / store" /> -<vlc id="rpn" param1="stream_time_M stream_time 3600 % 60 / store" /> -<vlc id="rpn" param1="stream_time_S stream_time 60 % store" /> - -<vlc id="rpn" param1="next 1 store" /> -<vlc id="rpn" param1="nr_nodes 0 store" /> -<vlc id="rpn" param1="nr_items 0 store" /> -<vlc id="foreach" param1="pl" param2="playlist" /> - <vlc id="if" param1="pl.type value 'Node' strcmp" /> - - - if(in_array(strtolower(substr("<vlc id="value" param1="pl.uri"; />",strrpos("<vlc id="value" param1="pl.uri"; />",'.'))),$extv) OR (eregi("://","<vlc id="value" param1="pl.uri"; />") AND "<vlc id="if" param1="pl.current" />1<vlc id="end" />" == 1)){ - $pl[]= array(extract_name('<vlc id="value" param1="pl.name value addslashes"; />'),"<vlc id="if" param1="pl.current" />1<vlc id="else" />0<vlc id="end" />",'<vlc id="value" param1="pl.uri value addslashes" />', "<vlc id="value" param1="pl.index" />"); - <vlc id="if" param1="pl.current" /> - $urlcourante = '<vlc id="value" param1="pl.uri value addslashes" />'; - $nomcourant = extract_name('<vlc id="value" param1="pl.name value addslashes"; />'); - <vlc id="end" /> - } - <vlc id="rpn" param1="nr_nodes nr_nodes 1 + store" /> - <vlc id="end" /> - <vlc id="rpn" param1="nr_items nr_items 1 + store" /> -<vlc id="end" /> -<vlc id="rpn" param1="prev_node_index current_node_index value 1 - store" /> -<vlc id="rpn" param1="next_node_index current_node_index value 1 + store" /> - - <vlc id="foreach" param1="cat" param2="information" /> - <vlc id="if" param1="cat.name value 'M\xE9ta-donn\xE9es' strcmp 0 =" /> - <vlc id="foreach" param1="info" param2="cat.info" /> - $info[$i]=array("<vlc id="value" param1="info.value" />","<vlc id="value" param1="info.name" />"); - $i++; - <vlc id="end" /> - <vlc id="end" /> - - <vlc id="if" param1="cat.name value 'Commentaires Vorbis' strcmp 0 =" /> - unset($info); - <vlc id="foreach" param1="info" param2="cat.info" /> - $info[$i]=array("<vlc id="value" param1="info.value" />","<vlc id="value" param1="info.name" />"); - $i++; - <vlc id="end" /> - <vlc id="end" /> - - <vlc id="end" /> - - - - - -$timetogo ="<vlc id="if" param1="stream_time_H 10 <" />0<vlc id="end" /><vlc id="value" param1="stream_time_H" />:<vlc id="if" param1="stream_time_M 10 <" />0<vlc id="end" /><vlc id="value" param1="stream_time_M" />:<vlc id="if" param1="stream_time_S 10 <" />0<vlc id="end" /><vlc id="value" param1="stream_time_S" /> / <vlc id="if" param1="stream_length_H 10 <" />0<vlc id="end" /><vlc id="value" param1="stream_length_H" />:<vlc id="if" param1="stream_length_M 10 <" />0<vlc id="end" /><vlc id="value" param1="stream_length_M" />:<vlc id="if" param1="stream_length_S 10 <" />0<vlc id="end" /><vlc id="value" param1="stream_length_S" />"; -$etat = "<vlc id="value" param1="stream_state" />"; - - $stream_time[M] = "<vlc id="value" param1="stream_time_M" />"; - $stream_time[S] = "<vlc id="value" param1="stream_time_S" />"; - $stream_length[M] = "<vlc id="value" param1="stream_length_M" />"; - $stream_length[S] = "<vlc id="value" param1="stream_length_S" />"; - -$statut['random'] = "<vlc id="value" param1="random 'VLC_OBJECT_PLAYLIST' vlc_var_get"/>"; -$statut['loop'] = "<vlc id="value" param1="loop 'VLC_OBJECT_PLAYLIST' vlc_var_get"/>"; -$statut['repeat'] = "<vlc id="value" param1="repeat 'VLC_OBJECT_PLAYLIST' vlc_var_get"/>"; - +$pl = array(); +<vlc id="rpn" param1="stream_length_H stream_length 3600 / store" /> +<vlc id="rpn" param1="stream_length_M stream_length 3600 % 60 / store" /> +<vlc id="rpn" param1="stream_length_S stream_length 60 % store" /> + +<vlc id="rpn" param1="stream_time_H stream_time 3600 / store" /> +<vlc id="rpn" param1="stream_time_M stream_time 3600 % 60 / store" /> +<vlc id="rpn" param1="stream_time_S stream_time 60 % store" /> + +<vlc id="rpn" param1="next 1 store" /> +<vlc id="rpn" param1="nr_nodes 0 store" /> +<vlc id="rpn" param1="nr_items 0 store" /> +<vlc id="foreach" param1="pl" param2="playlist" /> + <vlc id="if" param1="pl.type value 'Node' strcmp" /> + + + if(in_array(strtolower(substr("<vlc id="value" param1="pl.uri"; />",strrpos("<vlc id="value" param1="pl.uri"; />",'.'))),$extv) OR (eregi("://","<vlc id="value" param1="pl.uri"; />") AND "<vlc id="if" param1="pl.current" />1<vlc id="end" />" == 1)){ + $pl[]= array(extract_name('<vlc id="value" param1="pl.name value addslashes"; />'),"<vlc id="if" param1="pl.current" />1<vlc id="else" />0<vlc id="end" />",'<vlc id="value" param1="pl.uri value addslashes" />', "<vlc id="value" param1="pl.index" />"); + <vlc id="if" param1="pl.current" /> + $urlcourante = '<vlc id="value" param1="pl.uri value addslashes" />'; + $nomcourant = extract_name('<vlc id="value" param1="pl.name value addslashes"; />'); + <vlc id="end" /> + } + <vlc id="rpn" param1="nr_nodes nr_nodes 1 + store" /> + <vlc id="end" /> + <vlc id="rpn" param1="nr_items nr_items 1 + store" /> +<vlc id="end" /> +<vlc id="rpn" param1="prev_node_index current_node_index value 1 - store" /> +<vlc id="rpn" param1="next_node_index current_node_index value 1 + store" /> + + <vlc id="foreach" param1="cat" param2="information" /> + <vlc id="if" param1="cat.name value 'M\xE9ta-donn\xE9es' strcmp 0 =" /> + <vlc id="foreach" param1="info" param2="cat.info" /> + $info[$i]=array("<vlc id="value" param1="info.value" />","<vlc id="value" param1="info.name" />"); + $i++; + <vlc id="end" /> + <vlc id="end" /> + + <vlc id="if" param1="cat.name value 'Commentaires Vorbis' strcmp 0 =" /> + unset($info); + <vlc id="foreach" param1="info" param2="cat.info" /> + $info[$i]=array("<vlc id="value" param1="info.value" />","<vlc id="value" param1="info.name" />"); + $i++; + <vlc id="end" /> + <vlc id="end" /> + + <vlc id="end" /> + + + + + +$timetogo ="<vlc id="if" param1="stream_time_H 10 <" />0<vlc id="end" /><vlc id="value" param1="stream_time_H" />:<vlc id="if" param1="stream_time_M 10 <" />0<vlc id="end" /><vlc id="value" param1="stream_time_M" />:<vlc id="if" param1="stream_time_S 10 <" />0<vlc id="end" /><vlc id="value" param1="stream_time_S" /> / <vlc id="if" param1="stream_length_H 10 <" />0<vlc id="end" /><vlc id="value" param1="stream_length_H" />:<vlc id="if" param1="stream_length_M 10 <" />0<vlc id="end" /><vlc id="value" param1="stream_length_M" />:<vlc id="if" param1="stream_length_S 10 <" />0<vlc id="end" /><vlc id="value" param1="stream_length_S" />"; +$etat = "<vlc id="value" param1="stream_state" />"; + + $stream_time[M] = "<vlc id="value" param1="stream_time_M" />"; + $stream_time[S] = "<vlc id="value" param1="stream_time_S" />"; + $stream_length[M] = "<vlc id="value" param1="stream_length_M" />"; + $stream_length[S] = "<vlc id="value" param1="stream_length_S" />"; + +$statut['random'] = "<vlc id="value" param1="random 'VLC_OBJECT_PLAYLIST' vlc_var_get"/>"; +$statut['loop'] = "<vlc id="value" param1="loop 'VLC_OBJECT_PLAYLIST' vlc_var_get"/>"; +$statut['repeat'] = "<vlc id="value" param1="repeat 'VLC_OBJECT_PLAYLIST' vlc_var_get"/>"; + Added: trunk/module/horoscope/a.gif =================================================================== (Binary files differ) Property changes on: trunk/module/horoscope/a.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/horoscope/b.gif =================================================================== (Binary files differ) Property changes on: trunk/module/horoscope/b.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/module/modules/index1.php =================================================================== --- trunk/module/modules/index1.php 2006-11-27 19:23:32 UTC (rev 53) +++ trunk/module/modules/index1.php 2006-12-01 21:40:22 UTC (rev 54) @@ -22,8 +22,8 @@ foreach($xml3->element as $element){ if(utf8_decode($element->nom)==urldecode($_GET['installnewmod'])){ - download_file($ini['download']['patch'].utf8_decode($element->fichier), $RACINE_REP.'module/'.utf8_decode($element->nom).'/'); - add_module(utf8_decode($element->nom), utf8_decode($element->nom).'/', 'index1.php', '1', '1', '1', '1', '1', utf8_decode($element->version), utf8_decode($element->description), 'Module', 'Alone', get_id_of_categorie(utf8_decode($element->cat))); + download_file($ini['download']['patch'].utf8_decode($element->fichier), $RACINE_REP.'module/'.strtolower(supprime_accents(utf8_decode($element->nom))).'/', $element->nom); + add_module(utf8_decode($element->nom), strtolower(supprime_accents(utf8_decode($element->nom))).'/', 'index1.php', '1', '1', '1', '1', '1', utf8_decode($element->version), utf8_decode($element->description), 'Module', 'Alone', get_id_of_categorie(utf8_decode($element->cat))); } //-- R\xE9initialise la liste des modules get_module_list(); @@ -34,6 +34,8 @@ // Suppression d'un module ou d'un skin if(isset($_GET['delid'])){ sup_module($_GET['delid']); + get_module_list(); + list_templates(); } //Installation d'un nouveau skin Modified: trunk/module/mp3/lecteuraudio.php =================================================================== --- trunk/module/mp3/lecteuraudio.php 2006-11-27 19:23:32 UTC (rev 53) +++ trunk/module/mp3/lecteuraudio.php 2006-12-01 21:40:22 UTC (rev 54) @@ -15,6 +15,13 @@ //$LINK['rev']=$MODULE.'mp3/lecteuraudio.php?seek_value=moins'; //$LINK['fwd']=$MODULE.'mp3/lecteuraudio.php?seek_value=plus'; +$ext_audio = $ini[explorateur][ext_audio]; +$audio_defaut = $ini[explorateur][audio_defaut]; +$afficher_fichier_cache = $ini[explorateur][afficher_fichier_cache]; +$default = $audio_defaut; +$extv = explode(",",$ext_audio); + + if($pisteaudio=='TV'){ // $META['aud'] = '69(en,mp2)'; }elseif($pisteaudio=='AC3'){ @@ -31,8 +38,34 @@ $toplay=$_REQUEST['toplay']; play_fichier('type=0',$toplay,0,'mp3'); $reload='1'; + + $pagedinfo=file_get_contents('http://localhost:8081/module/mp3/lecteuraudio.html'); + eval($pagedinfo); + + foreach($pl as $morceau){ + if($morceau[3] == $toplay){ + if(array_pop(explode(".", $morceau[2]))=='m3u'){ + $supplement = '?toplaybis='.$_GET['url']; + } + } + } } +if (isset($_REQUEST['toplaybis'])){ + $toplaybis=$_REQUEST['toplaybis']; + + $pagedinfo=file_get_contents('http://localhost:8081/module/mp3/lecteuraudio.html'); + eval($pagedinfo); + + foreach($pl as $morceau){ + if(realpath($morceau[2]) == realpath(urldecode($toplaybis))){ + play_fichier('type=0',$morceau[3],0,'mp3'); + } + } + $reload='1'; + +} + if (isset($_REQUEST['control'])) { $control = $_REQUEST['control']; if($control!='seek') @@ -72,12 +105,6 @@ $i=0; -$ext_audio = $ini[explorateur][ext_audio]; -$audio_defaut = $ini[explorateur][audio_defaut]; -$afficher_fichier_cache = $ini[explorateur][afficher_fichier_cache]; -$default = $audio_defaut; -$extv = explode(",",$ext_audio); - $pagedinfo=file_get_contents('http://localhost:8081/module/mp3/lecteuraudio.html'); eval($pagedinfo); @@ -216,6 +243,7 @@ case 'delall': include('http://127.0.0.1:8081/lecteur/'.$ini[multimedia][qualite].'?type=999'); //-- Vide la playlist unset($pl); + unset($pl_transformed); unset($info); $VLC['etat']='stop'; break; @@ -274,7 +302,7 @@ } if($reload=='1'){ - $META['refresh']='2;url=lecteuraudio.php'; + $META['refresh']='1;url=lecteuraudio.php'.$supplement; } $smarty->assign('lastwebradio',get_variable('lastwebradio')); Modified: trunk/module/mp3/playlist_audio.tpl =================================================================== --- trunk/module/mp3/playlist_audio.tpl 2006-11-27 19:23:32 UTC (rev 53) +++ trunk/module/mp3/playlist_audio.tpl 2006-12-01 21:40:22 UTC (rev 54) @@ -1,9 +1,9 @@ -{if $VLC.type_current=='webradio'} +{if $VLC.type_current=='webradio' AND $VLC.etat!='stop'} <center><font size=3><u>Vous lisez actuellement la station de radio</font><br><font size=4>{$lastwebradio}</u></font><br><img src="jaquette.php?directory=&info={$lastwebradio|trim|urlencode}&w=400&h=250"></center> -{elseif $VLC.db_current_type=='podcast'} +{elseif $VLC.db_current_type=='podcast' AND $VLC.etat!='stop'} <font size=3><center><u>Podcast en cours de lecture</u></font></center><br> <br> Auteur : {$info.auteur_flux|strip_tags}<br> @@ -25,7 +25,7 @@ <img src="{$SKIN_REP}dossier/mp3.gif" width="16" height="16"> <a href=lecteuraudio.php?action=save&m3u_save=1&play_m3u={$playlists[pl]|realpath|urlencode}>{$playlists[pl]|realpath|extract_name|truncate:130:''}.m3u</a><br> {/section} -{elseif count($pl)==0 OR $action=='load'} +{elseif count($pl)==0 OR $action=='load' OR $VLC.etat=='stop'} {section name=pl loop=$playlists} {if $smarty.section.pl.first} @@ -52,7 +52,7 @@ <font size="1">{counter name=indice print=true}. </font> <font size="1"> {if $pl[playlist].1}<u>{/if} - <a href=lecteuraudio.php?toplay={$pl[playlist].3}>{$pl[playlist].0|truncate:130:''|strip_delimiters}</a> + <a href=lecteuraudio.php?toplay={$pl[playlist].3}&url={$pl[playlist].2|urlencode}>{$pl[playlist].0|truncate:130:''|strip_delimiters}</a> {if $pl[playlist].1}</u>{/if} </font><br> {/section} Modified: trunk/version.html =================================================================== --- trunk/version.html 2006-11-27 19:23:32 UTC (rev 53) +++ trunk/version.html 2006-12-01 21:40:22 UTC (rev 54) @@ -4,6 +4,6 @@ </head> <body> <h1>Easybox</h1> -<h2>3.4.11</h2> +<h2>3.4.15</h2> </body> </html> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2006-12-03 08:32:50
|
Revision: 55 http://svn.sourceforge.net/easybox-mod/?rev=55&view=rev Author: aragornis Date: 2006-12-03 00:32:47 -0800 (Sun, 03 Dec 2006) Log Message: ----------- Suppression des espaces dans les chemins des dossiers module Modified Paths: -------------- trunk/_framework/dwl.php trunk/_utilisateur/modules.db trunk/module/modules/index1.php trunk/module/reseaufree/province.png Modified: trunk/_framework/dwl.php =================================================================== --- trunk/_framework/dwl.php 2006-12-01 21:40:22 UTC (rev 54) +++ trunk/_framework/dwl.php 2006-12-03 08:32:47 UTC (rev 55) @@ -29,11 +29,11 @@ $txt_dwl = "T\xE9l\xE9chargement de la skin termin\xE9e."; $nom = ''; }elseif($dwl == "Module"){ - $plus = 'module/'.strtolower(supprime_accents($nom)); + $plus = 'module/'.strtolower(str_replace(' ','',supprime_accents($nom))); if(module_exists($nom)){ sup_module(get_id_of_module($nom)); } - add_module($nom, strtolower(supprime_accents($nom)).'/', 'index1.php', '1', '1', '1', '1', '1', $version, $description, 'Module', 'Alone', get_id_of_categorie($categorie)); + add_module($nom, strtolower(str_replace(' ','',supprime_accents($nom))).'/', 'index1.php', '1', '1', '1', '1', '1', $version, $description, 'Module', 'Alone', get_id_of_categorie($categorie)); $txt_dwl = "T\xE9l\xE9chargement du module."; }else{ $plus = ''; Modified: trunk/_utilisateur/modules.db =================================================================== (Binary files differ) Modified: trunk/module/modules/index1.php =================================================================== --- trunk/module/modules/index1.php 2006-12-01 21:40:22 UTC (rev 54) +++ trunk/module/modules/index1.php 2006-12-03 08:32:47 UTC (rev 55) @@ -22,8 +22,8 @@ foreach($xml3->element as $element){ if(utf8_decode($element->nom)==urldecode($_GET['installnewmod'])){ - download_file($ini['download']['patch'].utf8_decode($element->fichier), $RACINE_REP.'module/'.strtolower(supprime_accents(utf8_decode($element->nom))).'/', $element->nom); - add_module(utf8_decode($element->nom), strtolower(supprime_accents(utf8_decode($element->nom))).'/', 'index1.php', '1', '1', '1', '1', '1', utf8_decode($element->version), utf8_decode($element->description), 'Module', 'Alone', get_id_of_categorie(utf8_decode($element->cat))); + download_file($ini['download']['patch'].utf8_decode($element->fichier), $RACINE_REP.'module/'.strtolower(str_replace(' ','',supprime_accents(utf8_decode($element->nom)))).'/', $element->nom); + add_module(utf8_decode($element->nom), strtolower(str_replace(' ','',supprime_accents(utf8_decode($element->nom)))).'/', 'index1.php', '1', '1', '1', '1', '1', utf8_decode($element->version), utf8_decode($element->description), 'Module', 'Alone', get_id_of_categorie(utf8_decode($element->cat))); } //-- R\xE9initialise la liste des modules get_module_list(); Modified: trunk/module/reseaufree/province.png =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2006-12-03 14:06:16
|
Revision: 56 http://svn.sourceforge.net/easybox-mod/?rev=56&view=rev Author: aragornis Date: 2006-12-03 06:06:07 -0800 (Sun, 03 Dec 2006) Log Message: ----------- Modified Paths: -------------- trunk/_utilisateur/modules.db trunk/module/modules/modules.tpl Modified: trunk/_utilisateur/modules.db =================================================================== (Binary files differ) Modified: trunk/module/modules/modules.tpl =================================================================== --- trunk/module/modules/modules.tpl 2006-12-03 08:32:47 UTC (rev 55) +++ trunk/module/modules/modules.tpl 2006-12-03 14:06:07 UTC (rev 56) @@ -1,12 +1,12 @@ {if $action=="mod" OR $action=="skin"} {section name=mod loop=$MOD} {if $smarty.section.mod.first} - <table width="450" border="0" cellspacing="0" cellpadding="0"> + <table width="500" border="0" cellspacing="0" cellpadding="0"> <tr> <td><font size=2><b>Nom</b></font></td> - <td width="50"><font size=2><b>Version</b></font></td> + <td><font size=2><b>Version</b></font></td> <td><font size=2><b>Description</b></font></td> - <td><font size=2><b>D\xE9sinstaller</b></font></td> + <td><font size=2><b>Sup.</b></font></td> </tr> {/if} {cycle name=color assign=COLOR print=false values="`$smarty.config.COULEUR_INTERFACE1`,`$smarty.config.COULEUR_INTERFACE2`"} @@ -29,13 +29,13 @@ {elseif $action=="newmod" OR $action=="newskin"} {section name=mod loop=$MOD} {if $smarty.section.mod.first} - <table width="450" border="0" cellspacing="0" cellpadding="0"> + <table width="500" border="0" cellspacing="0" cellpadding="0"> <tr> <td><font size=2><b>Nom</b></font></td> - <td width="50"><font size=2><b>Version</b></font></td> + <td><font size=2><b>Version</b></font></td> <td><font size=2><b>Auteur</b></font></td> <td><font size=2><b>Description</b></font></td> - <td><font size=2><b>Installer</b></font></td> + <td><font size=2><b>Ins.</b></font></td> </tr> {/if} {cycle name=color assign=COLOR print=false values="`$smarty.config.COULEUR_INTERFACE1`,`$smarty.config.COULEUR_INTERFACE2`"} @@ -44,7 +44,7 @@ <td>{$MOD[mod].version}</td> <td>{$MOD[mod].auteur}</td> <td>{$MOD[mod].description}</td> - <td><a href="index1.php?install{$action}={$MOD[mod].nom|urlencode}&action={$action}">Installer</a></td> + <td><a href="index1.php?install{$action}={$MOD[mod].nom|urlencode}&action={$action}">Ins.</a></td> </tr> {if $smarty.section.mod.last}</table>{/if} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2006-12-15 21:13:47
|
Revision: 58 http://svn.sourceforge.net/easybox-mod/?rev=58&view=rev Author: aragornis Date: 2006-12-15 13:13:44 -0800 (Fri, 15 Dec 2006) Log Message: ----------- (Re)Mise en fonction du module dvd (75%) Mises ?\195?\160 jour sur l'utilisation du tableau $_COULEUR Remise en ?\195?\169tat du module "sorties cin?\195?\169" Modified Paths: -------------- trunk/_framework/framework.php trunk/module/cinefil/index1.php trunk/module/dvd/index1.php trunk/module/dvd/playrep.php trunk/module/livescore/classement.php trunk/module/livescore/journee.php trunk/module/loto/keno.php trunk/module/messagerie/index1.php trunk/module/mp3/catalogue_audio.tpl trunk/module/seances/index1.php trunk/skin/simple/avertissement.tpl Added Paths: ----------- trunk/module/cinefil/sorties_cine.tpl trunk/module/dvd/dvd.tpl trunk/module/dvd/lecteurdvd.gif Removed Paths: ------------- trunk/skin/simple/sorties_cine.tpl Modified: trunk/_framework/framework.php =================================================================== --- trunk/_framework/framework.php 2006-12-15 13:53:02 UTC (rev 57) +++ trunk/_framework/framework.php 2006-12-15 21:13:44 UTC (rev 58) @@ -79,7 +79,7 @@ $CHAINE_REP = $THEME_REP."chaines/defaut/"; $smarty->assign('CHAINE_REP',$CHAINE_REP); - $_COULEUR = parse_ini_file($SKIN_REP.'couleur.conf'); + $_COULEUR = parse_ini_file($SKIN_REP.'couleur.conf', TRUE); //-- Framework du skin require($SKIN_REP."framework_skin.php"); Modified: trunk/module/cinefil/index1.php =================================================================== --- trunk/module/cinefil/index1.php 2006-12-15 13:53:02 UTC (rev 57) +++ trunk/module/cinefil/index1.php 2006-12-15 21:13:44 UTC (rev 58) @@ -25,7 +25,8 @@ $contenu_html .= trim(fgets($page, 4096)); } -$ereg = 'width="120" valign="top"><a class="link1" href="fichefilm_gen_cfilm=(.{1,15}).html"><img src="(.{1,150})" border="0" (.{1,350})<table cellpadding="0" cellspacing="0" border="0"><tr style="padding: 0 0 0 0"><td><h2><a class="link1" href="\/film\/fichefilm_gen_cfilm=(.{1,15}).html">(.{1,50})<\/a><\/h2> <h4>(.{0,50})<\/h4><\/td><\/tr><tr style="padding: 5 0 0 0"><td><h5>(.{1,70})<\/h5><\/td><\/tr>(.{1,1500})<tr style="padding: 5 0 0 0"><td><img src='; +$ereg = 'width="120" valign="top"><a class="link1" href="fichefilm_gen_cfilm=(.{1,15}).html"><img src="(.{1,150})" border="0" (.{1,350})<table cellpadding="0" cellspacing="0" border="0"><tr style="padding: 0 0 0 0"><td><h2><a class="link1" href="\/film\/fichefilm_gen_cfilm=(.{1,15}).html">(.{1,50})<\/a><\/h2>(.{0,50})<\/td><\/tr><tr style="padding: 5 0 0 0;"><td><h5>(.{0,70})<\/h5><\/td><\/tr><tr style="padding: 5 0 0 0;"><td><h4>'; + preg_match_all("/$ereg/s", $contenu_html, $valeur); $SORTIES=array(); Added: trunk/module/cinefil/sorties_cine.tpl =================================================================== --- trunk/module/cinefil/sorties_cine.tpl (rev 0) +++ trunk/module/cinefil/sorties_cine.tpl 2006-12-15 21:13:44 UTC (rev 58) @@ -0,0 +1,47 @@ + {section name=sorties loop=$SORTIES max=8 start=$MIN} + {cycle name=place assign=place print=false values="3,2,1,0"} + {if $smarty.section.sorties.first} + {if $MIN!=0} + {assign var=temp value=$MIN-8} + {attribbouton touche="green" lien="index1.php?week=$week&start=$temp"} + <a href="index1.php?week={$week}&start={$temp}"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> Pr\xE9c\xE9dent</a> + {/if} + + <table border="0" cellpadding="0" cellspacing="0" width="500" height="360" align="center"><tr> + {/if} + + <td width="125" height="180"><a href="{$MODULE}films/fichefilm.php?film={$SORTIES[sorties].nom|urlencode}&idfilm={$SORTIES[sorties].index}"><table border="0" cellpadding="0" cellspacing="0" width="125" height="180" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="130"><td width="125" height="120" valign="middle" align="center"><img width="90" height="120" border="0" src="{$IMG2FBX}{$SORTIES[sorties].image|urlencode}&new_width=90&new_height=120&cache=1"></td></tr><tr height="50"><td width="125" height="50" valign="middle" align=center><font size="1">{$SORTIES[sorties].nom|truncate:30:''}</font><br><font size="1">{$SORTIES[sorties].comment}</font></td></tr></table></a></td> + + {if $smarty.section.sorties.iteration is div by 4 AND NOT $smarty.section.sorties.last} + </tr><tr> + {/if} + + {if $smarty.section.sorties.last} + {if $place >= 3} + <td> </td> + {/if} + {if $place >= 2} + <td> </td> + {/if} + {if $place >= 1} + <td> </td> + {/if} + + </tr> + </table> + {if $MIN+$smarty.section.sorties.total<count($SORTIES)} + {assign var=temp value=$MIN+8} + {attribbouton touche="blue" lien="index1.php?week=$week&start=$temp"} + <a href="index1.php?week={$week}&start={$temp}"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> Suivant</a> + {/if} + + {/if} + + {/section} + +{assign var=temp value=$week-1} +<br><br> <a href="index1.php?week={$temp}">Semaine pr\xE9c\xE9dente</a> +{if $week!=0} +{assign var=temp value=$week+1} + - <a href="index1.php?week={$week+1}">Semaine suivante</a> +{/if} Added: trunk/module/dvd/dvd.tpl =================================================================== --- trunk/module/dvd/dvd.tpl (rev 0) +++ trunk/module/dvd/dvd.tpl 2006-12-15 21:13:44 UTC (rev 58) @@ -0,0 +1,33 @@ +{section name=dop loop=$disques_dispo} +{cycle name=place assign=place print=false values="4,3,2,1,0"} + {if $smarty.section.dop.first} + <table border="0" cellpadding="0" cellspacing="0" width="500" height="436" align="center"><tr> + {/if} + <td width="100" height="130"><a href="playrep.php?toplay={$disques_dispo[dop].path|urlencode}&type=playrep"><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align="center"><img border=0 width="64" height="64" src="lecteurdvd.gif"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><font size="1">{$disques_dispo[dop].nom} ({$disques_dispo[dop].lettre}:)</font></td></tr></table></a></td> + + {if $smarty.section.dop.iteration is div by 5 AND NOT $smarty.section.dop.last} + </tr><tr> + {/if} + + {if $smarty.section.dop.last} + {if $place >= 4} + <td> </td> + {/if} + {if $place >= 3} + <td> </td> + {/if} + {if $place >= 2} + <td> </td> + {/if} + {if $place >= 1} + <td> </td> + {/if} + </tr> + + </table> + {/if} +{sectionelse} + +Aucun lecteur DVD n'est disponible. + +{/section} Modified: trunk/module/dvd/index1.php =================================================================== --- trunk/module/dvd/index1.php 2006-12-15 13:53:02 UTC (rev 57) +++ trunk/module/dvd/index1.php 2006-12-15 21:13:44 UTC (rev 58) @@ -10,12 +10,30 @@ $rep_default = $ini[explorateur][dvd]; } -$play_rep = '1'; -$play_rep_txt = "Lire le DVD en [lecteur]"; -$cache_tous_fichier = '1'; +$smarty->assign('TITRE','Choisissez un lecteur DVD'); -$smarty->assign('TITRE','Lecture DVD'); +$status = get_variable('statutdvd'); -include($EXPLORATEUR); +if($status == 'explorateur'){ + $play_rep = '1'; + $play_rep_txt = "Lire le DVD en [lecteur]"; + $cache_tous_fichier = '1'; + + include($EXPLORATEUR); +}else{ + $DISQUES = unserialize(get_variable('disques')); + $disques_dispo = array(); + foreach($DISQUES as $d){ + if($d['type'] == 'Disque optique'){ + $disques_dispo[] = $d; + } + } + + $smarty->assign('disques_dispo',$disques_dispo); + $smarty->assign('CONTENT',$smarty->fetch('dvd.tpl')); + $smarty->display('interface.tpl'); + +} + ?> Added: trunk/module/dvd/lecteurdvd.gif =================================================================== (Binary files differ) Property changes on: trunk/module/dvd/lecteurdvd.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/module/dvd/playrep.php =================================================================== --- trunk/module/dvd/playrep.php 2006-12-15 13:53:02 UTC (rev 57) +++ trunk/module/dvd/playrep.php 2006-12-15 21:13:44 UTC (rev 58) @@ -13,8 +13,8 @@ if(!isset($_GET['mode'])){ $basename = stripslashes(urldecode($_REQUEST['toplay'])); - $pisteaudio = $ini[multimedia][sortiefreebox]; - $decallage = $ini[multimedia][compensation]; + $pisteaudio = $ini['multimedia']['sortiefreebox']; + $decallage = $ini['multimedia']['compensation']; if($pisteaudio=='TV') { // $META['aud'] = '69(en,mp2)'; @@ -37,25 +37,29 @@ $basename = 'dvdsimple://'.$basename; play_fichier($play,$basename,0,'dvd'); $META['refresh'] = '2;url=playrep.php?mode=1'; + + $affich = 'Veuillez patienter pendant la construction des menus...'; }elseif($_GET['mode']==1 && is_array($title)){ - $affich = ''; - $titre_a = 'Choisissez le titre \xE0 jouer'; + $affich = '<table border="0" align="center" cellpadding="0" cellspacing="0"><tr><td align="center"><br>'; + $titre_a = 'Choisissez le titre auquel le DVD doit commencer'; foreach($title as $key => $titre){ - if(($key % 15) == 0 && $key != 0 ){ + if(($key % 10) == 0 && $key != 0 ){ $affich .= '</td><td align="center"><br>'; } - $affich .= '<a href="playrep.php?mode=2&titre='.$key.'"><table height="20" width="100" border="0" cellpadding="0" cellspacing="0" bgcolor="'.$_COULEUR[FOND2].'" abgcolor="'.$_COULEUR[TABLE_SELECTED].'"><tr><td align="center"><img src="'.$INTERFACE_REP.'puce.gif" width="13" height="13">'.$titre[0].'</td></tr></table></a><br>'; + $affich .= '<a href="playrep.php?mode=2&titre='.$key.'"><table height="20" width="100" border="0" cellpadding="0" cellspacing="0" bgcolor="'.$_COULEUR['COULEUR_FOND2'].'" abgcolor="'.$_COULEUR['COULEUR_TABLE_SELECTED'].'"><tr><td align="center"><img src="'.$INTERFACE_REP.'puce.gif" border="0" width="13" height="13">'.$titre[0].'</td></tr></table></a><br>'; } + $affich .= '</td></tr></table>'; + }elseif(($_GET['mode']==2 || !is_array($title)) && is_array($chapitre)){ - $affich = ''; - $titre_a = 'Choisissez le chapitre \xE0 jouer'; + $affich = '<table border="0" align="center" cellpadding="0" cellspacing="0"><tr><td align="center"><br>'; + $titre_a = 'Choisissez le chapitre auquel le DVD doit commencer'; if(isset($_GET['titre'])){ @readfile('http://localhost:8081/lecteur/modif-config.html?type=2&type2=4&var=title&value='.$_GET['titre']); @@ -63,23 +67,28 @@ foreach($chapitre as $key=> $chap){ - if(($key % 15) == 0 && $key != 0 ){ + if(($key % 10) == 0 && $key != 0 ){ $affich .= '</td><td align="center"><br>'; } - $affich .= '<a href="playrep.php?mode=3&titre='.$key.'"><table height="20" width="100" border="0" cellpadding="0" cellspacing="0" bgcolor="'.$_COULEUR[FOND2].'" abgcolor="'.$_COULEUR[TABLE_SELECTED].'"><tr><td align="center"><img src="'.$INTERFACE_REP.'puce.gif" width="13" height="13">'.$chap[0].'</td></tr></table></a><br>'; + $affich .= '<a href="playrep.php?mode=3&titre='.$key.'"><table height="20" width="100" border="0" cellpadding="0" cellspacing="0" bgcolor="'.$_COULEUR['COULEUR_FOND2'].'" abgcolor="'.$_COULEUR['COULEUR_TABLE_SELECTED'].'"><tr><td align="center"><img src="'.$INTERFACE_REP.'puce.gif" border="0" width="13" height="13">'.$chap[0].'</td></tr></table></a><br>'; } + $affich .= '</td></tr></table>'; + }else{ if(isset($_GET['titre'])){ @readfile('http://localhost:8081/lecteur/modif-config.html?type=2&type2=3&var=title&value='.$_GET['titre']); } + + $affich = 'Lecture...'; + $META['refresh'] = '0;url='.$MODULE.'films/lecture.php'; } -$smarty->assign('affich',$affich); -$smarty->assign('titre',$titre_a); -$smarty->display('menu_dvd.tpl'); +$smarty->assign('TITRE',$titre_a); +$smarty->assign('AVERTISSEMENT',$affich); +$smarty->display('avertissement.tpl'); ?> Modified: trunk/module/livescore/classement.php =================================================================== --- trunk/module/livescore/classement.php 2006-12-15 13:53:02 UTC (rev 57) +++ trunk/module/livescore/classement.php 2006-12-15 21:13:44 UTC (rev 58) @@ -13,7 +13,7 @@ } ?> <a href=journee.php>R\xE9sultats de la derni\xE8re journ\xE9e de Ligue 1</a><br> <br \> -<table border="0" cellpadding="0" cellspacing="0" width="499" height="436"><tr bgcolor="<?= $_COULEUR[INTERFACE1]; ?>"> +<table border="0" cellpadding="0" cellspacing="0" width="499" height="436"><tr bgcolor="<?= $_COULEUR['COULEUR_INTERFACE1']; ?>"> <td width="20" align=center>Pl</td> <td width="219" align=left> Equipe</td> <td width="30" align=center>Pts</td> @@ -53,9 +53,9 @@ { $place = $key+1; if ($key%2==0){ - $bg1= $_COULEUR[INTERFACE1]; + $bg1= $_COULEUR['COULEUR_INTERFACE1']; }else{ - $bg1= $_COULEUR[INTERFACE2]; + $bg1= $_COULEUR['COULEUR_INTERFACE2']; } echo '<tr bgcolor='.$bg1.'> <td align=center>'.$place.'</td> Modified: trunk/module/livescore/journee.php =================================================================== --- trunk/module/livescore/journee.php 2006-12-15 13:53:02 UTC (rev 57) +++ trunk/module/livescore/journee.php 2006-12-15 21:13:44 UTC (rev 58) @@ -29,7 +29,7 @@ ?> <a href=classement.php>Classement de la Ligue 1</a><br> <br \> -<table border="0" cellpadding="0" cellspacing="0" width="499" height="436"><tr bgcolor="<?= $_COULEUR[INTERFACE1]; ?>"> +<table border="0" cellpadding="0" cellspacing="0" width="499" height="436"><tr bgcolor="<?= $_COULEUR['COULEUR_INTERFACE1']; ?>"> <td align=center width=45%>Domicile</td> <td align=center width=10%>Score</td> <td align=center width=45%>Ext\xE9rieur</td> @@ -41,9 +41,9 @@ foreach($valeur[2] as $key => $value) { if ($key%2==0){ - $bg1= $_COULEUR[INTERFACE1]; + $bg1= $_COULEUR['COULEUR_INTERFACE1']; }else{ - $bg1= $_COULEUR[INTERFACE2]; + $bg1= $_COULEUR['COULEUR_INTERFACE2']; } $score = $valeur[3][$key]; echo '<tr bgcolor='.$bg1.'><td align=center>'.ucfirst(strtolower($value)).'</td><td align=center>'.$score.'</td><td align=center>'.ucfirst(strtolower($valeur[5][$key])).'</td></tr>'; Modified: trunk/module/loto/keno.php =================================================================== --- trunk/module/loto/keno.php 2006-12-15 13:53:02 UTC (rev 57) +++ trunk/module/loto/keno.php 2006-12-15 21:13:44 UTC (rev 58) @@ -81,8 +81,8 @@ $newLigne = ereg_replace('Rapport par grille gagnante pour 0,3 €', "0,3\x80 la grille" ,$newLigne); $newLigne = ereg_replace('Bons num\xE9ros', "Neum\xE9ros" ,$newLigne); $newLigne = ereg_replace('complémentaire', "compl." ,$newLigne); - $newLigne = ereg_replace('#3E107C', $_COULEUR[FOND] ,$newLigne); - $newLigne = ereg_replace('#FBD1CC', $_COULEUR[FOND] ,$newLigne); + $newLigne = ereg_replace('#3E107C', $_COULEUR['COULEUR_FOND'] ,$newLigne); + $newLigne = ereg_replace('#FBD1CC', $_COULEUR['COULEUR_FOND'] ,$newLigne); $newLigne = ereg_replace('<table border="0" cellspacing="1" cellpadding="1" class="tabgain" width="408">', '<table border="0" cellspacing="1" cellpadding="1" width="100%">' ,$newLigne); Modified: trunk/module/messagerie/index1.php =================================================================== --- trunk/module/messagerie/index1.php 2006-12-15 13:53:02 UTC (rev 57) +++ trunk/module/messagerie/index1.php 2006-12-15 21:13:44 UTC (rev 58) @@ -47,9 +47,9 @@ foreach($valeur[1] as $key => $val){ if ($key%2==0){ - $bg1= $_COULEUR[INTERFACE1]; + $bg1= $_COULEUR['COULEUR_INTERFACE1']; }else{ - $bg1= $_COULEUR[INTERFACE2]; + $bg1= $_COULEUR['COULEUR_INTERFACE2']; } echo '<tr><td bgcolor="'.$bg1.'"><a href="index1.php?f='.urlencode('http://adsl.free.fr/admin/tel/'.$valeur[4][$key]).'">'.$valeur[1][$key].' '.$valeur[2][$key].' '.$valeur[3][$key].'</a></td><td width="16" bgcolor="'.$bg1.'"><a href="index1.php?f='.urlencode('http://adsl.free.fr/admin/tel/'.$valeur[5][$key]).'"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="#0000003f" abgcolor="'.$_COULEUR[ALINK].'"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="'.$INTERFACE_REP.'delete.gif" border="0" width="20" height="20"></td></tr></table></a></td></tr>'; Modified: trunk/module/mp3/catalogue_audio.tpl =================================================================== --- trunk/module/mp3/catalogue_audio.tpl 2006-12-15 13:53:02 UTC (rev 57) +++ trunk/module/mp3/catalogue_audio.tpl 2006-12-15 21:13:44 UTC (rev 58) @@ -1,15 +1,15 @@ <TABLE border="0" cellpadding="0" cellspacing="0" width="480"> <TR bgcolor={#COULEUR_INTERFACE1#}> <TD align=center><A hRef="lecteuraudio.php?mode=bib&t=ar&wf={$wherefield}&wl={$wherelike|urlencode}"><B><font size=1 color=#0000003f>Artiste</font></B></A></TD> - <TD align=center width="10"><font color='.$_COULEUR[FOND].'>/</TD> + <TD align=center width="10"><font color="{#COULEUR_FOND#}">/</TD> <TD align=center width="80"><A hRef="lecteuraudio.php?mode=bib&t=ch&wf={$wherefield}&wl={$wherelike|urlencode}"><B><font size=1 color=#0000003f>Chanson</font></B></A></TD> - <TD align=center width="10"><font color='.$_COULEUR[FOND].'>/</TD> + <TD align=center width="10"><font color="{#COULEUR_FOND#}">/</TD> <TD align=center><A hRef="lecteuraudio.php?mode=bib&t=al&wf={$wherefield}&wl={$wherelike|urlencode}"><B><font size=1 color=#0000003f>Album</font></B></A></TD> - <TD align=center width="10"><font color='.$_COULEUR[FOND].'>/</TD> + <TD align=center width="10"><font color="{#COULEUR_FOND#}">/</TD> <TD align=center><A hRef="lecteuraudio.php?mode=bib&t=an&wf={$wherefield}&wl={$wherelike|urlencode}"><B><font size=1 color=#0000003f>Ann\xE9e</font></B></A></TD> - <TD align=center width="10"><font color='.$_COULEUR[FOND].'>/</TD> + <TD align=center width="10"><font color="{#COULEUR_FOND#}">/</TD> <TD align=center><A hRef="lecteuraudio.php?mode=bib&t=ge&wf={$wherefield}&wl={$wherelike|urlencode}"><B><font size=1 color=#0000003f>Genre</font></B></A></TD> - <TD align=center width="10"><font color='.$_COULEUR[FOND].'>/</TD> + <TD align=center width="10"><font color="{#COULEUR_FOND#}">/</TD> <TD align=center><A hRef="lecteuraudio.php?mode=bib&t={$type}&l={$lettre}"><B><font size=1 color=#0000003f>Tout</font></B></A></TD> </TR> </TABLE> Modified: trunk/module/seances/index1.php =================================================================== --- trunk/module/seances/index1.php 2006-12-15 13:53:02 UTC (rev 57) +++ trunk/module/seances/index1.php 2006-12-15 21:13:44 UTC (rev 58) @@ -5,8 +5,8 @@ $LINK['red']= $MODULE.'_menu/menu.php?cat=9'; -$CONTENT = '<font size=4>Veuillez tapper le code postal de votre ville</font><br> <br> <br>'; - +$smarty->assign('TITRE','Veuillez tapper le code postal de votre ville'); + if ($_GET['error']=='noville'){ $CONTENT .= "<u>Aucune ville trouv\xE9e</u><br> <br>"; }elseif($_GET['error']=='nosalle'){ Modified: trunk/skin/simple/avertissement.tpl =================================================================== --- trunk/skin/simple/avertissement.tpl 2006-12-15 13:53:02 UTC (rev 57) +++ trunk/skin/simple/avertissement.tpl 2006-12-15 21:13:44 UTC (rev 58) @@ -10,6 +10,7 @@ {if NOT $no_icone}<td align="center" width="80" height="80"> <img src="{$INTERFACE_REP}info.gif" border="0" width="80" height="80"> </td>{/if}<td align="center" valign="middle" width="460"> + {if $TITRE!=''}<font size=4>{$TITRE}</font><br> <br> <br>{/if} {eval var=$AVERTISSEMENT} </td> </tr></table> Deleted: trunk/skin/simple/sorties_cine.tpl =================================================================== --- trunk/skin/simple/sorties_cine.tpl 2006-12-15 13:53:02 UTC (rev 57) +++ trunk/skin/simple/sorties_cine.tpl 2006-12-15 21:13:44 UTC (rev 58) @@ -1,47 +0,0 @@ - {section name=sorties loop=$SORTIES max=8 start=$MIN} - {cycle name=place assign=place print=false values="3,2,1,0"} - {if $smarty.section.sorties.first} - {if $MIN!=0} - {assign var=temp value=$MIN-8} - {attribbouton touche="green" lien="index1.php?week=$week&start=$temp"} - <a href="index1.php?week={$week}&start={$temp}"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> Pr\xE9c\xE9dent</a> - {/if} - - <table border="0" cellpadding="0" cellspacing="0" width="500" height="360" align="center"><tr> - {/if} - - <td width="125" height="180"><a href="{$MODULE}films/fichefilm.php?film={$SORTIES[sorties].nom|urlencode}&idfilm={$SORTIES[sorties].index}"><table border="0" cellpadding="0" cellspacing="0" width="125" height="180" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="130"><td width="125" height="120" valign="middle" align="center"><img width="90" height="120" border="0" src="{$IMG2FBX}{$SORTIES[sorties].image|urlencode}&new_width=90&new_height=120&cache=1"></td></tr><tr height="50"><td width="125" height="50" valign="middle" align=center><font size="1">{$SORTIES[sorties].nom|truncate:30:''}</font><br><font size="1">{$SORTIES[sorties].comment}</font></td></tr></table></a></td> - - {if $smarty.section.sorties.iteration is div by 4 AND NOT $smarty.section.sorties.last} - </tr><tr> - {/if} - - {if $smarty.section.sorties.last} - {if $place >= 3} - <td> </td> - {/if} - {if $place >= 2} - <td> </td> - {/if} - {if $place >= 1} - <td> </td> - {/if} - - </tr> - </table> - {if $MIN+$smarty.section.sorties.total<count($SORTIES)} - {assign var=temp value=$MIN+8} - {attribbouton touche="blue" lien="index1.php?week=$week&start=$temp"} - <a href="index1.php?week={$week}&start={$temp}"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> Suivant</a> - {/if} - - {/if} - - {/section} - -{assign var=temp value=$week-1} -<br><br> <a href="index1.php?week={$temp}">Semaine pr\xE9c\xE9dente</a> -{if $week!=0} -{assign var=temp value=$week+1} - - <a href="index1.php?week={$week+1}">Semaine suivante</a> -{/if} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |