<?php
header('Content-type: text/html; charset=UTF-8');

$language = $_REQUEST['language'];
if($language != 'local'){
	include_once('../languages/installer_lang.php');
} else {
	include_once('../languages/installer_lang_default.php');
}
//remember to escape any ' that are added (eg: \')

$header = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-type" value="text/html; charset=UTF-8" />
	<title>Pligg Installer</title>
	<link rel="stylesheet" type="text/css" href="style/default.css" />
	<link rel="alternate stylesheet" type="text/css" href="style/default.css" title="Small" />
	<link rel="alternate stylesheet" type="text/css" href="style/medium.css" title="Medium" />
	<link rel="alternate stylesheet" type="text/css" href="style/large.css" title="Large" />
	<link rel="stylesheet" type="text/css" href="style/navigation.css" />

	<script type="text/javascript" src="js/styleswitcher.js"></script>
</head>
<body id="home">
<div id="header">
	<h1><a href="./" class="noline">Pligg ' . $lang['installer'] . '</a></h1>

<div id="navigation">
<h3 class="hidden">' . $lang['Navigation'] . '</h3>
	<ul>
		<li class="nav1"><a title="Welcome" href="./index.php" accesskey="1">' . $lang['Welcome'] . '</a></li>
		<li class="nav2"><a title="Install Pligg" href="./install.php" accesskey="2">' . $lang['Install'] . '</a></li>
		<li class="nav3"><a title="Upgrade" href="./upgrade.php" accesskey="3">' . $lang['Upgrade'] . '</a></li>
		<li class="nav4"><a title="Troubleshooter" href="./troubleshooter.php" accesskey="4">' . $lang['Troubleshooter'] . '</a></li>
	</ul>
</div>

		<div id="fontcontrol">
			<h3 class="hidden">Adjust font size:</h3>
				<ul>
					<li class="font1"><a title="Small" href="#" onclick="setActiveStyleSheet(\'Small\');return false;"><i>' . $lang['small'] .'</i></a></li>
					<li class="font2"><a title="Medium" href="#" onclick="setActiveStyleSheet(\'Medium\');return false;"><i>' . $lang['medium'] . '</i></a></li>
					<li class="font3"><a title="Large" href="#" onclick="setActiveStyleSheet(\'Large\');return false;"><i>' . $lang['large'] . '</i></a></li>
				</ul>

		</div>
</div>
<div id="wrapper">
	<div id="container">
		<div id="content">
			<div class="contentdiv">
				<h2 class="weblog">' . $lang['Welcome'] . '</h2>
					<div class="divweblog">
	<div class="contentbody">';

echo $header;
?>
