Fixed problems with absolete paths
This commit is contained in:
parent
c6d1432433
commit
bfc250433a
|
@ -17,15 +17,9 @@
|
||||||
if (isset($_GET['get_ptr'])) {
|
if (isset($_GET['get_ptr'])) {
|
||||||
if ($_GET['get_ptr'] == 1) {
|
if ($_GET['get_ptr'] == 1) {
|
||||||
|
|
||||||
if (file_exists("../include/config.php"))
|
$ownDir = dirname(__FILE__) . '/';
|
||||||
require ("../include/config.php");
|
$ownDir = str_replace("\\", "/", $ownDir);
|
||||||
else {
|
require_once ($ownDir.'../include/config.php');
|
||||||
//TODO FIX AND SET AS RELATIVE DIRECTORY
|
|
||||||
if (file_exists("/var/www/pandora_console/include/config.php"))
|
|
||||||
require ("/var/www/pandora_console/include/config.php");
|
|
||||||
if (file_exists("/srv/www/htdocs/pandora_console/include/config.php"))
|
|
||||||
require ("/srv/www/htdocs/pandora_console/include/config.php");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (! isset ($_SESSION["id_usuario"])) {
|
if (! isset ($_SESSION["id_usuario"])) {
|
||||||
session_start ();
|
session_start ();
|
||||||
|
|
|
@ -10,21 +10,14 @@
|
||||||
// You cannnot redistribute it without written permission of copyright holder.
|
// You cannnot redistribute it without written permission of copyright holder.
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
|
|
||||||
if (file_exists("../../../include/config.php"))
|
$ownDir = dirname(__FILE__) . '/';
|
||||||
require ("../../../include/config.php");
|
$ownDir = str_replace("\\", "/", $ownDir);
|
||||||
else {
|
require_once ($ownDir.'../include/config.php');
|
||||||
//TODO FIX AND SET AS RELATIVE DIRECTORY
|
|
||||||
if (file_exists("/var/www/pandora_console/include/config.php"))
|
|
||||||
require ("/var/www/pandora_console/include/config.php");
|
|
||||||
if (file_exists("/srv/www/htdocs/pandora_console/include/config.php"))
|
|
||||||
require ("/srv/www/htdocs/pandora_console/include/config.php");
|
|
||||||
}
|
|
||||||
|
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
require_once ($config["homedir"]."/include/functions.php");
|
require_once ($config["homedir"]."/include/functions.php");
|
||||||
require_once ($config["homedir"]."/include/functions_db.php");
|
require_once ($config["homedir"]."/include/functions_db.php");
|
||||||
require_once ($config["homedir"]."/enterprise/include/functions_reporting_csv.php");
|
enterprise_include ($config["homedir"]."/enterprise/include/functions_reporting_csv.php");
|
||||||
require_once ($config["homedir"]."/include/auth/mysql.php");
|
require_once ($config["homedir"]."/include/auth/mysql.php");
|
||||||
|
|
||||||
error_reporting(E_ALL);
|
error_reporting(E_ALL);
|
||||||
|
|
Loading…
Reference in New Issue