Advertisement
Guest User

Untitled

a guest
Mar 27th, 2014
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.84 KB | None | 0 0
  1. /* Структура сайта начало */
  2. $link = "href";
  3. switch ($_GET["$link"])
  4. {
  5.     case "logout":
  6.         session_destroy();
  7.         echo "<meta http-equiv='refresh' content='0;URL=index.php'>";
  8.     break;
  9.  
  10.     case "register":
  11.         include "page/register.php";
  12.         include "template.php";
  13.         echo $TEMPLATE;
  14.     break;
  15.  
  16.     /* Начало второстепенных страниц */
  17.    
  18.     if($_SESSION["log"] !== 0)
  19.     {
  20.         echo "Войдите на сайт!";
  21.     }
  22.     else
  23.     {
  24.         if($_GET['$link'] == "profile")
  25.         {
  26.                 include "page/profile.php";
  27.                 include "template.php";
  28.                 echo $TEMPLATE;
  29.         }
  30.         else
  31.         {
  32.             echo "Ssssdfsdg";
  33.         }
  34.     }
  35.    
  36.     /* Конец второстепенных страниц */
  37.    
  38.     default:
  39.         include "page/home.php";
  40.         include "template.php";
  41.         echo $TEMPLATE;
  42.     break;
  43. }
  44. /* Структура сайта конец */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement