Subversion-Projekte lars-tiefland.em_wm

Revision

Revision 61 | Revision 63 | Zur aktuellen Revision | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
3 lars 1
<?
27 lars 2
	require_once("Text/Password.php");
3
	require_once("I18Nv2.php");
44 lars 4
	require_once("Auth.php");
60 lars 5
	require_once("Mail.php");
6
	require_once("Translation2.php");
44 lars 7
 
60 lars 8
	$mail=	& Mail::factory("mail",array());
44 lars 9
	//Smarty
27 lars 10
	require_once("libs/Smarty.class.php");
44 lars 11
	$smarty=new Smarty;
12
 
13
	//
54 lars 14
	require_once("user.class.php");
27 lars 15
	require_once("connect.php");
16
	require_once("config.php");
44 lars 17
	$config=new Config();
60 lars 18
	$params_tr["strings_default_table"]="i18n_%s";
61 lars 19
	$params_tr["string_text_col"]="string";
60 lars 20
	$tr=& Translation2::factory("db",$db,$params_tr);
62 lars 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);
44 lars 26
	require_once("functions.php");
16 lars 27
	//
27 lars 28
	require_once("spiele.php");
29
	require_once("teams.php");
30
	require_once("orte.php");
31
	require_once("gruppen.php");
32
	require_once("types.php");
16 lars 33
 
15 lars 34
	$loc=I18Nv2::createLocale("de_DE");
17 lars 35
	$smarty->assign("version", $config->version);
27 lars 36
	$smarty->assign("logo", "images/$config->logo");
37
	$max_anz=$config->max_anz;
44 lars 38
	if (!defined("IN_ADMIN"))
16 lars 39
	{
44 lars 40
		user_login(false);
17 lars 41
	}
62 lars 42
	$common=$tr->getPage();
43
	foreach ($common as $key => $value)
44
	{
45
		$smarty->assign(strtoupper("L_$key"),$value);
46
	}
47
	$type=$common["$config->type"];
48
	$year=$config->year;
49
	$smarty->assign("year",$year);
50
	$smarty->assign("L_TYPE",$type);
3 lars 51
?>