Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- ?>
- <!DOCTYPE html>
- <html lang="fr">
- <head>
- <meta charset="UTF-8">
- <title></title>
- <link rel="stylesheet" href="style.css">
- </head>
- <body>
- <section id="content">
- <nav>
- <ul>
- <li><a href='index.php'>Accueil</a></li>
- <li><a href='index.php?page=moi'>Moi</a></li>
- <li><a href='index.php?page=dessins'>Dessins</a></li>
- <li><a href='index.php?page=contact'>Contact</a></li>
- <li><a href='index.php?page=admin'>Admin</a></li>
- </ul>
- </nav>
- <section id="box">
- <?php
- if (isset($_GET["page"]))
- {
- if($_GET["page"] == "moi")
- include("moi.php");
- else if($_GET["page"] == "dessins")
- include("dessins.php");
- else if($_GET["page"] == "contact")
- include("contact.php");
- else if($_GET["page"] == "admin")
- include("admin.php");
- else if($_GET["page"] == "modif_newz")
- include("modif_newz.php");
- else if($_GET["page"] == "modif_moi")
- include("modif_moi.php");
- else if($_GET["page"] == "modif_dessins")
- include("modif_dessins.php");
- else if($_GET["page"] == "modif_contact")
- include("modif_contact.php");
- else if($_GET["page"] == "deconnexion")
- {
- session_unset();
- session_start();
- echo "<meta http-equiv='Refresh' content='0;url=index.php'>";
- }
- }
- ?>
- </section>
- </section>
- </body>
- </html>
Add Comment
Please, Sign In to add comment