<?php

for(; session_start()=== false;);
?>
<p>test</p>
<?php
ini_set('display_errors', 1);
/*
phpinfo();
*/
try{
	include_once("src/Ignition.php");
	$ignite = new Ignition();
	if($ignite->getJData()=== null){
		include_once("WebContent/view.php");
	} else {
		printf("%s", json_encode($ignite->getJData()));
	}
} catch (Exception $e){
	?>
	<!DOCTYPE HTML>
	<html>
		<head>
			<title>Error happend!</title>
		</head>
		<body style="margin-top: 5em; padding: 0; background-color: black; color: green;">
			<p style="word-wrap: break-word; width: 600px; margin: auto; font-size: 150%;"><?php printf($e);?></p>
		</body>
	</html>
	<?php
}

?>
