error_reporting(E_NONE); if (ini_get('register_globals')) { foreach (array('_POST', '_GET', '_COOKIE', '_REQUEST', '_SERVER', '_ENV', '_FILES') as $array_name) { foreach ($$array_name as $key => $value) { if (isset($GLOBALS[$key])) { unset($GLOBALS[$key]); } if (isset($$key)) { unset($$key); } } } } define('SITE_SUSPENDED', false); define('IN_medianys', true); define('medianys_VERSION', '6.2'); define('medianys_DEBUG', false); if (!defined('IN_INSTALLATION')) { define('IN_INSTALLATION', false); } define('GENERAL_ENCODING', 'utf-8'); if (function_exists('mb_internal_encoding')) { @mb_internal_encoding(GENERAL_ENCODING); } if (function_exists('mb_detect_order')) { @mb_detect_order(GENERAL_ENCODING); } if (function_exists('mb_http_input')) { @mb_http_input(GENERAL_ENCODING); } if (function_exists('mb_http_output')) { @mb_http_output(GENERAL_ENCODING); } @ini_set('mbstring.internal_encoding', GENERAL_ENCODING); @ini_set('mbstring.detect_order', GENERAL_ENCODING); @ini_set('mbstring.http_input', GENERAL_ENCODING); @ini_set('mbstring.http_output', GENERAL_ENCODING); $compatibility_mode_with_htmlentities_encoding_content = false; $uploaded_file_max_size = "4194304"; $filesize_limit_keep_origin_file = "102400"; $image_max_width = "4000"; $image_max_height = "3000"; $jpeg_quality = 70; $session_cookie_name = "sid"; $sha256_encoding_salt = "k)I8#;z=TIxnXmIPdW2TRzt4Ov89|#V~cU@]"; $backoffice_directory_name = 'usK12orbUyrt98Ple235VBnOIs'; $dirroot = dirname(__FILE__); if (!empty($_SERVER['SCRIPT_FILENAME'])) { $file_called_real_path = str_replace('\\', '/', dirname($_SERVER['SCRIPT_FILENAME'])); } else { $file_called_real_path = str_replace('\\', '/', @realpath('./')); } $formatted_dirroot = str_replace('\\', '/', $dirroot); if (!empty($file_called_real_path) && strpos($file_called_real_path, $formatted_dirroot) !== false) { if ($formatted_dirroot == $file_called_real_path) { $medianys_subfolder = ''; } else { $medianys_subfolder = substr($file_called_real_path, strpos($file_called_real_path, $formatted_dirroot) + strlen($formatted_dirroot)); } } else { $medianys_subfolder = ''; } $file_called_relative_path = str_replace('\\', '/', dirname($_SERVER['PHP_SELF'])); $apparent_folder = substr($file_called_relative_path, 0, strlen($file_called_relative_path) - strlen($medianys_subfolder)); if(empty($apparent_folder) || substr($apparent_folder, strlen($apparent_folder)-1)!='/'){ $apparent_folder.='/'; } $GLOBALS['detected_wwwroot'] = 'http://' . $_SERVER["HTTP_HOST"] . substr($apparent_folder, 0, strlen($apparent_folder)-1); $repertoire_achat = $dirroot . "/creation"; $libdir = $dirroot . "/lib"; $config = $dirroot . "/lib/setup/info.inc.php"; $invoicedir = $dirroot . "/invoice"; $uploaddir = $dirroot . "/upload"; $liste_mots = $dirroot . "/liste_mots.txt"; require($config); if (empty($GLOBALS['wwwroot']) || substr($GLOBALS['wwwroot'], 0, 4) !== 'http') { $GLOBALS['wwwroot'] = $GLOBALS['detected_wwwroot']; } if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') { $GLOBALS['detected_wwwroot'] = str_replace('http://', 'https://', $GLOBALS['detected_wwwroot']); $GLOBALS['wwwroot'] = str_replace('http://', 'https://', $GLOBALS['wwwroot']); if (function_exists('ini_set')) { } } $GLOBALS['wwwroot_main'] = $GLOBALS['wwwroot']; $check_allowe_types = false; $allowed_types = array("image/gif" => ".gif", "image/pjpeg" => ".jpg, .jpeg", "image/jpeg" => ".jpg, .jpeg", "image/x-png" => ".png", "image/png" => ".png", "text/plain" => ".html, .php, .txt, .inc, .csv", "text/comma-separated-values" => ".csv", "application/comma-separated-values" => ".csv", "text/csv" => ".csv", "application/vnd.ms-excel" => ".csv", "application/csv-tab-delimited-table" => ".csv", "application/octet-stream" => "", "application/pdf" => ".pdf", "application/force-download" => "", "application/x-shockwave-flash" => ".swf", "application/x-download" => ""); $extensions_valides['any'] = array('jpg' , 'jpeg' , 'gif' , 'png', 'csv', 'txt', 'pdf', 'zip'); $extensions_valides['data'] = array('csv', 'txt'); $extensions_valides['image_or_pdf'] = array('jpg' , 'jpeg' , 'gif' , 'png', 'pdf'); $extensions_valides['image'] = array('jpg' , 'jpeg' , 'gif' , 'png'); $extensions_valides['image_or_swf'] = array('jpg' , 'jpeg' , 'gif' , 'png', 'swf'); require($dirroot . "/lib/class/String.php"); require($dirroot . "/lib/class/Caddie.php"); require($dirroot . "/lib/class/FormError.php"); require($dirroot . "/lib/class/Multipage.php"); require($dirroot . "/lib/class/Product.php"); require($dirroot . "/lib/class/SHA256.php"); require($dirroot . "/lib/fonctions/fonctions.php"); require($dirroot . "/lib/fonctions/images.php"); require($dirroot . "/lib/fonctions/order.php"); require($dirroot . "/lib/fonctions/emails.php"); require($dirroot . "/lib/fonctions/database.php"); require($dirroot . "/lib/fonctions/user.php"); require($dirroot . "/lib/fonctions/format.php"); if (!IN_INSTALLATION) { if (empty($GLOBALS['wwwroot']) || empty($serveur_mysql) || empty($utilisateur_mysql) || empty($nom_de_la_base)) { redirect_and_die($GLOBALS['detected_wwwroot'] . "/installation/index.php"); } if (empty($_POST) && String::substr_count($GLOBALS['wwwroot'], '/') == 2 && String::strpos(String::strtolower(rawurldecode($_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'])), str_replace(array('http://', 'https://'), '', String::strtolower(rawurldecode($GLOBALS['wwwroot'])))) === false && String::strpos(str_replace(array('http://', 'https://'), '', String::strtolower(rawurldecode($GLOBALS['wwwroot']))), String::strtolower(rawurldecode($_SERVER['HTTP_HOST']))) !== false) { redirect_and_die($GLOBALS['wwwroot'] . $_SERVER['REQUEST_URI'], true); } if (is_dir($dirroot . '/installation')) { $installation_folder_active = true; } else { $connexion = mysql_connect($serveur_mysql, $utilisateur_mysql, $mot_de_passe_mysql); if (!$connexion) { $sujet_du_mail = "MySQL Connection problem / Problème de connexion à MySQL"; $contenu_du_mail = "The page " . $_SERVER['REQUEST_URI'] . " had an error while trying to connect to MySQL on " . $serveur_mysql . " - the user is " . $utilisateur_mysql . " with the password " . $mot_de_passe_mysql . ". Please check if MySQL is currently launched and if the connection parameters are valide."; $contenu_du_mail .= "\n\nLa page " . $_SERVER['REQUEST_URI'] . " a provoqué une erreur lors de sa tentative de connexion à MySQL situé sur le serveur " . $serveur_mysql . " - l'utilisateur est " . $utilisateur_mysql . ". Il faudrait vérifier si le serveur MySQL est actuellement lancé et si les paramètres de connexion sont valides."; if (!empty($support)) { send_email($support, $sujet_du_mail, $contenu_du_mail, 'html', '', null); } $contenu_display = 'MySQL connection problem'; if (!empty($display_warning_if_connection_problem)) { echo $contenu_display; } die(); } $selection_de_la_base = mysql_select_db($nom_de_la_base, $connexion); if (!$selection_de_la_base) { $sujet_du_mail = "Problème de sélection de la base de données"; $contenu_du_mail = "The page " . $_SERVER['REQUEST_URI'] . " had an error while trying to connect to MySQL database " . $nom_de_la_base; $contenu_du_mail .= "\n\nLa page " . $_SERVER['REQUEST_URI'] . " a provoqué une erreur lors de sa tentative de sélection de la base de données " . $nom_de_la_base . "."; if (!empty($support)) { send_email($support, $sujet_du_mail, $contenu_du_mail, 'html', '', null); } $contenu_display = 'MySQL database connection problem'; if (!empty($display_warning_if_connection_problem)) { echo $contenu_display; } die(); } if (GENERAL_ENCODING == 'utf-8') { query("SET NAMES 'utf8'"); } elseif (GENERAL_ENCODING == 'iso-8859-1') { query("SET NAMES 'iso-8859-1'"); } else { query("SET NAMES '" . GENERAL_ENCODING . "'"); } $queryEcom = query("SELECT ps.*, pd.devise, pd.conversion, pd.symbole, pd.symbole_place, pd.code FROM medianys_sites ps LEFT JOIN medianys_devises pd ON pd.id = ps.devise_defaut WHERE ps.id = '1'"); $GLOBALS['site_parameters'] = fetch_assoc($queryEcom); } } else { $GLOBALS['site_parameters']['sessions_duration'] = 180; $GLOBALS['site_parameters']['display_errors_for_ips'] = '*'; } $display_errors = 0; if (!empty($GLOBALS['site_parameters']['display_errors_for_ips'])) { foreach(explode(',', str_replace(array(' ', ';'), array(',', ','), $GLOBALS['site_parameters']['display_errors_for_ips'])) as $this_ip_part) { if ($this_ip_part == '*' || strpos($_SERVER['REMOTE_ADDR'], $this_ip_part) === 0) { $display_errors = 1; break; } } } if (function_exists('ini_set')) { ini_set('display_errors', $display_errors); } if (function_exists('ini_set')) { if (!empty($GLOBALS['site_parameters']['sessions_duration'])) { ini_set('session.gc_maxlifetime', 60 * $GLOBALS['site_parameters']['sessions_duration']); ini_set('session.cache_expire', $GLOBALS['site_parameters']['sessions_duration']); } ini_set('session.use_cookies', '1'); ini_set('session.use_only_cookies', '1'); ini_set('session.use_trans_sid', '0'); @ini_set('session.hash_function', '1'); ini_set('url_rewriter.tags', ''); ini_set('session.name', $session_cookie_name); if (!empty($session_save_path)) { ini_set('session.save_path', $session_save_path); } } session_start(); if (!isset($_SESSION['session_initiated']) && isset($_COOKIE[$session_cookie_name])) { @session_regenerate_id(); } $_SESSION['session_initiated'] = true; if (!isset($_SERVER['HTTP_USER_AGENT'])) { $_SERVER['HTTP_USER_AGENT'] = ''; } if (isset($_SESSION['session_user_agent'])) { if ($_SESSION['session_user_agent'] != sha1('GcFsD5EOvgSvQFtL4nIy' . $_SERVER['HTTP_USER_AGENT'])) { session_unset(); session_destroy(); } } else { $_SESSION['session_user_agent'] = sha1('GcFsD5EOvgSvQFtL4nIy' . $_SERVER['HTTP_USER_AGENT']); } if (!isset($_SESSION)) { $_SESSION = array(); } @set_magic_quotes_runtime(0); $_POST = array_map('cleanDataDeep', $_POST); $_GET = array_map('cleanDataDeep', $_GET); $_COOKIE = array_map('cleanDataDeep', $_COOKIE); $_REQUEST = array_map('cleanDataDeep', $_REQUEST); if (IN_INSTALLATION >= 4) { $connexion = @mysql_connect($_SESSION['session_install_serveur'], $_SESSION['session_install_utilisateur'], $_SESSION['session_install_motdepasse']); if (!$connexion) { redirect_and_die("bdd.php?err=1"); } if (IN_INSTALLATION >= 5) { $selection_de_la_base = @mysql_select_db($_SESSION['session_install_choixbase'], $connexion); if (!$selection_de_la_base) { redirect_and_die("choixbase.php?err=1"); } } if (GENERAL_ENCODING == 'utf-8') { query("SET NAMES 'utf8'"); } elseif (GENERAL_ENCODING == 'iso-8859-1') { query("SET NAMES 'iso-8859-1'"); } else { query("SET NAMES '" . GENERAL_ENCODING . "'"); } } require($dirroot . '/lib/fonctions/modules_handler.php'); $rewritefile = $dirroot . "/modules/url_rewriting/rewrite.php"; if (is_module_url_rewriting_active()) { require($rewritefile); } else { require($dirroot . "/lib/fonctions/url_standard.php"); } if (!IN_INSTALLATION && empty($installation_folder_active)) { $GLOBALS['lang_codes'] = array(); $GLOBALS['lang_flags'] = array(); $GLOBALS['lang_names'] = array(); $sqlLng = "SELECT * FROM medianys_langues WHERE etat = '1'" . (!empty($_GET['langue'])?" OR lang='" . word_real_escape_string($_GET['langue']) . "'":'') . " GROUP BY lang ORDER BY position"; $resLng = query($sqlLng); while ($lng = fetch_assoc($resLng)) { $GLOBALS['lang_codes'][] = $lng['lang']; $GLOBALS['lang_flags'][$lng['lang']] = $lng['flag']; $GLOBALS['lang_names'][$lng['lang']] = $lng["nom_" . $lng['lang']]; $GLOBALS['lang_etat'][$lng['lang']] = $lng['etat']; $GLOBALS['lang_url_rewriting'][$lng['lang']] = $lng["url_rewriting"]; } foreach($GLOBALS['lang_codes'] as $this_lang) { $GLOBALS['get_lang_rewrited_wwwroot'][$this_lang] = get_lang_rewrited_wwwroot($this_lang); $GLOBALS['langs_array_by_wwwroot'][$GLOBALS['get_lang_rewrited_wwwroot'][$this_lang]][] = $this_lang; } $_SESSION['session_langue'] = get_identified_lang(); if (!defined('SKIP_SET_LANG')) { set_lang_once($_SESSION['session_langue']); } if (empty($_POST) && !empty($GLOBALS['lang_url_rewriting'][$this_lang]) && strpos($GLOBALS['lang_url_rewriting'][$this_lang], '://') !== false) { if($GLOBALS['detected_wwwroot']!=$GLOBALS['wwwroot'] && $GLOBALS['detected_wwwroot']==str_replace(array('www.'), array($this_lang.'.'), $GLOBALS['wwwroot_main'])){ redirect_and_die($GLOBALS['wwwroot'].substr($_SERVER['REQUEST_URI'],strlen($apparent_folder)-1), true); } if(substr($_SERVER['REQUEST_URI'],strlen($apparent_folder)-1,4)=='/'.$this_lang.'/'){ redirect_and_die($GLOBALS['wwwroot'].substr($_SERVER['REQUEST_URI'],3+strlen($apparent_folder)-1), true); } if (String::substr_count($GLOBALS['wwwroot'], '/') == 2 && String::strpos(String::strtolower(rawurldecode($_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'])), str_replace(array('http://', 'https://'), '', String::strtolower(rawurldecode($GLOBALS['wwwroot'])))) === false && String::strpos(str_replace(array('http://', 'https://'), '', String::strtolower(rawurldecode($GLOBALS['wwwroot']))), String::strtolower(rawurldecode($_SERVER['HTTP_HOST']))) !== false) { redirect_and_die($GLOBALS['wwwroot'] . substr($_SERVER['REQUEST_URI'],strlen($apparent_folder)-1), true); } } if (empty($_SESSION['session_devise']) || empty($_SESSION['session_devise']['code'])) { $_SESSION['session_devise']['symbole'] = String::html_entity_decode(str_replace('€', '€', $GLOBALS['site_parameters']['symbole'])); $_SESSION['session_devise']['symbole_place'] = $GLOBALS['site_parameters']['symbole_place']; $_SESSION['session_devise']['conversion'] = 1; $_SESSION['session_devise']['code'] = $GLOBALS['site_parameters']['code']; } if ($GLOBALS['site_parameters']['admin_force_ssl']) { if (defined('IN_medianys_ADMIN')) { if (strpos($_SERVER['PHP_SELF'], 'sites.php') === false && (empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == 'off')) { redirect_and_die('https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); } } $GLOBALS['wwwroot_in_admin'] = str_replace('http://', 'https://', $GLOBALS['wwwroot']); } else { $GLOBALS['wwwroot_in_admin'] = $GLOBALS['wwwroot']; } $repertoire_modele = $dirroot . "/modeles/" . vb($GLOBALS['site_parameters']['template_directory']); $repertoire_css = $GLOBALS['wwwroot'] . "/modeles/" . vb($GLOBALS['site_parameters']['template_directory']) . "/css"; $repertoire_images = $GLOBALS['wwwroot'] . "/modeles/" . vb($GLOBALS['site_parameters']['template_directory']) . "/images"; $mode_transport = vn($GLOBALS['site_parameters']['mode_transport']); $default_country_id = vn($GLOBALS['site_parameters']['default_country_id']); $logo = vb($GLOBALS['site_parameters']['logo']); if(empty($site)){ $site = vb($GLOBALS['site_parameters']['nom_' . $_SESSION['session_langue']]); } $support = vb($GLOBALS['site_parameters']['email_webmaster']); $support_sav_client = vb($GLOBALS['site_parameters']['email_client']); if (empty($support_sav_client)) { $support_sav_client = $support; } $support_commande = vb($GLOBALS['site_parameters']['email_commande']); if (empty($support_commande)) { $support_commande = $support; } if (file_exists($repertoire_modele . "/fonctions/display_custom.php")) { include($repertoire_modele . "/fonctions/display_custom.php"); } $fonctionsmedianysfr = $dirroot . '/modules/medianysfr/fonctions.php'; if (is_medianysfr_module_active() && !defined('LOAD_NO_OPTIONAL_MODULE')) { include($dirroot . "/modules/medianysfr/lang/" . $_SESSION['session_langue'] . ".php"); include($fonctionsmedianysfr); } } else { $site = ''; $site_parameters = array('avoir' => '', 'commission_affilie' => ''); $support = ''; $support_sav_client = ''; $support_commande = ''; $repertoire_images = ''; $GLOBALS['wwwroot_in_admin'] = $GLOBALS['wwwroot']; $_SESSION['session_langue'] = 'fr'; if (!defined('SKIP_SET_LANG')) { set_lang_once($_SESSION['session_langue']); } $_SESSION['session_devise']['code'] = 'EUR'; $_SESSION['session_devise']['symbole'] = ' €'; $_SESSION['session_devise']['conversion'] = 1; $_SESSION['session_devise']['symbole_place'] = 1; $GLOBALS['site_parameters']['logo'] = 'images/logo-medianys.png'; } include($dirroot . "/lib/fonctions/display.php"); include($dirroot . "/lib/fonctions/display_admin_forms.php"); include($dirroot . "/lib/fonctions/display_user_forms.php"); include($dirroot . "/lib/fonctions/display_product.php"); include($dirroot . "/lib/fonctions/display_article.php"); require($dirroot . "/lib/lang/" . $_SESSION['session_langue'] . ".php"); include($dirroot . "/lib/lang/meta_" . $_SESSION['session_langue'] . ".php"); if (defined('IN_medianys_ADMIN')) { necessite_identification(); necessite_priv("admin"); } if (!empty($installation_folder_active)) { echo print_delete_installation_folder(); die(); } $repertoire_upload = $GLOBALS['wwwroot'] . "/upload"; $repertoire_mp3 = $GLOBALS['wwwroot'] . "/mp3"; $repertoire_mp3_extrait = $GLOBALS['wwwroot'] . "/mp3_extrait"; $administrer_url = $GLOBALS['wwwroot_in_admin'] . "/" . $backoffice_directory_name; if (!IN_INSTALLATION) { if (!defined('IN_medianys_ADMIN') && !defined('IN_ACCES_ACCOUNT') && !defined('IN_GET_PASSWORD') && $GLOBALS['site_parameters']['site_suspended'] === 'TRUE' && !a_priv('admin')) { echo '


