<?php
//==============================================================================
//== Radio SCOOP                                                              ==
//==============================================================================

	include('./inc/base.php') ;
        include('./generator/generator.php') ;
        
	$page['xiti'] = 'potins::people' ;
	$page['descr'] = 'People' ;
	$page['pub'] = 'infos people' ;
	$page['cat'] = 14 ;
        $page['style'] = 'people.css';
	$page['menu'] = 3 ;
	$page['cover'] = 148395 ;
        $page['adZone'] = 'infos' ;
        $page['adOpti'] = 'articles' ;

	global $db;

	if (isset($_GET['id']) && !isset($id))
		$id = $_GET['id'];

//==============================================================================
function pge_structure_() {
    global $id ;
    /*Trio de fonctions Pubs*/
    pge_interstitiel();
    str_colMainIndex();
    if ($id < 1) {
        pge_list() ;
    } else {
        pge_article($id) ;
        bootstrap_correction();
    }
    pge_contentFooter();
    str_colEnd();
}

function pge_structure() {
    global $user, $db, $page, $id ;

    pge_interstitiel();
    str_colMainIndex();

    // Content generator
    $vRebuild = (isset($_GET['rebuild']) && ($user['level'] >= 4)) ; 
    if ($vRebuild) error_log('REBUILD PAGE ' . $_SERVER['PHP_SELF']) ; 
    
    $vGenerator = new TRSGenerator($db) ; 
    $vContent = $vGenerator->generateContent('people', $page, $id, $user['freq'], $vRebuild) ;     
    if ($vContent) 
        echo $vContent ; 
    
    pge_contentFooter();
    str_colEnd();
}

