erreur)
{ if($env->e == "forum" || strpos($_SERVER["SCRIPT_NAME"], "index.php") !== false)
{
# ----------------------------------------------------------------------------------------
# blocs
#
if(($env->out["emplacements"] = $env->data->box_emplacements()) === false)
{ $env->erreur = "Impossible de lire les emplacements";
}
if(($env->out["blocs"] = $env->data->boxes(0, null, true)) === false)
{ $env->erreur = "Impossible de lire les blocs";
}
# ----------------------------------------------------------------------------------------
# spotlight
#
if(($env->out["spotlight"] = $env->data->spotlight()) === false)
{ $env->out["spotlight"] = array();
}
# ----------------------------------------------------------------------------------------
# artistes au hasard
#
if(($env->out["artistes_au_hasard"] = $env->data->artistes_au_hasard(12)) === false)
{ $env->out["artistes_au_hasard"] = array();
}
# ----------------------------------------------------------------------------------------
# total des downloads
#
if(($env->out["nb_downloads"] = $env->data->nb_downloads(true)) === false)
{ $env->out["nb_downloads"] = 0;
}
# ----------------------------------------------------------------------------------------
# navigation
#
require $env->out_file("utils.php");
if(($env->out["menu_top"] = $env->data->all_menus(array("Nav"))) === false)
{ $env->out["menu_top"] = array();
}
# ----------------------------------------------------------------------------------------
# derniers messages du forum
#
if(($env->out["messages_forum"] = $env->data->forum_last_messages(7)) === false)
{ $env->out["messages_forum"] = array();
}
# ----------------------------------------------------------------------------------------
# news
#
$path = array("root", "news");
$depth = 1;
if(($env->out["b_categories"] = $env->data->all_news_categories()) !== false)
{ if(($env->out["b_news"] = $env->data->news($path, 0, $depth, true, 2)) !== false)
{
}
else $env->erreur .= "
Impossible de lire la liste des news";
}
else $env->erreur .= "
Impossible de lire la liste des categories de news";
# ----------------------------------------------------------------------------------------
# derniers albums
#
// if(($env->out["last_albums"] = $env->data->albums(0, 2, "date_publication", "DESC")) !== false)
if(($env->out["last_albums"] = $env->data->albums(0, 1, "rand()", "", "#--albums.actif=1")) !== false)
{
}
else $env->erreur .= "
Impossible de lire les derniers albums";
# ----------------------------------------------------------------------------------------
# charset
#
// header('Content-Type: text/html; charset=iso-8859-1');
header('Content-Type: text/html; charset=utf-8');
}
}
else
{ $env->out["spotlight"] = array();
$env->out["artistes_au_hasard"] = array();
$env->out["nb_downloads"] = 0;
$env->out["menu_top"] = array();
}
?>