DOCSYSTEM Cambio el orden de generar instalador

Cambio el orden de generar instalador
This commit is contained in:
Brayan Osmar Pereyra Suxo
2013-05-07 16:22:41 -04:00
parent 1b7b858c21
commit eae113fe1b

View File

@@ -1402,45 +1402,6 @@ EOL;
$output = curl_exec($ch);
curl_close($ch);
/**
* Upload translation .po file
*/
$ch = curl_init();
$postData = array();
error_log('** LENGUAJE **');
// File to upload/post
$parm1 = "@".PATH_CORE."content/translations/processmaker.$lang.po";
error_log('parm1 ------');
error_log($parm1);
error_log('------');
$parm2 = "$serv/sys{$workspace}/{$lang}/{$skinName}/setup/languages_Import";
error_log('parm2 ------');
error_log($parm2);
error_log('------');
$postData['form[LANGUAGE_FILENAME]'] = "@".PATH_CORE."content/translations/processmaker.$lang.po";
curl_setopt($ch, CURLOPT_URL, "$serv/sys{$workspace}/{$lang}/{$skinName}/setup/languages_Import");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_VERBOSE, 0);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookiefile);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookiefile);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postData);
curl_setopt($ch, CURLOPT_TIMEOUT, 90);
$output = curl_exec($ch);
error_log('respuesta ------');
error_log($output);
error_log('------');
curl_close($ch);
/**
* Upload skin file
*/
@@ -1462,7 +1423,6 @@ EOL;
error_log('** SKIN **');
error_log('archivo -> ' . $postData['uploadedFile']);
error_log('link -> ' . "$serv/sys{$workspace}/{$lang}/{$skinName}/setup/skin_Ajax");
http://127.0.0.1:80/sysworkflow/pt-BR/C:/Users/erik/AppData/Roaming/DocSystem-4_4/docsystem/workflow/engine/data/partner/silverflex.tar/setup/skin_Ajax
curl_setopt($ch, CURLOPT_URL, "$serv/sys{$workspace}/{$lang}/{$skinName}/setup/skin_Ajax");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_VERBOSE, 0);
@@ -1516,6 +1476,44 @@ http://127.0.0.1:80/sysworkflow/pt-BR/C:/Users/erik/AppData/Roaming/DocSystem-4_
curl_close($ch);
}
/**
* Upload translation .po file
*/
$ch = curl_init();
$postData = array();
error_log('** LENGUAJE **');
// File to upload/post
$parm1 = "@".PATH_CORE."content/translations/processmaker.$lang.po";
error_log('parm1 ------');
error_log($parm1);
error_log('------');
$parm2 = "$serv/sys{$workspace}/{$lang}/{$skinName}/setup/languages_Import";
error_log('parm2 ------');
error_log($parm2);
error_log('------');
$postData['form[LANGUAGE_FILENAME]'] = "@".PATH_CORE."content/translations/processmaker.$lang.po";
curl_setopt($ch, CURLOPT_URL, "$serv/sys{$workspace}/{$lang}/{$skinName}/setup/languages_Import");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_VERBOSE, 0);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookiefile);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookiefile);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postData);
curl_setopt($ch, CURLOPT_TIMEOUT, 90);
$output = curl_exec($ch);
error_log('respuesta ------');
error_log($output);
error_log('------');
curl_close($ch);
}
}