"; //$texte_mis_en_page = $menubarre; // GENERATION STREAMING !!! $contentstream = "
STREAMING $save_tendance


"; $texte_mis_en_page = $texte_mis_en_page.$contentstream; /////////////////////////////////////////////// ///NEWS TENDANCE //include ('mise_html.php'); $dbhost = 'localhost'; $dblogi = 'vs'; $dbbase = 'vs'; $dbi = @mysql_connect("$dbhost", "$dblogi", "$dbpass") OR DIE("

Désolé, la Base est Down !
"); @mysql_select_db("$dbbase",$dbi) OR DIE; require ("utf-sql.php"); // Gestion Pagination $pagination = ""; $dateold = ""; $p2 = $p + 1; if (empty($p)) { $p="0"; } $sql = "SELECT * FROM MyNewsInfos WHERE titre != 'NHERO' and ( tendance='$save_tendance' or tendance2='$save_tendance' ) "; $sql = MYSQL_QUERY($sql,$dbi); $nbproduit = mysql_num_rows($sql); $nb="40"; $debut=$nb*$p; $p=ceil($nbproduit/$nb); // Fin Gestion Pagination // Gestion affichange pagination if ($nbproduit!=0) { $pagination = $pagination."

Page $p2 / $p

"; if( $p>1 ){ $pagination = $pagination."<< Début  ";} $mini = $p2 - 5; $maxi = $p2 + 5; for($i=1;$i<=$p;$i++) { $j=$i-1; if($p>1 and $j>$mini and $j<$maxi){$pagination = $pagination."$i";} if ($i<$p and $j>$mini and $j<$maxi){$pagination = $pagination."  -  ";} } if($p>1){$pagination = $pagination."  Fin >>";} $pagination = $pagination."

"; }; // Fin Gestion affichage pagination //$texte_mis_en_page = $texte_mis_en_page.$pagination; $result = MYSQL_QUERY("SELECT id,date,url_image,signature,news,url_source,nom_source,heure,email_sign,source,url_image,path_image,titre, image, date_verif, tendance, tendance2, categorie, categorie2 FROM MyNewsInfos WHERE titre != 'NHERO' and ( tendance='$save_tendance' or tendance2='$save_tendance' ) ORDER BY id desc limit $debut,$nb",$dbi); while(list($id, $date, $url_image, $signature, $news, $url_source,$nom_source,$heure,$email_sign,$source,$url_image,$path_image,$titre, $image, $date_verif, $tendance, $tendanc2, $category, $categor2) = mysql_fetch_row($result)) { $heure = str_replace(":","h",$heure); $signature = stripslashes(trim($signature )); $news = stripslashes(trim($news)); $news_detail = stripslashes(trim($email_sign)); $url_source = trim($url_source); $url_image = trim($url_image); $path_image = trim($path_image); $news_html = trim($date_verif); // Gestion de la tendance if ($tendance!='' ) {$tendance="
#$tendance
";} else {$tendance ='';}; if ($tendanc2!='' ) {$tendanc2="
#$tendanc2
";} else {$tendanc2 ='';}; // Gestion de la category if ($category!='' ) {$category="
#$category
";} else {$category ='';}; if ($categor2!='' ) {$categor2="
#$categor2
";} else {$categor2 ='';}; //gestion du rewrite de lien $strip_lien = substr($news,0,70); $strip_lien = str_replace('-',' ',$strip_lien); url_format ($strip_lien); $lien = 'http://www.vs-webzine.com/InfoVS-'.$strip_lien.'-'.$id.'.html'; $url_image2 = $url_image; //gestion de la conversion html ou non des news if ($news_html =='') { //mise en gras des majuscules $pattern = '/([A-Z]{3,})/e'; // //$pattern = '[A-ZË[:digit:][:space:]]*[A-ZË]{3,}[A-ZË[:digit:][:space:]]*'; $replacement = "''.strtoupper('\\1').''"; $news = preg_replace($pattern, $replacement, $news); $news = eregi_replace("([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])","\\1://\\2\\3",$news); }; // Gestion Image alignée à droite de largeur 160 if ($url_image !='http://' & $url_image != '') {$url_image="";} else {$url_image ='';}; // Gestion du detail de la news if ($news_detail !='') {$news_detail = "Détail de la News";} // Gestion de la signature des news if ($signature !='') {$signature=" ($signature)";} else {$signature ='';}; // Gestion du Lien 1 if ($url_source !='http://' & $url_source != '') {$url_source=" » $nom_source";} else {$url_source ='';}; // Gestion du Lien 2 if ($path_image !='http://' & $path_image != '') {$path_image=" » $image";} else {$path_image ='';}; // Gestion Image Facebook if ($url_image2 =='') ($url_image2 !='http://') ; if ($url_image2 !='http://') { $facebook_image = $url_image2;} else {$facebook_image = "http://www.vs-webzine.com/smalllogovs.jpg"; }; $link_facebook_image = ""; //Gestion finale de la news $titre_news = 'News '.$save_tendance.' Vs-webzine.com '.$date.' @ '.$heure; $coeur_news = '
'.$url_image.$news.$url_source.$path_image.$signature.$link_facebook_image.'

