Project

General

Profile

1
<?php
2
/**
3
 *
4
 * @category        modules
5
 * @package         SecureFormSwitcher
6
 * @author          WebsiteBaker Project
7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9
 * @link			http://www.websitebaker2.org/
10
 * @license         http://www.gnu.org/licenses/gpl.html
11
 * @platform        WebsiteBaker 2.8.2
12
 * @requirements    PHP 5.2.2 and higher
13
 * @version         $Id: language_load.php 1479 2011-07-25 00:42:10Z Luisehahne $
14
 * @filesource		$HeadURL: svn://isteam.dynxs.de/wb-archiv/branches/2.8.x/wb/modules/SecureFormSwitcher/language_load.php $
15
 * @lastmodified    $Date: 2011-07-25 02:42:10 +0200 (Mon, 25 Jul 2011) $
16
 * @description
17
 *
18
 */
19
/* ************************************************************************** */
20

    
21
if(defined('WB_PATH') == false)
22
{
23
	die(" <head><title>Access denied</title></head><body><h2 style=\"color:red;margin:3em auto;text-align:center;\">Cannot access this file directly.</h2></body>");
24
}
25

    
26
$mod_path = (dirname(__FILE__));
27
$dlg_lang_dir = $mod_path.'/languages/';
28
if(file_exists($dlg_lang_dir)){
29
	$dlg_lang = file_exists($dlg_lang_dir.LANGUAGE.'.php') ? LANGUAGE : 'EN';
30
	require_once($dlg_lang_dir.$dlg_lang.'.php');
31
}
32

    
33
//  iconv_set_encoding("output_encoding", "ISO-8859-1");
34
if(!function_exists('convert_charset'))
35
{
36
	function convert_charset(&$val, $key, $vars) {
37
		$val = iconv($vars['0'], $vars['1'].'//TRANSLIT', ($val));
38
	}
39
}
40
if( strtolower(DEFAULT_CHARSET) != 'utf-8') {
41
	$in_charset = 'utf-8';
42
	$out_charset = DEFAULT_CHARSET;
43
	array_walk_recursive($SFS_TEXT,'convert_charset',array($in_charset, $out_charset));
44
}
45

    
(6-6/9)