Subversion-Projekte lars-tiefland.em_wm

Revision

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

Revision 61 Revision 62
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);
21
	require_once("functions.php");
26
	require_once("functions.php");
22
	//
27
	//
23
	require_once("spiele.php");
28
	require_once("spiele.php");
24
	require_once("teams.php");
29
	require_once("teams.php");
25
	require_once("orte.php");
30
	require_once("orte.php");
Zeile 32... Zeile 37...
32
	$max_anz=$config->max_anz;
37
	$max_anz=$config->max_anz;
33
	if (!defined("IN_ADMIN"))
38
	if (!defined("IN_ADMIN"))
34
	{
39
	{
35
		user_login(false);
40
		user_login(false);
36
	}
41
	}
37
	$u_lang=(is_object($u))?$u->u_lang:"en";
42
	$common=$tr->getPage();
38
	$tr->setLang($u_lang);
43
	foreach ($common as $key => $value)
-
 
44
	{
39
	$tr->setPageID("common");
45
		$smarty->assign(strtoupper("L_$key"),$value);
-
 
46
	}
40
	$page=$tr->getPage();
47
	$type=$common["$config->type"];
41
	$type=$page["$config->type"];
48
	$year=$config->year;
42
	$host=$page["host"];
49
	$smarty->assign("year",$year);
43
	$smarty->assign("title2", "FIFA $type $config->year in $host");
50
	$smarty->assign("L_TYPE",$type);
44
?>
51
?>