'; $texte_meta_description = substr($news, 0, 120); //Gestion du nombre de coms sur la news $reqCOMMENT = mysql_query("SELECT id FROM MyNewsComments WHERE id_news='$id'",$dbi); $resCOMMENT = mysql_num_rows($reqCOMMENT); //$COMMENT = "Nb Commentaires : $resCOMMENT"; $COMMENT = "Nb Commentaires : $resCOMMENT"; if ($date != $dateold) { $titre_news = "
News $save_tendance Vs-webzine.com ".$date." @ ".$heure."
"; $dateold = $date; } else { $titre_news = "
"; } #-=-=-=-=-=-=-=- LA NEWS -=-=-=-=-=-=-=-# #-- DEBUT HEADER PAGE NEWS -- $texte_mis_en_page = $texte_mis_en_page."
$titre_news
$coeur_news
$tendance $tendanc2 $category $categor2
$news_detail
$COMMENT
"; #!-- FIN HEADER PAGE NEWS --> } $texte_mis_en_page = $texte_mis_en_page.$pagination; //-----------------------------------------contenudroite //----------------------------------------- $content = ""; //echo $content; $contenudroite = $content; Webzine et communauté dédié aux musiques METAL et dérivés - Since 1999




 
"; //$texte_mis_en_page = $menubarre; // GENERATION STREAMING !!! $contentstream = "
STREAMING $save_tendance
    "; $result = MYSQL_QUERY("SELECT id,date,url_image,signature,news,url_source,nom_source,heure,email_sign,source,url_image,path_image,titre, image, date_verif, tendance, categorie, tendance2, categorie2, head FROM MyNewsInfos WHERE ( titre != 'NHERO' AND titre != 'HERO' AND head != '' AND ( categorie = 'STREAMING' OR categorie2 = 'STREAMING') AND ( tendance = '$save_tendance' OR tendance2 = '$save_tendance') ) ORDER BY id desc LIMIT 0, 30",$dbi); while(list($id, $date, $url_image, $signature, $news, $url_source,$nom_source,$heure,$email_sign,$source,$url_image,$path_image,$titre, $image, $date_verif, $tendance, $category, $tendanc2, $categor2, $head) = mysql_fetch_row($result)) { $heure = str_replace(":","h",$heure); $signature = stripslashes(trim($signature )); $news = stripslashes(trim($news)); $news_detail = stripslashes(trim($email_sign)); $url_source = trim($url_source); $url_image = trim($url_image); $path_image = trim($path_image); $news_html = trim($date_verif); //gestion du rewrite de lien $strip_lien = substr($news,0,70); $strip_lien = str_replace('-',' ',$strip_lien); url_format ($strip_lien); $lien = 'http://www.vs-webzine.com/InfoVS-'.$strip_lien.'-'.$id.'.html'; $url_image2 = $url_image; $tendance_old = $tendance." ".$tendanc2; //gestion de la conversion html ou non des news if ($news_html =='') { //$news = preg_replace("@([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])@i","\\1://\\2\\3",$news); //mise en gras des majuscules $pattern = '/([A-Z]{3,})/e'; // //$pattern = '[A-Z̛:digit:][:space:]]*[A-Z̝{3,}[A-Z̛:digit:][:space:]]*'; $replacement = "''.strtoupper('\\1').''"; $news = preg_replace($pattern, $replacement, $news); $news = eregi_replace("([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])","\\1://\\2\\3",$news); }; // Gestion Image alignꥠࡤroite de largeur 160 if ($url_image !='http://' & $url_image != '') {$url_image="";} else {$url_image ='';}; // Gestion de la tendance if ($tendance!='' ) {$tendance="
    ";} else {$tendance ='';}; if ($tendanc2!='' ) {$tendanc2="
    ";} else {$tendanc2 ='';}; // Gestion de la category if ($category!='' ) {$category="
    ";} else {$category ='';}; if ($categor2!='' ) {$categor2="
    ";} else {$categor2 ='';}; // Gestion du detail de la news if ($news_detail !='') {$news_detail = "D굡il de la News";} // Gestion de la signature des news if ($signature !='') {$signature=" ($signature)";} else {$signature ='';}; // Gestion du Lien 1 if ($url_source !='http://' & $url_source != '') {$url_source=" » $nom_source";} else {$url_source ='';}; // Gestion du Lien 2 if ($path_image !='http://' & $path_image != '') {$path_image=" » $image";} else {$path_image ='';}; // Gestion Image Facebook if ($url_image2 =='') ($url_image2 !='http://') ; if ($url_image2 !='http://') { $facebook_image = $url_image2;} else {$facebook_image = "http://www.vs-webzine.com/smalllogovs.jpg"; }; $link_facebook_image = ""; //Gestion finale de la news $titre_news = 'News $save_tendance Vs-webzine.com '.$date.' @ '.$heure; $coeur_news = '
    '.$url_image.$news.$url_source.$path_image.$signature.$link_facebook_image.'

    '; $texte_meta_description = substr($news, 0, 120); //Gestion du nombre de coms sur la news $reqCOMMENT = mysql_query("SELECT id FROM MyNewsComments WHERE id_news='$id'",$dbi); $resCOMMENT = mysql_num_rows($reqCOMMENT); //$COMMENT = "Nb Commentaires : $resCOMMENT"; //$COMMENT = "
  • ♦ $head
    $resCOMMENT commentaires
  • "; $COMMENT = "
  • $url_image
  • "; //contenu $contentstream = $contentstream.$COMMENT; } $contentstream = $contentstream."


