Subversion-Projekte lars-tiefland.em_wm

Revision

Revision 62 | Revision 64 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 62 Revision 63
Zeile 16... Zeile 16...
16
	require_once("config.php");
16
	require_once("config.php");
17
	$config=new Config();
17
	$config=new Config();
18
	$params_tr["strings_default_table"]="i18n_%s";
18
	$params_tr["strings_default_table"]="i18n_%s";
19
	$params_tr["string_text_col"]="string";
19
	$params_tr["string_text_col"]="string";
20
	$tr=& Translation2::factory("db",$db,$params_tr);
20
	$tr=& Translation2::factory("db",$db,$params_tr);
21
	$tr =& $tr->getDecorator('Lang');
-
 
22
	$tr->setOption('fallbackLang', 'en');
-
 
23
	$tr->setPageID("common");
-
 
24
	$u_lang=(is_object($u))?$u->u_lang:"en";
-
 
25
	$tr->setLang($u_lang);
-
 
26
	require_once("functions.php");
21
	require_once("functions.php");
27
	//
22
	//
28
	require_once("spiele.php");
23
	require_once("spiele.php");
29
	require_once("teams.php");
24
	require_once("teams.php");
30
	require_once("orte.php");
25
	require_once("orte.php");
Zeile 37... Zeile 32...
37
	$max_anz=$config->max_anz;
32
	$max_anz=$config->max_anz;
38
	if (!defined("IN_ADMIN"))
33
	if (!defined("IN_ADMIN"))
39
	{
34
	{
40
		user_login(false);
35
		user_login(false);
41
	}
36
	}
-
 
37
	$tr =& $tr->getDecorator('Lang');
-
 
38
	$tr->setOption('fallbackLang', 'en');
-
 
39
	$tr->setPageID("common");
-
 
40
	$u_lang=(is_object($u))?$u->u_lang:"en";
-
 
41
	$tr->setLang($u_lang);
42
	$common=$tr->getPage();
42
	$common=$tr->getPage();
43
	foreach ($common as $key => $value)
43
	foreach ($common as $key => $value)
44
	{
44
	{
45
		$smarty->assign(strtoupper("L_$key"),$value);
45
		$smarty->assign(strtoupper("L_$key"),$value);
46
	}
46
	}