From 5769c0facce4e3810576905ff3c5370b445911cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Garci=CC=81a?= Date: Thu, 23 Aug 2012 02:46:16 +0200 Subject: [PATCH] Changed incorrect includes --- htdocs/install/check.php | 2 +- htdocs/install/etape1.php | 2 +- htdocs/install/etape2.php | 2 +- htdocs/install/etape4.php | 2 +- htdocs/install/etape5.php | 2 +- htdocs/install/fileconf.php | 2 +- htdocs/install/index.php | 2 +- htdocs/install/phpinfo.php | 2 +- htdocs/install/repair.php | 2 +- htdocs/install/upgrade.php | 2 +- htdocs/install/upgrade2.php | 2 +- htdocs/support/index.php | 2 +- htdocs/support/online.php | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/htdocs/install/check.php b/htdocs/install/check.php index 38ab53a8aa9..e407c037963 100644 --- a/htdocs/install/check.php +++ b/htdocs/install/check.php @@ -23,7 +23,7 @@ * \ingroup install * \brief Test if file conf can be modified and if does not exists, test if install process can create it */ -include_once './inc.php'; +include_once 'inc.php'; $err = 0; $allowinstall = 0; diff --git a/htdocs/install/etape1.php b/htdocs/install/etape1.php index 331f8185371..7b225c137ad 100644 --- a/htdocs/install/etape1.php +++ b/htdocs/install/etape1.php @@ -27,7 +27,7 @@ define('DONOTLOADCONF',1); // To avoid loading conf by file inc.php -include './inc.php'; +include 'inc.php'; $action=GETPOST('action'); $setuplang=isset($_POST["selectlang"])?$_POST["selectlang"]:(isset($_GET["selectlang"])?$_GET["selectlang"]:'auto'); diff --git a/htdocs/install/etape2.php b/htdocs/install/etape2.php index d5d2be5bf92..0e07722c93d 100644 --- a/htdocs/install/etape2.php +++ b/htdocs/install/etape2.php @@ -22,7 +22,7 @@ * \brief Create tables, primary keys, foreign keys, indexes and functions into database and then load reference data */ -include './inc.php'; +include 'inc.php'; require_once $dolibarr_main_document_root.'/core/class/conf.class.php'; require_once $dolibarr_main_document_root.'/core/lib/admin.lib.php'; diff --git a/htdocs/install/etape4.php b/htdocs/install/etape4.php index 458f42c8370..a1af8a061d2 100644 --- a/htdocs/install/etape4.php +++ b/htdocs/install/etape4.php @@ -25,7 +25,7 @@ */ -include_once './inc.php'; +include_once 'inc.php'; require_once $dolibarr_main_document_root.'/core/class/conf.class.php'; require_once $dolibarr_main_document_root.'/core/lib/admin.lib.php'; diff --git a/htdocs/install/etape5.php b/htdocs/install/etape5.php index 43acb1ee768..0ff065ac53f 100644 --- a/htdocs/install/etape5.php +++ b/htdocs/install/etape5.php @@ -25,7 +25,7 @@ * \brief Last page of upgrade or install process */ -include_once './inc.php'; +include_once 'inc.php'; if (file_exists($conffile)) include_once $conffile; require_once $dolibarr_main_document_root . '/core/lib/admin.lib.php'; require_once $dolibarr_main_document_root . '/core/lib/security.lib.php'; // for dol_hash diff --git a/htdocs/install/fileconf.php b/htdocs/install/fileconf.php index ebf7bf7879b..704f8a54f41 100644 --- a/htdocs/install/fileconf.php +++ b/htdocs/install/fileconf.php @@ -25,7 +25,7 @@ * \ingroup install * \brief Ask all informations required to build Dolibarr htdocs/conf/conf.php file (will be wrote on disk on next page) */ -include_once './inc.php'; +include_once 'inc.php'; $err=0; diff --git a/htdocs/install/index.php b/htdocs/install/index.php index efa0eb438b4..1c288ff9f23 100644 --- a/htdocs/install/index.php +++ b/htdocs/install/index.php @@ -22,7 +22,7 @@ * \brief Show page to select language. This is done only for a first installation. * For a reinstall this page redirect to page check.php */ -include_once './inc.php'; +include_once 'inc.php'; include_once '../core/class/html.form.class.php'; include_once '../core/class/html.formadmin.class.php'; diff --git a/htdocs/install/phpinfo.php b/htdocs/install/phpinfo.php index f91d61395a4..e2ef6449ac3 100644 --- a/htdocs/install/phpinfo.php +++ b/htdocs/install/phpinfo.php @@ -21,7 +21,7 @@ * \brief Show page phpinfo */ -include_once './inc.php'; +include_once 'inc.php'; phpinfo(); diff --git a/htdocs/install/repair.php b/htdocs/install/repair.php index a18dce9921d..ceb8516f1a1 100644 --- a/htdocs/install/repair.php +++ b/htdocs/install/repair.php @@ -22,7 +22,7 @@ * \brief Run repair script */ -include_once './inc.php'; +include_once 'inc.php'; if (file_exists($conffile)) include_once $conffile; require_once $dolibarr_main_document_root.'/core/lib/admin.lib.php'; require_once $dolibarr_main_document_root.'/core/class/extrafields.class.php'; diff --git a/htdocs/install/upgrade.php b/htdocs/install/upgrade.php index 31063479e20..7f3d3be9bc9 100644 --- a/htdocs/install/upgrade.php +++ b/htdocs/install/upgrade.php @@ -22,7 +22,7 @@ * \brief Run migration script */ -include_once './inc.php'; +include_once 'inc.php'; if (! file_exists($conffile)) { print 'Error: Dolibarr config file was not found. This may means that Dolibarr is not installed yet. Please call the page "/install/index.php" instead of "/install/upgrade.php").'; diff --git a/htdocs/install/upgrade2.php b/htdocs/install/upgrade2.php index 9387a32957a..eb4658bf5aa 100644 --- a/htdocs/install/upgrade2.php +++ b/htdocs/install/upgrade2.php @@ -23,7 +23,7 @@ * \brief Upgrade some data */ -include_once './inc.php'; +include_once 'inc.php'; if (! file_exists($conffile)) { print 'Error: Dolibarr config file was not found. This may means that Dolibarr is not installed yet. Please call the page "/install/index.php" instead of "/install/upgrade.php").'; diff --git a/htdocs/support/index.php b/htdocs/support/index.php index c5b214eb9a1..31c2869250d 100644 --- a/htdocs/support/index.php +++ b/htdocs/support/index.php @@ -26,7 +26,7 @@ // Use its own include to not share the include of Dolibarr // This is a standalone feature with no information from Dolibarr to show // and no database access to do. -include_once './inc.php'; +include_once 'inc.php'; $uri=preg_replace('/^http(s?):\/\//i','',$dolibarr_main_url_root); $pos = strstr($uri, '/'); // $pos contient alors url sans nom domaine if ($pos == '/') $pos = ''; // si $pos vaut /, on le met a '' diff --git a/htdocs/support/online.php b/htdocs/support/online.php index d7095181acd..2b7422bb355 100644 --- a/htdocs/support/online.php +++ b/htdocs/support/online.php @@ -23,7 +23,7 @@ error_reporting(0); -include_once './inc.php'; +include_once 'inc.php'; $uri=preg_replace('/^http(s?):\/\//i','',$dolibarr_main_url_root); $pos = strstr($uri, '/'); // $pos contient alors url sans nom domaine if ($pos == '/') $pos = ''; // si $pos vaut /, on le met a ''