"; $texte_mis_en_page = $texte_mis_en_page.$contentstream; /////////////////////////////////////////////// ///NEWS TENDANCE //include ('mise_html.php'); $dbhost = 'localhost'; $dblogi = 'vs'; $dbbase = 'vs'; $dbi = @mysql_connect("$dbhost", "$dblogi", "$dbpass") OR DIE("

Désolé, la Base est Down !
"); @mysql_select_db("$dbbase",$dbi) OR DIE; require ("utf-sql.php"); // Gestion Pagination $pagination = ""; $dateold = ""; $p2 = $p + 1; if (empty($p)) { $p="0"; } $sql = "SELECT * FROM MyNewsInfos WHERE titre != 'NHERO' and ( tendance='$save_tendance' or tendance2='$save_tendance' ) "; $sql = MYSQL_QUERY($sql,$dbi); $nbproduit = mysql_num_rows($sql); $nb="40"; $debut=$nb*$p; $p=ceil($nbproduit/$nb); // Fin Gestion Pagination // Gestion affichange pagination if ($nbproduit!=0) { $pagination = $pagination."

Page $p2 / $p

"; if( $p>1 ){ $pagination = $pagination."<< Début  ";} $mini = $p2 - 5; $maxi = $p2 + 5; for($i=1;$i<=$p;$i++) { $j=$i-1; if($p>1 and $j>$mini and $j<$maxi){$pagination = $pagination."$i";} if ($i<$p and $j>$mini and $j<$maxi){$pagination = $pagination."  -  ";} } if($p>1){$pagination = $pagination."  Fin >>";} $pagination = $pagination."

