Advertisement
rawyon

Untitled

Mar 7th, 2011
403
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.51 KB | None | 0 0
  1. <?php
  2. /**
  3.  * Sida som kräver att man är inloggad
  4.  *
  5.  * ckeditorpage.php
  6.  */
  7. session_start();
  8. if (defined('userReferEditor') != true) {
  9.     header('HTTP/1.1 403 Forbidden');
  10. }
  11. if (!isset($_SESSION['login']) || $_SESSION['login'] != true) || define{
  12.     header('Refresh: 10; url=login.php');
  13.     print 'Om 3 sekunder blir du länkad till login-sidan';
  14.     $printHtml  = "<h1>Sidan kräver inloggad</h1>";
  15.     $printHtml .= "<p><a href=\"admin.php\">Logga in</a></p>\n";
  16.     echo $printHtml;
  17.     exit;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement