Adicion de formulario para evitar installer para Linux con el PARTNER_FLAG
This commit is contained in:
@@ -35,6 +35,14 @@ class Installer extends Controller
|
|||||||
|
|
||||||
public function index ($httpData)
|
public function index ($httpData)
|
||||||
{
|
{
|
||||||
|
$partnerFlag = (defined('PARTNER_FLAG')) ? PARTNER_FLAG : false;
|
||||||
|
if ($partnerFlag){
|
||||||
|
$this->includeExtJS( 'installer/stopInstall');
|
||||||
|
$this->setView( 'installer/mainStopInstall' );
|
||||||
|
G::RenderPage( 'publish', 'extJs' );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$licenseContent = file_get_contents( PATH_TRUNK . 'LICENSE.txt' );
|
$licenseContent = file_get_contents( PATH_TRUNK . 'LICENSE.txt' );
|
||||||
|
|
||||||
$this->includeExtJS( 'installer/CardLayout', false );
|
$this->includeExtJS( 'installer/CardLayout', false );
|
||||||
|
|||||||
5
workflow/engine/templates/installer/mainStopInstall.html
Normal file
5
workflow/engine/templates/installer/mainStopInstall.html
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<table width="100%" align="center">
|
||||||
|
<td align="center">
|
||||||
|
<div id="bodyNoInsatalled" style=" width:320px; height: 200px; margin: 2% auto; "></div>
|
||||||
|
</td>
|
||||||
|
</table>
|
||||||
16
workflow/engine/templates/installer/stopInstall.js
Normal file
16
workflow/engine/templates/installer/stopInstall.js
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
Ext.onReady(function() {
|
||||||
|
|
||||||
|
var formLicenseLog = new Ext.FormPanel({
|
||||||
|
labelWidth : 60,
|
||||||
|
frame : true,
|
||||||
|
autoScroll: true,
|
||||||
|
monitorValid : true,
|
||||||
|
renderTo : 'bodyNoInsatalled',
|
||||||
|
title : _('ID_TITLE_NO_INSTALL'),
|
||||||
|
|
||||||
|
items:[
|
||||||
|
{html: _('ID_NO_INSTALL')}
|
||||||
|
]
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
Reference in New Issue
Block a user