' . UPDATE_WEBSITE . '

' . THANKS_UNDERSTANDING . '
'; die(); } $fonctionsdevises = $dirroot . "/modules/devises/fonctions.php"; if (is_devises_module_active()) { include($fonctionsdevises); if (!empty($_GET['devise'])) { set_current_devise($_GET['devise']); } } $fonctionsforum = $dirroot . "/modules/forum/functions.php"; if (is_module_forum_active()) { include($dirroot . "/modules/forum/lang/" . $_SESSION['session_langue'] . ".php"); include($fonctionsforum); } $fonctionsreseller = $dirroot . "/modules/reseller/fonctions.php"; if (is_reseller_module_active()) { include($fonctionsreseller); } $fonctionsmenus = $dirroot . "/modules/menus/fonctions.php"; if (is_rollover_module_active() && !defined('LOAD_NO_OPTIONAL_MODULE')) { include($fonctionsmenus); } $fonctionsbestseller = $dirroot . '/modules/best_seller/fonctions.php'; if (is_best_seller_module_active() && !defined('LOAD_NO_OPTIONAL_MODULE')) { include($fonctionsbestseller); } $fonctionslastviews = $dirroot . '/modules/last_views/fonctions.php'; if (is_last_views_module_active() && !defined('LOAD_NO_OPTIONAL_MODULE')) { include($fonctionslastviews); } $fonctionsgiftcheck = $dirroot . '/modules/gift_check/administrer/fonctions.php'; $fonctionscheck = $dirroot . "/modules/gift_check/fonctions.php"; if (is_module_gift_checks_active() && !defined('LOAD_NO_OPTIONAL_MODULE')) { include($fonctionscheck); } $fonctionstagcloud = $dirroot . "/modules/tagcloud/fonctions.php"; if (is_module_tagcloud_active() && !defined('LOAD_NO_OPTIONAL_MODULE')) { include($fonctionstagcloud); } $fonctionsbanner = $dirroot . "/modules/banner/fonctions.php"; if (is_module_banner_active() && !defined('LOAD_NO_OPTIONAL_MODULE')) { include($fonctionsbanner); } $fonctionsrss = $dirroot . "/modules/rss/fonctions.php"; if (is_module_rss_active() && !defined('LOAD_NO_OPTIONAL_MODULE')) { include($fonctionsrss); } $fonctionspensebete = $dirroot . "/modules/pensebete/fonctions.php"; if (is_module_pensebete_active() && !defined('LOAD_NO_OPTIONAL_MODULE')) { include($fonctionspensebete); } $fonctionsthumbs = $dirroot . "/modules/thumbs/fonctions.php"; if (is_thumbs_module_active() && !defined('LOAD_NO_OPTIONAL_MODULE')) { include($fonctionsthumbs); } $fonctionsattributs = $dirroot . "/modules/attributs/fonctions.php"; if (is_attributes_module_active() && !defined('LOAD_NO_OPTIONAL_MODULE')) { include($fonctionsattributs); } $fonctionssearch = $dirroot . "/modules/search/fonctions.php"; if (is_advanced_search_active() && !defined('LOAD_NO_OPTIONAL_MODULE')) { include($fonctionssearch); } $fonctionsmarquepromotions = $dirroot . "/modules/marques_promotion/fonctions.php"; if (is_marque_promotion_module_active() && !defined('LOAD_NO_OPTIONAL_MODULE')) { include($fonctionsmarquepromotions); } $fonctionscatpromotions = $dirroot . "/modules/category_promotion/fonctions.php"; if (is_category_promotion_module_active() && !defined('LOAD_NO_OPTIONAL_MODULE')) { include($fonctionscatpromotions); } $fonctionsdownload = $dirroot . "/modules/download/fonctions.php"; $fonctionsadmindownload = $dirroot . "/modules/download/administrer/fonctions.php"; if (is_download_module_active() && !defined('LOAD_NO_OPTIONAL_MODULE')) { include($fonctionsdownload); include($fonctionsadmindownload); } $fonctionsparrain = $dirroot . "/modules/parrainage/fonctions.php"; if (is_parrainage_module_active() && !defined('LOAD_NO_OPTIONAL_MODULE')) { include($fonctionsparrain); } $fonctionsaffiliate = $dirroot . "/modules/affiliation/fonctions.php"; if (is_affiliate_module_active() && !defined('LOAD_NO_OPTIONAL_MODULE')) { include($fonctionsaffiliate); if (!empty($_GET['affilie'])) { $_SESSION['session_affilie'] = intval($_GET['affilie']); } } $fonctionsmicro = $dirroot . "/modules/micro_entreprise/fonctions.php"; if (is_micro_entreprise_module_active() && !defined('LOAD_NO_OPTIONAL_MODULE')) { include($fonctionsmicro); } $fonctionsstock_advanced_admin = $dirroot . "/modules/stock_advanced/administrer/fonctions.php"; $fonctionsstock_advanced = $dirroot . "/modules/stock_advanced/fonctions.php"; if (is_stock_advanced_module_active() && (!defined('LOAD_NO_OPTIONAL_MODULE') || defined('FORCE_STOCK_MANAGER'))) { include($fonctionsstock_advanced); } $fonctionsgiftlist = $dirroot . "/modules/listecadeau/fonctions.php"; if (is_giftlist_module_active() && !defined('LOAD_NO_OPTIONAL_MODULE')) { include($fonctionsgiftlist); } $fonctionsecotaxe = $dirroot . "/modules/ecotaxe/fonctions.php"; if (is_module_ecotaxe_active() && !defined('LOAD_NO_OPTIONAL_MODULE')) { include($fonctionsecotaxe); } $fonctionslexique_admin = $dirroot . "/modules/lexique/administrer/fonctions.php"; $fonctionslexique = $dirroot . "/modules/lexique/fonctions.php"; if (is_lexique_module_active() && !defined('LOAD_NO_OPTIONAL_MODULE')) { include($fonctionslexique); } $fonctionssocolissimo = $dirroot . "/modules/socolissimo/fonctions.php"; if (is_socolissimo_module_active() && !defined('LOAD_NO_OPTIONAL_MODULE')) { include($fonctionssocolissimo); } $fonctionsicirelais = $dirroot . "/modules/icirelais/fonctions.php"; if (is_icirelais_module_active() && !defined('LOAD_NO_OPTIONAL_MODULE')) { include($fonctionsicirelais); include($dirroot . "/modules/icirelais/" . $_SESSION['session_langue'] . ".php"); } $fonctionswanewsletter = $dirroot . "/modules/newsletter/medianys/fonctions.php"; if (is_module_wanewsletter_active() && !defined('LOAD_NO_OPTIONAL_MODULE')) { include($fonctionswanewsletter); } $fonctionsblog = $dirroot . "/modules/blog/fonctions.php"; if (is_module_blog_active() && !defined('LOAD_NO_OPTIONAL_MODULE')) { include($fonctionsblog); include($dirroot . "/modules/blog/" . $_SESSION['session_langue'] . ".php"); } $fonctionsbutterflive = $dirroot . "/modules/butterflive/utils.php"; if (is_butterflive_module_active() && !defined('LOAD_NO_OPTIONAL_MODULE') && !defined('IN_medianys_ADMIN')) { include($fonctionsbutterflive); } $fonctionspayback = $dirroot . "/modules/payback/fonctions.php"; if (is_payback_module_active() && !defined('LOAD_NO_OPTIONAL_MODULE')) { include($dirroot . "/modules/payback/lang/" . $_SESSION['session_langue'] . ".php"); include($fonctionspayback); } $fonctionsfaq = $dirroot . "/modules/faq/fonctions.php"; $fonctionsavis = $dirroot . "/modules/avis/fonctions.php"; $fonctionscomparateur = $dirroot . "/modules/comparateur/administrer/fonctions.php"; // Module gestion des profils $fonctionsprofile = $dirroot . "/modules/profil/administrer/fonctions.php"; // Module de gestion des lots $fonctionsadminlot = $dirroot . "/modules/lot/administrer/fonctions.php"; $fonctionslot = $dirroot . "/modules/lot/fonctions.php"; // Module des bons anniversaires $fonctionsbirthday = $dirroot . '/modules/birthday/administrer/bons_anniversaires.php'; // Module des bons clients $fonctionsgoodclients = $dirroot . '/modules/good_clients/administrer/bons_clients.php'; // Module des cadeaux $fonctionsgift = $dirroot . '/modules/gifts/administrer/fonctions.php'; // Module de gestion des groupes $fonctionsgroups = $dirroot . "/modules/groups/administrer/fonctions.php"; // Module de generation de facture pdf $fonctionsgenerepdf = $dirroot . "/modules/facture_advanced/administrer/genere_pdf.php"; // Module de statistiques $fonctionsstats = $dirroot . "/modules/statistiques/administrer/statcommande.php"; // Module d'interconnexion avec Expeditor $fonctionsexpeditor = $dirroot . "/modules/expeditor/administrer/expeditor.php"; // Module de duplication de produit $fonctionsduplicate = $dirroot . "/modules/duplicate/administrer/fonctions.php"; // Module d'affichage d'interstitiel de publicité à l'arrivée d'un nouvel utilisateur sur le site $fonctionswelcomead = $dirroot . "/modules/welcome_ad/fonctions.php"; // Module de graphiques flash $fonctionschart = $dirroot . "/modules/chart/open-flash-chart.php"; // Module produits cadeaux $fichierproduitscadeaux = $dirroot . "/modules/cadeaux/catalogue_cadeaux.php"; if (is_welcome_ad_module_active() && !defined('LOAD_NO_OPTIONAL_MODULE')) { include($fonctionswelcomead); } // Module d'affichage de popup lors de l'ajout au caddie $fonctionscartpoup = $dirroot . "/modules/cart_popup/fonctions.php"; if (is_cart_popup_module_active() && !defined('LOAD_NO_OPTIONAL_MODULE')) { include($fonctionscartpoup); } // FIN DES MODULES OPTIONNELS COMPRIS DANS medianys PREMIUM // Module de gestion des moyens de payment par produit $fonctionspaymentbyproduct = $dirroot . "/modules/payment_by_product/fonctions.php"; $fonctionspaymentbyproduct_admin = $dirroot . "/modules/payment_by_product/administrer/fonctions.php"; if (is_payment_by_product_module_active() && !defined('LOAD_NO_OPTIONAL_MODULE')) { include($fonctionspaymentbyproduct); } // Librairies de paiement bancaire en fonction des installations $fonctionsatos = $dirroot . "/modules/sips/fonctions.php"; $fonctionscmcic = $dirroot . "/modules/cmcic/cmcic.php"; $fonctionsbluepaid = $dirroot . "/modules/bluepaid/fonctions.php"; $fonctionsfianet = $dirroot . "/modules/fianet/fonctions.php"; $fonctionsogone = $dirroot . "/modules/ogone/fonctions.php"; $fonctionspaybox = $dirroot . "/modules/paybox/fonctions.php"; $fonctionsspplus = $dirroot . "/modules/spplus/fonctions.php"; $fonctionssystempay = $dirroot . "/modules/systempay/functions.php"; $fonctionsmoneybookers = $dirroot . "/modules/moneybookers/fonctions.php"; $fonctionspaypal = $dirroot . "/modules/paypal/fonctions.php"; // Module d'envoi de newsletter // Modules optionnels, non GPL : Contactez medianys sur http://www.medianys.fr/ ou au 01 75 43 67 97 $newsletterfile = $dirroot . "/modules/newsletter/fonctions/fonctions.php"; if (file_exists($newsletterfile) && !defined('LOAD_NO_OPTIONAL_MODULE')) { include($newsletterfile); } // Module de gestion des annonces $fonctionsannonces = $dirroot . "/modules/annonces/fonctions.php"; if (is_annonce_module_active() && !defined('LOAD_NO_OPTIONAL_MODULE')) { include($fonctionsannonces); include($dirroot . "/modules/annonces/display_annonce.php"); include($dirroot . "/modules/annonces/class/Annonce.php"); } //Module de devis $fonctionsdevis = $dirroot . "/modules/devis/fonctions.php"; //Module de téléchargement $fonctionstelechargement = $dirroot . "/modules/telechargement/administrer/fonctions.php"; //Module de gestion des partenaires $fonctionspartenaires = $dirroot . "/modules/partenaires/fonctions.php"; //Module de gestion des références $fonctionsreferences = $dirroot . "/modules/references/fonctions.php"; //Module du google map des revendeurs $fonctionsresellermap = $dirroot . "/modules/reseller_map/fonctions.php"; //Module de map $fonctionsmap = $dirroot . "/modules/maps/fonctions.php"; // Module de gestion des carrousel $fonctionscarrousel = $dirroot . '/modules/carrousel/fonctions.php'; if (is_carrousel_module_active() && !defined('LOAD_NO_OPTIONAL_MODULE')) { include($fonctionscarrousel); } // Module de fonctionnalités facebook $fonctionsfacebook = $dirroot . '/modules/facebook/fonctions.php'; if (is_facebook_module_active() && !defined('LOAD_NO_OPTIONAL_MODULE')) { include($fonctionsfacebook); } // Initialisation de l'objet caddie si nécessaire if (!isset($_SESSION['session_caddie']) || empty($_SESSION['session_caddie'])) { $_SESSION['session_caddie'] = new Caddie(get_current_user_promotion_percentage()); } // Test pour savoir si une commande est en cours. Si tel est le cas, on vérifie son statut de paiement et si elle est payée, alors on réinitialise le caddie if (!empty($_SESSION['session_caddie']->commande_id)) { $query_com = query("SELECT * FROM medianys_commandes WHERE id ='" . intval($_SESSION['session_caddie']->commande_id) . "' AND id_utilisateur = '" . intval($_SESSION['session_utilisateur']['id_utilisateur']) . "'"); $result_com = fetch_object($query_com); if ($result_com && $result_com->id_statut_paiement == '3') { $_SESSION['session_caddie']->init(); unset($_SESSION['session_commande']); } } /* Traitement des stocks périmés */ if (is_stock_advanced_module_active() && !defined('LOAD_NO_OPTIONAL_MODULE')) { efface_stock_perime(); } } ?>

EMPTY_CADDIE

COOKIES_REMINDER

COOKIES_INFO

COOKIES_INFO2

MSG_SUPPORT

COOKIES_HOWTO

Mozilla Firefox 3.x
COOKIES_MOZ

Safari 4.x
COOKIES_SAFARI

Google Chrome 5.x
COOKIES_CHROME

Internet Explorer 8.x 7.x 6.x
COOKIES_IE

Netscape 6.x
COOKIES_NETSCAPE