14 if (defined(
'PEEL_PREFETCH')) {
17 include(
"../configuration.inc.php");
20 define(
'IN_RUBRIQUE',
true);
22 if (empty($_GET[
'rubid']) && !empty(
$GLOBALS[
'site_parameters'][
'disallow_main_content_category'])) {
30 $sql =
"SELECT r.nom_" .
$_SESSION[
'session_langue'] .
" as nom, etat, technical_code
32 WHERE r.id ='" . intval(
$rubid) .
"' AND r.technical_code NOT IN ('other', 'iphone_content') AND " .
get_filter_site_cond(
'rubriques',
'r') .
"
33 ORDER BY r.position " . (!empty(
$GLOBALS[
'site_parameters'][
'content_category_primary_order_by'])?
", r." .
$GLOBALS[
'site_parameters'][
'content_category_primary_order_by'] :
'') .
"
37 if(!empty($rub[
'technical_code']) &&
String::strpos($rub[
'technical_code'],
'R=') === 0) {
40 if(strpos($url_rub,
'://') ===
false) {
42 $url_rub =
'/' . $url_rub;
44 $url_rub =
$GLOBALS[
'wwwroot'] . $url_rub;
48 if($rub[
'etat']==0 && !
a_priv(
'admin_content',
false)) {
52 if ($rub[
'technical_code'] ==
'tradefair' || $rub[
'technical_code'] ==
'tradefaire_home') {
53 $GLOBALS[
'main_div_id'] =
'tradefair';
54 }
elseif ($rub[
'technical_code'] ==
'tradefloor') {
55 $GLOBALS[
'main_div_id'] =
'tradefloor';
61 $theoretical_current_url = (!empty($_GET[
'page'])?get_content_category_url(
$rubid, $rub[
'nom'],
true,
true) .
'page=' . $_GET[
'page']:get_content_category_url(
$rubid, $rub[
'nom']));
69 if (function_exists(
'has_special_article') && has_special_article(
$rubid)) {
70 $class =
"special_content";
73 $tpl =
$GLOBALS[
'tplEngine']->createTemplate(
'lire.tpl');
75 $tpl->assign(
'articles_list_brief_html', get_articles_list_brief_html(
$rubid));
78 $GLOBALS[
'page_columns_count'] =
$GLOBALS[
'site_parameters'][
'lire_index_page_columns_count'];
79 include(
$GLOBALS[
'repertoire_modele'] .
"/haut.php");
81 include(
$GLOBALS[
'repertoire_modele'] .
"/bas.php");
static strpos($haystack, $needle, $offset=0)
Returns the numeric position of the first occurrence of needle in the haystack string.
get_current_url($with_get=true, $get_short_url=false, $take_away_get_args_array=null)
get_current_url()
if($rub=fetch_assoc($rub_query)) if(check_if_module_active('url_rewriting')) $class
redirect_and_die($url, $permanent_redirection=false, $avoid_loop=false)
Redirige vers l'URL demandée et arrête le programme.
get_filter_site_cond($table_technical_code, $table_alias=null, $use_strict_rights_if_in_admin=false, $specific_site_id=null, $exclude_public_items=false, $admin_force_multisite_if_allowed=false)
Retourne la condition SQL permettant de filtrer les données pour une table.
query($query, $die_if_error=false, $database_object=null, $silent_if_error=false, $security_sql_filter=true)
The query() function is meant to be called anywhere you want to make a query.
fetch_assoc($query_result)
fetch_assoc()
call_module_hook($hook, $params, $mode= 'boolean')
Appelle la fonction correspondant au $hook pour chaque module installé La fonction doit s'appeler : [...
a_priv($requested_priv, $demo_allowed=false, $site_configuration_modification=false, $user_id=null)
Renvoie true si l'utilisateur de la session a le privilège $requested_priv ou un droit supérieur Des ...
if(!isset($_GET['lettre'])&&!isset($_GET['id'])) elseif(isset($_GET['lettre'])&&!isset($_GET['id'])) elseif(isset($_GET['lettre'])&&isset($_GET['id']))
static substr($string, $start, $length=null)
Returns the portion of string specified by the start and length parameters.
check_if_module_active($module_name, $specific_file_name=null)
Renvoie si un module est présent et activé ou non - Peut être appelé avant ou après le chargement d'u...
$_SESSION['session_install_serveur']