Subversion-Projekte lars-tiefland.em_wm

Revision

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

Revision 88 Revision 89
Zeile 1... Zeile 1...
1
<?
1
<?
2
	require("libs/Smarty.class.php");
2
	require("libs/Smarty.class.php");
3
	require("Translation2.php");
3
	require("Translation2.php");
4
	$smarty=new Smarty();
4
	$smarty=new Smarty();
-
 
5
	if(file_exists("include/config.xml"))
-
 
6
	{
-
 
7
		$smarty->assign("meld","An error occured!");
-
 
8
		$smarty->assign("db_meld","Config file already exists!");
-
 
9
		$smarty->assign("error",true);
-
 
10
		$smarty->display("meld.tpl");
-
 
11
		exit;
-
 
12
	}
5
	$xml_opts["filename"]="install.xml";
13
	$xml_opts["filename"]="install.xml";
6
	$tr=Translation2::factory("xml",$xml_opts);
14
	$tr=Translation2::factory("xml",$xml_opts);
7
	$lang=(isset($_POST["lang"])?$_POST["lang"]:"en");
15
	$lang=(isset($_POST["lang"])?$_POST["lang"]:"en");
8
	$tr->setLang($lang);
16
	$tr->setLang($lang);
9
	$tr->setPageID("install");
17
	$tr->setPageID("install");