"; }; // Fin Gestion affichage pagination //$texte_mis_en_page = $texte_mis_en_page.$pagination; $result = MYSQL_QUERY("SELECT id,date,url_image,signature,news,url_source,nom_source,heure,email_sign,source,url_image,path_image,titre, image, date_verif, tendance, tendance2, categorie, categorie2 FROM MyNewsInfos WHERE titre != 'NHERO' and ( tendance='$save_tendance' or tendance2='$save_tendance' ) ORDER BY id desc limit $debut,$nb",$dbi); while(list($id, $date, $url_image, $signature, $news, $url_source,$nom_source,$heure,$email_sign,$source,$url_image,$path_image,$titre, $image, $date_verif, $tendance, $tendanc2, $category, $categor2) = mysql_fetch_row($result)) { $heure = str_replace(":","h",$heure); $signature = stripslashes(trim($signature )); $news = stripslashes(trim($news)); $news_detail = stripslashes(trim($email_sign)); $url_source = trim($url_source); $url_image = trim($url_image); $path_image = trim($path_image); $news_html = trim($date_verif); // Gestion de la tendance if ($tendance!='' ) {$tendance="
#$tendance
";} else {$tendance ='';}; if ($tendanc2!='' ) {$tendanc2="
#$tendanc2
";} else {$tendanc2 ='';}; // Gestion de la category if ($category!='' ) {$category="
#$category
";} else {$category ='';}; if ($categor2!='' ) {$categor2="
#$categor2
";} else {$categor2 ='';}; //gestion du rewrite de lien $strip_lien = substr($news,0,70); $strip_lien = str_replace('-',' ',$strip_lien); url_format ($strip_lien); $lien = 'http://www.vs-webzine.com/InfoVS-'.$strip_lien.'-'.$id.'.html'; $url_image2 = $url_image; //gestion de la conversion html ou non des news if ($news_html =='') { //mise en gras des majuscules $pattern = '/([A-Z]{3,})/e'; // //$pattern = '[A-ZË[:digit:][:space:]]*[A-ZË]{3,}[A-ZË[:digit:][:space:]]*'; $replacement = "''.strtoupper('\\1').''"; $news = preg_replace($pattern, $replacement, $news); $news = eregi_replace("([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])","\\1://\\2\\3",$news); }; // Gestion Image alignée à droite de largeur 160 if ($url_image !='http://' & $url_image != '') {$url_image="";} else {$url_image ='';}; // Gestion du detail de la news if ($news_detail !='') {$news_detail = "Détail de la News";} // Gestion de la signature des news if ($signature !='') {$signature=" ($signature)";} else {$signature ='';}; // Gestion du Lien 1 if ($url_source !='http://' & $url_source != '') {$url_source=" » $nom_source";} else {$url_source ='';}; // Gestion du Lien 2 if ($path_image !='http://' & $path_image != '') {$path_image=" » $image";} else {$path_image ='';}; // Gestion Image Facebook if ($url_image2 =='') ($url_image2 !='http://') ; if ($url_image2 !='http://') { $facebook_image = $url_image2;} else {$facebook_image = "http://www.vs-webzine.com/smalllogovs.jpg"; }; $link_facebook_image = ""; //Gestion finale de la news $titre_news = 'News '.$save_tendance.' Vs-webzine.com '.$date.' @ '.$heure; $coeur_news = '
'.$url_image.$news.$url_source.$path_image.$signature.$link_facebook_image.'

'; $texte_meta_description = substr($news, 0, 120); //Gestion du nombre de coms sur la news $reqCOMMENT = mysql_query("SELECT id FROM MyNewsComments WHERE id_news='$id'",$dbi); $resCOMMENT = mysql_num_rows($reqCOMMENT); //$COMMENT = "Nb Commentaires : $resCOMMENT"; $COMMENT = "Nb Commentaires : $resCOMMENT"; if ($date != $dateold) { $titre_news = "
News $save_tendance Vs-webzine.com ".$date." @ ".$heure."
"; $dateold = $date; } else { $titre_news = "
"; } #-=-=-=-=-=-=-=- LA NEWS -=-=-=-=-=-=-=-# #-- DEBUT HEADER PAGE NEWS -- $texte_mis_en_page = $texte_mis_en_page."
$titre_news
$coeur_news
$tendance $tendanc2 $category $categor2
$news_detail
$COMMENT
"; #!-- FIN HEADER PAGE NEWS --> } $texte_mis_en_page = $texte_mis_en_page.$pagination; //-----------------------------------------contenudroite //----------------------------------------- $content = ""; //echo $content; $contenudroite = $content;

Proposez News | VS Story | F.A.Q. | Contact | Signaler un Bug | VS Recrute | Mentions Légales | VS-webzine.com

eXTReMe Tracker