//==============================================================================
/*This function is only aimed to correct a boostrap error on articles' pages*/
function bootstrap_correction() {
 ?>
    <style type="text/css">
        .container{
            padding-left: 15px;
            padding-right: 15px;
        }
    </style>
 <?php
}
//==============================================================================
function pge_article($id) {
    global $user, $page ;

    $cat = sql_getCatById($page['cat']) ;

    $row = sql_getArticleById($id) ;
    $local = base_ville($row[13]) ;

    $nbArticles = 18;
    $rows = sql_getArticlesByCat($page['cat'], $nbArticles, "a.id <> '".addslashes($id)."' AND a.dte <= NOW()", "DATE(a.dte) DESC, a.villes NOT LIKE '%".$user['freq']."%', a.ordre, a.dte DESC", true, '', true) ;
    $rowsInsolite = sql_getArticlesByCat(178, $nbArticles, "a.id <> '".addslashes($id)."' AND a.dte <= NOW()", "DATE(a.dte) DESC, a.villes NOT LIKE '%".$user['freq']."%', a.ordre, a.dte DESC", true, '', true) ;

?>
<div class="row new-bloc"></div>
<div class="row">
    <div class="row row-article-big">
        <?php if ($row[12]['local'] != '') $local = $row[12]['local'] ; ?>
        <div class="col-lg-9 col-md-8 article main article-details main-article llred article-principal" style="overflow: hidden;">
            <div class="col-lg-12 article-principal-titre">
<?php
                    adm_zone_start($row[1], $row[0], $zone) ;
                    echo '<h1 class="titre_big">' .mb_strtoupper($row[3]). '</h1>' ;
                    adm_zone_end() ;
?>
                <p>
                    <?=base_date($row[8], true, true) ?><br/>
                </p>
            </div>
<?php
            adm_zone_start($row[1], $row[0], $zone, 'img') ;
            echo '<center class="article-img-unit">';
                zone_imageFromQuery2($row, 1300, 650);
                if($row[23] == '') {
                    $row[23] = '#FBB03B';
                }
                $rgb = hex2rgb($row[23]);
                ?>
                <div class="pastille pastille-unitaire-main" style="margin-top: -45px; background-color: <?= $row[23]?>">
                    <h3><?php formatPastille($row[2], true); ?></h3>
                </div>
            <div class="socials-share">
                <div style="width: 320px; height: 50px; margin-left: auto; margin-right: auto; margin-bottom: 15px;">
                    <div class="share-text">partager</div>
                    <div style="width:60px ; top: 5px ; float: right;"><?php obj_copy_clipboard($row) ; ?></div>
                    <div style="width:60px ; top: 5px ; float: right;"><?php obj_tweetShare_white($row) ; ?></div>
                    <div style="width:60px ; top: 5px ; float: right;"><?php obj_fbShare_white($row) ; ?></div>
                </div>
            </div>
            <?php
            echo '<div class="credit-photo" style="background-color: rgba('.$rgb[0].', '.$rgb[1].', '.$rgb[2].', 0.5);"></div>';
            echo '<div class="right-credit">';
                if($row[27] != '') {
                    echo ($row[25]).' - &copy; '.($row[27]);
                } else {
                    echo ($row[25]);
                }
            echo '</div>';
            echo '</center>';
            adm_zone_end() ;

            zone_newsArticle($row, 0, false, true, $local) ;
            zone_diaporama($row) ;
            echo '<br>';
            zone_commentaires($row[0]) ;
?>
        </div>
    </div>
    <div class="col-lg-3 col-md-4 col-sm-6 col-xs-12" style="height: 265px;">
            <?php pge_ad_pave('col-lg-12 ad ad-info-list vPetite pub') ?>
    </div>
    <?php /*<div class="col-lg-3 col-md-4 col-sm-6 col-xs-12">
        <?php zone_tweet('RadioScoopOff', 5, '700px;')?>
    </div>
    */ ?>
    <div class="col-lg-3 col-md-4 col-sm-6 col-xs-12">
        <div class="col-lg-12 vPetite article mostRead">
            <div class="anim-div-name">Les plus lus</div>
            <?php page_mostReadedSimple('Les plus lus', 11, 4, 320, 180) ; ?>
        </div>
    </div>
    <div class="col-lg-3 col-md-4 col-sm-6 col-xs-12" style="margin-bottom: 30px !important;">
    <?php 
        pge_pub_opti_sidebar();
    ?>
    </div>
    <div class="col-lg-3 col-md-4 col-sm-6 col-xs-12" style="margin-bottom: 30px !important;">
        <?php /*zone_infoPlayer_square(70, "m.titre LIKE 'Starflash%' AND");*/ ?>
        <?php zone_infoPlayer_square(40); ?>
    </div>
    <div class="col-lg-3 col-md-4 col-sm-6 col-xs-12">
        <div class="col-lg-12 vPetite article same-subject">
            <div class="anim-div-name">Sur le même sujet</div>
            <?php zone_listFromArticleKw($id, 0, 'a.dte > NOW() - INTERVAL 3 MONTH') ;?>
        </div>
    </div>
    <div class="col-lg-3 col-md-4 col-sm-6 col-xs-12" style="float:right;">
        <div class="col-lg-12 questionoftheday vPetite special">
            <?php zone_poll(40,'people', '#FBB03B'); ?>
        </div>
    </div>
</div>
<div class="row">
<?php
    for($ite = 0; $ite < 16; $ite++){
        echo '<div class="col-lg-3 col-md-4 col-sm-6 col-xs-12"><!--Articles-->';
            pge_pub_article($rows,$ite);
        echo '</div>';
    }
?>
    <?php
$rowInfos = sql_getArticlesByCat(11, 2, "a.id <> '".addslashes($id)."' AND a.dte <= NOW() AND a.dte > NOW() - INTERVAL 1 MONTH", "DATE(a.dte) DESC, a.villes NOT LIKE '%".$user['freq']."%', a.ordre, a.dte DESC", true, '', true) ; ;
//$rowSport = sql_getArticlesByCat(0, 2, "(a.cat <> 109 AND a.cat <> 110 AND a.cat <> 111) AND (a.cat=12 OR c.path LIKE '%-12-%' OR a.cat=13 OR c.path LIKE '%-13-%') AND a.dte <= NOW() AND a.villes LIKE '%".$user['freq']."%'", "DATE(a.dte) DESC, a.villes NOT LIKE '%".$user['freq']."%',a.ordre, a.dte DESC", true, '', true) ; ;
$rowSport = sql_getArticlesByCat(12, 2, "a.villes LIKE '%".$user['freq']."%' AND a.dte > NOW() - INTERVAL 1 MONTH", "DATE(a.dte) DESC, a.villes NOT LIKE '%".$user['freq']."%',a.ordre, a.dte DESC", true, '', true) ; ;
$rowPeople = sql_getArticlesByCat(14, 1, 'a.dte <= NOW() AND a.dte > NOW() - INTERVAL 1 MONTH', "DATE(a.dte) DESC, a.villes NOT LIKE '%".$user['freq']."%',a.ordre, a.dte DESC", true, '', false) ; 	;
$rowReportages = sql_getArticlesByCat(10, 1, "a.id <> '".addslashes($id)."' AND a.dte <= NOW() AND a.dte > NOW() - INTERVAL 1 MONTH", "DATE(a.dte) DESC, a.ordre, a.dte DESC", true, '', true) ; ;

    echo '<div class="col-lg-3 col-md-4 col-sm-6 col-xs-12"><!--Articles-->';
        adm_zone_start($rowInfos[0][1], $rowInfos[0][0]);
?>
        <div class="col-lg-12 article vPetite">
            <a href="<?=$rowInfos[0][10]?>">
                <div class="image image-article">
                    <?php zone_imageFromQuery2($rowInfos[0], 300, 141) ; ?>
                </div>
                <div class="pastille infos">
                    <h3><?php formatPastille($rowInfos[0][2]); ?></h3>
                </div>
                <div class="vignette">
                    <h3 class="article-title"><?=formatTitle($rowInfos[0][3]);?></h3>
                </div>
            </a>
        </div>
<?php
        adm_zone_end();
    echo '</div>';
    if($rowSport[0][0] == $rowInfos[1][0] || $rowSport[0][0] == $rowInfos[0][0]) {
        $rowSport[0] = $rowSport[1];
    }
    echo '<div class="col-lg-3 col-md-4 col-sm-6 col-xs-12"><!--Articles-->';
        adm_zone_start($rowSport[0][1], $rowSport[0][0]);
?>
        <div class="col-lg-12 article vPetite">
            <a href="<?=$rowSport[0][10]?>">
                <div class="image image-article">
                    <?php zone_imageFromQuery2($rowSport[0], 300, 141) ; ?>
                </div>
                <div class="pastille infos">
                    <h3><?php formatPastille($rowSport[0][2]); ?></h3>
                </div>
                <div class="vignette">
                    <h3 class="article-title"><?=formatTitle($rowSport[0][3]);?></h3>
                </div>
            </a>
        </div>
<?php
        adm_zone_end();
    echo '</div>';
    echo '<div class="col-lg-3 hidden-md col-sm-6 col-xs-12"><!--Articles-->';
        adm_zone_start($rowInfos[1][1], $rowInfos[1][0]);
?>
        <div class="col-lg-12 article vPetite">
            <a href="<?=$rowInfos[1][10]?>">
                <div class="image image-article">
                    <?php zone_imageFromQuery2($rowInfos[1], 300, 141) ; ?>
                </div>
                <div class="pastille infos">
                    <h3><?php formatPastille($rowInfos[1][2]); ?></h3>
                </div>
                <div class="vignette">
                    <h3 class="article-title"><?=formatTitle($rowInfos[1][3]);?></h3>
                </div>
            </a>
        </div>
<?php
        adm_zone_end();
    echo '</div>';
    echo '<div class="col-lg-3 col-md-4 col-sm-6 col-xs-12"><!--Articles-->';
        adm_zone_start($rowReportages[0][1], $rowReportages[0][0]);
?>
        <div class="col-lg-12 article vPetite">
            <a href="<?=$rowReportages[0][10]?>">
                <div class="image image-article">
                    <?php zone_imageFromQuery2($rowReportages[0], 300, 141) ; ?>
                </div>
                <div class="pastille reportage">
                    <h3><?php formatPastille($rowReportages[0][2]); ?></h3>
                </div>
                <div class="vignette">
                    <h3 class="article-title"><?=formatTitle($rowReportages[0][3]);?></h3>
                </div>
            </a>
        </div>
<?php
        adm_zone_end();
    echo '</div>';?>
</div>
<?php
}
//==============================================================================
function pge_show($id) {
	global $user ;

	$row = sql_getArticleById($id) ;
	echo '<div class="col-lg-12 pleft0 pright0">';
	echo '<div class="col-lg-12 mbot0">';
		echo'<a class="titre_big" href="'.$row[10].'">';
		adm_zone_start($row[1], $row[0], $zone) ;
		echo mb_strtoupper($row[3]) ;
		adm_zone_end() ;
		echo '</a><br/>';
	echo '</div>';
	echo '<div class="col-lg-12 pleft0 pright0" style="margin-top: 20px;">';
		echo '<div class="col-lg-9 scol-md-8">';
			adm_zone_start($row[1], $row[0], $zone, 'img') ;
			zone_imageFromQuery2($row, 960, 480);
			adm_zone_end() ;
			zone_newsArticle($row, 0, false, true, $local) ;
			zone_share_new($row) ;
			zone_diaporama($row) ;
		echo('</div>') ;
		pge_colRight();
	echo('</div>') ;

	// zone_newsArticle($row, 0, true, true) ;
	zone_commentaires($row[0]) ;
	echo('</div>') ;

}
//==============================================================================
function pge_list() {
    global $user, $page ;

    $cat = sql_getCatById($page['cat']) ;

    $nbArticles = 19;
    $rows = sql_getArticlesByCat(14, $nbArticles, 'a.dte <= NOW() AND a.dte > NOW() - INTERVAL 1 MONTH', "DATE(a.dte) DESC, a.villes NOT LIKE '%".$user['freq']."%',a.ordre, a.dte DESC", true, '', true) ;
    //$rowsInsolite = sql_getArticlesByCat(178, $nbArticles, "a.id <> '".addslashes($id)."' AND a.dte <= NOW() AND a.dte > NOW() - INTERVAL 1 MONTH", "DATE(a.dte) DESC, a.villes NOT LIKE '%".$user['freq']."%', a.ordre, a.dte DESC", true, '', true) ;

    $day = '' ;
?>

<input type="hidden" class="page-cat" value=<?=$page['cat']?>>
<input type="hidden" id="user-freq" value=<?=$user['freq']?>>
<input type="hidden" id="type" value="people">
<div class="row reportages-row" style="position: relative;padding-top:20px;margin-bottom: 22px;">
    <div class="row">
        <div class="col-xs-12">
            <h1 class="see-more">
                <a>
                    <div class="people-category">People / Buzz</div>
                </a>
            </h1>
        </div>
    </div>
</div>
<div class="row">
    <div class="col-lg-6 col-md-8 col-sm-12 col-xs-12"><!--Article principal-->
        <?php adm_zone_start($rows[0][1], $rows[0][0]); ?>
        <div class="article main main-article vLarge">
            <a href="<?=$rows[0][10]?>">
                <div class="image image-article">
                    <?php zone_imageFromQuery2($rows[0], 630, 281, '', '', 'red') ; ?>
                </div>
                <div class="pastille people">
                    <h3><?php formatPastille($rows[0][2]); ?></h3>
                </div>
                <div class="vignette">
                    <h2 class="article-title"> <?php formatTitle($rows[0][3]);?></h2>
                </div>
            </a>
        </div>
        <?php adm_zone_end(); ?>
    </div>
    <div class="col-lg-3 col-md-4 col-sm-12 col-xs-12"><!--Pub + Question du jour-->
            <?php pge_ad_pave('col-md-12 col-sm-6 ad ad-info-list vPetite pub pub-list'); ?>
        <div class="col-md-12 col-sm-6 questionoftheday vPetite special">
            <?php zone_poll(40,'people', '#FBB03B'); ?>
        </div>
    </div>
<?php
    $insolite = 0;
    for($ite = 1; $ite < 7; $ite++){
            echo '<div class="col-lg-3 col-md-4 col-sm-6 col-xs-12 "><!--Articles-->';
                adm_zone_start($rows[$ite][1], $rows[$ite][0]);
?>
                <div class="col-lg-12 article vPetite">
                    <a href="<?=$rows[$ite][10]?>">
                        <div class="image image-article">
                            <?php zone_imageFromQuery2($rows[$ite], 300, 141) ; ?>
                        </div>
                    <div class="pastille people">
                        <h3><?php formatPastille($rows[$ite][2]); ?></h3>
                    </div>
                        <div class="vignette">
                            <h3 class="article-title"> <?=formatTitle($rows[$ite][3]);?></h3>
                        </div>
                    </a>
                </div>
<?php
                adm_zone_end();
            echo '</div>';
    }
?>
    <div class="col-lg-3 col-md-4 col-sm-6 col-xs-12">
        <?php zone_infoPlayer_square(70, "m.titre LIKE 'Starflash%' AND"); ?>
    </div>
</div>
<?php pge_pub_opti_billboard(); ?>
<?php pge_meteo(); ?>
<div class="row" style="margin-top: 70px;">
<!--    <div class="col-lg-3 col-md-4 col-sm-6 col-xs-12"><!--Pub + Question du jour-->
<!--            --><?php //pge_ad_pave('col-lg-12 ad ad-info-list vPetite pub','2'); ?>
<!--    </div>-->
<?php
    for($ite = 7; $ite < $nbArticles; $ite++){
            echo '<div class="col-lg-3 col-md-4 col-sm-6 col-xs-12"><!--Articles-->';
                adm_zone_start($rows[$ite][1], $rows[$ite][0]);
?>
                <div class="col-lg-12 article vPetite">
                    <a href="<?=$rows[$ite][10]?>">
                        <div class="image image-article">
                            <?php zone_imageFromQuery2($rows[$ite], 300, 141) ; ?>
                        </div>
                        <div class="pastille people">
                            <h3><?php formatPastille($rows[$ite][2]); ?></h3>
                        </div>
                        <div class="vignette">
                            <h3 class="article-title"><?=formatTitle($rows[$ite][3]);?></h3>
                        </div>
                    </a>
                </div>
<?php
                adm_zone_end();
            echo '</div>';
    }
?>
<div class="col-xs-12 load-more-infos-div"><div class="see-more"><a id="load-more-infos"><div class="see-more-people">+ de People / Buzz</div></a></div></div>
</div>

<div class="row row-replay-infos" style="margin-top: -4px;">
<?php pge_pub_opti_billboard('2'); ?>
<?php /*separator.php*/ pge_radio_replay(); ?>
</div>

<div class="row infos-row-last" style="position: relative;margin-bottom: 22px; margin-top: 10px;">
    <div class="row">
        <div class="col-xs-12">
            <h1 class="see-more">
                <a>
                    <div class="people-category">Derniers articles</div>
                </a>
            </h1>
        </div>
    </div>
</div>
<?php
$rowInfos = sql_getArticlesByCat(11, 3, "a.id <> '".addslashes($id)."' AND a.dte <= NOW() AND a.dte > NOW() - INTERVAL 1 MONTH", "DATE(a.dte) DESC, a.villes NOT LIKE '%".$user['freq']."%', a.ordre, a.dte DESC", true, '', true) ; ;
//$rowSport = sql_getArticlesByCat(0, 2, "(a.cat <> 109 AND a.cat <> 110 AND a.cat <> 111) AND (a.cat=12 OR c.path LIKE '%-12-%' OR a.cat=13 OR c.path LIKE '%-13-%') AND a.dte <= NOW() AND a.villes LIKE '%".$user['freq']."%'", "DATE(a.dte) DESC, a.villes NOT LIKE '%".$user['freq']."%',a.ordre, a.dte DESC", true, '', true) ; ;
$rowSport = sql_getArticlesByCat(12, 2, "a.villes LIKE '%".$user['freq']."%' AND a.dte > NOW() - INTERVAL 1 MONTH", "DATE(a.dte) DESC, a.villes NOT LIKE '%".$user['freq']."%',a.ordre, a.dte DESC", true, '', true) ; ;
$rowCommunity = sql_getArticlesByCat(236, 1, 'a.dte <= NOW() AND a.dte > NOW() - INTERVAL 1 MONTH', "DATE(a.dte) DESC, a.villes NOT LIKE '%".$user['freq']."%',a.ordre, a.dte DESC", true, '', false) ; 	;
$rowReportages = sql_getArticlesByCat(10, 1, "a.id <> '".addslashes($id)."' AND a.dte <= NOW() AND a.dte > NOW() - INTERVAL 1 MONTH", "DATE(a.dte) DESC, a.ordre, a.dte DESC", true, '', true) ; ;
if($rowInfos[0][0] == $rowSport[0][0]) {
    $rowSport[0] = $rowSport[1];
}
if($rowInfos[1][0] == $rowSport[0][0]) {
    $rowInfos[1] = $rowInfos[2];
}

if (count($rowReportages) == 0) {
    $rowReportages = $rowCommunity ; 
}

echo '<div class="row">';
    echo '<div class="col-lg-3 col-md-4 col-sm-6 col-xs-12"><!--Articles-->';
        adm_zone_start($rowInfos[0][1], $rowInfos[0][0]);
?>
        <div class="col-lg-12 article vPetite">
            <a href="<?=$rowInfos[0][10]?>">
                <div class="image image-article">
                    <?php zone_imageFromQuery2($rowInfos[0], 300, 141) ; ?>
                </div>
                <div class="pastille infos">
                    <h3><?php formatPastille($rowInfos[0][2]); ?></h3>
                </div>
                <div class="vignette">
                    <h3 class="article-title"><?=formatTitle($rowInfos[0][3]);?></h3>
                </div>
            </a>
        </div>
<?php
        adm_zone_end();
    echo '</div>';
    echo '<div class="col-lg-3 col-md-4 col-sm-6 col-xs-12"><!--Articles-->';
        adm_zone_start($rowSport[0][1], $rowSport[0][0]);
?>
        <div class="col-lg-12 article vPetite">
            <a href="<?=$rowSport[0][10]?>">
                <div class="image image-article">
                    <?php zone_imageFromQuery2($rowSport[0], 300, 141) ; ?>
                </div>
                <div class="pastille infos">
                    <h3><?php formatPastille($rowSport[0][2]); ?></h3>
                </div>
                <div class="vignette">
                    <h3 class="article-title"><?=formatTitle($rowSport[0][3]);?></h3>
                </div>
            </a>
        </div>
<?php
        adm_zone_end();
    echo '</div>';
    echo '<div class="col-lg-3 hidden-md col-sm-6 col-xs-12"><!--Articles-->';
        adm_zone_start($rowInfos[1][1], $rowInfos[1][0]);
?>
        <div class="col-lg-12 article vPetite">
            <a href="<?=$rowInfos[1][10]?>">
                <div class="image image-article">
                    <?php zone_imageFromQuery2($rowInfos[1], 300, 141) ; ?>
                </div>
                <div class="pastille infos">
                    <h3><?php formatPastille($rowInfos[1][2]); ?></h3>
                </div>
                <div class="vignette">
                    <h3 class="article-title"><?=formatTitle($rowInfos[1][3]);?></h3>
                </div>
            </a>
        </div>
<?php
        adm_zone_end();
    echo '</div>';
    echo '<div class="col-lg-3 col-md-4 col-sm-6 col-xs-12"><!--Articles-->';
        adm_zone_start($rowReportages[0][1], $rowReportages[0][0]);
?>
        <div class="col-lg-12 article vPetite">
            <a href="<?=$rowReportages[0][10]?>">
                <div class="image image-article">
                    <?php zone_imageFromQuery2($rowReportages[0], 300, 141) ; ?>
                </div>
                <div class="pastille reportage">
                    <h3><?php formatPastille($rowReportages[0][2]); ?></h3>
                </div>
                <div class="vignette">
                    <h3 class="article-title"><?=formatTitle($rowReportages[0][3]);?></h3>
                </div>
            </a>
        </div>
<?php
        adm_zone_end();
    echo '</div>';
echo '</div>';
}
//==============================================================================
function pge_other($id) {
	global $user ;

	str_bloc('Voir aussi', '', 5, '#0080FF') ;

		$rows = sql_getArticlesByCat(14, 10, "a.id <> '".addslashes($id)."' AND a.dte <= NOW()", "DATE(a.dte) DESC, a.ordre, a.dte DESC", true, '', false) ;

		$day = '' ;
		foreach($rows as $row) {
			$top = ($day != date('z', $row[8]))  ;
			zone_newsArticle($row, 0, false) ;
			$day = date('z', $row[8]) ;
		}


}
//==============================================================================
function pge_cadeaux() {
	$rows = sql_getPlanifArticlesByZone('cadeaux', 1, '1', true, '', '*', 'grandmag') ;

	if ($rows != false) {
		str_bloc('Les cadeaux') ;
			foreach($rows as $row) {
				zone_articleFromQuery($row, false, 160,90,'left' , 16) ;
			}

	}
}
//==============================================================================
function pge_evenements() {
	$rows = sql_getPlanifArticlesByZone(15, 1, true, '', '', 'people') ;

	if ($rows != false) {
			str_bloc('Les évènements') ;

			foreach($rows as $row) {
				zone_articleFromQuery($row, false, 160, 90, '', 29) ;
			}


	}
}
//==============================================================================
function pge_replay() {
    $row = sql_getArticleById(82906) ;
    zone_podcastFromQuery($row, '', 5, true) ;
}
//==============================================================================
function pge_poll() {
	global $user ;

	str_bloc('La question du jour') ;
	zone_poll(40,'people') ;
	obj_link('Les autres questions', '/sondage.php') ;

}

//==============================================================================
	str_page_begin('Bienvenue') ;

        if ($_GET['cat'] != '') $page['cat'] = $_GET['cat'] ;

        if ($user['freq'] == 'Ly') $page['cover'] = 148392 ;
        if ($user['freq'] == 'St') $page['cover'] = 140669 ;
        if ($user['freq'] == 'Py') $page['cover'] = 140669 ;
        if ($user['freq'] == 'Bg') $page['cover'] = 140705 ;
        if ($user['freq'] == 'Cl') $page['cover'] = 140704 ;

            pge_structure() ;

	str_page_end() ;

//==============================================================================

?>
