15 define(
'IN_RUBRIQUE_ARTICLE',
true);
16 if (defined(
'PEEL_PREFETCH')) {
19 include(
"../configuration.inc.php");
22 if (!empty($_GET[
'artid']) && empty($_GET[
'rubid']) && empty($_GET[
'id'])) {
24 $_GET[
'id'] = intval($_GET[
'artid']);
25 }
elseif (!empty($_GET[
'rubid']) && empty($_GET[
'id'])) {
27 $_GET[
'id'] = intval($_GET[
'rubid']);
28 }
elseif (empty($_GET[
'id'])) {
31 $_GET[
'id'] = intval($_GET[
'id']);
34 $sql =
"SELECT p.technical_code, p.on_reseller, p.id, p.titre_" .
$_SESSION[
'session_langue'] .
", pc.rubrique_id, r.nom_" .
$_SESSION[
'session_langue'] .
" AS rubrique_nom
36 INNER JOIN peel_articles_rubriques pc ON p.id = pc.article_id
37 INNER JOIN peel_rubriques r ON r.id = pc.rubrique_id AND r.technical_code NOT IN ('other', 'iphone_content') AND " .
get_filter_site_cond(
'rubriques',
'r') .
"
43 if(!empty($art[
'technical_code']) &&
String::strpos($art[
'technical_code'],
'R=') === 0) {
46 if(strpos($url_art,
'://') ===
false) {
48 $url_art =
'/' . $url_art;
50 $url_art =
$GLOBALS[
'wwwroot'] . $url_art;
54 if($art[
'on_reseller'] == 1 && !
a_priv(
"admin_product") && !
a_priv(
"reve")) {
64 if ($art[
'technical_code'] ==
'tradefair') {
65 $GLOBALS[
'main_div_id'] =
'tradefair';
66 }
elseif ($art[
'technical_code'] ==
'tradefloor') {
67 $GLOBALS[
'main_div_id'] =
'tradefloor';
73 if (get_content_url($art[
'id'], $art[
"titre_" .
$_SESSION[
'session_langue']], $art[
'rubrique_id'], $art[
"rubrique_nom"]) !=
get_current_url(
false) &&
String::strpos(substr($_SERVER[
'REQUEST_URI'], 1),
'/') !==
false) {
75 $theoretical_current_url = get_content_url($art[
'id'], $art[
"titre_" . $_SESSION[
'session_langue']], $art[
'rubrique_id'], $art[
"rubrique_nom"]);
79 $_GET[
'rubid'] = $art[
'rubrique_id'];
82 $tpl =
$GLOBALS[
'tplEngine']->createTemplate(
'article_details.tpl');
83 $tpl->assign(
'article_details_html', get_article_details_html(intval($_GET[
'id'])));
86 if (!empty(
$GLOBALS[
'site_parameters'][
'enable_create_product_in_front_office']) && $art[
'technical_code'] ==
'display_product_form') {
87 $output .= update_product_from_front_office($_POST);
89 $GLOBALS[
'page_columns_count'] =
$GLOBALS[
'site_parameters'][
'article_details_index_page_columns_count'];
90 include(
$GLOBALS[
'repertoire_modele'] .
"/haut.php");
92 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()
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.
if(strlen($date2)== '10') if($type== 'users-by-age'&&a_priv('admin_users', true)) elseif($type== 'forums-count'&&a_priv('admin_content', true)) elseif($type== 'forums-categories'&&a_priv('admin_content', true)) elseif($type== 'users-count'&&a_priv('admin_users', true)) elseif($type== 'product-categories'&&a_priv('admin_products', true)) elseif($type== 'users-by-sex'&&a_priv('admin_users', true)) elseif($type== 'users-by-country'&&a_priv('admin_users', true)) elseif($type== 'sales'&&a_priv('admin_sales', true))
if(!empty($GLOBALS['site_parameters']['enable_create_product_in_front_office'])&&$art['technical_code']== 'display_product_form') $GLOBALS['page_columns_count']
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 ...
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...
if(defined('IN_PEEL_ADMIN')||IN_INSTALLATION) $_SESSION['session_langue']