14 if (!defined(
'IN_PEEL')) {
18 if (!function_exists(
'get_product_url')) {
28 function get_product_url(
$id, $name=null, $category_id=null, $category_name=null, $add_get_suffixe =
false, $html_encode =
false)
30 $url_prod = get_url(
"/achat/produit_details.php", array(
'id' => intval(
$id)));
31 if ($add_get_suffixe) {
42 if (!function_exists(
'get_product_category_url')) {
52 function get_product_category_url(
$id = null, $name = null, $add_get_suffixe =
false, $html_encode =
false)
56 $get_array[
'catid'] = intval(
$id);
58 $url_cat = get_url(
'/achat/', $get_array, null);
59 if ($add_get_suffixe) {
72 if (!function_exists(
'get_content_url')) {
82 function get_content_url(
$id, $title = null, $category_id = null, $category_name = null, $add_get_suffixe =
false, $html_encode =
false)
84 $url_art = get_url(
"/lire/article_details.php", array(
'rubid' =>
$id));
85 if ($add_get_suffixe) {
96 if (!function_exists(
'get_content_category_url')) {
106 function get_content_category_url(
$id = null, $name = null, $add_get_suffixe =
false, $html_encode =
false)
109 $url_rub = get_url(
'/lire/', array(
'rubid' => intval(
$id)));
110 if ($add_get_suffixe) {
118 $url_rub = get_url(
'/lire/');
119 if ($add_get_suffixe) {
127 if (!function_exists(
'get_lang_rewrited_wwwroot')) {
136 function get_lang_rewrited_wwwroot($this_lang, $this_wwwroot = null, $this_rewriting = null)
138 return vb($this_wwwroot,
$GLOBALS[
'wwwroot_main']);
142 if (!function_exists(
'get_map_site_url')) {
151 function get_map_site_url($add_get_suffixe =
false, $html_encode =
false)
153 $url_map_site_url = get_url(
'sitemap');
155 if ($add_get_suffixe) {
156 $url_map_site_url .=
'?';
158 return $url_map_site_url;
163 if (!function_exists(
'get_contact_url')) {
171 function get_contact_url($add_get_suffixe =
false, $html_encode =
false)
173 $url_contact_url = get_url(
'/utilisateurs/contact.php');
175 if ($add_get_suffixe) {
176 $url_contact_url .=
'?';
178 return $url_contact_url;
182 if (!function_exists(
'get_account_url')) {
188 function get_account_url($add_get_suffixe =
false, $html_encode =
false, $force_logged_in_status = null)
190 if($force_logged_in_status || ($force_logged_in_status === null &&
est_identifie())){
191 $url_account_url = get_url(
'compte');
193 $url_account_url = get_url(
'membre');
195 if ($add_get_suffixe) {
196 $url_account_url .=
'?';
199 return $url_account_url;
203 if (!function_exists(
'get_account_register_url')) {
211 function get_account_register_url($add_get_suffixe =
false, $html_encode =
false)
213 $url_account_register = get_url(
'/utilisateurs/enregistrement.php');
214 if ($add_get_suffixe) {
215 $url_account_register .=
'?';
217 return $url_account_register;
221 if (!function_exists(
'get_cgv_url')) {
228 function get_cgv_url($html_encode =
false)
230 $url_cgv = get_url(
'cgv');
235 if (!function_exists(
'get_tell_friends_url')) {
242 function get_tell_friends_url($html_encode =
false)
244 $url_tell_friends = get_url(
'/modules/direaunami/direaunami.php');
245 return $url_tell_friends;
249 if (!function_exists(
'get_url')) {
260 function get_url($uri, $get_array = array(),
$lang = null, $forced_site_id = null) {
261 $uri_by_technical_code = array(
'caddie_affichage' =>
'/achat/caddie_affichage.php',
'achat_maintenant' =>
'/achat/achat_maintenant.php');
262 if(!empty($uri_by_technical_code[$uri])){
263 $uri = $uri_by_technical_code[$uri];
268 if(empty($get_array)) {
269 $get_array = array();
271 if(strpos($uri,
'/') ===
false && strpos($uri,
'.') ===
false) {
274 if(function_exists(
'convertHrefUri') && empty($forced_site_id)) {
275 $url = convertHrefUri($uri, $get_array,
$lang);
277 if(substr($uri, 0, 1) !==
'/') {
280 if (count($get_array) > 0) {
281 foreach ($get_array as $key => $value) {
282 $queryString[] = $key .
'=' . urlencode($value);
284 $uri .=
'?' . implode(
'&', $queryString);
handle_setup_redirections($url, $mode= 'redirect')
Gère les redirections définies dans $GLOBALS['site_parameters']['redirections'].
if(!defined('IN_PEEL')) est_identifie()
Retourne true si l'utilisateur est identifié
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))
$GLOBALS['page_columns_count']
get_site_wwwroot($site_id, $lang=null)
Renvoie l'URL d'un site donné
if(defined('IN_PEEL_ADMIN')||IN_INSTALLATION) $_SESSION['session_langue']