Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Sida som kräver att man är inloggad
- *
- * ckeditorpage.php
- */
- if (defined('userReferEditor') != true) {
- header('HTTP/1.1 403 Forbidden');
- }
- session_start();
- if (!isset($_SESSION['login']) || $_SESSION['login'] != true) || define{
- header('Refresh: 10; url=login.php');
- print 'Om 3 sekunder blir du länkad till login-sidan';
- $printHtml = "<h1>Sidan kräver inloggad</h1>";
- $printHtml .= "<p><a href=\"admin.php\">Logga in</a></p>\n";
- echo $printHtml;
- exit;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement