[SCRIPTS] Make them work in v2 by setting PUBLICDIR

This commit is contained in:
Diogo Cordeiro
2019-07-15 04:10:29 +01:00
parent 5be705ca2a
commit 2e6c7b1bb8
59 changed files with 117 additions and 58 deletions

View File

@@ -31,6 +31,7 @@ if (php_sapi_name() !== 'cli') {
}
define('INSTALLDIR', dirname(__DIR__));
define('PUBLICDIR', INSTALLDIR . DIRECTORY_SEPARATOR . 'public');
set_include_path(get_include_path() . PATH_SEPARATOR . INSTALLDIR . '/extlib');
require_once INSTALLDIR . '/lib/installer.php';