Project

General

Profile

« Previous | Next » 

Revision 2063

Added by Dietmar almost 11 years ago

  1. problems with confirmation mail solved

View differences:

signup.php
23 23
 */
24 24

  
25 25
// Include config file
26
$config_file = realpath('../config.php');
26
$config_file = realpath('../framework/initialize.php');
27 27
if(file_exists($config_file) && !defined('WB_URL'))
28 28
{
29
    $sAutoLanguage = 'EN';
30
// detect client language
31
    if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
32
    	if(preg_match('/([a-z]{2})(?:-[a-z]{2})*/i', strtolower($_SERVER['HTTP_ACCEPT_LANGUAGE']), $matches)) {
33
    		$sAutoLanguage = strtoupper($matches[1]);
34
    	}
35
    }
36
    $sAutoLanguage=( isset($_SESSION['LANGUAGE'] ) ? $_SESSION['LANGUAGE'] : $sAutoLanguage);
37
    if(!defined('LANGUAGE')) { define('LANGUAGE',$sAutoLanguage); }
38

  
29 39
	require_once($config_file);
30 40
}
31 41

  
......
61 71
	$wb->send_header(WB_URL.'/index.php');
62 72
}
63 73

  
64
$langDir = WB_PATH . '/languages/' . LANGUAGE . '.php';
65
require_once(!file_exists($langDir) ? WB_PATH . '/languages/EN.php' : $langDir );
74
//$langDir = WB_PATH . '/languages/' . LANGUAGE . '.php';
75
//require_once(!file_exists($langDir) ? WB_PATH . '/languages/EN.php' : $langDir );
66 76

  
67 77
$_SESSION['display_form'] = true;
68 78

  

Also available in: Unified diff