<?php
function getContenuURL($url,$estImg='')
{
$contenuPage = '';
if (methodscan != '1') {
$opts = array('http'=>array('method'=>"GET",'header'=>"Accept-language: en\r\n" ."Cookie: foo=bar\r\n"));
$context = stream_context_create($opts);
$contenuPage = file_get_contents($url, false, $context);
}else{
$ua = 'Mozilla/5.0 (Windows NT 6.1; rv:22.0) Gecko/20100101 Firefox/22.0';
$ch = curl_init();
curl_setopt($ch, CURLOPT_USERAGENT, $ua);
curl_setopt($ch, CURLOPT_URL, $url );
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true );
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
$contenuPage = curl_exec($ch);
curl_close ( $ch );
}
return $contenuPage;
}
function getEpression($chaine,$expression)
{
preg_match_all($expression,$chaine, $trouve);
if( count($trouve[0])!=0 )
{
return($trouve[1]);
}
else return(false);
}
require_once("prez_inc/generateur/include/".$page.".php");
include_once("prez_inc/generateur/functions.net.php");
function Get_List($url,$page)
{
$erreur = '';
$list = '';
if( $contenuNet = getContenuURL($url) ){
if($resultats = getEpression($contenuNet,'#'.lIST_TABLE.'#is'))
{
$resultats = $resultats[0];
if(preg_match_all('#'.lIST_ISOLE.'#is',$resultats, $lignesResultats))
{
$i = 0;
foreach($lignesResultats[0] as $unResultat)
{
if($estUn=getEpression($unResultat,'#'.lIST_LIGNE.'#is'))
{
switch ($page) {
case 'film'; case 'serie'; case 'album'; case 'dvd_spectacle'; case 'ebook'; case 'log'; case 'film_x'; case 'blu_ray'; case 'magazine'; case 'youtube'; case 'jeu';
if( $afficheTmp = getEpression($unResultat,'#'.lIST_AFFICHE1.'#is') )
{
$list[$i]['affiche'] = lIST_AFFICHE_SUP1.$afficheTmp[0].lIST_AFFICHE_EXT1;
}elseif($afficheTmp = getEpression($unResultat,'#'.lIST_AFFICHE2.'#is') )
{
$list[$i]['affiche'] = lIST_AFFICHE_SUP2.$afficheTmp[0].lIST_AFFICHE_EXT2;
}else{
require_once('./auth.php');
$list[$i]['affiche'] = HTTP_SERVER.NO_AFFICHE;
}
break;
case 'manga';
if( $afficheTmp = getEpression($unResultat,'#'.lIST_AFFICHE1.'#is') )
{
$list[$i]['affiche'] = '<h4 class="dvd">'.$afficheTmp[0].'</h4>';
}else{}
break;}
switch ($page) {
case 'film'; case 'serie'; case 'film_x';
if( $titreTmp = getEpression($unResultat,'#'.lIST_TITRE1.'#is') )
{
$list[$i]['titre'] = '<strong><u>'.lIST_TEXTE_LIGNE_0.'</u> :</strong> <span>'.html_entities_1(strip_tags($titreTmp[0])).'</span><br>';
$list[$i]['titres'] = html_entities_1(strip_tags($titreTmp[0]));
}elseif( $titreTmp = getEpression($unResultat,'#'.lIST_TITRE2.'#is') )
{
$list[$i]['titre'] = '<strong><u>'.lIST_TEXTE_LIGNE_0.'</u> :</strong> <span>'.html_entities_1(strip_tags($titreTmp[0])).'</span><br>';
$list[$i]['titres'] = html_entities_1(strip_tags($titreTmp[0]));
}
break;
case 'album'; case 'dvd_spectacle'; case 'ebook'; case 'blu_ray'; case 'magazine';
if( $titreTmp = getEpression($unResultat,'#'.lIST_TITRE1.'#is') )
{
$list[$i]['titre'] = '<strong><u>'.lIST_TEXTE_LIGNE_0.'</u> :</strong> <span>'.strip_tags(net_titre_amazon($titreTmp[0])).'</span><br>';
$list[$i]['titres'] = strip_tags(net_titre_amazon($titreTmp[0]));
}elseif( $titreTmp = getEpression($unResultat,'#'.lIST_TITRE2.'#is') )
{
$list[$i]['titre'] = '<strong><u>'.lIST_TEXTE_LIGNE_0.'</u> :</strong> <span>'.strip_tags(net_titre_amazon($titreTmp[0])).'</span><br>';
$list[$i]['titres'] = strip_tags(net_titre_amazon($titreTmp[0]));
}elseif( $titreTmp = getEpression($unResultat,'#'.lIST_TITRE3.'#is') )
{
$list[$i]['titre'] = '<strong><u>'.lIST_TEXTE_LIGNE_0.'</u> :</strong> <span>'.strip_tags(net_titre_amazon($titreTmp[0])).'</span><br>';
$list[$i]['titres'] = strip_tags(net_titre_amazon($titreTmp[0]));
}
break;
case 'log';
if( $titreTmp = getEpression($unResultat,'#'.lIST_TITRE1.'#is') )
{
$list[$i]['titre'] = '<strong><u>'.lIST_TEXTE_LIGNE_0.'</u> :</strong> <span>'.html_entities_1(strip_tags(net_titre_amazon($titreTmp[0]))).'</span><br>';
$list[$i]['titres'] = html_entities_1(strip_tags(net_titre_amazon($titreTmp[0])));
}elseif( $titreTmp = getEpression($unResultat,'#'.lIST_TITRE2.'#is') )
{
$list[$i]['titre'] = '<strong><u>'.lIST_TEXTE_LIGNE_0.'</u> :</strong> <span>'.html_entities_1(strip_tags(net_titre_amazon($titreTmp[0]))).'</span><br>';
$list[$i]['titres'] = html_entities_1(strip_tags(net_titre_amazon($titreTmp[0])));
}elseif( $titreTmp = getEpression($unResultat,'#'.lIST_TITRE3.'#is') )
{
$list[$i]['titre'] = '<strong><u>'.lIST_TEXTE_LIGNE_0.'</u> :</strong> <span>'.html_entities_1(strip_tags(net_titre_amazon($titreTmp[0]))).'</span><br>';
$list[$i]['titres'] = html_entities_1(strip_tags(net_titre_amazon($titreTmp[0])));
}
break;
case 'youtube';
if( $titreTmp = getEpression($unResultat,'#'.lIST_TITRE1.'#is') )
{
$list[$i]['titre'] = '<strong><u>'.lIST_TEXTE_LIGNE_0.'</u> :</strong> <span>'.html_entities_1(strip_tags($titreTmp[0])).'</span><br>';
$list[$i]['titres'] = strip_tags($titreTmp[0]);
}elseif( $titreTmp = getEpression($unResultat,'#'.lIST_TITRE2.'#is') )
{
$list[$i]['titre'] = '<strong><u>'.lIST_TEXTE_LIGNE_0.'</u> :</strong> <span>'.html_entities_1(strip_tags($titreTmp[0])).'</span><br>';
$list[$i]['titres'] = strip_tags($titreTmp[0]);
}
break;
case 'manga';
if( $titreTmp = getEpression($unResultat,'#'.lIST_TITRE1.'#is') )
{
$list[$i]['titre'] = html_entities_1(strip_tags($titreTmp[0]));
}elseif( $titreTmp = getEpression($unResultat,'#'.lIST_TITRE2.'#is') )
{
$list[$i]['titre'] = html_entities_1(strip_tags($titreTmp[0]));
}
break;
case 'jeu';
if( $titreTmp = getEpression($unResultat,'#'.lIST_TITRE1.'#is') )
{
$list[$i]['titre'] = strip_tags($titreTmp[0]);
}elseif( $titreTmp = getEpression($unResultat,'#'.lIST_TITRE2.'#is') )
{
$list[$i]['titre'] = html_entities_1(strip_tags($titreTmp[0]));
}
break;}
switch ($page) {
case 'magazine'; case 'film'; case 'serie'; case 'film_x'; case 'log'; case 'album'; case 'dvd_spectacle'; case 'blu_ray'; case 'ebook'; case 'manga'; case 'youtube';
if( $idTmp = getEpression($unResultat,'#'.lIST_ID.'#is') )
{
$list[$i]['id'] = lIST_URL_ID.strip_tags($idTmp[0]).lIST_URL_ID_EXT;
}
break;
case 'jeu';
if( $idTmp = getEpression($unResultat,'#'.lIST_ID.'#is') )
{
$list[$i]['id'] = lIST_URL_ID.convBase($idTmp[0]).lIST_URL_ID_EXT;
}
break;}
switch ($page) {
case 'magazine'; case 'film'; case 'serie'; case 'film_x'; case 'album'; case 'dvd_spectacle'; case 'jeu'; case 'manga'; case 'youtube';
if( $ligne1Tmp = getEpression($unResultat,'#'.lIST_LIGNE_1.'#is') )
{
$list[$i]['ligne1'] = '<strong><u>'.lIST_TEXTE_LIGNE_1.'</u> :</strong> <span>'.html_entities_1(strip_tags(net_jaquette($ligne1Tmp[0]))).'</span><br>';
}else{
$list[$i]['ligne1'] = false;
}
break;
case 'blu_ray';
if( $ligne1Tmp = getEpression($unResultat,'#'.lIST_LIGNE_1.'#is') )
{
$list[$i]['ligne1'] = '<strong><u>'.lIST_TEXTE_LIGNE_1.'</u> :</strong> <span>'.html_entities_1(strip_tags(net_par_amazon(net_jaquette($ligne1Tmp[0])))).'</span><br>';
}else{
$list[$i]['ligne1'] = false;
}
break;
case 'ebook';
if( $ligne1Tmp = getEpression($unResultat,'#'.lIST_LIGNE_1.'#is') )
{
$list[$i]['ligne1'] = '<strong><u>'.lIST_TEXTE_LIGNE_1.'</u> :</strong> <span>'.html_entities_1(strip_tags(net_par_amazon(net_jaquette($ligne1Tmp[0])))).'</span><br>';
}else{
$list[$i]['ligne1'] = false;
}
break;
case 'log';
if( $ligne1Tmp = getEpression($unResultat,'#'.lIST_LIGNE_1.'#is') )
{
$list[$i]['ligne1'] = '<strong><u>'.lIST_TEXTE_LIGNE_1.'</u> :</strong> <span>'.html_entities_1(strip_tags(utf8_encode($ligne1Tmp[0]))).'</span><br>';
}else{
$list[$i]['ligne1'] = false;
}
break;}
switch ($page) {
case 'film'; case 'serie'; case 'film_x'; case 'dvd_spectacle'; case 'jeu'; case 'manga';
if($ligne2Tmp = getEpression($unResultat,'#'.lIST_LIGNE_2.'#is') )
{
$list[$i]['ligne2'] = '<strong><u>'.lIST_TEXTE_LIGNE_2.'</u> :</strong> <span>'.html_entities_1(strip_tags($ligne2Tmp[0])).'</span><br>';
}else{
$list[$i]['ligne2'] = false;
}
break;
case 'youtube';
if($ligne2Tmp = getEpression($unResultat,'#'.lIST_LIGNE_2.'#is') )
{
$list[$i]['ligne2'] = '<strong><u>'.lIST_TEXTE_LIGNE_2.'</u> :</strong> <span>il y a '.html_entities_1(strip_tags($ligne2Tmp[0])).'</span><br>';
}else{
$list[$i]['ligne2'] = false;
}
break;
case 'album';
if($ligne2Tmp = getEpression($unResultat,'#'.lIST_LIGNE_2_a.'#is') )
{
$list[$i]['ligne2'] = '<strong><u>'.lIST_TEXTE_LIGNE_2.'</u> :</strong> <span>'.html_entities_1(strip_tags($ligne2Tmp[0])).'</span><br>';
}elseif($ligne2Tmp = getEpression($unResultat,'#'.lIST_LIGNE_2_b.'#is') )
{
$list[$i]['ligne2'] = '<strong><u>'.lIST_TEXTE_LIGNE_2.'</u> :</strong> <span>'.html_entities_1(strip_tags($ligne2Tmp[0])).'</span><br>';
}else{
$list[$i]['ligne2'] = false;
}
break;
case 'log';
if($ligne2Tmp = getEpression($unResultat,'#'.lIST_LIGNE_2.'#is') )
{
$list[$i]['ligne2'] = '<strong><u>'.lIST_TEXTE_LIGNE_2.'</u> :</strong> <span>'.html_entities_1(strip_tags($ligne2Tmp[0])).'</span><br>';
}else{
$list[$i]['ligne2'] = false;
}
break;
case 'magazine';
if($ligne2Tmp = getEpression($unResultat,'#'.lIST_LIGNE_2.'#is') )
{
$list[$i]['ligne2'] = '<strong><u>'.lIST_TEXTE_LIGNE_2.'</u> :</strong> <span>'.html_entities_1(strip_tags($ligne2Tmp[0])).'</span><br>';
}else{
$list[$i]['ligne2'] = false;
}
break;
case 'blu_ray';
if($ligne2Tmp = getEpression($unResultat,'#'.lIST_LIGNE_2.'#is') )
{
$list[$i]['ligne2'] = '<strong><u>'.lIST_TEXTE_LIGNE_2.'</u> :</strong> <span>'.html_entities_1(strip_tags($ligne2Tmp[0])).'</span><br>';
}else{
$list[$i]['ligne2'] = false;
}
break;
case 'ebook';
if($ligne2Tmp = getEpression($unResultat,'#'.lIST_LIGNE_2.'#is') )
{
$list[$i]['ligne2'] = '<strong><u>'.lIST_TEXTE_LIGNE_2.'</u> :</strong> <span>'.html_entities_1(strip_tags($ligne2Tmp[0])).'</span><br>';
}else{
$list[$i]['ligne2'] = false;
}
break;}
if($ligne3Tmp = getEpression($unResultat,'#'.lIST_LIGNE_3.'#is') )
{
$list[$i]['ligne3'] = '<strong><u>'.lIST_TEXTE_LIGNE_3.'</u> :</strong> <span>'.html_entities_1(strip_tags($ligne3Tmp[0])).'</span><br>';
$list[$i]['ligne3a'] = '<font color="#ff0000"><b>'.html_entities_1(strip_tags($ligne3Tmp[0])).'</b></font>';
}else{
$list[$i]['ligne3'] = false;
$list[$i]['ligne3a'] = false;
}
if($ligne4Tmp = getEpression($unResultat,'#'.lIST_LIGNE_4.'#is') )
{
$list[$i]['ligne4'] = '<strong><u>'.lIST_TEXTE_LIGNE_4.'</u> :</strong> <span>'.html_entities_1(strip_tags($ligne4Tmp[0])).'</span><br>';
}else{
$list[$i]['ligne4'] = false;
}
$count = $i;
$i++;
}
}
}
}
}else $erreur[] = "Impossible de lire la page.";
return(array($list,$erreur,$count));
}
function getInfo($url)
{
$erreur = '';
if( $contenuNet = getContenuURL($url) )
{
list($page,$erreurs) = Scan_Resultat($contenuNet);
if(!empty($date))
{
$album['date'] = $date;
}
if(!empty($erreurs))
{
$erreur = array_merge($erreur,$erreurs);
}
}
else $erreur[] = "impossible de lire la page";
return(array($page,$erreur));
}
function Scan_Resultat($url,$page)
{
$erreur = "";
$scan = "";
if( $contenuUrl = getContenuURL($url) )
{
switch ($page) {
case 'album'; case 'dvd_spectacle'; case 'ebook'; case 'jeu'; case 'blu_ray';
if( $titreTmp = getEpression($contenuUrl,'#'.RESULTAT_TITRE_1.'#is') )
{
$scan['titre'] = strip_tags(remove_space(net_titre_amazon($titreTmp[0])));
}elseif($titreTmp = getEpression($contenuUrl,'#'.RESULTAT_TITRE_2.'#is') )
{
$scan['titre'] = strip_tags(remove_space(net_titre_amazon($titreTmp[0])));
}elseif($titreTmp = getEpression($contenuUrl,'#'.RESULTAT_TITRE_3.'#is') )
{
$scan['titre'] = strip_tags(remove_space(net_titre_amazon($titreTmp[0])));
}
break;
case 'log';
if( $titreTmp = getEpression($contenuUrl,'#'.RESULTAT_TITRE_1.'#is') )
{
$scan['titre'] = html_entities_1(strip_tags(remove_space(net_titre_amazon($titreTmp[0]))));
}elseif($titreTmp = getEpression($contenuUrl,'#'.RESULTAT_TITRE_2.'#is') )
{
$scan['titre'] = html_entities_1(strip_tags(remove_space(net_titre_amazon($titreTmp[0]))));
}elseif($titreTmp = getEpression($contenuUrl,'#'.RESULTAT_TITRE_3.'#is') )
{
$scan['titre'] = html_entities_1(strip_tags(remove_space(net_titre_amazon($titreTmp[0]))));
}
break;
case 'youtube';
if( $titreTmp = getEpression($contenuUrl,'#'.RESULTAT_TITRE_1.'#is') )
{
$scan['titre'] = html_entities_1(strip_tags(remove_space(net_titre_amazon($titreTmp[0]))));
}
break;
case 'film'; case 'serie'; case 'manga'; case 'film_x'; case 'magazine';
if( $titreTmp = getEpression($contenuUrl,'#'.RESULTAT_TITRE_1.'#is') )
{
$scan['titre'] = html_entities_1(strip_tags(remove_space($titreTmp[0])));
}elseif($titreTmp = getEpression($contenuUrl,'#'.RESULTAT_TITRE_2.'#is') )
{
$scan['titre'] = html_entities_1(strip_tags(remove_space($titreTmp[0])));
}
break;}
switch ($page) {
case 'film_x';
if( $imageTmp = getEpression($contenuUrl,'#'.RESULTAT_IMAGE.'#is') )
{
$scan['image'] = RESULTAT_URL_IMAGE_DEBUT .net_img_film_x($imageTmp[0]) .RESULTAT_URL_IMAGE_FIN;
$scan['image_'] = RESULTAT_URL_IMAGE_DEBUT .net_img_film_x($imageTmp[0]) .RESULTAT_URL_IMAGE_FIN;
}else{
require_once('./auth.php');
$scan['image'] = HTTP_SERVER.RESULTAT_NO_IMAGE;
$scan['image_'] = HTTP_SERVER.RESULTAT_NO_IMAGE;
}
break;
case 'jeu';
if( $imageTmp = getEpression($contenuUrl,'#'.RESULTAT_IMAGE1.'#is') )
{
$scan['image'] = RESULTAT_URL_IMAGE_DEBUT1 .$imageTmp[0] .RESULTAT_URL_IMAGE_FIN1;
$scan['image_'] = RESULTAT_URL_IMAGE_DEBUT1 .$imageTmp[0] .RESULTAT_URL_IMAGE_FIN1;
}elseif( $imageTmp = getEpression($contenuUrl,'#'.RESULTAT_IMAGE2.'#is') )
{
$scan['image'] = RESULTAT_URL_IMAGE_DEBUT2 .$imageTmp[0] .RESULTAT_URL_IMAGE_FIN2;
$scan['image_'] = RESULTAT_URL_IMAGE_DEBUT2 .$imageTmp[0] .RESULTAT_URL_IMAGE_FIN2;
}elseif( $imageTmp = getEpression($contenuUrl,'#'.RESULTAT_IMAGE3.'#is') )
{
$scan['image'] = RESULTAT_URL_IMAGE_DEBUT3 .$imageTmp[0] .RESULTAT_URL_IMAGE_FIN3;
$scan['image_'] = RESULTAT_URL_IMAGE_DEBUT3 .$imageTmp[0] .RESULTAT_URL_IMAGE_FIN3;
}elseif( $imageTmp = getEpression($contenuUrl,'#'.RESULTAT_IMAGE4.'#is') )
{
$scan['image'] = RESULTAT_URL_IMAGE_DEBUT4 .$imageTmp[0] .RESULTAT_URL_IMAGE_FIN4;
$scan['image_'] = RESULTAT_URL_IMAGE_DEBUT4 .$imageTmp[0] .RESULTAT_URL_IMAGE_FIN4;
}elseif( $imageTmp = getEpression($contenuUrl,'#'.RESULTAT_IMAGE5.'#is') )
{
$scan['image'] = RESULTAT_URL_IMAGE_DEBUT5.net_img_jeu($imageTmp[0]) .RESULTAT_URL_IMAGE_FIN5;
$scan['image_'] = RESULTAT_URL_IMAGE_DEBUT5.net_img_jeu($imageTmp[0]) .RESULTAT_URL_IMAGE_FIN5;
}elseif( $imageTmp = getEpression($contenuUrl,'#'.RESULTAT_IMAGE6.'#is') )
{
$scan['image'] = RESULTAT_URL_IMAGE_DEBUT6.net_img_jeu($imageTmp[0]) .RESULTAT_URL_IMAGE_FIN6;
$scan['image_'] = RESULTAT_URL_IMAGE_DEBUT6.net_img_jeu($imageTmp[0]) .RESULTAT_URL_IMAGE_FIN6;
}else{
require_once('./auth.php');
$scan['image'] = HTTP_SERVER.RESULTAT_NO_IMAGE;
$scan['image_'] = HTTP_SERVER.RESULTAT_NO_IMAGE;
}
break;
case 'film'; case 'serie';
if( $imageTmp = getEpression($contenuUrl,'#'.RESULTAT_IMAGE1.'#is') )
{
$scan['image'] = RESULTAT_URL_IMAGE_DEBUT1 .$imageTmp[0] .RESULTAT_URL_IMAGE_FIN1;
$scan['image'] = str_replace("r_215_290/","",$scan['image']);
$scan['image_'] = $scan['image'];
}elseif( $imageTmp = getEpression($contenuUrl,'#'.RESULTAT_IMAGE2.'#is') )
{
$scan['image'] = RESULTAT_URL_IMAGE_DEBUT2 .$imageTmp[0] .RESULTAT_URL_IMAGE_FIN2;
$scan['image_'] = RESULTAT_URL_IMAGE_DEBUT2 .$imageTmp[0] .RESULTAT_URL_IMAGE_FIN2;
}elseif( $imageTmp = getEpression($contenuUrl,'#'.RESULTAT_IMAGE3.'#is') )
{
$scan['image'] = RESULTAT_URL_IMAGE_DEBUT3 .$imageTmp[0] .RESULTAT_URL_IMAGE_FIN3;
$scan['image_'] = RESULTAT_URL_IMAGE_DEBUT3 .$imageTmp[0] .RESULTAT_URL_IMAGE_FIN3;
}elseif( $imageTmp = getEpression($contenuUrl,'#'.RESULTAT_IMAGE4.'#is') )
{
$scan['image'] = RESULTAT_URL_IMAGE_DEBUT4 .$imageTmp[0] .RESULTAT_URL_IMAGE_FIN4;
$scan['image_'] = RESULTAT_URL_IMAGE_DEBUT4 .$imageTmp[0] .RESULTAT_URL_IMAGE_FIN4;
}elseif( $imageTmp = getEpression($contenuUrl,'#'.RESULTAT_IMAGE5.'#is') )
{
$scan['image'] = RESULTAT_URL_IMAGE_DEBUT5 .$imageTmp[0] .RESULTAT_URL_IMAGE_FIN5;
$scan['image_'] = RESULTAT_URL_IMAGE_DEBUT5 .$imageTmp[0] .RESULTAT_URL_IMAGE_FIN5;
}else{
require_once('./auth.php');
$scan['image'] = HTTP_SERVER.RESULTAT_NO_IMAGE;
$scan['image_'] = HTTP_SERVER.RESULTAT_NO_IMAGE;
}
break;
case 'magazine'; case 'log'; case 'album'; case 'dvd_spectacle'; case 'ebook'; case 'manga'; case 'blu_ray';
if( $imageTmp = getEpression($contenuUrl,'#'.RESULTAT_IMAGE1.'#is') )
{
$scan['image'] = RESULTAT_URL_IMAGE_DEBUT1 .$imageTmp[0] .RESULTAT_URL_IMAGE_FIN1;
$scan['image_'] = RESULTAT_URL_IMAGE_DEBUT1 .$imageTmp[0] .RESULTAT_URL_IMAGE_FIN1;
}elseif( $imageTmp = getEpression($contenuUrl,'#'.RESULTAT_IMAGE2.'#is') )
{
$scan['image'] = RESULTAT_URL_IMAGE_DEBUT2 .$imageTmp[0] .RESULTAT_URL_IMAGE_FIN2;
$scan['image_'] = RESULTAT_URL_IMAGE_DEBUT2 .$imageTmp[0] .RESULTAT_URL_IMAGE_FIN2;
}elseif( $imageTmp = getEpression($contenuUrl,'#'.RESULTAT_IMAGE3.'#is') )
{
$scan['image'] = RESULTAT_URL_IMAGE_DEBUT3 .$imageTmp[0] .RESULTAT_URL_IMAGE_FIN3;
$scan['image_'] = RESULTAT_URL_IMAGE_DEBUT3 .$imageTmp[0] .RESULTAT_URL_IMAGE_FIN3;
}elseif( $imageTmp = getEpression($contenuUrl,'#'.RESULTAT_IMAGE4.'#is') )
{
$scan['image'] = RESULTAT_URL_IMAGE_DEBUT4 .$imageTmp[0] .RESULTAT_URL_IMAGE_FIN4;
$scan['image_'] = RESULTAT_URL_IMAGE_DEBUT4 .$imageTmp[0] .RESULTAT_URL_IMAGE_FIN4;
}elseif( $imageTmp = getEpression($contenuUrl,'#'.RESULTAT_IMAGE5.'#is') )
{
$scan['image'] = RESULTAT_URL_IMAGE_DEBUT5 .$imageTmp[0] .RESULTAT_URL_IMAGE_FIN5;
$scan['image_'] = RESULTAT_URL_IMAGE_DEBUT5 .$imageTmp[0] .RESULTAT_URL_IMAGE_FIN5;
}else{
require_once('./auth.php');
$scan['image'] = HTTP_SERVER.RESULTAT_NO_IMAGE;
$scan['image_'] = HTTP_SERVER.RESULTAT_NO_IMAGE;
}
break;
}
switch ($page) {
case 'log' :
if( $resumeTmp = getEpression($contenuUrl,'#'.RESULTAT_RESUME_REDAC.'#is') )
{
$scan['resume_redac'] = "<h2><b><u>L'avis de la rédaction</u></b></h2><br /><br />".html_entities_1(strip_tags(remove_space(net_log($resumeTmp[0]))))."<br /><br />";
$scan['resume_redac_'] = "[b][u]L'avis de la rédaction[/u][/b]\n\n".html_entities_1(strip_tags(nl2br_revert2(remove_space(net_log($resumeTmp[0])))))."\n\n";
}else{
$scan['resume_redac'] = false;
$scan['resume_redac_'] = false;
}
if( $resumeTmp = getEpression($contenuUrl,'#'.RESULTAT_RESUME.'#is') )
{
$scan['resume'] = $scan['resume_redac'].html_entities_1(strip_tags(remove_space(net_log($resumeTmp[0]))));
$scan['resume_'] = $scan['resume_redac_'].html_entities_1(strip_tags(nl2br_revert2(remove_space(net_log($resumeTmp[0])))));
}else{
$scan['resume'] = 'Aucun Synopsis ...';
$scan['resume_'] = 'Aucun Synopsis ...';
}
break;
case 'jeu' :
if( $resumeTmp = getEpression($contenuUrl,'#'.RESULTAT_RESUME.'#is') )
{
$scan['resume'] = html_entities_1(trim(remove_space(net_jeu($resumeTmp[0]))));
$scan['resume_'] = html_entities_1(trim(remove_space(net_jeu($resumeTmp[0]))));
}else{
$scan['resume'] = 'Aucun Synopsis ...';
$scan['resume_'] = 'Aucun Synopsis ...';
}
break;
case 'film'; case 'serie'; case 'film_x';
if( $resumeTmp = getEpression($contenuUrl,'#'.RESULTAT_RESUME.'#is') )
{
$scan['resume'] = html_entities_1(strip_tags(remove_space(trim(net_resume_allo($resumeTmp[0])))));
$scan['resume_'] = html_entities_1(strip_tags(remove_space(trim(net_resume_allo($resumeTmp[0])))));
}else{
$scan['resume'] = 'Aucun Synopsis ...';
$scan['resume_'] = 'Aucun Synopsis ...';
}
break;
case 'dvd_spectacle'; case 'blu_ray';
if( $resumeTmp = getEpression($contenuUrl,'#'.RESULTAT_RESUME_1.'#is') )
{
$scan['resume'] = strip_tags(trim($resumeTmp[0]));
$scan['resume_'] = strip_tags(trim($resumeTmp[0]));
}elseif( $resumeTmp = getEpression($contenuUrl,'#'.RESULTAT_RESUME_2.'#is') )
{
$scan['resume'] = strip_tags(remove_space(trim(net_amazon1($resumeTmp[0]))));
$scan['resume_'] = strip_tags(remove_space(trim(net_amazon2($resumeTmp[0]))));
}elseif( $resumeTmp = getEpression($contenuUrl,'#'.RESULTAT_RESUME_3.'#is') )
{
$scan['resume'] = remove_space(trim(net_amazon1($resumeTmp[0])));
$scan['resume_'] = remove_space(trim(net_amazon2($resumeTmp[0])));
}else{
$scan['resume'] = 'Aucun Synopsis ...';
$scan['resume_'] = 'Aucun Synopsis ...';
}
break;
case 'ebook';
if( $resumeTmp = getEpression($contenuUrl,'#'.RESULTAT_RESUME_1.'#is') )
{
$scan['resume'] = strip_tags(trim($resumeTmp[0]));
$scan['resume_'] = strip_tags(trim($resumeTmp[0]));
}elseif( $resumeTmp = getEpression($contenuUrl,'#'.RESULTAT_RESUME_2.'#is') )
{
$scan['resume'] = strip_tags(remove_space(trim(net_amazon1(utf8_urldecode($resumeTmp[0])))));
$scan['resume_'] = strip_tags(remove_space(trim(net_amazon2(utf8_urldecode($resumeTmp[0])))));
}elseif( $resumeTmp = getEpression($contenuUrl,'#'.RESULTAT_RESUME_3.'#is') )
{
$scan['resume'] = remove_space(trim(net_amazon1($resumeTmp[0])));
$scan['resume_'] = remove_space(trim(net_amazon2($resumeTmp[0])));
}else{
$scan['resume'] = 'Aucun Synopsis ...';
$scan['resume_'] = 'Aucun Synopsis ...';
}
break;
case 'magazine';
if( $resumeTmp = getEpression($contenuUrl,'#'.RESULTAT_RESUME.'#is') )
{
$scan['resume'] = html_entities_1(strip_tags(trim(net_magazine($resumeTmp[0]))));
$scan['resume_'] = html_entities_1(strip_tags(trim(net_magazine_($resumeTmp[0]))));
}else{
$scan['resume'] = 'Aucun Synopsis ...';
$scan['resume_'] = 'Aucun Synopsis ...';
}
break;
case 'manga';
if( $resumeTmp = getEpression($contenuUrl,'#'.RESULTAT_RESUME.'#is') )
{
$scan['resume'] = html_entities_1(strip_tags($resumeTmp[0]));
$scan['resume_'] = html_entities_1(strip_tags(nl2br_revert2($resumeTmp[0])));
}else{
$scan['resume'] = 'Aucun Synopsis ...';
$scan['resume_'] = 'Aucun Synopsis ...';
}
break;}
switch ($page) {
case 'jeu' : case 'log' :
if( $ligne_1Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_1.'#is') )
{
$scan['ligne_1'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_1.'</u> :</b> '.html_entities_1(strip_tags(trim(remove_space($ligne_1Tmp[0])))) .'<br />';
$scan['ligne_1_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_1.'[/u] :[/b] '.html_entities_1(strip_tags(trim(remove_space($ligne_1Tmp[0])))) ."\n";
$scan['ligne_1b'] = ' ['.strip_tags(trim(remove_space($ligne_1Tmp[0]))) .']';
}else{
$scan['ligne_1'] = false;
}
break;
case 'dvd_spectacle'; case 'ebook'; case 'film'; case 'serie'; case 'manga'; case 'film_x'; case 'blu_ray'; case 'magazine';
if( $ligne_1Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_1.'#is') )
{
$scan['ligne_1'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_1.'</u> :</b> '.html_entities_1(strip_tags(trim(remove_space($ligne_1Tmp[0])))) .'<br />';
$scan['ligne_1_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_1.'[/u] :[/b] '.html_entities_1(strip_tags(trim(remove_space($ligne_1Tmp[0])))) ."\n";
}else{
$scan['ligne_1'] = false;
}
break;
case 'youtube';
if( $ligne_1Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_1.'#is') )
{
$scan['ligne_1'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_1.'</u> :</b> '.html_entities_1(strip_tags(trim(remove_space($ligne_1Tmp[0])))) .'<br />';
}else{
$scan['ligne_1'] = false;
}
break;}
switch ($page) {
case 'album';
if( $ligne_2Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_2.'#is') )
{
$scan['ligne_2'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_2.'</u> :</b> '.html_entities_1(strip_tags(trim(net_album_1($ligne_2Tmp[0])))) .'<br />';
$scan['ligne_2_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_2.'[/u] :[/b] '.html_entities_1(strip_tags(trim(net_album_1($ligne_2Tmp[0])))) ."\n";
}elseif(preg_match_all('#'.RESULTAT_LIGNE_2_1.'#is',$contenuUrl,$ligne_2))
{
$scan['ligne_2'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_2.' :</u></b> '.html_entities_1(strip_tags(trim(net_album_1($ligne_2Tmp[0])))) .'<br />';
$scan['ligne_2_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_2.'[/u] :[/b] '.html_entities_1(strip_tags(trim(net_album_1($ligne_2Tmp[0])))) ."\n";
}elseif( $ligne_2Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_2_2.'#is') )
{
$scan['ligne_2'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_2.' :</u></b> '.html_entities_1(strip_tags(trim(net_album_1($ligne_2Tmp[0])))) .'<br />';
$scan['ligne_2_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_2.'[/u] :[/b] '.html_entities_1(strip_tags(trim(net_album_1($ligne_2Tmp[0])))) ."\n";
}else{
$scan['ligne_2'] = false;
$scan['ligne_2_'] = false;
}
break;
case 'youtube';
if( $ligne_2Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_2.'#is') )
{
$scan['ligne_2'] = html_entities_1(strip_tags(trim(net_album_1($ligne_2Tmp[0]))));
}else{
$scan['ligne_2'] = false;
}
break;
case 'dvd_spectacle'; case 'blu_ray';
if( $ligne_2Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_2.'#is') )
{
$scan['ligne_2'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_2.'</u> :</b> '.html_entities_1(strip_tags(net_album_1(net_par_amazon($ligne_2Tmp[0])))).'<br />';
$scan['ligne_2_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_2.'[/u] :[/b] '.html_entities_1(strip_tags(net_album_1(net_par_amazon($ligne_2Tmp[0]))))."\n";
}else{
$scan['ligne_2'] = false;
$scan['ligne_2_'] = false;
}
break;
case 'ebook';
if( $ligne_2Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_2.'#is') )
{
$scan['ligne_2'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_2.'</u> :</b> '.html_entities_1(net_album_1(net_par_amazon($ligne_2Tmp[0]))).'<br />';
$scan['ligne_2_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_2.'[/u] :[/b] '.html_entities_1(net_album_1(net_par_amazon($ligne_2Tmp[0])))."\n";
}elseif( $ligne_2Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_2_a.'#is') )
{
$scan['ligne_2'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_2.'</u> :</b> '.html_entities_1(net_album_1(net_par_amazon($ligne_2Tmp[0]))).'<br />';
$scan['ligne_2_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_2.'[/u] :[/b] '.html_entities_1(net_album_1(net_par_amazon($ligne_2Tmp[0])))."\n";
}else{
$scan['ligne_2'] = false;
$scan['ligne_2_'] = false;
}
break;
case 'magazine';
if( $ligne_2Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_2.'#is') )
{
$scan['ligne_2'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_2.'</u> :</b> '.html_entities_1($ligne_2Tmp[0]).'<br />';
$scan['ligne_2_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_2.'[/u] :[/b] '.html_entities_1($ligne_2Tmp[0])."\n";
}else{
$scan['ligne_2'] = false;
$scan['ligne_2_'] = false;
}
break;
case 'jeu';
if( $ligne_2Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_2.'#is') )
{
$scan['ligne_2'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_2.'</u> :</b> '.html_entities_1(strip_tags(trim(net_jeu($ligne_2Tmp[0])))) .'<br />';
$scan['ligne_2_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_2.'[/u] :[/b] '.html_entities_1(strip_tags(trim(net_jeu($ligne_2Tmp[0])))) ."\n";
}else{
$scan['ligne_2'] = false;
$scan['ligne_2_'] = false;
}
break;
case 'film'; case 'film_x';
if( $ligne_2Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_2.'#is') )
{
$scan['ligne_2'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_2.'</u> :</b> '.html_entities_1(strip_tags(trim(remove_space(net_film($ligne_2Tmp[0]))))) .'<br />';
$scan['ligne_2_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_2.'[/u] :[/b] '.html_entities_1(strip_tags(trim(remove_space(net_film($ligne_2Tmp[0]))))) ."\n";
}else{
$scan['ligne_2'] = false;
$scan['ligne_2_'] = false;
}
break;
case 'serie';
if( $ligne_2Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_2.'#is') )
{
$scan['ligne_2'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_2.'</u> :</b> '.html_entities_1(strip_tags(trim(remove_space(net_serie($ligne_2Tmp[0]))))) .'<br />';
$scan['ligne_2_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_2.'[/u] :[/b] '.html_entities_1(strip_tags(trim(remove_space(net_serie($ligne_2Tmp[0]))))) ."\n";
}elseif( $ligne_2_aTmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_2_a.'#is') )
{
$scan['ligne_2'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_2.'</u> :</b> '.html_entities_1(strip_tags(trim(remove_space(net_serie($ligne_2_aTmp[0]))))) .'<br />';
$scan['ligne_2_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_2.'[/u] :[/b] '.html_entities_1(strip_tags(trim(remove_space(net_serie($ligne_2_aTmp[0]))))) ."\n";
}else{
$scan['ligne_2'] = false;
$scan['ligne_2_'] = false;
}
break;
case 'log'; case 'manga';
if( $ligne_2Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_2.'#is') )
{
$scan['ligne_2'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_2.'</u> :</b> '.html_entities_1(strip_tags(trim(remove_space($ligne_2Tmp[0])))) .'<br />';
$scan['ligne_2_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_2.'[/u] :[/b] '.html_entities_1(strip_tags(trim(remove_space($ligne_2Tmp[0])))) ."\n";
}else{
$scan['ligne_2'] = false;
$scan['ligne_2_'] = false;
}
break;}
switch ($page) {
case 'album';
if( $ligne_3Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_3.'#is') )
{
$scan['ligne_3'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_3.'</u> :</b> '.html_entities_1(strip_tags(net_prez($ligne_3Tmp[0]))) .'<br />';
$scan['ligne_3_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_3.'[/u] :[/b] '.html_entities_1(strip_tags(net_prez($ligne_3Tmp[0]))) ."\n";
}elseif( $ligne_3Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_3_1.'#is') )
{
$scan['ligne_3'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_3.'</u> :</b> '.html_entities_1(strip_tags(net_prez($ligne_3Tmp[0]))) .'<br />';
$scan['ligne_3_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_3.'[/u] :[/b] '.html_entities_1(strip_tags(net_prez($ligne_3Tmp[0]))) ."\n";
}else{
$scan['ligne_3'] = false;
$scan['ligne_3_'] = false;
}
break;
case 'dvd_spectacle'; case 'film_x'; case 'blu_ray';
if( $ligne_3Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_3.'#is') )
{
$scan['ligne_3'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_3.'</u> :</b> '.html_entities_1(strip_tags(net_prez($ligne_3Tmp[0]))) .'<br />';
$scan['ligne_3_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_3.'[/u] :[/b] '.html_entities_1(strip_tags(net_prez($ligne_3Tmp[0]))) ."\n";
}else{
$scan['ligne_3'] = false;
$scan['ligne_3_'] = false;
}
break;
case 'jeu';
if( $ligne_3Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_3.'#is') )
{
$scan['ligne_3'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_3.'</u> :</b> '.html_entities_1(trim(strip_tags(net_jeu_1($ligne_3Tmp[0])))) .'<br />';
$scan['ligne_3_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_3.'[/u] :[/b] '.html_entities_1(trim(strip_tags(net_jeu_1($ligne_3Tmp[0])))) ."\n";
}else{
$scan['ligne_3'] = false;
$scan['ligne_3_'] = false;
}
break;
case 'youtube';
if( $ligne_3Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_3.'#is') )
{
$scan['ligne_3'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_3.'</u> :</b> '.html_entities_1(strip_tags(net_prez($ligne_3Tmp[0]))) .'<br />';
}else{
$scan['ligne_3'] = false;
}
break;
case 'ebook';
if( $ligne_3Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_3.'#is') )
{
$scan['ligne_3'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_3.'</u> :</b> '.html_entities_1(net_ebook(net_par_amazon($ligne_3Tmp[0]))).'<br />';
$scan['ligne_3_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_3.'[/u] :[/b] '.html_entities_1(net_ebook(net_par_amazon($ligne_3Tmp[0])))."\n";
}else{
$scan['ligne_3'] = false;
$scan['ligne_3_'] = false;
}
break;
case 'film';
if(preg_match_all(RESULTAT_LIGNE_3,$contenuUrl,$ligne_3Tmp))
{
$scan['ligne_3'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_3.'</u> :</b> '.html_entities_1(remove_space($ligne_3Tmp[0][0])).'<br />';
$scan['ligne_3_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_3.'[/u] :[/b] '.html_entities_1(remove_space($ligne_3Tmp[0][0]))."\n";
}else{
$scan['ligne_3'] = false;
$scan['ligne_3_'] = false;
}
break;
case 'log'; case 'manga';
if( $ligne_3Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_3.'#is') )
{
$scan['ligne_3'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_3.'</u> :</b> '.html_entities_1(remove_space($ligne_3Tmp[0])).'<br />';
$scan['ligne_3_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_3.'[/u] :[/b] '.html_entities_1(remove_space($ligne_3Tmp[0]))."\n";
}else{
$scan['ligne_3'] = false;
$scan['ligne_3_'] = false;
}
break;
case 'serie';
if(preg_match_all('#'.RESULTAT_LIGNE_3.'#is',$contenuUrl,$ligne_3Tmp))
{
$scan['ligne_3'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_3.'</u> :</b> '.html_entities_1(strip_tags(trim(remove_space(net_serie($ligne_3Tmp[0][0]))))) .'<br />';
$scan['ligne_3_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_3.'[/u] :[/b] '.html_entities_1(strip_tags(trim(remove_space(net_serie($ligne_3Tmp[0][0]))))) ."\n";
}elseif(preg_match_all('#'.RESULTAT_LIGNE_3_1.'#is',$contenuUrl,$ligne_3Tmp))
{
$scan['ligne_3'] = '<b>'.RESULTAT_LIGNE_TEXTE_3.'</u> :</b> '.html_entities_1(strip_tags(trim(remove_space(net_serie($ligne_3Tmp[0][0]))))) .'<br />';
$scan['ligne_3_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_3.'[/u] :[/b] '.html_entities_1(strip_tags(trim(remove_space(net_serie($ligne_3Tmp[0][0]))))) ."\n";
}else{
$scan['ligne_3'] = false;
$scan['ligne_3_'] = false;
}
break;}
switch ($page) {
case 'film'; case 'film_x';
if( $ligne_4Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_4.'#is') )
{
$scan['ligne_4'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_4.'</u> :</b> '.html_entities_1(strip_tags(trim(remove_space(net_film($ligne_4Tmp[0]))))) .'<br />';
$scan['ligne_4_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_4.'[/u] :[/b] '.html_entities_1(strip_tags(trim(remove_space(net_film($ligne_4Tmp[0]))))) ."\n";
}else{
$scan['ligne_4'] = false;
$scan['ligne_4_'] = false;
}
break;
case 'serie' :
if(preg_match_all('#'.RESULTAT_LIGNE_4.'#is',$contenuUrl,$ligne_4Tmp))
{
$scan['ligne_4'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_4.'</u> :</b> '.html_entities_1(strip_tags(trim(remove_space(net_serie($ligne_4Tmp[0][0]))))) .'<br />';
$scan['ligne_4_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_4.'[/u] :[/b] '.html_entities_1(strip_tags(trim(remove_space(net_serie($ligne_4Tmp[0][0]))))) ."\n";
}elseif(preg_match_all('#'.RESULTAT_LIGNE_4_1.'#is',$contenuUrl,$ligne_4Tmp))
{
$scan['ligne_4'] = '<b>'.RESULTAT_LIGNE_TEXTE_4.'</u> :</b> '.html_entities_1(strip_tags(trim(remove_space(net_serie($ligne_4Tmp[0][0]))))) .'<br />';
$scan['ligne_4_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_4.'[/u] :[/b] '.html_entities_1(strip_tags(trim(remove_space(net_serie($ligne_4Tmp[0][0]))))) ."\n";
}else{
$scan['ligne_4'] = false;
$scan['ligne_4_'] = false;
}
break;
case 'jeu'; case 'dvd_spectacle'; case 'album'; case 'manga'; case 'blu_ray';
if( $ligne_4Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_4.'#is') )
{
$scan['ligne_4'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_4.'</u> :</b> '.html_entities_1(strip_tags(trim(remove_space($ligne_4Tmp[0])))) .'<br />';
$scan['ligne_4_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_4.'[/u] :[/b] '.html_entities_1(strip_tags(trim(remove_space($ligne_4Tmp[0])))) ."\n";
}else{
$scan['ligne_4'] = false;
$scan['ligne_4_'] = false;
}
break;
case 'ebook' :
if( $ligne_4Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_4.'#is') )
{
$scan['ligne_4'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_4.'</u> :</b> '.html_entities_1(strip_tags(trim(remove_space($ligne_4Tmp[0])))) .'<br />';
$scan['ligne_4_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_4.'[/u] :[/b] '.html_entities_1(strip_tags(trim(remove_space($ligne_4Tmp[0])))) ."\n";
}else{
$scan['ligne_4'] = false;
$scan['ligne_4_'] = false;
}
break;
case 'log' :
if( $ligne_4Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_4.'#is') )
{
$scan['ligne_4'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_4.'</u> :</b> v'.html_entities_1(strip_tags(trim(remove_space($ligne_4Tmp[0])))) .'<br />';
$scan['ligne_4_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_4.'[/u] :[/b] v'.html_entities_1(strip_tags(trim(remove_space($ligne_4Tmp[0])))) ."\n";
}else{
$scan['ligne_4'] = false;
$scan['ligne_4_'] = false;
}
break;}
switch ($page) {
case 'jeu'; case 'dvd_spectacle'; case 'album'; case 'manga';
if( $ligne_5Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_5.'#is') )
{
$scan['ligne_5'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_5.'</u> :</b> '.html_entities_1(strip_tags(remove_space($ligne_5Tmp[0]))) .'<br />';
$scan['ligne_5_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_5.'[/u] :[/b] '.html_entities_1(strip_tags(remove_space($ligne_5Tmp[0]))) ."\n";
}else{
$scan['ligne_5'] = false;
$scan['ligne_5_'] = false;
}
break;
case 'film'; case 'serie'; case 'blu_ray';
if( $ligne_5Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_5.'#is') )
{
$scan['ligne_5_1'] = str_replace('s</span>','',$ligne_5Tmp[0]);
$scan['ligne_5'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_5.'</u> :</b> '.html_entities_1(strip_tags(remove_space($scan['ligne_5_1']))) .'<br />';
$scan['ligne_5_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_5.'[/u] :[/b] '.html_entities_1(strip_tags(remove_space($scan['ligne_5_1']))) ."\n";
}else{
$scan['ligne_5'] = false;
$scan['ligne_5_'] = false;
}
break;
case 'film_x';
if( $ligne_5Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_5.'#is') )
{
$scan['ligne_5'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_5.'</u> :</b> '.html_entities_1(strip_tags(remove_film_x($ligne_5Tmp[0]))) .'<br />';
$scan['ligne_5_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_5.'[/u] :[/b] '.html_entities_1(strip_tags(remove_space($ligne_5Tmp[0]))) ."\n";
}else{
$scan['ligne_5'] = false;
$scan['ligne_5_'] = false;
}
break;
case 'ebook';
if( $ligne_5Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_5.'#is') )
{
$scan['ligne_5'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_5.'</u> :</b> '.html_entities_1(strip_tags(remove_space($ligne_5Tmp[0]))) .'<br />';
$scan['ligne_5_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_5.'[/u] :[/b] '.html_entities_1(strip_tags(remove_space($ligne_5Tmp[0]))) ."\n";
}else{
$scan['ligne_5'] = false;
$scan['ligne_5_'] = false;
}
break;}
switch ($page) {
case 'album' :
if( $ligne_6Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_6.'#is') )
{
require_once('./auth.php');
$scan['ligne_6'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_6.'</u> :</b> <img src="'.HTTP_SERVER.'images/'.net_note_amazon(strip_tags(trim($ligne_6Tmp[0]))) .'.png"/><br />';
$scan['ligne_6_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_6.'[/u] :[/b] [img]'.HTTP_SERVER.'images/'.net_note_amazon(strip_tags(trim($ligne_6Tmp[0]))) .'.png[/img]'."\n";
}else{
$scan['ligne_6'] = false;
$scan['ligne_6_'] = false;
}
break;
case 'dvd_spectacle'; case 'jeu'; case 'blu_ray';
if( $ligne_6Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_6.'#is') )
{
$scan['ligne_6'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_6.'</u> :</b> '.html_entities_1(strip_tags(trim(remove_space($ligne_6Tmp[0])))) .'<br />';
$scan['ligne_6_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_6.'[/u] :[/b] '.html_entities_1(strip_tags(trim(remove_space($ligne_6Tmp[0])))) ."\n";
}else{
$scan['ligne_6'] = false;
$scan['ligne_6_'] = false;
}
break;
case 'film'; case 'serie';
if( $ligne_6Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_6.'#is') )
{
$scan['ligne_6_1'] = str_replace(array(':'), array(''), $ligne_6Tmp[0]);
$scan['ligne_6_1'] = preg_replace('#\((.*?)\)#is', '', $scan['ligne_6_1']);
$scan['ligne_6'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_6.'</u> :</b> '.html_entities_1(strip_tags(trim(remove_space($scan['ligne_6_1'])))) .'<br />';
$scan['ligne_6_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_6.'[/u] :[/b] '.html_entities_1(strip_tags(trim(remove_space($scan['ligne_6_1'])))) ."\n";
}else{
$scan['ligne_6'] = false;
$scan['ligne_6_'] = false;
}
break;
case 'ebook';
if( $ligne_6Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_6.'#is') )
{
$scan['ligne_6'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_6.'</u> :</b> '.html_entities_1(strip_tags(trim(remove_space($ligne_6Tmp[0])))) .'<br />';
$scan['ligne_6_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_6.'[/u] :[/b] '.html_entities_1(strip_tags(trim(remove_space($ligne_6Tmp[0])))) ."\n";
}elseif( $ligne_6Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_6_1.'#is') )
{
$scan['ligne_6'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_6.'</u> :</b> '.html_entities_1(strip_tags(trim($ligne_6Tmp[0]))) .'<br />';
$scan['ligne_6_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_6.'[/u] :[/b] '.html_entities_1(strip_tags(trim($ligne_6Tmp[0]))) ."\n";
}elseif( $ligne_6Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_6_2.'#is') )
{
$scan['ligne_6'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_6.'</u> :</b> '.html_entities_1(strip_tags(trim($ligne_6Tmp[0]))) .'<br />';
$scan['ligne_6_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_6.'[/u] :[/b] '.html_entities_1(strip_tags(trim($ligne_6Tmp[0]))) ."\n";
}else{
$scan['ligne_6'] = false;
$scan['ligne_6_'] = false;
}
break;
case 'manga' :
if( $ligne_6Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_6.'#is') )
{
$scan['ligne_6'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_6.'</u> :</b> '.html_entities_1(strip_tags(trim(remove_space($ligne_6Tmp[0])))) .'<br />';
$scan['ligne_6_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_6.'[/u] :[/b] '.html_entities_1(strip_tags(trim(remove_space($ligne_6Tmp[0])))) ."\n";
}elseif( $ligne_6Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_6_1.'#is') )
{
$scan['ligne_6'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_6.'</u> :</b> '.html_entities_1(strip_tags(trim($ligne_6Tmp[0]))) .'<br />';
$scan['ligne_6_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_6.'[/u] :[/b] '.html_entities_1(strip_tags(trim($ligne_6Tmp[0]))) ."\n";
}else{
$scan['ligne_6'] = false;
$scan['ligne_6_'] = false;
}
break;}
switch ($page) {
case 'album';
if( $ligne_7Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_7.'#is') )
{
$scan['ligne_7'] = trim(net_album_3($ligne_7Tmp[0]));
$scan['ligne_7'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_7.'</u> :</b><a href="'.RESULTAT_LIGNE_7_1.strip_tags(trim($ligne_5Tmp[0])).'" target="_blank">Ecouter les extraits !</a><br />';
$scan['ligne_7_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_7.'[/u] :[/b] [url='.RESULTAT_LIGNE_7_1.strip_tags(trim($ligne_5Tmp[0])).']Ecouter les extraits ![/url]' ."\n";
}else{
$scan['ligne_7'] = false;
$scan['ligne_7_'] = false;
}
break;
case 'jeu'; case 'manga';
if( $ligne_7Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_7.'#is') )
{
$scan['ligne_7'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_7.'</u> :</b> '.html_entities_1(strip_tags(trim($ligne_7Tmp[0]))) .'<br />';
$scan['ligne_7_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_7.'[/u] :[/b] '.html_entities_1(strip_tags(trim($ligne_7Tmp[0]))) ."\n";
}else{
$scan['ligne_7'] = false;
$scan['ligne_7_'] = false;
}
break;
case 'film'; case 'serie';
if( $ligne_7Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_7.'#is') )
{
$scan['ligne_7'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_7.'</u> :</b> '.html_entities_1(strip_tags(trim(remove_space(net_serie($ligne_7Tmp[0]))))) .'<br />';
$scan['ligne_7_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_7.'[/u] :[/b] '.html_entities_1(strip_tags(trim(remove_space(net_serie($ligne_7Tmp[0]))))) ."\n";
}else{
$scan['ligne_7'] = false;
$scan['ligne_7_'] = false;
}
break;
case 'ebook'; case 'dvd_spectacle'; case 'blu_ray';
if( $ligne_7Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_7_1.'#is') )
{
require_once('./auth.php');
$scan['ligne_7_a'] = $ligne_7Tmp[0];
$scan['ligne_7'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_7.'</u> :</b> <img src="'.HTTP_SERVER.'images/'.net_note_amazon($scan['ligne_7_a']) .'.png"/><br />';
$scan['ligne_7_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_7.'[/u] :[/b] [img]'.HTTP_SERVER.'images/'.net_note_amazon($scan['ligne_7_a']) .'.png[/img]' ."\n";
}elseif( $ligne_7Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_7_2.'#is') )
{
require_once('./auth.php');
$scan['ligne_7_a'] = $ligne_7Tmp[0];
$scan['ligne_7'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_7.'</u> :</b> <img src="'.HTTP_SERVER.'images/'.net_note_amazon($scan['ligne_7_a']) .'.png"/><br />';
$scan['ligne_7_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_7.'[/u] :[/b] [img]'.HTTP_SERVER.'images/'.net_note_amazon($scan['ligne_7_a']) .'.png[/img]' ."\n";
}else{
$scan['ligne_7'] = false;
$scan['ligne_7_'] = false;
}
break;}
if( $ligne_8Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_8.'#is') )
{
$scan['ligne_8'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_8.'</u> :</b> '.html_entities_1(strip_tags(trim(remove_space($ligne_8Tmp[0])))) .'<br />';
$scan['ligne_8_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_8.'[/u] :[/b] '.html_entities_1(strip_tags(trim(remove_space($ligne_8Tmp[0])))) ."\n";
}elseif( $ligne_8Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_8_1.'#is') )
{
$scan['ligne_8'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_8.'</u> :</b> '.html_entities_1(strip_tags(trim(remove_space($ligne_8Tmp[0])))) .'<br />';
$scan['ligne_8_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_8.'[/u] :[/b] '.html_entities_1(strip_tags(trim(remove_space($ligne_8Tmp[0])))) ."\n";
}else{
$scan['ligne_8'] = false;
$scan['ligne_8_'] = false;
}
switch ($page) {
case 'ebook';
if( $ligne_9Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_9.'#is') )
{
require_once('./auth.php');
$scan['ligne_9'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_9.'</u> :</b> <img src="'.HTTP_SERVER.'images/'.net_note_amazon(strip_tags(trim($ligne_9Tmp[0]))) .'.png"/><br />';
$scan['ligne_9_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_9.'[/u] :[/b] [img]'.HTTP_SERVER.'images/'.net_note_amazon(strip_tags(trim($ligne_9Tmp[0]))) .'.png[/img]' ."\n";
}else{
$scan['ligne_9'] = false;
$scan['ligne_9_'] = false;
}
break;
case 'dvd_spectacle'; case 'album'; case 'manga';
if( $ligne_9Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_9.'#is') )
{
$scan['ligne_9'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_9.'</u> :</b> '.html_entities_1(strip_tags(trim($ligne_9Tmp[0]))) .'<br />';
$scan['ligne_9_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_9.'[/u] :[/b] '.html_entities_1(strip_tags(trim($ligne_9Tmp[0]))) ."\n";
}else{
$scan['ligne_9'] = false;
$scan['ligne_9_'] = false;
}
break;
case 'jeu';
if( $ligne_9Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_9.'#is') )
{
$scan['ligne_9_1'] = strip_tags(trim($ligne_9Tmp[0]));
$scan['ligne_9_1'] = str_replace(array("\n","\r"),array('',''),$scan['ligne_9_1']);
$scan['ligne_9_1'] = preg_replace('/\s\s+/', '', $scan['ligne_9_1']);
$scan['ligne_9'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_9.'</u> :</b> '.html_entities_1($scan['ligne_9_1']).'<br />';
$scan['ligne_9_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_9.'[/u] :[/b] '.html_entities_1($scan['ligne_9_1'])."\n";
}else{
$scan['ligne_9'] = false;
$scan['ligne_9_'] = false;
}
break;
case 'film'; case 'serie';
if( $ligne_9Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_9.'#is') )
{
$scan['ligne_9'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_9.'</u> :</b> '.html_entities_1(strip_tags(trim($ligne_9Tmp[0]))) .'<br />';
$scan['ligne_9_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_9.'[/u] :[/b] '.html_entities_1(strip_tags(trim($ligne_9Tmp[0]))) ."\n";
}else{
$scan['ligne_9'] = false;
$scan['ligne_9_'] = false;
}
break;}
switch ($page) {
case 'log'; case 'dvd_spectacle'; case 'ebook'; case 'manga'; case 'film_x'; case 'blu_ray'; case 'magazine'; case 'youtube';
if( $ligne_10Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_10.'#is') )
{
$scan['ligne_10'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_10.'</u> :</b> '.html_entities_1(strip_tags(trim($ligne_10Tmp[0]))) .'<br />';
$scan['ligne_10_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_10.'[/u] :[/b] '.html_entities_1(strip_tags(trim($ligne_10Tmp[0]))) ."\n";
}else{
$scan['ligne_10'] = false;
$scan['ligne_10_'] = false;
}
break;
case 'jeu';
if( $ligne_10Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_10.'#is') )
{
$scan['ligne_10'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_10.'</u> :</b> '.html_entities_1(strip_tags(trim($ligne_10Tmp[0]))) .'<br />';
$scan['ligne_10_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_10.'[/u] :[/b] '.html_entities_1(strip_tags(trim($ligne_10Tmp[0]))) ."\n";
}else{
$scan['ligne_10'] = false;
$scan['ligne_10_'] = false;
}
break;}
switch ($page) {
case 'jeu'; case 'log'; case 'dvd_spectacle'; case 'ebook'; case 'manga'; case 'film_x'; case 'blu_ray'; case 'magazine'; case 'youtube';
if( $ligne_11Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_11.'#is') )
{
$scan['ligne_11'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_11.'</u> :</b> '.html_entities_1(strip_tags(trim($ligne_11Tmp[0]))) .'<br />';
$scan['ligne_11_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_11.'[/u] :[/b] '.html_entities_1(strip_tags(trim($ligne_11Tmp[0]))) ."\n";
}else{
$scan['ligne_11'] = false;
$scan['ligne_11_'] = false;
}
break;}
if( $ligne_12Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_12.'#is') )
{
$scan['ligne_12'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_12.'</u> :</b> '.html_entities_1(strip_tags(trim($ligne_12Tmp[0]))) .'<br />';
$scan['ligne_12_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_12.'[/u] :[/b] '.html_entities_1(strip_tags(trim($ligne_12Tmp[0]))) ."\n";
}else{
$scan['ligne_12'] = false;
$scan['ligne_12_'] = false;
}
if( $ligne_13Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_13.'#is') )
{
$scan['ligne_13'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_13.'</u> :</b> '.html_entities_1(strip_tags(trim($ligne_13Tmp[0]))) .'<br />';
$scan['ligne_13_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_13.'[/u] :[/b] '.html_entities_1(strip_tags(trim($ligne_13Tmp[0]))) ."\n";
}else{
$scan['ligne_13'] = false;
$scan['ligne_13_'] = false;
}
switch ($page) {
case 'film'; case 'serie'; case 'album'; case 'jeu'; case 'log'; case 'dvd_spectacle'; case 'ebook';
if( $ligne_14Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_14.'#is') )
{
$scan['ligne_14'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_14.'</u> :</b> '.html_entities_1(strip_tags(trim($ligne_14Tmp[0]))) .'<br />';
$scan['ligne_14_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_14.'[/u] :[/b] '.html_entities_1(strip_tags(trim($ligne_14Tmp[0]))) ."\n";
}else{
$scan['ligne_14'] = false;
$scan['ligne_14_'] = false;
}
break;}
if( $ligne_15Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_15.'#is') )
{
$scan['ligne_15'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_15.'</u> :</b> '.html_entities_1(strip_tags(trim($ligne_15Tmp[0]))) .'<br />';
$scan['ligne_15_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_15.'[/u] :[/b] '.html_entities_1(strip_tags(trim($ligne_15Tmp[0]))) ."\n";
}else{
$scan['ligne_15'] = false;
$scan['ligne_15_'] = false;
}
if( $ligne_16Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_16.'#is') )
{
$scan['ligne_16'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_16.'</u> :</b> '.html_entities_1(strip_tags(trim($ligne_16Tmp[0]))) .'<br />';
$scan['ligne_16_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_16.'[/u] :[/b] '.html_entities_1(strip_tags(trim($ligne_16Tmp[0]))) ."\n";
}else{
$scan['ligne_16'] = false;
$scan['ligne_16_'] = false;
}
if( $ligne_17Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_17.'#is') )
{
$scan['ligne_17'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_17.'</u> :</b> '.html_entities_1(strip_tags(trim($ligne_17Tmp[0]))) .'<br />';
$scan['ligne_17_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_17.'[/u] :[/b] '.html_entities_1(strip_tags(trim($ligne_17Tmp[0]))) ."\n";
}else{
$scan['ligne_17'] = false;
$scan['ligne_17_'] = false;
}
if( $ligne_18Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_18.'#is') )
{
$scan['ligne_18'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_18.'</u> :</b> '.html_entities_1(strip_tags(trim($ligne_18Tmp[0]))) .'<br />';
$scan['ligne_18_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_18.'[/u] :[/b] '.html_entities_1(strip_tags(trim($ligne_18Tmp[0]))) ."\n";
}else{
$scan['ligne_18'] = false;
$scan['ligne_18_'] = false;
}
if( $ligne_19Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_19.'#is') )
{
$scan['ligne_19'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_19.'</u> :</b> '.html_entities_1(strip_tags(trim($ligne_19Tmp[0]))) .'<br />';
$scan['ligne_19_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_19.'[/u] :[/b] '.html_entities_1(strip_tags(trim($ligne_19Tmp[0]))) ."\n";
}else{
$scan['ligne_19'] = false;
$scan['ligne_19_'] = false;
}
if( $ligne_20Tmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_20.'#is') )
{
$scan['ligne_20'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_20.'</u> :</b> '.html_entities_1(strip_tags(trim($ligne_20Tmp[0]))) .'<br />';
$scan['ligne_20_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_20.'[/u] :[/b] '.html_entities_1(strip_tags(trim($ligne_20Tmp[0]))) ."\n";
}else{
$scan['ligne_20'] = false;
$scan['ligne_20_'] = false;
}
switch ($page){
case 'film';
if( $mediaTmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_12.'#is') )
{
$scan['media'] = $mediaTmp[0];
$scan['media'] = str_replace('/video/player_gen_cmedia=','', $scan['media']);
$scan['media'] = preg_replace('#&cfilm=(.*?).html#is','',$scan['media']);
$scan['ligne_12'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_12.'</u> :</b><br /><br />
<div id="blogvision"><iframe src="http://www.allocine.fr/_video/iblogvision.aspx?cmedia='. $scan['media'] .'" style="width:480px; height:270px" frameborder="0"></iframe>';
$scan['ligne_12_a'] = $scan['media'];
$scan['ligne_12_c'] = '1';
}else{
$scan['ligne_12'] = false;
$scan['ligne_12_c'] = false;
}
if( $critiqueTmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_10.'#is') )
{
$scan['critique'] = remove_space(strip_tags(trim ($critiqueTmp[0])));
$scan['critique'] = str_replace('Spectateurs',' ',$scan['critique']);
}else{
$scan['critique'] = 'Aucune information ...';
}
if( $notesTmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_NOTE_10.'#is') )
{
$scan['note'] = $notesTmp[0];
$scan['note'] = trim(net_note_spectacteur_film($scan['note']));
require_once('./auth.php');
$scan['ligne_10'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_10.'</u> :</b> <img src="'.HTTP_SERVER.'images/' . $scan['note'] .'" /> '.$scan['critique'].'<br />';
$scan['ligne_10_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_10.'[/u] :[/b] [img]'.HTTP_SERVER.'images/' . $scan['note'] .'[/img] '.$scan['critique']."\n";
}else{
$scan['ligne_10'] = false;
$scan['ligne_10_'] = false;
}
if( $critiquesTmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_11.'#is') )
{
$scan['critiques'] = remove_space(strip_tags(trim ($critiquesTmp[0])));
$scan['critiques'] = str_replace('Presse',' ',$scan['critique']);
}else{
$scan['critiques'] = 'Aucune information ...';
}
if( $presseTmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_NOTE_11.'#is') )
{
$scan['presse'] = $presseTmp[0];
$scan['presse'] = trim(net_note_presse_film($scan['presse']));
require_once('./auth.php');
$scan['ligne_11'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_11.'</u> :</b> <img src="'.HTTP_SERVER.'images/' . $scan['presse'] .'" /> '.$scan['critiques'].'<br />';
$scan['ligne_11_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_11.'[/u] :[/b] [img]'.HTTP_SERVER.'images/' . $scan['presse'] .'[/img] '.$scan['critiques']."\n";
}else{
$scan['ligne_11'] = false;
$scan['ligne_11_'] = false;
}
break;
case 'serie';
if( $critiquesTmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_NOTE_10.'#is') )
{
$scan['critiques'] = strip_tags(trim(remove_space($critiquesTmp[0])));
}else{
$scan['critiques'] = 'Aucune information ...';
}
if( $notesTmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_10.'#is') )
{
$scan['note'] = $notesTmp[0];
$scan['note'] = trim(net_note_spectacteur_serie($scan['note']));
require_once('auth.php');
$scan['ligne_10'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_10.'</u> :</b> <img src="'.HTTP_SERVER.'images/' . $scan['note'] .'" /> '.$scan['critiques'].'<br />';
$scan['ligne_10_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_10.'[/u] :[/b] [img]'.HTTP_SERVER.'images/' . $scan['note'] .'[/img] '.$scan['critiques']."\n";
}else{
$scan['notes'] = false;
$scan['notes_'] = false;
}
if( $mediaTmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_12.'#is') )
{
$scan['media'] = trim(str_replace('<span class="acLnk ','',$mediaTmp[0]));
$scan['media1'] = convBase($scan['media']);
$scan['media1'] = str_replace('/video/player_gen_cmedia=','', $scan['media1']);
$scan['media1'] = preg_replace('#1f763rie=(.*?).html#is','',$scan['media1']);
$scan['ligne_12'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_12.'</u> :</b><br /><br />
<div id="blogvision"><iframe src="http://www.allocine.fr/_video/iblogvision.aspx?cmedia='. $scan['media1'] .'" style="width:480px; height:270px" frameborder="0"></iframe>';
$scan['ligne_12_a'] = $scan['media1'];
$scan['ligne_12_c'] = '1';
}else{
$scan['ligne_12'] = false;
$scan['ligne_12_c'] = false;
}
break;
case 'manga';
if( $linkTmp = getEpression($contenuUrl,'#'.RESULTAT_LIGNE_14.'#is') )
{
$linkurl = getContenuURL(RESULTAT_LIGNE_14_A.$linkTmp[0]);
$linkurl_ = RESULTAT_LIGNE_14_A.$linkTmp[0];
}
if( $videoTmp = getEpression($linkurl,'#'.RESULTAT_LIGNE_14_C.'#is') )
{
$codevideo = net_video_manga($videoTmp[0]);
$scan['ligne_14'] = '<b><u>'.RESULTAT_LIGNE_TEXTE_14.'</u> :</b><script type="text/javascript" src="http://www.manga-news.com/jwplayer/jwplayer.js" ></script>
<script type="text/javascript">jwplayer.key="Czv0sIYsMmc7fAgoBOTvga+iOz1rFuWqYhb8JQKw5LU=";</script><div id="trailer">'.$codevideo;
$scan['ligne_14_'] = '[b][u]'.RESULTAT_LIGNE_TEXTE_14.'[/u] : [/b] [i][url=' . strip_tags($linkurl_) . ']Cliquer ici pour voir la bande annonce[/url][/i]' ."\n";
}else{
$scan['ligne_14'] = false;
$scan['ligne_14_'] = false;
}
break;}
}else $erreur[] = "impossible de lire la page";
return(array($scan,$erreur));
}
?>