-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
executable file
·61 lines (53 loc) · 1.75 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
# ------------------ BEGIN LICENSE BLOCK ------------------
#
# This file is part of PluXml : http://pluxml.org
#
# Copyright (c) 2010-2011 Stephane Ferrari and contributors
# Copyright (c) 2008-2009 Florent MONTHEL and contributors
# Copyright (c) 2006-2008 Anthony GUERIN
# Licensed under the GPL license.
# See http://www.gnu.org/licenses/gpl.html
#
# ------------------- END LICENSE BLOCK -------------------
# Définition de l'encodage => PLX_CHARSET : UTF-8 (conseillé) ou ISO-8859-1
define('PLX_CHARSET', 'UTF-8');
# Langue par défaut
define('DEFAULT_LANG', 'fr');
# profils utilisateurs de pluxml
define('PROFIL_ADMIN', 0);
define('PROFIL_MANAGER', 1);
define('PROFIL_MODERATOR', 2);
define('PROFIL_EDITOR', 3);
define('PROFIL_WRITER', 4);
# Gestion des erreurs PHP
error_reporting(E_ALL ^ E_NOTICE);
# taille redimensionnement des images et miniatures
$img_redim = array('160x100', '320x200', '500x380', '640x480');
$img_thumb = array('50x50', '75x75', '100x100');
if(function_exists("date_default_timezone_set") and function_exists("date_default_timezone_get"))
@date_default_timezone_set(@date_default_timezone_get());
# On sécurise notre environnement si dans php.ini: register_globals = On
if (ini_get('register_globals')) {
$array = array('_REQUEST', '_SESSION', '_SERVER', '_ENV', '_FILES');
foreach ($array as $value) {
if(isset($GLOBALS[$value])) {
foreach ($GLOBALS[$value] as $key => $var) {
if (isset($GLOBALS[$key]) AND $var === $GLOBALS[$key]) {
unset($GLOBALS[$key]);
}
}
}
}
}
# Fonction de chargement d'un fichier de langue
function loadLang($filename) {
if(file_exists($filename)) {
$LANG = array();
include_once($filename);
foreach($LANG as $key => $value) {
if(!defined($key)) define($key,$value);
}
}
}
?>