Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Структура сайта начало */
- $link = "href";
- switch ($_GET["$link"])
- {
- case "logout":
- session_destroy();
- echo "<meta http-equiv='refresh' content='0;URL=index.php'>";
- break;
- case "register":
- include "page/register.php";
- include "template.php";
- echo $TEMPLATE;
- break;
- /* Начало второстепенных страниц */
- if($_SESSION["log"] !== 0)
- {
- echo "Войдите на сайт!";
- }
- else
- {
- if($_GET['$link'] == "profile")
- {
- include "page/profile.php";
- include "template.php";
- echo $TEMPLATE;
- }
- else
- {
- echo "Ssssdfsdg";
- }
- }
- /* Конец второстепенных страниц */
- default:
- include "page/home.php";
- include "template.php";
- echo $TEMPLATE;
- break;
- }
- /* Структура сайта конец */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement