WebbServerProg/www/public/Moment-3/index.php

59 lines
1.7 KiB
PHP
Raw Normal View History

2024-09-13 14:45:04 +00:00
<?php
session_start();
?>
<!doctype html>
<html lang="sv">
<head>
<meta charset="utf-8">
<title>Länka in sidor med PHP</title>
<link href="css/styleSheet.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="wrapper">
<?php
include("inc/header.php");
?>
<section id="leftColumn">
<?php
include("inc/meny.php");
include("inc/aside.php");
?>
</section>
<!-- End leftColumn -->
<?php
$page = "start";
if (isset($_GET['page']))
$page = $_GET['page'];
switch ($page) {
case 'blogg':
include('pages/blogg.php');
break;
case 'bilder':
2024-09-16 08:26:33 +00:00
include('pages/bilder.php');
2024-09-13 14:45:04 +00:00
break;
case 'kontakt':
2024-09-16 08:26:33 +00:00
include('pages/kontakt.php');
break;
case 'klotter':
include('pages/klotter.php');
2024-09-13 14:45:04 +00:00
break;
default:
include('pages/start.php');
}
include("inc/footer.php");
2024-09-16 08:26:33 +00:00
if (file_exists("../../hit.dat")) {
$hit = file_get_contents("../../hit.dat");
}
echo "Antal användare: " . $hit;
2024-09-13 14:45:04 +00:00
?>
</div>
<!-- End wrapper -->
</body>
</html>