14 define(
'IN_PEEL_ADMIN',
true);
15 include(
"../configuration.inc.php");
19 if (!empty($_GET[
'encoding'])) {
20 $file_encoding = $_GET[
'encoding'];
22 $file_encoding =
'utf-8';
27 include(
$GLOBALS[
'repertoire_modele'] .
"/admin_haut.php");
28 $tpl =
$GLOBALS[
'tplEngine']->createTemplate(
'admin_urllist_table.tpl');
29 $tpl->assign(
'STR_ADMIN_URLLIST_CREATE_TITLE',
$GLOBALS[
'STR_ADMIN_URLLIST_CREATE_TITLE']);
33 switch (
vb($_REQUEST[
'mode'])) {
39 $langs_array_by_subdomain = array();
40 foreach(
$GLOBALS[
'langs_array_by_wwwroot'] as $this_wwwroot=>$this_lang_array) {
42 $langs_array_by_subdomain[
get_site_domain(
false, $this_wwwroot,
false)][] = $this_lang_array[0];
46 foreach ($langs_array_by_subdomain as $this_domain=>$this_lang_array) {
51 $tpl =
$GLOBALS[
'tplEngine']->createTemplate(
'admin_urllist_ul.tpl');
52 $tpl->assign(
'urllist_href',
$GLOBALS[
'wwwroot'] .
'/urllist.txt');
53 $tpl->assign(
'STR_ADMIN_URLLIST_READ_SITEMAP',
$GLOBALS[
'STR_ADMIN_URLLIST_READ_SITEMAP']);
66 include(
$GLOBALS[
'repertoire_modele'] .
"/admin_bas.php");
80 $current_lang =
$_SESSION[
'session_langue'];
81 foreach($this_wwwroot_lang_array as $this_lang) {
86 $sitemap .=
$GLOBALS[
'wwwroot'] .
"\r\n";
87 $sitemap .= get_url(
'membre') .
"\r\n";
88 $sitemap .= get_product_category_url() .
"\r\n";
90 $sql =
"SELECT c.id, c.nom_" .$_SESSION[
'session_langue'].
" AS nom
91 FROM peel_categories c
95 $sitemap .= get_product_category_url(
$result[
'id'],
$result[
'nom']) .
"\r\n";
97 $sitemap .= get_content_category_url() .
"\r\n";
98 $sitemap .= get_account_register_url() .
"\r\n";
99 $sitemap .= get_account_url() .
"\r\n";
101 $sql =
"SELECT p.id AS produit_id, c.id AS categorie_id, p.nom_".(!empty(
$GLOBALS[
'site_parameters'][
'product_name_forced_lang'])?
$GLOBALS[
'site_parameters'][
'product_name_forced_lang']:$this_lang).
" as produit, c.nom_" . $this_lang .
" AS categorie
103 INNER JOIN peel_produits_categories pc ON p.id = pc.produit_id
104 INNER JOIN peel_categories c ON c.id = pc.categorie_id AND " .
get_filter_site_cond(
'categories',
'c') .
"
108 $trans_tbl = get_html_translation_table(HTML_ENTITIES);
109 $trans_tbl = array_flip($trans_tbl);
111 $texte1 = strtr(
$result[
'produit'], $trans_tbl);
112 $texte1 = str_replace(
"&",
"", $texte1);
114 $trans_tbl = get_html_translation_table(HTML_ENTITIES);
115 $trans_tbl = array_flip($trans_tbl);
117 $texte2 = strtr(
$result[
'categorie'], $trans_tbl);
118 $texte2 = str_replace(
"&",
"", $texte2);
124 $_SESSION[
'session_langue'] = $current_lang;
128 $txt_filename =
$GLOBALS[
'dirroot'] .
"/urllist_" . substr(md5($this_wwwroot), 0, 4) .
".txt";
142 $tpl =
$GLOBALS[
'tplEngine']->createTemplate(
'admin_urllist_form2xml.tpl');
145 $tpl->assign(
'STR_ADMIN_URLLIST_GENERATE_SITEMAP',
$GLOBALS[
'STR_ADMIN_URLLIST_GENERATE_SITEMAP']);
set_lang_configuration_and_texts($lang, $load_default_lang_files_before_main_lang_array=null, $general_setup=true, $load_modules_files=true, $load_general_admin_files=true, $exclude_empty_string=true, $skip_load_files=false)
On charge les variables de langue, en complétant éventuellement avec la langue de référence...
static convert_encoding($string, $new_encoding, $original_encoding=null)
Converts the character encoding of string $string to $new_encoding from optionally $original_encoding...
get_current_url($with_get=true, $get_short_url=false, $take_away_get_args_array=null)
get_current_url()
static fopen_utf8($filename, $mode, $force_filename_in_iso_8859=false, $try_filename_in_iso_8859_if_file_not_found=true)
Ouvre un fichier.
necessite_priv($priv, $demo_allowed=true, $configuration_modification=false)
Cette fonction vérifie si l'utilisateur a les privilèges de $priv.
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))
necessite_identification()
Si l'utilisateur n'est pas connecté à un compte, on affiche une page d'identification et arrête le sc...
fetch_assoc($query_result)
fetch_assoc()
create_yahoo_sitemap($this_wwwroot, $this_wwwroot_lang_array, $file_encoding)
create_yahoo_sitemap()
get_form_token_input($name= 'general', $use_existing_token=true, $return_as_input_form=true)
get_form_token_input()
verify_token($name= 'general', $delay_in_minutes=60, $check_referer_if_set_by_server=true, $cancel_token=true, $minimum_wait_in_seconds_before_use=0)
Vérification de la validité d'un token Par défaut, un token est valide 1h, et utilisable 1 seule fois...
get_site_domain($return_only_domains=false, $domain=null, $strip_subdomain=true)
Récupère le nom de domaine du site sans http:// et sans sous-domaine.
if(defined('IN_PEEL_ADMIN')||IN_INSTALLATION) $_SESSION['session_langue']