[FIX] Helper script shared files

This commit is contained in:
Sebastian Grewe 2014-04-14 18:20:57 +02:00
parent 1456bd21ef
commit 299e062268
3 changed files with 9 additions and 29 deletions

View File

@ -35,7 +35,7 @@ if (SECHASH_CHECK) {
// MODIFY THIS
// We need to find our include files so set this properly
define("BASEPATH", "../public/");
define("BASEPATH", dirname(__FILE__) . "/");
/*****************************************************
* No need to change beyond this point *
@ -48,14 +48,8 @@ $dStartTime = microtime(true);
$cron_name = basename($_SERVER['PHP_SELF'], '.php');
// Include our configuration (holding defines for the requires)
require_once(BASEPATH . 'include/config/global.inc.dist.php');
require_once(BASEPATH . 'include/config/global.inc.php');
require_once(BASEPATH . 'include/config/security.inc.dist.php');
@include_once(BASEPATH . 'include/config/security.inc.php');
require_once(BASEPATH . 'include/bootstrap.php');
require_once(BASEPATH . 'include/version.inc.php');
require_once(BASEPATH . '../include/bootstrap.php');
require_once(BASEPATH . '../include/version.inc.php');
// Command line switches
array_shift($argv);

View File

@ -18,9 +18,8 @@ limitations under the License.
*/
// MODIFY THIS
// We need to find our include files so set this properly
define("BASEPATH", "../public/");
define('BASEPATH', dirname(__FILE__) . '/');
/*****************************************************
* No need to change beyond this point *
@ -40,14 +39,8 @@ if (SECHASH_CHECK) {
}
// Include our configuration (holding defines for the requires)
require_once(BASEPATH . 'include/config/global.inc.dist.php');
require_once(BASEPATH . 'include/config/global.inc.php');
require_once(BASEPATH . 'include/config/security.inc.dist.php');
@include_once(BASEPATH . 'include/config/security.inc.php');
require_once(BASEPATH . 'include/bootstrap.php');
require_once(BASEPATH . 'include/version.inc.php');
require_once(BASEPATH . '../include/bootstrap.php');
require_once(BASEPATH . '../include/version.inc.php');
/**
* Not used as of yet, may be added later

View File

@ -18,9 +18,8 @@ limitations under the License.
*/
// MODIFY THIS
// We need to find our include files so set this properly
define("BASEPATH", "../public/");
define('BASEPATH', dirname(__FILE__) . '/');
/*****************************************************
* No need to change beyond this point *
@ -40,12 +39,6 @@ if (SECHASH_CHECK) {
}
// Include our configuration (holding defines for the requires)
require_once(BASEPATH . 'include/config/global.inc.dist.php');
require_once(BASEPATH . 'include/config/global.inc.php');
require_once(BASEPATH . 'include/config/security.inc.dist.php');
@include_once(BASEPATH . 'include/config/security.inc.php');
require_once(BASEPATH . 'include/bootstrap.php');
require_once(BASEPATH . 'include/version.inc.php');
require_once(BASEPATH . '../include/bootstrap.php');
require_once(BASEPATH . '../include/version.inc.php');
?>