HOR-4229
This commit is contained in:
@@ -211,8 +211,8 @@ class PmBootstrap extends Bootstrap
|
|||||||
{
|
{
|
||||||
// new installer, extjs based
|
// new installer, extjs based
|
||||||
define('PATH_DATA', PATH_C);
|
define('PATH_DATA', PATH_C);
|
||||||
require_once ( PATH_CONTROLLERS . 'installer.php' );
|
require_once ( PATH_CONTROLLERS . 'InstallerModule.php' );
|
||||||
$controller = 'Installer';
|
$controller = InstallerModule::class;
|
||||||
|
|
||||||
// if the method name is empty set default to index method
|
// if the method name is empty set default to index method
|
||||||
if (strpos(SYS_TARGET, '/') !== false) {
|
if (strpos(SYS_TARGET, '/') !== false) {
|
||||||
@@ -225,7 +225,7 @@ class PmBootstrap extends Bootstrap
|
|||||||
$controllerAction = ($controllerAction != '' && $controllerAction != 'login')? $controllerAction: 'index';
|
$controllerAction = ($controllerAction != '' && $controllerAction != 'login')? $controllerAction: 'index';
|
||||||
|
|
||||||
// create the installer controller and call its method
|
// create the installer controller and call its method
|
||||||
if( is_callable(Array('Installer', $controllerAction)) ) {
|
if (is_callable([InstallerModule::class, $controllerAction])) {
|
||||||
$installer = new $controller();
|
$installer = new $controller();
|
||||||
$installer->setHttpRequestData($_REQUEST);
|
$installer->setHttpRequestData($_REQUEST);
|
||||||
$installer->call($controllerAction);
|
$installer->call($controllerAction);
|
||||||
@@ -307,7 +307,7 @@ class PmBootstrap extends Bootstrap
|
|||||||
|
|
||||||
$noLoginFolders[] = 'services';
|
$noLoginFolders[] = 'services';
|
||||||
$noLoginFolders[] = 'tracker';
|
$noLoginFolders[] = 'tracker';
|
||||||
$noLoginFolders[] = 'installer';
|
$noLoginFolders[] = 'InstallerModule';
|
||||||
|
|
||||||
// This sentence is used when you lost the Session
|
// This sentence is used when you lost the Session
|
||||||
if (! in_array(SYS_TARGET, $noLoginFiles)
|
if (! in_array(SYS_TARGET, $noLoginFiles)
|
||||||
|
|||||||
@@ -118,8 +118,6 @@ class InstallerModule extends Controller
|
|||||||
|
|
||||||
public function getSystemInfo ()
|
public function getSystemInfo ()
|
||||||
{
|
{
|
||||||
//$echo "<script> document.write(TRANSLATIONS) </script>";
|
|
||||||
//print_r ($valu);die();
|
|
||||||
$this->setResponseType( 'json' );
|
$this->setResponseType( 'json' );
|
||||||
|
|
||||||
// PHP info and verification
|
// PHP info and verification
|
||||||
@@ -1383,7 +1383,7 @@ class adminProxy extends HttpProxyController
|
|||||||
|
|
||||||
public function generateInfoSupport ()
|
public function generateInfoSupport ()
|
||||||
{
|
{
|
||||||
require_once (PATH_CONTROLLERS . "installer.php");
|
require_once (PATH_CONTROLLERS . "InstallerModule.php");
|
||||||
$params = array ();
|
$params = array ();
|
||||||
|
|
||||||
$oServerConf = &ServerConf::getSingleton();
|
$oServerConf = &ServerConf::getSingleton();
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ switch ($option) {
|
|||||||
G::RenderPage("publish", "extJs");
|
G::RenderPage("publish", "extJs");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
require_once (PATH_CONTROLLERS . "installer.php");
|
require_once (PATH_CONTROLLERS . "InstallerModule.php");
|
||||||
|
|
||||||
$installer = new InstallerModule();
|
$installer = new InstallerModule();
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ systemInfo.application = {
|
|||||||
|
|
||||||
switch (option) {
|
switch (option) {
|
||||||
case "SYS":
|
case "SYS":
|
||||||
url = "../installer/getSystemInfo";
|
url = "../InstallerModule/getSystemInfo";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -284,8 +284,8 @@ use ProcessMaker\Plugins\PluginRegistry;
|
|||||||
|
|
||||||
// new installer, extjs based
|
// new installer, extjs based
|
||||||
define('PATH_DATA', PATH_C);
|
define('PATH_DATA', PATH_C);
|
||||||
require_once ( PATH_CONTROLLERS . 'installer.php' );
|
require_once ( PATH_CONTROLLERS . 'InstallerModule.php' );
|
||||||
$controller = 'Installer';
|
$controller = InstallerModule::class;
|
||||||
|
|
||||||
// if the method name is empty set default to index method
|
// if the method name is empty set default to index method
|
||||||
if (strpos(SYS_TARGET, '/') !== false) {
|
if (strpos(SYS_TARGET, '/') !== false) {
|
||||||
@@ -298,7 +298,7 @@ use ProcessMaker\Plugins\PluginRegistry;
|
|||||||
$controllerAction = ($controllerAction != '' && $controllerAction != 'login')? $controllerAction: 'index';
|
$controllerAction = ($controllerAction != '' && $controllerAction != 'login')? $controllerAction: 'index';
|
||||||
|
|
||||||
// create the installer controller and call its method
|
// create the installer controller and call its method
|
||||||
if( is_callable(Array('Installer', $controllerAction)) ) {
|
if (is_callable([InstallerModule::class, $controllerAction])) {
|
||||||
$installer = new $controller();
|
$installer = new $controller();
|
||||||
$installer->setHttpRequestData($_REQUEST);
|
$installer->setHttpRequestData($_REQUEST);
|
||||||
$installer->call($controllerAction);
|
$installer->call($controllerAction);
|
||||||
@@ -628,7 +628,7 @@ use ProcessMaker\Plugins\PluginRegistry;
|
|||||||
|
|
||||||
$noLoginFolders[] = 'services';
|
$noLoginFolders[] = 'services';
|
||||||
$noLoginFolders[] = 'tracker';
|
$noLoginFolders[] = 'tracker';
|
||||||
$noLoginFolders[] = 'installer';
|
$noLoginFolders[] = 'InstallerModule';
|
||||||
|
|
||||||
// This sentence is used when you lost the Session
|
// This sentence is used when you lost the Session
|
||||||
if (! in_array(SYS_TARGET, $noLoginFiles)
|
if (! in_array(SYS_TARGET, $noLoginFiles)
|
||||||
|
|||||||
@@ -520,8 +520,8 @@ if (! defined( 'PATH_DATA' ) || ! file_exists( PATH_DATA )) {
|
|||||||
// new installer, extjs based
|
// new installer, extjs based
|
||||||
define( 'PATH_DATA', PATH_C );
|
define( 'PATH_DATA', PATH_C );
|
||||||
//NewRelic Snippet - By JHL
|
//NewRelic Snippet - By JHL
|
||||||
transactionLog(PATH_CONTROLLERS.'installer.php');
|
transactionLog(PATH_CONTROLLERS . 'InstallerModule.php');
|
||||||
$pathFile = PATH_CONTROLLERS . 'installer.php';
|
$pathFile = PATH_CONTROLLERS . 'InstallerModule.php';
|
||||||
require_once ($pathFile);
|
require_once ($pathFile);
|
||||||
$controller = InstallerModule::class;
|
$controller = InstallerModule::class;
|
||||||
|
|
||||||
@@ -535,8 +535,7 @@ if (! defined( 'PATH_DATA' ) || ! file_exists( PATH_DATA )) {
|
|||||||
$controllerAction = ($controllerAction != '' && $controllerAction != 'login') ? $controllerAction : 'index';
|
$controllerAction = ($controllerAction != '' && $controllerAction != 'login') ? $controllerAction : 'index';
|
||||||
|
|
||||||
// create the installer controller and call its method
|
// create the installer controller and call its method
|
||||||
if (is_callable( Array (InstallerModule::class,$controllerAction
|
if (is_callable([InstallerModule::class, $controllerAction])) {
|
||||||
) )) {
|
|
||||||
$installer = new $controller();
|
$installer = new $controller();
|
||||||
$installer->setHttpRequestData( $_REQUEST );
|
$installer->setHttpRequestData( $_REQUEST );
|
||||||
//NewRelic Snippet - By JHL
|
//NewRelic Snippet - By JHL
|
||||||
@@ -968,7 +967,7 @@ if (! defined( 'EXECUTE_BY_CRON' )) {
|
|||||||
|
|
||||||
$noLoginFolders[] = 'services';
|
$noLoginFolders[] = 'services';
|
||||||
$noLoginFolders[] = 'tracker';
|
$noLoginFolders[] = 'tracker';
|
||||||
$noLoginFolders[] = 'installer';
|
$noLoginFolders[] = 'InstallerModule';
|
||||||
|
|
||||||
// This sentence is used when you lost the Session
|
// This sentence is used when you lost the Session
|
||||||
if (! in_array( SYS_TARGET, $noLoginFiles ) && ! in_array( SYS_COLLECTION, $noLoginFolders ) && $bWE != true && $collectionPlugin != 'services') {
|
if (! in_array( SYS_TARGET, $noLoginFiles ) && ! in_array( SYS_COLLECTION, $noLoginFolders ) && $bWE != true && $collectionPlugin != 'services') {
|
||||||
|
|||||||
Reference in New Issue
Block a user