authidfilter.php 504 B

123456789101112
  1. <?php
  2. if (! defined("CONFIG")) die("Not defined");
  3. if (isset($_GET['auth_id'])) { $auth_id = $_GET["auth_id"] * 1; }
  4. if (isset($_POST['auth_id'])) { $auth_id = $_POST["auth_id"] * 1; }
  5. if (!isset($auth_id)) {
  6. if (isset($_SESSION[$page_url]['auth_id'])) { $auth_id = $_SESSION[$page_url]['auth_id']*1; }
  7. }
  8. if (!isset($auth_id) and isset($default_auth_id)) { $auth_id=$default_auth_id; }
  9. if (!isset($auth_id)) { header("Location: /admin/index.php"); }
  10. $_SESSION[$page_url]['auth_id']=$auth_id;
  11. ?>