Advertisement
rawyon

Untitled

Mar 7th, 2011
361
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.  
  8. if (defined('userReferEditor') != true) {
  9.    header('HTTP/1.1 403 Forbidden');
  10. }  
  11. session_start();
  12.  
  13.  
  14. if (!isset($_SESSION['login']) || $_SESSION['login'] != true) || define{
  15.     header('Refresh: 3; url=admin.php');
  16.     print 'Om 3 sekunder blir du länkad till login-sidan';
  17.     $printHtml  = "<h1>Sidan kräver inloggad</h1>";
  18.     $printHtml .= "<p><a href=\"admin.php\">Logga in</a></p>\n";
  19.     echo $printHtml;
  20.     exit;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement