Subversion-Projekte lars-tiefland.em_wm

Revision

Revision 62 | Revision 64 | 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);
44 lars 21
	require_once("functions.php");
16 lars 22
	//
27 lars 23
	require_once("spiele.php");
24
	require_once("teams.php");
25
	require_once("orte.php");
26
	require_once("gruppen.php");
27
	require_once("types.php");
16 lars 28
 
15 lars 29
	$loc=I18Nv2::createLocale("de_DE");
17 lars 30
	$smarty->assign("version", $config->version);
27 lars 31
	$smarty->assign("logo", "images/$config->logo");
32
	$max_anz=$config->max_anz;
44 lars 33
	if (!defined("IN_ADMIN"))
16 lars 34
	{
44 lars 35
		user_login(false);
17 lars 36
	}
63 lars 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);
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
?>