Remove hardcoded config dir in index.php

This commit is contained in:
Retro_Guy 2020-11-28 22:58:43 -07:00
parent 6b04dbec83
commit 5ad5e1f35e
1 changed files with 2 additions and 1 deletions

View File

@ -2,7 +2,8 @@
session_start(); session_start();
$_SESSION['isframed'] = 1; $_SESSION['isframed'] = 1;
$CONFIG = include('/etc/rslight/rslight.inc.php'); include "common/config.inc.php";
$CONFIG = include($config_dir.'/rslight.inc.php');
if (isset($_REQUEST['content'])) { if (isset($_REQUEST['content'])) {
$CONFIG['default_content']=$_REQUEST['content']; $CONFIG['default_content']=$_REQUEST['content'];