<?php1/*ORIGINAL CREATOR: Luca Garofalo (Lucksi)2AUTHOR: Luca Garofalo (Lucksi)3Copyright (C) 2021-2023 Lucksi <[email protected]>4License: GNU General Public License v3.0*/56function Active(){7$Login_file = "Credentials/Login.json";8if (file_exists($Login_file)){9$reader = file_get_contents($Login_file);10$Parser = json_decode($reader,true);11$Status = $Parser["Database"]["Status"];12if (($Status == "Active")){13header("Location: ../Login/Login.php");14}15elseif(($Status == "Deactive")) {16header("Location: ../Database/Main.php");17}18}19else {20echo "<script>21alert('INTERNAL ERROR MISSING: Credentials/Login.json EXIT SESSION');22</script>";23exit(0);24}25}26Active()27?>2829