PM-1307 Mensaje de Error despues de abrir un proceso
Se modifico el instalador para que se validen los permisos en los archivos necesarios.
This commit is contained in:
@@ -31,11 +31,13 @@ class Installer extends Controller
|
||||
$this->path_shared = PATH_TRUNK . 'shared/';
|
||||
$this->path_sep = PATH_SEP;
|
||||
$this->systemName = '';
|
||||
//$this->path_documents = ;
|
||||
$this->path_translations = PATH_CORE . 'js/labels/';
|
||||
$this->path_translationsMafe = PATH_HOME . 'public_html/translations/';
|
||||
}
|
||||
|
||||
public function index ($httpData)
|
||||
{
|
||||
|
||||
if ((strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') && (file_exists($this->path_shared . 'partner.info'))){
|
||||
$this->includeExtJS( 'installer/stopInstall');
|
||||
$this->setView( 'installer/mainStopInstall' );
|
||||
@@ -62,6 +64,8 @@ class Installer extends Controller
|
||||
$this->setJSVar( 'path_public', $this->path_public );
|
||||
$this->setJSVar( 'path_shared', $this->path_shared );
|
||||
$this->setJSVar( 'path_sep', $this->path_sep );
|
||||
$this->setJSVar( 'path_translations', $this->path_translations );
|
||||
$this->setJSVar( 'path_translationsMafe', $this->path_translationsMafe );
|
||||
|
||||
$this->setView( 'installer/main' );
|
||||
|
||||
@@ -232,7 +236,6 @@ class Installer extends Controller
|
||||
$info = new StdClass();
|
||||
$info->success = true;
|
||||
$noWritableFiles = array ();
|
||||
|
||||
// pathConfig
|
||||
$info->pathConfig = new stdclass();
|
||||
$info->pathConfig->message = G::LoadTranslation('ID_INDEX_NOT_WRITEABLE');
|
||||
@@ -270,6 +273,24 @@ class Installer extends Controller
|
||||
$info->success = false;
|
||||
}
|
||||
|
||||
$info->pathTranslations = new stdclass();
|
||||
$info->pathTranslations->message = G::LoadTranslation('ID_TRANSLATION_NOT_WRITEABLE');
|
||||
$info->pathTranslations->result = G::is_writable_r( $_REQUEST['pathTranslations'], $noWritableFiles );
|
||||
if ($info->pathTranslations->result) {
|
||||
$info->pathTranslations->message = G::LoadTranslation('ID_WRITEABLE');
|
||||
} else {
|
||||
$info->success = false;
|
||||
}
|
||||
|
||||
$info->pathTranslationsMafe = new stdclass();
|
||||
$info->pathTranslationsMafe->message = G::LoadTranslation('ID_MAFE_TRANSLATION_NOT_WRITEABLE');
|
||||
$info->pathTranslationsMafe->result = G::is_writable_r( $_REQUEST['pathTranslationsMafe'], $noWritableFiles );
|
||||
if ($info->pathTranslationsMafe->result) {
|
||||
$info->pathTranslationsMafe->message = G::LoadTranslation('ID_WRITEABLE');
|
||||
} else {
|
||||
$info->success = false;
|
||||
}
|
||||
|
||||
$info->pathPublic = new stdclass();
|
||||
|
||||
$info->pathShared = new stdclass();
|
||||
|
||||
Reference in New Issue
Block a user