DOCSYSTEM Quitando los error_logs

Quitando los error_logs
This commit is contained in:
Brayan Osmar Pereyra Suxo
2013-05-08 12:33:48 -04:00
parent 9f5e93fe11
commit f48242be90
3 changed files with 5 additions and 33 deletions

View File

@@ -199,7 +199,7 @@ class Installer
if (defined('PARTNER_FLAG') || isset($_REQUEST['PARTNER_FLAG'])) { if (defined('PARTNER_FLAG') || isset($_REQUEST['PARTNER_FLAG'])) {
$dbText .= "define ('PARTNER_FLAG', " . ((defined('PARTNER_FLAG')) ? PARTNER_FLAG : ((isset($_REQUEST['PARTNER_FLAG'])) ? $_REQUEST['PARTNER_FLAG']:'false')) . ");\n"; $dbText .= "define ('PARTNER_FLAG', " . ((defined('PARTNER_FLAG')) ? PARTNER_FLAG : ((isset($_REQUEST['PARTNER_FLAG'])) ? $_REQUEST['PARTNER_FLAG']:'false')) . ");\n";
if (defined('SYSTEM_NAME')) { if (defined('SYSTEM_NAME')) {
$dbText .= " define ('SYSTEM_NAME', " . SYSTEM_NAME . ");\n"; $dbText .= " define ('SYSTEM_NAME', '" . SYSTEM_NAME . "');\n";
} }
} }
$fp = @fopen($db_file, "w"); $fp = @fopen($db_file, "w");

View File

@@ -295,11 +295,11 @@ class Translation extends BaseTranslation
fwrite( $f, '$translation' . $plugin . ' =' . 'unserialize(\'' . addcslashes( serialize( $translation ), '\\\'' ) . "');\n" ); fwrite( $f, '$translation' . $plugin . ' =' . 'unserialize(\'' . addcslashes( serialize( $translation ), '\\\'' ) . "');\n" );
fwrite( $f, "?>" ); fwrite( $f, "?>" );
fclose( $f ); fclose( $f );
/*
$f = fopen( $cacheFileJS, 'w' ); $f = fopen( $cacheFileJS, 'w' );
fwrite( $f, "var G_STRINGS =" . Bootstrap::json_encode( $translationJS ) . ";\n" ); fwrite( $f, "var G_STRINGS =" . Bootstrap::json_encode( $translationJS ) . ";\n" );
fclose( $f ); fclose( $f );
*/
$res['cacheFile'] = $cacheFile; $res['cacheFile'] = $cacheFile;
$res['cacheFileJS'] = $cacheFileJS; $res['cacheFileJS'] = $cacheFileJS;
$res['rows'] = count( $translation ); $res['rows'] = count( $translation );

View File

@@ -695,7 +695,7 @@ class Installer extends Controller
$dbText .= "\n"; $dbText .= "\n";
$dbText .= " define ('PARTNER_FLAG', " . ((defined('PARTNER_FLAG')) ? PARTNER_FLAG : ((isset($_REQUEST['PARTNER_FLAG'])) ? $_REQUEST['PARTNER_FLAG']:'false')) . ");\n"; $dbText .= " define ('PARTNER_FLAG', " . ((defined('PARTNER_FLAG')) ? PARTNER_FLAG : ((isset($_REQUEST['PARTNER_FLAG'])) ? $_REQUEST['PARTNER_FLAG']:'false')) . ");\n";
if ($this->systemName != '') { if ($this->systemName != '') {
$dbText .= " define ('SYSTEM_NAME', " . $this->systemName . ");\n"; $dbText .= " define ('SYSTEM_NAME', '" . $this->systemName . "');\n";
} }
} }
@@ -985,7 +985,7 @@ class Installer extends Controller
$dbText .= "\n"; $dbText .= "\n";
$dbText .= " define ('PARTNER_FLAG', " . ((defined('PARTNER_FLAG')) ? PARTNER_FLAG : ((isset($_REQUEST['PARTNER_FLAG'])) ? $_REQUEST['PARTNER_FLAG']:'false')) . ");\n"; $dbText .= " define ('PARTNER_FLAG', " . ((defined('PARTNER_FLAG')) ? PARTNER_FLAG : ((isset($_REQUEST['PARTNER_FLAG'])) ? $_REQUEST['PARTNER_FLAG']:'false')) . ");\n";
if ($this->systemName != '') { if ($this->systemName != '') {
$dbText .= " define ('SYSTEM_NAME', " . $this->systemName . ");\n"; $dbText .= " define ('SYSTEM_NAME', '" . $this->systemName . "');\n";
} }
} }
@@ -1408,20 +1408,7 @@ EOL;
$ch = curl_init(); $ch = curl_init();
$postData = array(); $postData = array();
error_log('** LENGUAJE **');
// File to upload/post // 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"; $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_URL, "$serv/sys{$workspace}/{$lang}/{$skinName}/setup/languages_Import");
@@ -1436,9 +1423,6 @@ EOL;
curl_setopt($ch, CURLOPT_TIMEOUT, 90); curl_setopt($ch, CURLOPT_TIMEOUT, 90);
$output = curl_exec($ch); $output = curl_exec($ch);
error_log('respuesta ------');
error_log($output);
error_log('------');
curl_close($ch); curl_close($ch);
/** /**
@@ -1459,9 +1443,6 @@ EOL;
// File to upload/post // File to upload/post
$postData['uploadedFile'] = "@".$skin; $postData['uploadedFile'] = "@".$skin;
error_log('** SKIN **');
error_log('archivo -> ' . $postData['uploadedFile']);
error_log('link -> ' . "$serv/sys{$workspace}/{$lang}/{$skinName}/setup/skin_Ajax");
curl_setopt($ch, CURLOPT_URL, "$serv/sys{$workspace}/{$lang}/{$skinName}/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_HEADER, 0);
curl_setopt($ch, CURLOPT_VERBOSE, 0); curl_setopt($ch, CURLOPT_VERBOSE, 0);
@@ -1474,8 +1455,6 @@ EOL;
curl_setopt($ch, CURLOPT_TIMEOUT, 90); curl_setopt($ch, CURLOPT_TIMEOUT, 90);
$output = curl_exec($ch); $output = curl_exec($ch);
error_log('respuesta ----');
error_log($output);
curl_close($ch); curl_close($ch);
} }
@@ -1491,11 +1470,6 @@ EOL;
if (count($plugins) > 0) { if (count($plugins) > 0) {
$pluginName = $plugins[0]; $pluginName = $plugins[0];
error_log('** PLUGIN **');
error_log('archivo -> ' . "@{$pluginName}");
error_log('link -> ' . "$serv/sys{$workspace}/{$lang}/{$skinName}/setup/pluginsImportFile");
// 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}/{$skinName}/setup/pluginsImportFile"); curl_setopt($ch, CURLOPT_URL, "$serv/sys{$workspace}/{$lang}/{$skinName}/setup/pluginsImportFile");
@@ -1510,8 +1484,6 @@ EOL;
curl_setopt($ch, CURLOPT_TIMEOUT, 90); curl_setopt($ch, CURLOPT_TIMEOUT, 90);
$output = curl_exec($ch); $output = curl_exec($ch);
error_log('respuesta ----');
error_log($output);
curl_close($ch); curl_close($ch);
} }
} }