<?php
// エラー表示用
// sessionの開始やincludeの読み込みは各々のファイルで行っている前提

if(!isset($error_text) || empty($error_text)){
	$error_text = "エラーが発生しました。";
}

if(!isset($title)){
	$title = "エラー";
}

?>
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1, maximum-scale=1">
<link rel="icon" href="./img/favicon.ico">
<link rel="apple-touch-icon" href="./img/home_icon2.png">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css" integrity="sha512-KfkfwYDsLkIlwQp6LFnl8zNdLGxu9YAA1QvwINks4PhcElQSvqcyVLLD9aMhXd13uQjoXtEKNosOWaZqXgel0g==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<script src="../js/script.js"></script>
<link href="../css/style.css" rel="stylesheet" type="text/css">
<title><?=$title?></title>
<script>
</script>
</head>
<body>
	<?php
	require_once './header.php';
	?>
	<div id="main">
		<?=$error_text?>
	</div>
</body>
</html>
