diff --git a/modules/autoinstall/autoinstall.admin.model.php b/modules/autoinstall/autoinstall.admin.model.php index cae7cf93d..f77f24082 100644 --- a/modules/autoinstall/autoinstall.admin.model.php +++ b/modules/autoinstall/autoinstall.admin.model.php @@ -316,7 +316,7 @@ class autoinstallAdminModel extends autoinstall } } - $installedPackage = $oModel->getInstalledPackage($package_srl); + $installedPackage = $oModel->getInstalledPackage($packageSrl); if($installedPackage) { $package->installed = TRUE; @@ -386,7 +386,7 @@ class autoinstallAdminModel extends autoinstall while($path_list) { - $check_path = $real_path . implode('/', $path_list); + $check_path = realpath($real_path . implode('/', $path_list)); if(FileHandler::isDir($check_path)) { break; diff --git a/modules/autoinstall/autoinstall.admin.view.php b/modules/autoinstall/autoinstall.admin.view.php index 2f5c02717..f639bef0b 100644 --- a/modules/autoinstall/autoinstall.admin.view.php +++ b/modules/autoinstall/autoinstall.admin.view.php @@ -369,6 +369,10 @@ class autoinstallAdminView extends autoinstall } $output = $oAdminModel->checkUseDirectModuleInstall($package); + if($output->toBool()==TRUE) + { + Context::set('show_ftp_note', FALSE); + } Context::set('directModuleInstall', $output); $this->setTemplateFile('install'); @@ -534,6 +538,10 @@ class autoinstallAdminView extends autoinstall } $output = $oAdminModel->checkUseDirectModuleInstall($installedPackage); + if($output->toBool()==TRUE) + { + Context::set('show_ftp_note', FALSE); + } Context::set('directModuleInstall', $output); $params["act"] = "getResourceapiPackages"; diff --git a/modules/autoinstall/tpl/index.html b/modules/autoinstall/tpl/index.html index 0fb8e9e0f..cb29354da 100644 --- a/modules/autoinstall/tpl/index.html +++ b/modules/autoinstall/tpl/index.html @@ -9,6 +9,7 @@

{$XE_VALIDATOR_MESSAGE}

+ diff --git a/modules/autoinstall/tpl/install.html b/modules/autoinstall/tpl/install.html index 3efbc0fd4..d317295bf 100644 --- a/modules/autoinstall/tpl/install.html +++ b/modules/autoinstall/tpl/install.html @@ -6,30 +6,37 @@

{$lang->msg_update_core_title}

{$lang->msg_update_core}

-
-

{$lang->current_version}: {$package->cur_version} ({$lang->require_update})

-

{$lang->require_installation}

- -

{$lang->about_depending_programs}

-
    -
  • - {$dep->title} ver. {$dep->version} - - {$lang->current_version}: {$dep->cur_version} ({$lang->require_update}) - {$lang->require_installation} - - {$lang->cmd_download} ({$lang->path}: {$dep->path}) - -
  • -
-

{$lang->description_install}

-
+
+

{$lang->current_version}: {$package->cur_version} ({$lang->require_update})

+
+
+

{$lang->about_depending_programs}

+

{$lang->description_install}

+
    +
  • + {$dep->title} ver. {$dep->version} - + {$lang->current_version}: {$dep->cur_version} ({$lang->require_update}) + {$lang->require_installation} + + {$lang->cmd_download} ({$lang->path}: {$dep->path}) + +
  • +
-
-

{$lang->description_download}. (FTP Setup)

-

{$lang->path}: {$package->path}

-

{$lang->cmd_download} +

+ +

{$lang->msg_direct_install_not_supported}

+
    +
  • {$path}
  • +
+
+ +

{$lang->description_download}. (FTP Setup)

+

{$lang->path}: {$package->path}

+

{$lang->cmd_download} +

@@ -52,12 +59,6 @@
- -

{$lang->msg_direct_install_not_supported}

-
    -
  • {$path}
  • -
-
diff --git a/modules/autoinstall/tpl/uninstall.html b/modules/autoinstall/tpl/uninstall.html index d6f6b5c2c..c8fbf780c 100644 --- a/modules/autoinstall/tpl/uninstall.html +++ b/modules/autoinstall/tpl/uninstall.html @@ -8,48 +8,55 @@

{$lang->description_uninstall}

- -
-

{$XE_VALIDATOR_MESSAGE}

-
-
- - - - - - - - -
- -
- - {$lang->about_ftp_password} -
-
-
+

{$lang->msg_direct_install_not_supported}

  • {$path}
-
-
- -
+ +

{$lang->ftp_form_title}. (FTP Setup)

+
+
+ +
+
+

{$XE_VALIDATOR_MESSAGE}

- +
+ + + + + + + + +
+ +
+ + {$lang->about_ftp_password} +
+
+
+
+
+ +
+
+
+

{$lang->msg_dependency_package}

{$lang->msg_does_not_support_delete}

-
-

{$lang->dependant_list}:

-
    +
    +

    {$lang->dependant_list}:

    +
    • {$installed[$dep_package_srl]->title}