DOCSYSTEM Añadi el parametro de skin

Añadi el parametro de skin
This commit is contained in:
Brayan Osmar Pereyra Suxo
2013-05-07 12:00:44 -04:00
parent e1a5848955
commit 18f6486a8d

View File

@@ -851,7 +851,7 @@ class Installer extends Controller
$indexFileUpdated = true; $indexFileUpdated = true;
if (defined('PARTNER_FLAG') || isset($_REQUEST['PARTNER_FLAG'])) { if (defined('PARTNER_FLAG') || isset($_REQUEST['PARTNER_FLAG'])) {
$this->buildParternExtras($adminUsername, $adminPassword, $_REQUEST['workspace'], $langUri); $this->buildParternExtras($adminUsername, $adminPassword, $_REQUEST['workspace'], $langUri, $skinUri);
} else { } else {
try { try {
G::update_php_ini( $envFile, $updatedConf ); G::update_php_ini( $envFile, $updatedConf );
@@ -1361,7 +1361,7 @@ EOL;
$this->mysqlQuery($query); $this->mysqlQuery($query);
} }
public function buildParternExtras($username, $password, $workspace, $lang) public function buildParternExtras($username, $password, $workspace, $lang, $skin)
{ {
ini_set('max_execution_time', '0'); ini_set('max_execution_time', '0');
ini_set('memory_limit', '256M'); ini_set('memory_limit', '256M');
@@ -1389,7 +1389,7 @@ EOL;
$ch = curl_init(); $ch = curl_init();
// set URL and other appropriate options // set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, "$serv/sys{$workspace}/{$lang}/classic/login/authentication"); curl_setopt($ch, CURLOPT_URL, "$serv/sys{$workspace}/{$lang}/{$skin}/login/authentication");
curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookiefile); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookiefile);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookiefile); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookiefile);
@@ -1416,7 +1416,7 @@ EOL;
error_log($parm1); error_log($parm1);
error_log('------'); error_log('------');
$parm2 = "$serv/sys{$workspace}/{$lang}/classic/setup/languages_Import"; $parm2 = "$serv/sys{$workspace}/{$lang}/{$skin}/setup/languages_Import";
error_log('parm2 ------'); error_log('parm2 ------');
error_log($parm2); error_log($parm2);
@@ -1424,7 +1424,7 @@ EOL;
$postData['form[LANGUAGE_FILENAME]'] = "@".PATH_CORE."content/translations/processmaker.$lang.po"; $postData['form[LANGUAGE_FILENAME]'] = "@".PATH_CORE."content/translations/processmaker.$lang.po";
curl_setopt($ch, CURLOPT_URL, "$serv/sys{$workspace}/{$lang}/classic/setup/languages_Import"); curl_setopt($ch, CURLOPT_URL, "$serv/sys{$workspace}/{$lang}/{$skin}/setup/languages_Import");
curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_VERBOSE, 0); curl_setopt($ch, CURLOPT_VERBOSE, 0);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookiefile); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookiefile);
@@ -1459,7 +1459,7 @@ EOL;
// File to upload/post // File to upload/post
$postData['uploadedFile'] = "@".$skin; $postData['uploadedFile'] = "@".$skin;
curl_setopt($ch, CURLOPT_URL, "$serv/sys{$workspace}/{$lang}/classic/setup/skin_Ajax"); curl_setopt($ch, CURLOPT_URL, "$serv/sys{$workspace}/{$lang}/{$skin}/setup/skin_Ajax");
curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_VERBOSE, 0); curl_setopt($ch, CURLOPT_VERBOSE, 0);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookiefile); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookiefile);
@@ -1487,7 +1487,7 @@ EOL;
// File to upload/post // File to upload/post
$postData['form[PLUGIN_FILENAME]'] = "@{$pluginName}"; $postData['form[PLUGIN_FILENAME]'] = "@{$pluginName}";
curl_setopt($ch, CURLOPT_URL, "$serv/sys{$workspace}/{$lang}/classic/setup/pluginsImportFile"); curl_setopt($ch, CURLOPT_URL, "$serv/sys{$workspace}/{$lang}/{$skin}/setup/pluginsImportFile");
curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_VERBOSE, 0); curl_setopt($ch, CURLOPT_VERBOSE, 0);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookiefile); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookiefile);