|
From: <ara...@us...> - 2007-05-21 16:17:15
|
Revision: 155
http://svn.sourceforge.net/easybox-mod/?rev=155&view=rev
Author: aragornis
Date: 2007-05-21 09:17:12 -0700 (Mon, 21 May 2007)
Log Message:
-----------
-> Nouvelle classe de gestion des images unifi?\195?\169e
-> Utilisation par tous les modules existants de cette classe
Modified Paths:
--------------
trunk/_framework/demarrage.php
trunk/_framework/fonctions_partagees.inc.php
trunk/_framework/framework.php
trunk/_framework/lib/get_info.php
trunk/module/allocine/allocine.tpl
trunk/module/cac40/cac40.tpl
trunk/module/cinefil/sorties_cine.tpl
trunk/module/clips/clips.tpl
trunk/module/dailymotion/dailymotion.tpl
trunk/module/diaporama/explorateur_photo.tpl
trunk/module/diaporama/photo.tpl
trunk/module/films/catalogue_video.tpl
trunk/module/films/fichefilm.php
trunk/module/films/fichefilm.tpl
trunk/module/films/lecture.php
trunk/module/films/play.php
trunk/module/guidetv/guidetv.tpl
trunk/module/modules/modules.tpl
trunk/module/mp3/playlist_audio.tpl
trunk/module/recettes/recettes2.tpl
trunk/module/rss/rss.tpl
trunk/module/seances/programme_cine.tpl
trunk/module/stage6/stage6.tpl
trunk/module/youtube/youtube.tpl
trunk/skin/mediacenter/config_skin.php
trunk/skin/simple/config_skin.php
trunk/skin/simplegreen/config_skin.php
Added Paths:
-----------
trunk/_framework/lib/lib_photo.php
Removed Paths:
-------------
trunk/_framework/cr_xml.php
trunk/_framework/lib/date.php
trunk/_framework/login.php
Deleted: trunk/_framework/cr_xml.php
===================================================================
--- trunk/_framework/cr_xml.php 2007-05-20 22:42:20 UTC (rev 154)
+++ trunk/_framework/cr_xml.php 2007-05-21 16:17:12 UTC (rev 155)
@@ -1,125 +0,0 @@
-<?php
- //// Constructeur XML
- $rec_xml = '<?xml version="1.0" encoding="iso-8859-1"?>
-<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
-<channel>
-';
- $rec_xml.= ' <categorie name="Multim\xE9dia" repertoire="cinefil.gif">
-';
- $y = 0;
- $u = 0;
- while ($u <= $l_module[$y]) {
- $rec_xml.=' <module>
- <name>'.$l_module_name[$y][$u].'</name>
- <repertoire>'.$l_module_repertoire[$y][$u].'</repertoire>
- <lien>'.$l_module_lien[$y][$u].'</lien>
- <actif1>'.$l_module_a1[$y][$u].'</actif1>
- <actif2>'.$l_module_a2[$y][$u].'</actif2>
- <actif3>'.$l_module_a3[$y][$u].'</actif3>
- <actif4>'.$l_module_a4[$y][$u].'</actif4>
- <actif5>'.$l_module_a5[$y][$u].'</actif5>
- <version>'.$l_module_version[$y][$u].'</version>
- </module>
-';
- $u++;
- }
- $rec_xml.= ' </categorie>
- <categorie name="Cin\xE9ma" repertoire="cinefil.gif">
-';
- $y++;
- $u = 0;
- while ($u <= $l_module[$y]) {
- $rec_xml.=' <module>
- <name>'.$l_module_name[$y][$u].'</name>
- <repertoire>'.$l_module_repertoire[$y][$u].'</repertoire>
- <lien>'.$l_module_lien[$y][$u].'</lien>
- <actif1>'.$l_module_a1[$y][$u].'</actif1>
- <actif2>'.$l_module_a2[$y][$u].'</actif2>
- <actif3>'.$l_module_a3[$y][$u].'</actif3>
- <actif4>'.$l_module_a4[$y][$u].'</actif4>
- <actif5>'.$l_module_a5[$y][$u].'</actif5>
- <version>'.$l_module_version[$y][$u].'</version>
- </module>
-';
- $u++;
- }
- $rec_xml.= ' </categorie>
- <categorie name="Internet" repertoire="firefox.gif">
-';
- $y++;
- $u = 0;
- while ($u <= $l_module[$y]) {
- $rec_xml.=' <module>
- <name>'.$l_module_name[$y][$u].'</name>
- <repertoire>'.$l_module_repertoire[$y][$u].'</repertoire>
- <lien>'.$l_module_lien[$y][$u].'</lien>
- <actif1>'.$l_module_a1[$y][$u].'</actif1>
- <actif2>'.$l_module_a2[$y][$u].'</actif2>
- <actif3>'.$l_module_a3[$y][$u].'</actif3>
- <actif4>'.$l_module_a4[$y][$u].'</actif4>
- <actif5>'.$l_module_a5[$y][$u].'</actif5>
- <version>'.$l_module_version[$y][$u].'</version>
- </module>
-'; $u++;
- }
- $rec_xml.= ' </categorie>
- <categorie name="Infos" repertoire="menunews.gif">
-';
- $y++;
- $u = 0;
- while ($u <= $l_module[$y]) {
- $rec_xml.=' <module>
- <name>'.$l_module_name[$y][$u].'</name>
- <repertoire>'.$l_module_repertoire[$y][$u].'</repertoire>
- <lien>'.$l_module_lien[$y][$u].'</lien>
- <actif1>'.$l_module_a1[$y][$u].'</actif1>
- <actif2>'.$l_module_a2[$y][$u].'</actif2>
- <actif3>'.$l_module_a3[$y][$u].'</actif3>
- <actif4>'.$l_module_a4[$y][$u].'</actif4>
- <actif5>'.$l_module_a5[$y][$u].'</actif5>
- <version>'.$l_module_version[$y][$u].'</version>
- </module>
-';
- $u++;
- }
- $rec_xml.= ' </categorie>
- <categorie name="Pratique" repertoire="horloge.gif">
-';
- $y++;
- $u = 0;
- while ($u <= $l_module[$y]) {
- $rec_xml.=' <module>
- <name>'.$l_module_name[$y][$u].'</name>
- <repertoire>'.$l_module_repertoire[$y][$u].'</repertoire>
- <lien>'.$l_module_lien[$y][$u].'</lien>
- <actif1>'.$l_module_a1[$y][$u].'</actif1>
- <actif2>'.$l_module_a2[$y][$u].'</actif2>
- <actif3>'.$l_module_a3[$y][$u].'</actif3>
- <actif4>'.$l_module_a4[$y][$u].'</actif4>
- <actif5>'.$l_module_a5[$y][$u].'</actif5>
- <version>'.$l_module_version[$y][$u].'</version>
- </module>
-';
- $u++;
- }
- $rec_xml.= ' </categorie>
- <categorie name="Suplement">';
- $y++;
- $u = 0;
- while ($u <= $l_module[$y]) {
- $rec_xml.=' <module>
- <name>'.$l_module_name[$y][$u].'</name>
- <repertoire>.</repertoire>
- <lien>.</lien>
- <version>'.$l_module_version[$y][$u].'</version>
- </module>
-';
- $u++;
- }
-
- $rec_xml.=' </categorie>
-</channel>
-</rss>';
-
-
-?>
\ No newline at end of file
Modified: trunk/_framework/demarrage.php
===================================================================
--- trunk/_framework/demarrage.php 2007-05-20 22:42:20 UTC (rev 154)
+++ trunk/_framework/demarrage.php 2007-05-21 16:17:12 UTC (rev 155)
@@ -13,7 +13,7 @@
$CACHE_IMAGE = $RACINE_REP."_utilisateur/cache/";
$MODULE = $RACINE_REP."module/";
$LECTEUR = $RACINE_REP."lecteur/";
- $IMG2FBX = $FRAMEWORK_REP."img2fbx.php?sURL=";
+ $IMG2FBX = $LIBRARIES_REP.'lib_photo.php';
$EXPLORATEUR = $MODULE."_explorateur/index1.php";
$PLAYLIST = $USER."playlist/";
$AIDE_REP = $RACINE_REP."_framework/aide/";
Modified: trunk/_framework/fonctions_partagees.inc.php
===================================================================
--- trunk/_framework/fonctions_partagees.inc.php 2007-05-20 22:42:20 UTC (rev 154)
+++ trunk/_framework/fonctions_partagees.inc.php 2007-05-21 16:17:12 UTC (rev 155)
@@ -822,7 +822,7 @@
}
function recharger_vlc(){
-global $smarty, $VLC, $contenu_html;
+global $smarty, $VLC, $contenu_html, $signetsav;
//-- Test de l'activation de VLC
if(!$contenu_html = @file_get_contents("http://127.0.0.1:8081/_framework/vlc/temps2.html")){
echo'<center><br> <br> <br>Vlc n\'est pas lanc\xE9 ou il n\'\xE9coute pas le port 8081</center>';
@@ -848,10 +848,6 @@
$VLC['duree_totale']=$VLC['duree_current']; // Remplacement de la dur\xE9e totale par un, th\xE9orique
}
$VLC['duree_restante']=$VLC['duree_totale']-$VLC['duree_courante']; // Temps restant en secondes
-
-
-
-
$VLC['pourcentage_courant']=round($VLC['duree_courante']/($VLC['duree_totale']+1)*100); // Pourcentage deja ecoule
// Mise \xE0 disposition des infos sur le fichier en cours aux templates
Modified: trunk/_framework/framework.php
===================================================================
--- trunk/_framework/framework.php 2007-05-20 22:42:20 UTC (rev 154)
+++ trunk/_framework/framework.php 2007-05-21 16:17:12 UTC (rev 155)
@@ -51,7 +51,7 @@
$RES_ICO = $RESSOURCES.'icones/';
$smarty->assign('RES_ICO',$RES_ICO);
- $IMG2FBX = $FRAMEWORK_REP.'img2fbx.php?sURL=';
+ $IMG2FBX = $LIBRARIES_REP.'lib_photo.php';
$smarty->assign('IMG2FBX',$IMG2FBX);
$LOAD = $FRAMEWORK_REP.'fonctions_partagees.inc.php';
require_once($LOAD);
@@ -64,9 +64,6 @@
$AIDE_REP = $RACINE_REP.'_framework/aide/';
$smarty->assign('AIDE_REP',$AIDE_REP);
-//-- Librairie permettant de formater et convertir des dates
- require_once($LIBRARIES_REP.'date.php');
-
//-- Librairie permettant de gerer les fichier ZIP
require_once($LIBRARIES_REP.'zip.php');
Deleted: trunk/_framework/lib/date.php
===================================================================
--- trunk/_framework/lib/date.php 2007-05-20 22:42:20 UTC (rev 154)
+++ trunk/_framework/lib/date.php 2007-05-21 16:17:12 UTC (rev 155)
@@ -1,119 +0,0 @@
-<?
-/*
- * string dateFr(string format, int timestamp)
- * string dateFr(string format)
- *
- * Retourne une date sous forme d'une cha\xEEne, au format donn\xE9 par la cha\xEEne format.
- * La date est fournie sous la forme d'un timestamp. Par d\xE9faut, la date courante est utilis\xE9e.
- * Les caract\xE8res suivants sont utilis\xE9s pour sp\xE9cifier le format :
- *
- * \xB7 D - Jour de la semaine, en trois lettres : par exemple "Ven" (pour Vendredi)
- * \xB7 l - Jour de la semaine, textuel, version longue; ex: Vendredi
- *
- * \xB7 j - Jour du mois sans les z\xE9ros initiaux: "1" \xE0 "31"
- * \xB7 d - Jour du mois, sur deux chiffres (\xE9ventuellement avec un z\xE9ros) : "01" \xE0 "31"
- *
- * \xB7 n - Mois sans les z\xE9ros initiaux; i.e. "1" \xE0 "12"
- * \xB7 m - Mois; i.e. "01" \xE0 "12"
- * \xB7 M - Mois, en trois lettres : par exemple "Jan" (pour Janvier)
- * \xB7 F - Mois, textuel, version longue; ex: Janvier
- *
- * \xB7 y - Ann\xE9e, 2 chiffres; i.e. "99"
- * \xB7 Y - Ann\xE9e, 4 chiffres; i.e. "1999"
- *
- * \xB7 g - Heure, au format 12h sans les z\xE9ros initiaux, "1" \xE0 "12"
- * \xB7 e - Heure, au format 12h, "01" \xE0 "12"
- * \xB7 G - Heure, au format 24h sans les z\xE9ros initiaux, "0" \xE0 "23"
- * \xB7 E - heure, au format 24h, "00" \xE0 "23"
- *
- * \xB7 i - Minutes; "00" \xE0 "59"
- *
- * \xB7 s - Secondes; i.e. "00" \xE0 "59"
- *
- */
-
-function dateFr($format, $date= '') {
- $dateRetour = "";
- if ($date=='')
- $date = mktime(date('H'), date('i'), date('s'), date('m'), date('d'), date('Y'), -1);
- $TJour = array("Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi");
- $TMois = array("Janvier","Fevrier","Mars","Avril","Mai","Juin","Juillet","Aout","Septembre","Octobre","Novembre","D\xE9cembre");
-
- for($i=0; $i<strlen($format); $i++) {
- $char = substr($format, $i, 1);
- switch($char) {
- case 'd' : $dateRetour .= date('d', $date); break;
- case 'D' : $dateRetour .= substr($TJour[date('w', $date)],0,3); break;
- case 'F' : $dateRetour .= $TMois[date('n', $date)-1]; break;
- case 'e' : $dateRetour .= date('h', $date); break;
- case 'E' : $dateRetour .= date('H', $date); break;
- case 'g' : $dateRetour .= date('g', $date); break;
- case 'G' : $dateRetour .= date('G', $date); break;
- case 'i' : $dateRetour .= date('i', $date); break;
- case 'j' : $dateRetour .= date('j', $date); break;
- case 'l' : $dateRetour .= $TJour[date('w', $date)]; break;
- case 'm' : $dateRetour .= date('m', $date); break;
- case 'n' : $dateRetour .= date('n', $date); break;
- case 'M' : $dateRetour .= substr($TMois[date('n', $date)-1],0,3); break;
- case 's' : $dateRetour .= date('s', $date); break;
- case 'Y' : $dateRetour .= date('Y', $date); break;
- case 'y' : $dateRetour .= date('y', $date); break;
- default : $dateRetour .= $char;
- }
- }
- return($dateRetour);
-}
-
-/*
- * int mkdate(String date)
- *
- * Retourne une date sous forme d'un entier timestamp \xE0 partir d'une chaine de la forme "AAAAMMJJ".
- */
-
-function mkDate($chaineDate) {
- return(mktime(0, 0, 0, substr($chaineDate,4,2), substr($chaineDate,6,2), substr($chaineDate,0,4), -1));
-}
-
-/*
- * int mkDateHeure(String date)
- *
- * Retourne une date sous forme d'un entier timestamp \xE0 partir d'une chaine de la forme "AAAAMMJJHHMMSS".
- */
-
-function mkDateHeure($chaineDate) {
- return(mktime(substr($chaineDate,8,2), substr($chaineDate,10,2), substr($chaineDate,12,2), substr($chaineDate,4,2), substr($chaineDate,6,2), substr($chaineDate,0,4), -1));
-}
-
-/*
- * int nbJour(String mois)
- * int nbJour(String mois, String ann\xE9e)
- *
- * Retourne le nombre de jour du mois pass\xE9 en param\xE8tre
- * mois compris entre 1 et 12
- *
- */
-
-function nbJour($Mois, $Annee) {
- return(date("t", mktime(0,0,0,$Mois,1,$Annee)));
-}
-
-/*
- * String mois(String date)
- *
- * Retourne le numero de mois "MM" d'une date de la forme "AAAAMMJJ"
- */
-
-function mois($date) {
- return(substr($date,4,2));
-}
-
-/*
- * String jour(String date)
- *
- * Retourne le numero du jour "JJ" d'une date de la forme "AAAAMMJJ"
- */
-
-function jour($date) {
- return(substr($date,6,2));
-}
-?>
\ No newline at end of file
Modified: trunk/_framework/lib/get_info.php
===================================================================
--- trunk/_framework/lib/get_info.php 2007-05-20 22:42:20 UTC (rev 154)
+++ trunk/_framework/lib/get_info.php 2007-05-21 16:17:12 UTC (rev 155)
@@ -161,7 +161,7 @@
$res['genre'] = trim(strip_tags($valeur[1]));
//Dur\xE9e
- $ereg = '<h4>Dur\xE9e : (.{1,15}). <\/h4><h4>';
+ $ereg = '<h4>Dur\xE9e : (.{1,15}). <\/h4>';
preg_match("/$ereg/s", $filmrecherche, $valeur);
$res['duree'] = $valeur[1];
Added: trunk/_framework/lib/lib_photo.php
===================================================================
--- trunk/_framework/lib/lib_photo.php (rev 0)
+++ trunk/_framework/lib/lib_photo.php 2007-05-21 16:17:12 UTC (rev 155)
@@ -0,0 +1,265 @@
+<?php
+
+$RACINE_REP = realpath('../../');
+$CACHE_IMAGE = $RACINE_REP.'/_utilisateur/cache/';
+
+class image {
+
+// Adresse de l'image
+var $url;
+
+// Variable contenant l'image
+var $img;
+
+// Largeur et hauteur de $img \xE0 chaque instant
+var $width;
+var $height;
+
+// Largeur et hauteur d\xE9sir\xE9s
+var $r_width;
+var $r_height;
+
+// Rotation \xE0 effectuer
+var $angle;
+
+// Le fichier doit \xEAtre mis en cache/r\xE9cup\xE9r\xE9 du cache ou non
+var $cache;
+// Le fichier est d\xE9j\xE0 en cache ou non
+var $is_cached;
+
+// Le hash du fichier
+var $hash;
+
+// Profil qualit\xE9 (pour le redimensionnement)
+var $quality;
+
+// Version de la Freebox
+var $fbx;
+
+// Nouvelle extension du fichier
+var $new_ext;
+
+// Nouveau content-type
+var $content;
+
+// Path du fichier en cache
+var $name_cache;
+
+function __construct($url, $r_width, $r_height, $angle, $cache, $quality){
+global $_SERVER, $CACHE_IMAGE;
+ $this->url = $url;
+ $this->cache = $cache;
+ $this->r_width = $r_width;
+ $this->r_height = $r_height;
+ $this->angle = $this->arg($angle);
+ $this->cache = $cache;
+ $this->quality = $quality;
+ $this->hash = md5($this->url.$this->r_height.$this->r_width.$this->angle);
+
+ define("IMAGE_FLIP_HORIZONTAL", 1);
+ define("IMAGE_FLIP_VERTICAL", 2);
+ define("IMAGE_FLIP_BOTH", 3);
+
+ // D\xE9termine la version de la freebox pour cr\xE9er des fichiers png (v5 HD) ou gif (V3 ou V4)
+ $vers_fbx = $_SERVER["HTTP_USER_AGENT"];
+ $ereg = 'freebox\/[0-9]\.[0-9]\.[0-9] \(hw:([0-9]).0;';
+ if(preg_match("/$ereg/s", $vers_fbx, $val_vers)){
+ $this->fbx = $val_vers[1];
+ }else{
+ $this->fbx = 5;
+ }
+
+ // Change le format d'exportation selon la version de la freebox
+ if($this->fbx==5){
+ $this->new_ext = 'png';
+ $this->content = 'Content-type: image/png';
+ }else{
+ $this->new_ext = 'gif';
+ $this->content = 'Content-type: image/gif';
+ }
+
+ // D\xE9termine le nom th\xE9orique du fichier cache correspondant
+ $this->name_cache = $CACHE_IMAGE.$this->hash.'.'.$this->new_ext;
+
+ // D\xE9termine si il existe un fichier en cache
+ if($this->cache){
+ $this->is_cached = $this->is_cached();
+ }else{
+ $this->is_cached = false;
+ }
+
+}
+
+// D\xE9termine si il existe un fichier en cache
+function is_cached(){
+ RETURN file_exists($this->name_cache);
+}
+
+// G\xE9n\xE8re le fichier cache
+function generer_fichier(){
+ if($this->new_ext=='gif'){
+ imagegif($this->img,$this->name_cache);
+ }elseif($this->new_ext=='png'){
+ imagepng($this->img,$this->name_cache);
+ }
+}
+
+// Affiche l'image dans le fichier
+function afficher_image(){
+ header($this->content);
+ if($this->new_ext=='gif'){
+ imagegif($this->img);
+ }elseif($this->new_ext=='png'){
+ imagepng($this->img);
+ }
+}
+
+// Execute les actions demand\xE9es
+function process(){
+ // Dans le cas o\xF9 le fichier est d\xE9j\xE0 en cache, on le charge directement
+ if($this->is_cached){
+ header($this->content);
+ readfile($this->name_cache);
+ // Sinon on charge l'image et on execute les demandes
+ }else{
+ if($data = file_get_contents($this->url)){
+ $this->img = imagecreatefromstring($data);
+ $this->width = imagesx($this->img);
+ $this->height = imagesy($this->img);
+
+ // Tourner
+ $this->tourner();
+
+ // Redimensionner
+ if($this->width!=0 AND $this->height!=0){
+ $this->redimensionner();
+ }
+
+
+ // Mettre en cache
+ if($this->cache){
+ $this->generer_fichier();
+ }
+
+ // Renvoyer
+ $this->afficher_image();
+
+ }else{
+ $this->error();
+ }
+ }
+}
+
+// Fonction d'erreur
+function error(){
+
+}
+
+// Fonction trouvant le bon argument entre 0 et 360
+function arg($angle){
+ $ang = fmod($angle,360);
+ while($ang<0 and $fail>500){
+ $fail++;
+ $ang+=360;
+ }
+ return $ang;
+}
+
+function redimensionner(){
+ $pourcent = min(min(($this->r_width/$this->width),1),min(($this->r_height/$this->height),1));
+ $redimx = floor($this->width*$pourcent);
+ $redimy = floor($this->height*$pourcent);
+ $image1 = imagecreatetruecolor($redimx, $redimy);
+
+ if($this->quality=='max'){
+ ImageCopyresampled($image1,$this->img,0,0,0,0,$redimx,$redimy,$this->width,$this->height);
+ }else{
+ ImageCopyresized($image1,$this->img,0,0,0,0,$redimx,$redimy,$this->width,$this->height);
+ }
+ $this->img = $image1;
+ $this->width = $redimx;
+ $this->height = $redimy;
+}
+
+function tourner(){
+ $this->img = $this->ImageRotateRightAngle($this->img,$this->angle);
+ if($this->angle==90 OR $this->angle==270){
+ $t = $this->height;
+ $this->height = $this->width;
+ $this->width = $t;
+ }
+}
+
+
+function ImageFlip($imgsrc, $type){
+ $width = $this->width;
+ $height = $this->height;
+
+ $imgdest = imagecreatetruecolor($width, $height);
+ ImageAlphaBlending($imgdest, false);
+
+ switch($type){
+ case IMAGE_FLIP_HORIZONTAL:
+ for( $y=0 ; $y<$height ; $y++ )
+ imagecopy($imgdest, $imgsrc, 0, $height-$y-1, 0, $y, $width, 1);
+ break;
+
+ case IMAGE_FLIP_VERTICAL:
+ for( $x=0 ; $x<$width ; $x++ )
+ imagecopy($imgdest, $imgsrc, $width-$x-1, 0, $x, 0, 1, $height);
+ break;
+
+ case IMAGE_FLIP_BOTH:
+ for( $x=0 ; $x<$width ; $x++ )
+ imagecopy($imgdest, $imgsrc, $width-$x-1, 0, $x, 0, 1, $height);
+
+ $rowBuffer = imagecreatetruecolor($width, 1);
+ for( $y=0 ; $y<($height/2) ; $y++ )
+ {
+ imagecopy($rowBuffer, $imgdest , 0, 0, 0, $height-$y-1, $width, 1);
+ imagecopy($imgdest , $imgdest , 0, $height-$y-1, 0, $y, $width, 1);
+ imagecopy($imgdest , $rowBuffer, 0, $y, 0, 0, $width, 1);
+ }
+
+ imagedestroy( $rowBuffer );
+ break;
+ }
+ return($imgdest);
+}
+
+function ImageRotateRightAngle($imgSrc,$angle){
+ // no need to fight
+ if( $angle == 0 ){
+ return($imgSrc);
+ }
+ // dimenstion of source image
+ $srcX = $this->width;
+ $srcY = $this->height;
+
+ switch($angle){
+ case 90:
+ $imgDest = imagecreatetruecolor($srcY,$srcX);
+ for( $x=0; $x<$srcX; $x++ )
+ for( $y=0; $y<$srcY; $y++ )
+ imagecopy($imgDest, $imgSrc, $srcY-$y-1, $x, $x, $y, 1, 1);
+ break;
+
+ case 180:
+ $imgDest = $this->ImageFlip($imgSrc,IMAGE_FLIP_BOTH);
+ break;
+
+ case 270:
+ $imgDest = imagecreatetruecolor( $srcY, $srcX );
+ for( $x=0; $x<$srcX; $x++ )
+ for( $y=0; $y<$srcY; $y++ )
+ imagecopy($imgDest, $imgSrc, $y, $srcX-$x-1, $x, $y, 1, 1);
+ break;
+ }
+ return($imgDest);
+}
+
+}
+
+$img = new image(urldecode($_GET['img']), $_GET['width'], $_GET['height'], $_GET['angle'], $_GET['cache'], $_GET['quality']);
+$img->process();
+?>
Deleted: trunk/_framework/login.php
===================================================================
--- trunk/_framework/login.php 2007-05-20 22:42:20 UTC (rev 154)
+++ trunk/_framework/login.php 2007-05-21 16:17:12 UTC (rev 155)
@@ -1,83 +0,0 @@
-<?php
-$CONFIG_INI = "../_utilisateur/configuration.ini";
-$ini1 = parse_ini_file($CONFIG_INI, TRUE);
-
-
-$acces_level = 0;
-if (isset($_GET['login'])) {
- switch ($_GET['login']) {
- case $ini1[utilisateur][level1]:
- $acces_level = 1;
- break;
- case $ini1[utilisateur][level2]:
- $acces_level = 2;
- break;
- case $ini1[utilisateur][level3]:
- $acces_level = 3;
- break;
- case $ini1[utilisateur][level4]:
- $acces_level = 4;
- break;
- case $ini1[utilisateur][level5]:
- $acces_level = 5;
- break;
- }
-}
-if ($acces_level != '0') {
- //-- On valide l'access dans le ini
- foreach($ini1 as $key2=>$inisec2){
- $reini .="\n[".$key2."]\n";
- foreach($inisec2 as $subkey2=>$entry2){
- if($subkey2=="level" && $key2=="utilisateur")
- $reini .=$subkey2.' = "'.$acces_level."\"\n";
- else
- $reini .=$subkey2.' = "'.$ini1[$key2][$subkey2]."\"\n";
- }
- }
- $handle = fopen($CONFIG_INI, "w");
- fwrite($handle, $reini);
- fclose($handle);
-
- //-- On renvois vers le menu
- $demarage = "../module/".$ini1[demarrage][demarrage];
- echo '<meta name=refresh content="0;url='.$demarrage.'">';
-
-}else{
- // on affiche la page de login
- ?>
-
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html>
-<head>
-<title>LOGIN</title>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
-<base target="_top">
-</head>
-
-<body><center>
-<table width="645" height="510" border="0" cellpadding="0" cellspacing="0" bgcolor="#0000003F">
- <tr>
- <td height="400" align="center" valign="top"><center><img src="images/cadenas.gif" width="250" height="250"></center>
- <p> </p>
- <p> _GET : <?= $_GET['login']; ?></p>
- <p> _Level: <?= $acces_level; ?></p>
- <p> _Exemple: <?= $ini1[utilisateur][level5]; ?></p>
- <p> </p>
- <form action="login.php" method="get">
-<center>
-<input name="login" type="text" value="">
-<input name="" type="button" value="OK">
-</center>
-
-
-</form>
-<p> </p>
-<p> </p>
-<p> </p>
-<p> </p>
-</td>
- </tr>
-</table></center>
-</body>
-</html>
-<?php } ?>
Modified: trunk/module/allocine/allocine.tpl
===================================================================
--- trunk/module/allocine/allocine.tpl 2007-05-20 22:42:20 UTC (rev 154)
+++ trunk/module/allocine/allocine.tpl 2007-05-21 16:17:12 UTC (rev 155)
@@ -13,7 +13,7 @@
{/if}
<table border="0" cellpadding="2" cellspacing="0" width="500" height="360" align="center"><tr>
{/if}
- <tr><td width="90" valign="top"><img width="90" height="120" border="0" src="{$IMG2FBX}{$FILMS[films].image|urlencode}&new_width=90&new_height=120&cache=1"></td>
+ <tr><td width="90" valign="top"><img width="90" height="120" border="0" src="{$IMG2FBX}?img={$FILMS[films].image|urlencode}&width=90&height=120&cache=1"></td>
<td valign=top align=left width="410">
{if $FILMS[films].video!= ''}
<a onfocus='front_panel="{$FILMS[films].titre|truncate:12|replace:"'":"`"|replace:"\"":"``"}";' href="playba_allocine.php?url={$FILMS[films].video|urlencode}&from_start={$MIN}">{$FILMS[films].titre|truncate:40} <img src="video.gif" border=0 width=20 height=20></a>
Modified: trunk/module/cac40/cac40.tpl
===================================================================
--- trunk/module/cac40/cac40.tpl 2007-05-20 22:42:20 UTC (rev 154)
+++ trunk/module/cac40/cac40.tpl 2007-05-21 16:17:12 UTC (rev 155)
@@ -1,4 +1,4 @@
-<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>
+<center><img src="{$IMG2FBX}?img={"http://boursier.fininfo.fr/enhydra/cmbj/servlet/BoursierIntradayServlet?present=boursierivaleur&id1=FR0003500008&dim=450,280&typ1=area"|urlencode}&width=450&height=280" width="450" height="280"><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>
Modified: trunk/module/cinefil/sorties_cine.tpl
===================================================================
--- trunk/module/cinefil/sorties_cine.tpl 2007-05-20 22:42:20 UTC (rev 154)
+++ trunk/module/cinefil/sorties_cine.tpl 2007-05-21 16:17:12 UTC (rev 155)
@@ -5,7 +5,7 @@
<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>
+ <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}?img={$SORTIES[sorties].image|urlencode}&width=90&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>
Modified: trunk/module/clips/clips.tpl
===================================================================
--- trunk/module/clips/clips.tpl 2007-05-20 22:42:20 UTC (rev 154)
+++ trunk/module/clips/clips.tpl 2007-05-21 16:17:12 UTC (rev 155)
@@ -9,7 +9,7 @@
{/if}
{/if}
- <td width="100" height="150"><a href="play_clip.php?clipid={$CLIP[clip].id}&show={$SHOW}&min={$MIN}{if $SHOW=='tous'}&lettre={$LETTRE}{/if}"><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align="center"><img width="80" height="80" border="0" src="{$IMG2FBX}{$CLIP[clip].img|urlencode}&new_width=80&new_height=80&cache=1"></td></tr><tr height="70"><td width="100" height="70" valign="middle" align=center><font size="1">{$CLIP[clip].chanteur|wordwrap:18:"<br>":true}<br>{$CLIP[clip].titre|wordwrap:18:"<br>":true}</font></td></tr></table></a></td>
+ <td width="100" height="150"><a href="play_clip.php?clipid={$CLIP[clip].id}&show={$SHOW}&min={$MIN}{if $SHOW=='tous'}&lettre={$LETTRE}{/if}"><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align="center"><img width="80" height="80" border="0" src="{$IMG2FBX}?img={$CLIP[clip].img|urlencode}&width=80&height=80&cache=1"></td></tr><tr height="70"><td width="100" height="70" valign="middle" align=center><font size="1">{$CLIP[clip].chanteur|wordwrap:18:"<br>":true}<br>{$CLIP[clip].titre|wordwrap:18:"<br>":true}</font></td></tr></table></a></td>
{if $smarty.section.clip.iteration is div by 5 AND NOT $smarty.section.files.last}
</tr><tr>
Modified: trunk/module/dailymotion/dailymotion.tpl
===================================================================
--- trunk/module/dailymotion/dailymotion.tpl 2007-05-20 22:42:20 UTC (rev 154)
+++ trunk/module/dailymotion/dailymotion.tpl 2007-05-21 16:17:12 UTC (rev 155)
@@ -8,7 +8,7 @@
{/if}
{/if}
- <td width="100" height="150"><a href="play_dailymotion.php?url={$CLIP[clip].url|urlencode}&show={$SHOW}&min={$MIN}&string={$string}"><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align="center"><img width="80" height="60" border="0" src="{$IMG2FBX}{$CLIP[clip].img|urlencode}&new_width=80&new_height=60&cache=1"></td></tr><tr height="70"><td width="100" height="70" valign="middle" align=center><font size="1">{$CLIP[clip].titre|truncate:30:"":true|wordwrap:15:"<br>":true} ({$CLIP[clip].temps})</font></td></tr></table></a></td>
+ <td width="100" height="150"><a href="play_dailymotion.php?url={$CLIP[clip].url|urlencode}&show={$SHOW}&min={$MIN}&string={$string}"><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align="center"><img width="80" height="60" border="0" src="{$IMG2FBX}?img={$CLIP[clip].img|urlencode}&width=80&height=60&cache=1"></td></tr><tr height="70"><td width="100" height="70" valign="middle" align=center><font size="1">{$CLIP[clip].titre|truncate:30:"":true|wordwrap:15:"<br>":true} ({$CLIP[clip].temps})</font></td></tr></table></a></td>
{if $smarty.section.clip.iteration is div by 5 AND NOT $smarty.section.files.last}
</tr><tr>
Modified: trunk/module/diaporama/explorateur_photo.tpl
===================================================================
--- trunk/module/diaporama/explorateur_photo.tpl 2007-05-20 22:42:20 UTC (rev 154)
+++ trunk/module/diaporama/explorateur_photo.tpl 2007-05-21 16:17:12 UTC (rev 155)
@@ -43,7 +43,7 @@
{assign var="dim" value=$REP|cat:'/'|cat:$files[files]|getimagesize}
{assign var="newdim" value=$dim.0|get_size:$dim.1}
- <td width="100" height="130" valign="middle" align="center"><a href="index1.php?image={$smarty.section.files.index}&rep={$rep_encoded}&start={$MIN}" onfocus='aide="{$files[files]|strip_delimiters|replace:"'":"`"}";'><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align="center" background="fond_cell.gif"><img width="{$newdim.0}" height="{$newdim.1}" border="0" src="{$RACINE_REP}_framework/lib/img_cr.php?local=1&formatw=88&formath=68&img={$REP|cat:'/'|cat:$files[files]|urlencode}"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><font size="1">{$files[files]|truncate:20:"":true|wordwrap:10:"<br>":true|strip_delimiters}</font></td></tr></table></a></td>
+ <td width="100" height="130" valign="middle" align="center"><a href="index1.php?image={$smarty.section.files.index}&rep={$rep_encoded}&start={$MIN}" onfocus='aide="{$files[files]|strip_delimiters|replace:"'":"`"}";'><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align="center" background="fond_cell.gif"><img width="{$newdim.0}" height="{$newdim.1}" border="0" src="{$IMG2FBX}?local=1&width=88&height=68&img={$REP|cat:'/'|cat:$files[files]|urlencode}"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><font size="1">{$files[files]|truncate:20:"":true|wordwrap:10:"<br>":true|strip_delimiters}</font></td></tr></table></a></td>
{/if}
Modified: trunk/module/diaporama/photo.tpl
===================================================================
--- trunk/module/diaporama/photo.tpl 2007-05-20 22:42:20 UTC (rev 154)
+++ trunk/module/diaporama/photo.tpl 2007-05-21 16:17:12 UTC (rev 155)
@@ -14,7 +14,7 @@
<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="#0000003f"><td align="center" valign="middle" width="580" height="462"><img border=0 src="{$IMG2FBX}?img={$REP|cat:'/'|cat:$files.$aff|realpath|urlencode}&quality=max&width=570&height=460&angle={$tourne}&cache=1"></td></tr>
{if $show_band}
Modified: trunk/module/films/catalogue_video.tpl
===================================================================
--- trunk/module/films/catalogue_video.tpl 2007-05-20 22:42:20 UTC (rev 154)
+++ trunk/module/films/catalogue_video.tpl 2007-05-21 16:17:12 UTC (rev 155)
@@ -13,9 +13,9 @@
{/if}
{if $tri=="name" OR $tri=="date" OR $tri=="id"}
- <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}" onfocus='real="R\xE9alisateur";avec="Avec";film="Film";dure="Dur\xE9e";genr="Genre";syno="Synopsis";synopsis="{$result[files].Synopsis|strip_delimiters|replace:"'":"`"|replace:"\"":"``"}";titre="{$result[files].name|strip_delimiters|replace:"'":"`"|replace:"\"":"``"} ({$result[files].sortie|date_format:"%d/%m/%Y"|strip_delimiters|replace:"'":"`"|replace:"\"":"``"})";realisateur="{$result[files].realisateur|strip_delimiters|replace:"'":"`"|replace:"\"":"``"}";acteurs="{$result[files].avec|strip_delimiters|replace:"'":"`"|replace:"\"":"``"}";nationalite="{$result[files].film|strip_delimiters|replace:"'":"`"|replace:"\"":"``"} ({$result[files].production})";genre="{$result[files].genre|strip_delimiters|replace:"'":"`"|replace:"\"":"``"}";duree="{$result[files].Duree|strip_delimiters|replace:"'":"`"|replace:"\"":"``"}";'><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>
+ <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}?img={$result[files].img|urlencode}&width=60&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}" onfocus='real="R\xE9alisateur";avec="Avec";film="Film";dure="Dur\xE9e";genr="Genre";syno="Synopsis";synopsis="{$result[files].Synopsis|strip_delimiters|replace:"'":"`"|replace:"\"":"``"}";titre="{$result[files].name|strip_delimiters|replace:"'":"`"|replace:"\"":"``"} ({$result[files].sortie|date_format:"%d/%m/%Y"|strip_delimiters|replace:"'":"`"|replace:"\"":"``"})";realisateur="{$result[files].realisateur|strip_delimiters|replace:"'":"`"|replace:"\"":"``"}";acteurs="{$result[files].avec|strip_delimiters|replace:"'":"`"|replace:"\"":"``"}";nationalite="{$result[files].film|strip_delimiters|replace:"'":"`"|replace:"\"":"``"} ({$result[files].production})";genre="{$result[files].genre|strip_delimiters|replace:"'":"`"|replace:"\"":"``"}";duree="{$result[files].Duree|strip_delimiters|replace:"'":"`"|replace:"\"":"``"}";'><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>
+ <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}?img={$result[files].img|urlencode}&width=60&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}
@@ -59,7 +59,7 @@
{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>
+ <tr><td width="120" height="160"><img src="{$IMG2FBX}?img={$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}
@@ -74,7 +74,7 @@
<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>
+ <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}?img={$result[films_with].img|urlencode}&width=60&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}
@@ -121,7 +121,7 @@
{/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}" onfocus='real="R\xE9alisateur";avec="Avec";film="Film";dure="Dur\xE9e";genr="Genre";syno="Synopsis";synopsis="{$result[files].Synopsis|strip_delimiters|replace:"'":"`"|replace:"\"":"``"}";titre="{$result[files].name|strip_delimiters|replace:"'":"`"|replace:"\"":"``"} ({$result[files].sortie|date_format:"%d/%m/%Y"|strip_delimiters|replace:"'":"`"|replace:"\"":"``"})";realisateur="{$result[files].realisateur|strip_delimiters|replace:"'":"`"|replace:"\"":"``"}";acteurs="{$result[files].avec|strip_delimiters|replace:"'":"`"|replace:"\"":"``"}";nationalite="{$result[files].film|strip_delimiters|replace:"'":"`"|replace:"\"":"``"} ({$result[files].production})";genre="{$result[files].genre|strip_delimiters|replace:"'":"`"|replace:"\"":"``"}";duree="{$result[files].Duree|strip_delimiters|replace:"'":"`"|replace:"\"":"``"}";'><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>
+ <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}?img={$result[files].img|urlencode}&width=60&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}" onfocus='real="R\xE9alisateur";avec="Avec";film="Film";dure="Dur\xE9e";genr="Genre";syno="Synopsis";synopsis="{$result[files].Synopsis|strip_delimiters|replace:"'":"`"|replace:"\"":"``"}";titre="{$result[files].name|strip_delimiters|replace:"'":"`"|replace:"\"":"``"} ({$result[files].sortie|date_format:"%d/%m/%Y"|strip_delimiters|replace:"'":"`"|replace:"\"":"``"})";realisateur="{$result[files].realisateur|strip_delimiters|replace:"'":"`"|replace:"\"":"``"}";acteurs="{$result[files].avec|strip_delimiters|replace:"'":"`"|replace:"\"":"``"}";nationalite="{$result[files].film|strip_delimiters|replace:"'":"`"|replace:"\"":"``"} ({$result[files].production})";genre="{$result[files].genre|strip_delimiters|replace:"'":"`"|replace:"\"":"``"}";duree="{$result[files].Duree|strip_delimiters|replace:"'":"`"|replace:"\"":"``"}";'><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>
Modified: trunk/module/films/fichefilm.php
===================================================================
--- trunk/module/films/fichefilm.php 2007-05-20 22:42:20 UTC (rev 154)
+++ trunk/module/films/fichefilm.php 2007-05-21 16:17:12 UTC (rev 155)
@@ -136,7 +136,7 @@
$i=1;
$c=count($info['ba']);
foreach($info['ba'] as $ba){
- $CONTENT .= '<td><a href="play.php?toplay='.urlencode($ba['ba']).'&titre='.urlencode($info['nom']).'&type=ba"><table border="0" cellpadding="0" cellspacing="0" width="80" height="100" bgcolor="'.$_COULEUR['COULEUR_FOND_AVERTISSEMENT'].'" abgcolor="'.$_COULEUR['COULEUR_TABLE_SELECTED'].'"><tr height="65"><td width="80" height="65" valign="middle" align="center"><img src="'.$RACINE_REP.'_framework/lib/img_cr.php?local=1&formatw=75&formath=60&img='.urlencode($ba['img']).'" border="0" width="75" height="60"></td></tr><tr height="35"><td width="80" height="35" valign="middle" align="center">'.substr($ba['nom'],0,30).'</td></tr></table></a></td>';
+ $CONTENT .= '<td><a href="play.php?toplay='.urlencode($ba['ba']).'&titre='.urlencode($info['nom']).'&type=ba"><table border="0" cellpadding="0" cellspacing="0" width="80" height="100" bgcolor="'.$_COULEUR['COULEUR_FOND_AVERTISSEMENT'].'" abgcolor="'.$_COULEUR['COULEUR_TABLE_SELECTED'].'"><tr height="65"><td width="80" height="65" valign="middle" align="center"><img src="'.$IMG2FBX.'?local=1&width=75&height=60&img='.urlencode($ba['img']).'" border="0" width="75" height="60"></td></tr><tr height="35"><td width="80" height="35" valign="middle" align="center">'.substr($ba['nom'],0,30).'</td></tr></table></a></td>';
if(($i%5)==0 and $i!=$c){
$CONTENT .= '</tr><tr>';
}
Modified: trunk/module/films/fichefilm.tpl
===================================================================
--- trunk/module/films/fichefilm.tpl 2007-05-20 22:42:20 UTC (rev 154)
+++ trunk/module/films/fichefilm.tpl 2007-05-21 16:17:12 UTC (rev 155)
@@ -1,6 +1,6 @@
{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>
+ <tr><td width="120" height="160"><img src="{$IMG2FBX}?img={$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}{if $_GET.togo=='cine'}<a href="/module/seances/voirsalle.php?salle={$_GET.salle}"> - Retour \xE0 la liste des films du cin\xE9ma</a>{/if}
<br><u>Date de sortie</u> : {$info.date_sortie|date_format:"%d/%m/%Y"}
@@ -18,10 +18,10 @@
{if $smarty.section.ba.first}
<table border="0" cellpadding="0" cellspacing="0" width="500" height="100" align="center"><tr>
{/if}
- <td><a href="play.php?toplay={$ba[ba].ba|urlencode}&titre={$info.nom|urlencode}&type=ba"><table border="0" cellpadding="0" cellspacing="0" width="80" height="100" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="65"><td width="80" height="65" valign="middle" align="center"><img src="{$RACINE_REP}_framework/lib/img_cr.php?local=1&formatw=75&formath=60&img={$ba[ba].img|urlencode}" border="0" width="75" height="60"></td></tr><tr height="35"><td width="80" height="35" valign="middle" align="center">{$ba[ba].nom|truncate:20:"":true}</td></tr></table></a></td>
+ <td><a href="play.php?toplay={$ba[ba].ba|urlencode}&titre={$info.nom|urlencode}&type=ba"><table border="0" cellpadding="0" cellspacing="0" width="80" height="100" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="65"><td width="80" height="65" valign="middle" align="center"><img src="{$IMG2FBX}?local=1&width=75&height=60&img={$ba[ba].img|urlencode}" border="0" width="75" height="60"></td></tr><tr height="35"><td width="80" height="35" valign="middle" align="center">{$ba[ba].nom|truncate:20:"":true}</td></tr></table></a></td>
{if $smarty.section.ba.last}
{if count($ba)>$smarty.section.ba.total}
- <td><a href="{$more2}"><table border="0" cellpadding="0" cellspacing="0" width="80" height="100" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="65"><td width="80" height="65" valign="middle" align="center"><img src="{$RACINE_REP}_framework/lib/img_cr.php?local=1&formatw=75&formath=60&img={'http://a69.g.akamai.net/n/69/10688/v1/img5.allocine.fr/acmedia/skin/AlloCineV5/habillage/affichettemedia.gif'|urlencode}" border="0" width="75" height="60"></td></tr><tr height="35"><td width="80" height="35" valign="middle" align="center">Plus de vid\xE9os</td></tr></table></a></td>
+ <td><a href="{$more2}"><table border="0" cellpadding="0" cellspacing="0" width="80" height="100" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="65"><td width="80" height="65" valign="middle" align="center"><img src="{$IMG2FBX}?local=1&width=75&height=60&img={'http://a69.g.akamai.net/n/69/10688/v1/img5.allocine.fr/acmedia/skin/AlloCineV5/habillage/affichettemedia.gif'|urlencode}" border="0" width="75" height="60"></td></tr><tr height="35"><td width="80" height="35" valign="middle" align="center">Plus de vid\xE9os</td></tr></table></a></td>
{/if}
</tr></table>
{/if}
Modified: trunk/module/films/lecture.php
===================================================================
--- trunk/module/films/lecture.php 2007-05-20 22:42:20 UTC (rev 154)
+++ trunk/module/films/lecture.php 2007-05-21 16:17:12 UTC (rev 155)
@@ -4,9 +4,25 @@
$BACKGROUND = 'none';
$cansetfrontpannel = true;
-
+$LINK['stop']=$MODULE.'films/lecture.php?control=stop';
+$LINK['play']=$MODULE.'films/lecture.php?control=play';
+$LINK['pause']=$MODULE.'films/lecture.php?control=pause';
+$LINK['info']=$MODULE.'films/info.php';
+$LINK['options']=$MODULE.'films/info.php';
+$LINK['blue']=$MODULE.'films/lecture.php?savesignet=1';
+$LINK['red']=$MODULE.'films/lecture.php?next_ss=1';
+$LINK['yellow']=$MODULE.'films/info.php?module=infos';
+$LINK['up']=$MODULE.'films/lecture.php?seek_value=plus';
+$LINK['down']=$MODULE.'films/lecture.php?seek_value=moins';
+
+// BDE - RequestID 1588902
+$LINK['next']=$MODULE.'films/lecture.php?control=next';
+$LINK['prev']=$MODULE.'films/lecture.php?control=previous';
+$LINK['rev']=$MODULE.'films/lecture.php?seek_value=moins';
+$LINK['fwd']=$MODULE.'films/lecture.php?seek_value=plus';
+
if($VLC['type_current']!='webtv' AND $VLC['duree_totale']>=5){
- set_refresh($VLC['duree_restante'], $VLC['duree_restante'].';url=lecture.php?control=stop&signet=noload&theend=1',true);
+ set_refresh($VLC['duree_restante'], $VLC['duree_restante'].';url=lecture.php?control=stop&signet=noload&theend=1');
}
$META['front_panel'] = strtoupper($VLC['etat']);
@@ -212,31 +228,12 @@
}
}
-$LINK['stop']=$MODULE.'films/lecture.php?control=stop';
-$LINK['play']=$MODULE.'films/lecture.php?control=play';
-$LINK['pause']=$MODULE.'films/lecture.php?control=pause';
-$LINK['info']=$MODULE.'films/info.php';
-$LINK['options']=$MODULE.'films/info.php';
-$LINK['blue']=$MODULE.'films/lecture.php?savesignet=1';
-$LINK['red']=$MODULE.'films/lecture.php?next_ss=1';
-$LINK['yellow']=$MODULE.'films/info.php?module=infos';
-$LINK['up']=$MODULE.'films/lecture.php?seek_value=plus';
-$LINK['down']=$MODULE.'films/lecture.php?seek_value=moins';
-
-// BDE - RequestID 1588902
-$LINK['next']=$MODULE.'films/lecture.php?control=next';
-$LINK['prev']=$MODULE.'films/lecture.php?control=previous';
-$LINK['rev']=$MODULE.'films/lecture.php?seek_value=moins';
-$LINK['fwd']=$MODULE.'films/lecture.php?seek_value=plus';
-
-
-
if(isset($message)){
$smarty->assign('AVERTISSEMENT',$message);
$smarty->display('avertissement.tpl');
}else{
if(trim($OSD)==''){
- if($cansetfrontpannel and $VLC['etat']=='playing'){
+ if($cansetfrontpannel and $VLC['etat']=='playing'){
if($vers_fbx>4 AND $VLC['duree_totale']>=5){
set_refresh(2, '2;url=lecture.php');
}
Modified: trunk/module/films/play.php
===================================================================
--- trunk/module/films/play.php 2007-05-20 22:42:20 UTC (rev 154)
+++ trunk/module/films/play.php 2007-05-21 16:17:12 UTC (rev 155)
@@ -122,8 +122,6 @@
$LINK['blue']=$MODULE.'films/lecture.php?savesignet=1';
$LINK['red']=$MODULE.'films/lecture.php?next_ss=1';
$LINK['yellow']=$MODULE.'films/info.php?module=infos';
- $LINK['up']=$MODULE.'films/lecture.php?seek_value=plus';
- $LINK['down']=$MODULE.'films/lecture.php?seek_value=moins';
// BDE - RequestID 1588902
$LINK['next']=$MODULE.'films/lecture.php?control=next';
Modified: trunk/module/guidetv/guidetv.tpl
===================================================================
--- trunk/module/guidetv/guidetv.tpl 2007-05-20 22:42:20 UTC (rev 154)
+++ trunk/module/guidetv/guidetv.tpl 2007-05-21 16:17:12 UTC (rev 155)
@@ -1,7 +1,7 @@
{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 {$EMISSION.debut|date_format:"%A %e %B %Y"} sur {$chaine.nom}</td></tr>
- <tr><td>{if $EMISSION.icone!='http://static.digitalmondadori.fr/gtv/visu'}<img src="{$IMG2FBX}{$EMISSION.icone|urlencode}&cache=1">{else}<img src="{$INTERFACE_REP}noimage.gif">{/if}</td>
+ <tr><td>{if $EMISSION.icone!='http://static.digitalmondadori.fr/gtv/visu'}<img src="{$IMG2FBX}?img={$EMISSION.icone|urlencode}&cache=1">{else}<img src="{$INTERFACE_REP}noimage.gif">{/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'}
Modified: trunk/module/modules/modules.tpl
===================================================================
--- trunk/module/modules/modules.tpl 2007-05-20 22:42:20 UTC (rev 154)
+++ trunk/module/modules/modules.tpl 2007-05-21 16:17:12 UTC (rev 155)
@@ -6,7 +6,7 @@
{/if}
<tr>
- <td align="left" valign="top" width="130"><img width="120" height="90" src="{$IMG2FBX}{$MOD[mod].img|realpath|urlencode}&new_width=120&new_height=90&cache=1"></td>
+ <td align="left" valign="top" width="130"><img width="120" height="90" src="{$IMG2FBX}?img={$MOD[mod].img|realpath|urlencode}&width=120&height=90&cache=1"></td>
<td align="left" valign="top" width="330"><b><u>{$MOD[mod].nom}{if $action=="skin" AND $MOD[mod].current} - Skin actif{/if}</u></b><br>
<b>Version</b> : {$MOD[mod].version}<br>
<b>Description</b> : {$MOD[mod].description}</td>
@@ -33,7 +33,7 @@
{/if}
<tr>
- <td align="left" valign="top" width="120"><img width="120" height="90" src="{$IMG2FBX}{$MOD[mod].img|urlencode}&new_width=120&new_height=90&cache=1"></td>
+ <td align="left" valign="top" width="120"><img width="120" height="90" src="{$IMG2FBX}?img={$MOD[mod].img|urlencode}&width=120&height=90&cache=1"></td>
<td align="left" valign="top" width="360"><b><u>{$MOD[mod].nom}</u></b><br>
<b>Version</b> : {$MOD[mod].version}<br>
<b>Description</b> : {$MOD[mod].description}</td>
Modified: trunk/module/mp3/playlist_audio.tpl
===================================================================
--- trunk/module/mp3/playlist_audio.tpl 2007-05-20 22:42:20 UTC (rev 154)
+++ trunk/module/mp3/playlist_audio.tpl 2007-05-21 16:17:12 UTC (rev 155)
@@ -9,7 +9,7 @@
Auteur : {$info.auteur_flux|strip_tags}<br>
Description : {$info.description|strip_tags}<br>
- <img src="{$IMG2FBX}{$info.image}&cache=1&new_width=150&new_height=150" border="0" width="150" height="150"><br> <br>
+ <img src="{$IMG2FBX}?img={$info.image}&cache=1&width=150&height=150" border="0" width="150" height="150"><br> <br>
<center><u>En cours d'\xE9coute</u></center><br>
Modified: trunk/module/recettes/recettes2.tpl
===================================================================
--- trunk/module/recettes/recettes2.tpl 2007-05-20 22:42:20 UTC (rev 154)
+++ trunk/module/recettes/recettes2.tpl 2007-05-21 16:17:12 UTC (rev 155)
@@ -114,7 +114,7 @@
</tr>
</table>
{else}
-<img src="{$IMG2FBX}{$urlimg}" border="0" alt="" width="512" height="384">
+<img src="{$IMG2FBX}?img={$urlimg}&cache=1&width=512&height=384" border="0" alt="" width="512" height="384">
{/if}
Modified: trunk/module/rss/rss.tpl
===================================================================
--- trunk/module/rss/rss.tpl 2007-05-20 22:42:20 UTC (rev 154)
+++ trunk/module/rss/rss.tpl 2007-05-21 16:17:12 UTC (rev 155)
@@ -12,7 +12,7 @@
<tr><td><a href="index1.php?cat={$cat}&feed={$RSS[liste].id}">
<table width="500" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}">
<tr>
- <td align="left" valign="top" width="120"><img width="120" height="90" src="{$IMG2FBX}{$RSS[liste].img|urlencode}&new_width=120&new_height=90&cache=1"></td>
+ <td align="left" valign="top" width="120"><img width="120" height="90" src="{$IMG2FBX}?img={$RSS[liste].img|urlencode}&width=120&height=90&cache=1"></td>
<td align="left" valign="top" width="380"><b><u>{$RSS[liste].name|truncate:30}</u></b><br>{$RSS[liste].description|truncate:100}</td>
</tr>
</table>
Modified: trunk/module/seances/programme_cine.tpl
===================================================================
--- trunk/module/seances/programme_cine.tpl 2007-05-20 22:42:20 UTC (rev 154)
+++ trunk/module/seances/programme_cine.tpl 2007-05-21 16:17:12 UTC (rev 155)
@@ -6,7 +6,7 @@
{/if}
{section name=FILMS loop=$FILMS max=3 start=$MIN}
- <table border="0" cellpadding="0" cellspacing="0" width="500"><tr><td width="100" height="120" valign="middle" align="center"><img width="90" height="120" border="0" src="{$IMG2FBX}{$FILMS[FILMS].2|urlencode}&new_width=90&new_height=120&cache=1"></td>
+ <table border="0" cellpadding="0" cellspacing="0" width="500"><tr><td width="100" height="120" valign="middle" align="center"><img width="90" height="120" border="0" src="{$IMG2FBX}?img={$FILMS[FILMS].2|urlencode}&width=90&height=120&cache=1"></td>
<td width="400"><a href={$MODULE}films/fichefilm.php?togo=cine&salle={$s}&film={$FILMS[FILMS].0|urlencode}&filmid={$FILMS[FILMS].6}><u>{$FILMS[FILMS].0}</u></a> - {$FILMS[FILMS].3}<br>
<u>Notes</u> : Presse <img src="{$INTERFACE_REP}star{$FILMS[FILMS].5}.gif"> Spectateurs <img src="{$INTERFACE_REP}star{$FILMS[FILMS].4}.gif"><br>
{section name=seance loop=$FILMS[FILMS].1}
Modified: trunk/module/stage6/stage6.tpl
===================================================================
--- trunk/module/stage6/stage6.tpl 2007-05-20 22:42:20 UTC (rev 154)
+++ trunk/module/stage6/stage6.tpl 2007-05-21 16:17:12 UTC (rev 155)
@@ -8,7 +8,7 @@
{/if}
{/if}
- <td width="100" height="150"><a href="play_stage6.php?url={$CLIP[clip].url|urlencode}&show={$SHOW}&min={$MIN}&string={$string}&duree={$CLIP[clip].duree}"><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align="center"><img width="80" height="45" border="0" src="{$IMG2FBX}{$CLIP[clip].img|urlencode}&new_width=80&new_height=45&cache=1"></td></tr><tr height="70"><td width="100" height="70" valign="mid...
[truncated message content] |