Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ob_start();
- function __autoload($className) {
- include 'class/' . $className . '.class.php';
- }
- include 'config.php';
- if (!isset($_GET['site'])){
- $url = "sites/start.php";
- $pageTitle = "Strona główna - nie było znacznika site w pasku adresu.";
- } else {
- switch($_GET['site']) {
- case 'start':
- $url = "sites/start.php";
- $pageTitle = "Strona główna - występuje znacznik site w pasku + start";
- $desc = "Opis strony głównej";
- break;
- case 'userLogin':
- $url = "sites/userLogin.php";
- $pageTitle = "Logowanie użytkownika";
- $desc = "Opis strony logowania użytkownika";
- break;
- case 'userRegister':
- $url = "sites/userRegister.php";
- $pageTitle = "Rejestracja użytkownika";
- $desc = "Opis strony rejestracji użytkownika";
- break;
- case 'createTables':
- $url = "install/db.php";
- $pageTitle = "Tworzenie tabel w bazie danych.";
- $desc = "Opis strony tworzenia tabel.";
- break;
- default:
- $url = "sites/start.php";
- $pageTitle = "Strona główna - występuje znacznik site w pasku + start";
- $desc = "Opis strony głównej";
- }
- }
- include_once 'layout/header.php';
- include_once 'sites/nav.php';
- include_once $url;
- include_once 'layout/footer.php';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement