Example #1
0
    define('EXP_EMAIL_REPLY', EXP_EMAIL);
}
if (($val = conf::get('EMAIL', 'ADMINISTRATOR')) !== false) {
    define('ADMINISTRATOR', $val);
} else {
    define('ADMINISTRATOR', '*****@*****.**');
}
if (($val = conf::get('EMAIL', 'EMAILING_CHARSET')) !== false) {
    define('EMAILING_CHARSET', $val);
} else {
    define('EMAILING_CHARSET', 'utf-8');
}
define('SPACER', THEMES . 'images/spacer.gif');
require_once LIBS . 'connexion.inc.php';
if (empty($_SESSION[SESSION_PREFIX]['session_id'])) {
    $_SESSION[SESSION_PREFIX]['session_id'] = stats_sessions::getSession();
}
$version = 'PROD';
if (strpos($_SERVER['HTTP_HOST'], 'lesnetworkeurs') !== false) {
    $version = 'MAQUETTE';
}
if (php_sapi_name() == 'cli') {
    if (strpos(APP_DIR, 'var/www/html/maserati-minisites/www-') !== false) {
        $version = 'MAQUETTE';
    }
}
define('VERSION', $version);
//Inclusion d'un fichier d'inclusion spécifique au module sélectionné => /libs/
if (!empty_const('MODULE') && is_file(LIBS . MODULE . '.inc.php')) {
    include LIBS . MODULE . '.inc.php';
}
Example #2
0
 private function load_trad()
 {
     if (!isset($this->trad)) {
         $this->trad = new traduction();
     }
     $this->trad->load(LANGUAGES . 'global.' . $this->lng . '.ini.php');
     if (!empty_const('MARQUE')) {
         $this->trad->load(LANGUAGES . 'global.' . MARQUE . '.' . $this->lng . '.ini.php');
         if (is_file(LANGUAGES . $this->module . '.' . MARQUE . '.' . $this->lng . '.ini.php')) {
             $this->trad->load(LANGUAGES . $this->module . '.' . MARQUE . '.' . $this->lng . '.ini.php');
         }
     }
 }
Example #3
0
<?php

$bdd_params = conf::get('BDD');
if (!empty($bdd_params)) {
    mysql_connect($bdd_params['server'], $bdd_params['user'], $bdd_params['pass']) or die('Erreur connexion SQL');
    mysql_query("SET CHARACTER SET 'utf8'") or die('Erreur connexion SQL');
    mysql_query("SET NAMES 'utf8'") or die('Erreur connexion SQL');
    if (!empty_const('CON_BDD')) {
        mysql_select_db(CON_BDD) or die('Erreur connexion SQL');
    }
}