Revision 2063
Added by Luisehahne almost 12 years ago
- problems with confirmation mail solved
| confirm.php | ||
|---|---|---|
| 15 | 15 |
* |
| 16 | 16 |
*/ |
| 17 | 17 |
|
| 18 |
require_once('../config.php');
|
|
| 18 |
$config_file = realpath('../framework/initialize.php');
|
|
| 19 |
if(file_exists($config_file) && !defined('WB_URL'))
|
|
| 20 |
{
|
|
| 21 |
$sAutoLanguage = 'EN'; |
|
| 22 |
// detect client language |
|
| 23 |
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
|
|
| 24 |
if(preg_match('/([a-z]{2})(?:-[a-z]{2})*/i', strtolower($_SERVER['HTTP_ACCEPT_LANGUAGE']), $matches)) {
|
|
| 25 |
$sAutoLanguage = strtoupper($matches[1]); |
|
| 26 |
} |
|
| 27 |
} |
|
| 28 |
$sAutoLanguage=( isset($_SESSION['LANGUAGE'] ) ? $_SESSION['LANGUAGE'] : $sAutoLanguage); |
|
| 29 |
if(!defined('LANGUAGE')) { define('LANGUAGE',$sAutoLanguage); }
|
|
| 30 |
|
|
| 31 |
require_once($config_file); |
|
| 32 |
} |
|
| 19 | 33 |
$mLang = Translate::getinstance(); |
| 20 | 34 |
$mLang->enableAddon('account');
|
| 21 | 35 |
|
Also available in: Unified diff