Skip to content

Commit

Permalink
Update index.php
Browse files Browse the repository at this point in the history
  • Loading branch information
femto-code committed Jul 10, 2023
1 parent b0408f4 commit 02292c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");

$auth=(isset($_SESSION["rpidbauth"])) ? true : false;

require "backend/Config.php";
$config = new Config;
$config->load("local.config", "defaults.php");

$auth=(isset($_SESSION["rpidbauth"])) ? true : false;

if(!isset($_SESSION["setup"])){
if( ($config->get("general.initialsetup")=="0") || ($config->get("general.initialsetup")=="") ){
header("Location: setup.php");
Expand Down

0 comments on commit 02292c6

Please sign in to comment.