";
/****** Grosse colonne de gauche *****/
echo "";
/**** BLOC IDENTIFICATION ***/
echo "
|
|
|
|
";
echo "";
if ($identite==14) echo "$TO_CONNECT"; else echo "$YOUR_DATA_HOME";
echo "";
echo " |
|
|
";
echo "";
if ($identite==14)
{
echo "";
echo "$RGST_REGISTER";
}
else
{
echo "";
print(get_pseudo($identite));
$rubrique_go=$nrub-1;
echo " ";
echo "Logout
";
//********Code d'origine********//
// if ($nrub>0) {
// if ( (check_acces($identite,$nrub)==2 and $stopic[$nrub]>=2) or $identite==1)
// echo "Publier ";}
if ($nrub>0) {
if ( (check_acces($identite,$nrub)==2 and $stopic[$nrub]>=2) or $identite==1)
echo "Publier Publier Métas ";}
if ($identite==1) {echo "Admin ";}
if ((($nrub==0) and ($identite!=14 and $identite>1)) or ((check_acces($identite,12)==2)and ($identite!=14 and $identite>1))){
if ((check_acces($identite,12)==2))
echo "Publier un lien Pub. lien Métas ";}
//if ($nrub>0) {
// if ( (check_acces($identite,$nrub)==2 and $stopic[$nrub]>=2))
// echo "Publier ";}
if ($identite!=14) echo "Mon compte ";}
if ($identite!=14) {echo "Mes Liens";}
echo " | ";
echo " | ";
echo " ";
echo " | ";
echo " | ";
echo "";
echo " | ";
echo " ";
echo " ";
echo " ";
/****** Bloc COLONNE DE GAUCHE ****/
echo "";
echo "
|
|
|
|
";
echo " ";
if ($nrub) {echo "$BASICS_TEXT $Rubrique";}
else { echo "$INTRO_TEXT";}
echo "";
echo " | ";
echo " | ";
echo "
|
";
echo "";
if ($nrub) affiche($nrub-1,1,15,$droits);
else echo "$edito";
echo "";
echo " | ";
echo " | ";
echo " ";
echo "
|
|
|
";
echo " ";
echo "";
echo "";
echo "";
echo "";
/******** Espace de séparation entre les blocs de gauche et la partie du milieu ****/
echo " | $vertical_sep | ";
/**** Bloc principal ****/
/***** If it's a topic **************************/
if ($nrub and !$article)
{echo "";
$modus=sprintf("%s_%s","topic",$topic[$nrub]); /** Log supplementaire **/
add_log($modus,$identite);
echo "| ";
echo "";
echo "$topic[$nrub] | ";
if ($nrub>0) {
if ( (check_acces($identite,$nrub)==2 and $stopic[$nrub]>=2) or $identite==1)
echo "($PUBLISH_ARTICLE) | ";}
echo "
| ";
echo " ";
affiche_section($nrub-1,20,$identite,$page);
}
else
/***** Moteur **************************/
if ($search)
{echo " | ";
echo "| ";
echo "";
echo "(Retour) | ";
if ($nrub>0) {
if ( (check_acces($identite,$nrub)==2 and $stopic[$nrub]>=2) or $identite==1)
echo "($PUBLISH_ARTICLE) | ";}
echo "
| ";
echo " ";
echo "Résultats de la recherche
";
affiche_search($article,20,$identite,$search,$page);
}
else
/***** Mes liens **************************/
if ($mesliens)
{echo " | ";
echo "| ";
echo "";
echo "(Accueil) | ";
if ($nrub>0) {
if ( (check_acces($identite,$nrub)==2 and $stopic[$nrub]>=2) or $identite==1)
echo "($PUBLISH_ARTICLE) | ";}
echo "
| ";
echo " ";
echo "Mes Liens";
affiche_liens($article,20,$mesliens,$identite,$page);
}
else
/********************* If it's a full article ******/
if ($article) {
echo " | | ";
echo "";
echo "$topic[$nrub] | ";
if ($nrub>0) {
if ( (check_acces($identite,$nrub)))
echo "($RETURN_TOPIC) | ";}
echo "
| ";
echo " ";
affiche_long($article,$identite);}
else
{
/******************** If it is the homepage *********/
$table=$TABLE_HEADLINES;
/*** Get the calls ***/
echo "$horizontal_sep";
echo "Faq : [Pourquoi
s'inscrire ?]~[Comment publier ?]~[Moteur
]~[Mes Liens]~[Raccourci
vers Mes Liens]~[Icône Mail]~[Icône Lien] ";
echo " | ";
//echo "";
echo " | ";
echo " | ";
echo " | ";
echo " | ";
echo "";
$idhd=display_headline();
echo " | | ";
echo " | ";
echo " | ";
echo " | ";
echo "
";
/*** mode=0 for public, 1 for private**/
echo " ";
echo "$horizontal_sep";
echo " ";
//echo " ";
echo " ";
echo " ";
echo "| $NEW_STUFF | | | ";
echo "| ";
$col2=display_index($nb_index,0,$idhd,0);
echo " | ";
echo "";
display_index($nb_index,$col2,$idhd,0);
//if ($identite!=14) display_index($nb_index,0,$idhd,1); else display_index($nb_index,$col2,$idhd,0);
echo " | ";
echo " ";
//Rajout PhpMyChat*****************************************************************************************************//
// relative path from this page to your chat directory
$ChatPath = "./chat/";
// HTML link to launch the chat (used by constants below)
$ChatLaunch = " chat";
$ShowPrivate = "0"; // 1 to display users even if they are in a private room,
// 0 else
$DisplayUsers = "0"; // 0 to display only the number of connected users
// 1 to display a list of users
define("NB_USERS_IN"," utilisateur(s) sur le ".$ChatLaunch." actuellement."); // used if $DisplayUsers = 0
define("USERS_LOGIN","Utilisateur(s) sur le ".$ChatLaunch." actuellement:"); // used if $DisplayUsers = 1
define("NO_USER","Personne sur le ".$ChatLaunch." actuellement.");
require("./${ChatPath}/lib/connected_users.lib.php3");
echo "
";
echo "
| ";
echo "Le Chat du site";
echo " | | ";
echo "";
display_connected($ShowPrivate,$DisplayUsers,($DisplayUsers ? USERS_LOGIN : NB_USERS_IN),NO_USER);
echo " |
";
//*******************************************************************************************************************//
echo " | ";
/******** Espace de séparation entre les blocs de droite et la partie du milieu ****/
echo "$vertical_sep | ";
/*************************************************/
echo "";
connect_db();
$query="select * from $table where (Text!='pubhead' and Text!='privhead') ORDER BY kind";
$resu=mysql_db_query($base,$query);
mysql_close();
while ($row=mysql_fetch_array($resu))
{
$call=$row["title"];
$call_text=$row["text"];
$t=$row["topic"];
if (check_acces($identite,$t)) {
echo "";
echo "
|
|
|
";
echo "
|
";
echo "";
echo "$call";
echo "";
echo " | | ";
echo " ";
echo " | ";
echo "";
echo "";
echo "$call_text";
if ($t!=127) /*** If its linked to a topic ***/
echo " ($TOPIC_GLOBAL_NAME $topic[$t])";
echo "";
echo " | ";
echo " | ";
echo " ";
echo "
|
|
| ";
echo " "; }} echo " | ";}
/********************************************************/
echo "";
echo "
";
echo "