Advertisement
IcaroPeretti

VerificaLogin

Dec 10th, 2020
851
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None
  1. <?php
  2.     require_once($_SERVER['DOCUMENT_ROOT'] . '/bootstrap.php');
  3.     require_once($_SERVER['DOCUMENT_ROOT'] . '/vendor/autoload.php');
  4.     use App\utils\FlashMessage;
  5.  
  6.     if(isset($_SESSION['logado']) != true){
  7.         FlashMessage::setMessage("Você precisa estar logado",FlashMessage::ERROR);
  8.         header('location: /index.php');
  9.         exit(0);
  10.     }
  11.  
  12. ?>
Advertisement
RAW Paste Data Copied
Advertisement