Simple PHP api for SnipeIT app. Not maintained anymore; check out BinStack instead: https://source.netsyms.com/Business/BinStack and https://netsyms.biz/binstack
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

dieifnotloggedin.php 226B

123456789
  1. <?php
  2. /**
  3. * Simple way to block people that aren't logged in.
  4. */
  5. require_once 'required.php';
  6. if ($_SESSION['loggedin'] !== true || is_empty($_SESSION['user'])) {
  7. sendError('You must be logged in to continue.', true);
  8. }