Exemplo n.º 1
0
 function DoInstall()
 {
     global $APPLICATION, $step;
     $step = IntVal($step);
     if ($step < 2) {
         $APPLICATION->IncludeAdminFile(GetMessage("APP_INSTALL_TITLE"), $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/eshopapp/install/step1.php");
     } elseif ($step == 2) {
         if (file_exists($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/mobileapp") && !IsModuleInstalled("mobileapp")) {
             $mobapp = new mobileapp();
             $mobapp->InstallDB();
             $mobapp->InstallFiles();
         }
         $this->InstallFiles();
         $this->InstallDB(false);
         //$this->InstallEvents();
         $this->InstallPublic($_REQUEST["eshopapp_iblock_type"], intval($_REQUEST["eshopapp_iblock_id"]));
         $GLOBALS["errors"] = $this->errors;
         $APPLICATION->IncludeAdminFile(GetMessage("APP_INSTALL_TITLE"), $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/eshopapp/install/step2.php");
         //return true;
     }
 }
Exemplo n.º 2
0
 function InstallMobileApp()
 {
     if (!IsModuleInstalled('mobileapp') && file_exists($_SERVER['DOCUMENT_ROOT'] . "/bitrix/modules/mobileapp/install/index.php")) {
         include_once $_SERVER['DOCUMENT_ROOT'] . "/bitrix/modules/mobileapp/install/index.php";
         $pull = new mobileapp();
         $pull->InstallFiles();
         $pull->InstallDB();
     }
 }