";
/****** Grosse colonne de gauche *****/
$first_title="";
if ($identite==14) $first_title= "$first_title$TO_CONNECT"; else $first_title= "$first_title$YOUR_DATA_HOME";
$first_title= "$first_title";
$admin_text= "";
if ($identite==14)
{
$admin_text= "$admin_text";
$admin_text= "$admin_text$RGST_REGISTER";
}
else
{
$admin_text= "$admin_text";
$admin_text=sprintf("%s%s",$admin_text,get_pseudo($identite));
$rubrique_go=$nrub-1;
$admin_text= "$admin_text
";
$admin_text= "$admin_textLogout
";
if ($nrub>0) {
if ( (check_acces($identite,$nrub)==2 and $stopic[$nrub]>=2) or $identite==1)
$admin_text= "$admin_text$PUBLISH
";}
if ($identite==1) {$admin_text= "$admin_textAdmin
";}
if ($identite!=14) $admin_text= "$admin_text$MY_PROFILE";
}
$admin_text= "$admin_text";
/********************/
$second_title= "";
if ($nrub) {$second_title= "$second_title$BASICS_TEXT $Rubrique";}
else { $second_title= "$second_title$INTRO_TEXT";}
$second_title= "$second_title";
/********************/
$text_little_col= "";
if ($nrub) $text_little_col=sprintf("%s%s",$text_little_col,affiche($nrub-1,15,$droits));
else $text_little_col= "$text_little_col$edito";
$text_little_col= "$text_little_col";
/********************/
require "./images/theme/$THEME/leftblock.php3";
/**** 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);
if (!$page) $page=0;
if ($nrub>0)
if ( (check_acces($identite,$nrub)==2 and $stopic[$nrub]>=2) or $identite==1)
{
$link_action="user_action.php3?op=enter_text&rubrique=$rubrique_go";
$topic_name=$topic[$nrub];
$link_text=$PUBLISH_ARTICLE;
require "./images/theme/$THEME/above_topic.php3";
}
affiche_section($nrub,$nb_articles_page,$identite,$page);
}
else
/********************* If it's a full article ******/
if ($article and $nrub>0) {
echo " | ";
$rubback=urlencode($topic[$nrub]);
$link_action="index.php3?Rubrique=$rubback";
$topic_name=$topic[$nrub];
$link_text=$RETURN_TOPIC;
require "./images/theme/$THEME/above_topic.php3";
affiche_long($article,$identite);}
else
{
/******************** If it is the homepage *********/
$table=$TABLE_HEADLINES;
/*** Get the calls ***/
echo " | ";
require "./images/theme/$THEME/headlineblock.php3";
/*** mode=0 for public, 1 for private**/
require "./images/theme/$THEME/indexblock.php3";
echo " | ";
echo "";
connect_db();
$query="select * from $table where (Text!='pubhead' and Text!='privhead') ORDER BY date DESC";
$resu=mysql_db_query($base,$query);
while ($row=mysql_fetch_array($resu))
{
$call=$row["title"];
$call_text=$row["text"];
$t=$row["topic"];
if ($t!=127) /*** If its linked to a topic ***/
{
$gorub=urlencode($topic[$t]);
$call_text=sprintf("%s%s",$call_text," ($TOPIC_GLOBAL_NAME $topic[$t])");
}
if (check_acces($identite,$t)) {
require "./images/theme/$THEME/right_block.php3";
}}
echo " | ";}
/********************************************************/
echo "";
echo "
";
echo "