Improvement constant PARTNER_FLAG
- Browser library - HearBeat - tab plugins
This commit is contained in:
@@ -197,7 +197,7 @@ class Installer
|
||||
|
||||
$db_text = "<?php\n" . "// Processmaker configuration\n" . "define ('DB_ADAPTER', 'mysql' );\n" . "define ('DB_HOST', '" . $this->options['database']['hostname'] . ":" . $myPort . "' );\n" . "define ('DB_NAME', '" . $wf . "' );\n" . "define ('DB_USER', '" . (($this->cc_status == 1) ? $wf : $this->options['database']['username']) . "' );\n" . "define ('DB_PASS', '" . (($this->cc_status == 1) ? $this->options['password'] : $this->options['database']['password']) . "' );\n" . "define ('DB_RBAC_HOST', '" . $this->options['database']['hostname'] . ":" . $myPort . "' );\n" . "define ('DB_RBAC_NAME', '" . $rb . "' );\n" . "define ('DB_RBAC_USER', '" . (($this->cc_status == 1) ? $rb : $this->options['database']['username']) . "' );\n" . "define ('DB_RBAC_PASS', '" . (($this->cc_status == 1) ? $this->options['password'] : $this->options['database']['password']) . "' );\n" . "define ('DB_REPORT_HOST', '" . $this->options['database']['hostname'] . ":" . $myPort . "' );\n" . "define ('DB_REPORT_NAME', '" . $rp . "' );\n" . "define ('DB_REPORT_USER', '" . (($this->cc_status == 1) ? $rp : $this->options['database']['username']) . "' );\n" . "define ('DB_REPORT_PASS', '" . (($this->cc_status == 1) ? $this->options['password'] : $this->options['database']['password']) . "' );\n" . "?>";
|
||||
if (defined('PARTNER_FLAG')) {
|
||||
$dbText .= "define ('PARTNER_FLAG', PARTNER_FLAG);\n";
|
||||
$dbText .= "define ('PARTNER_FLAG', " . PARTNER_FLAG . ");\n";
|
||||
}
|
||||
$fp = @fopen($db_file, "w");
|
||||
$this->log("Create: " . $db_file . " => " . ((!$fp) ? $fp : "OK") . "\n", $fp === false);
|
||||
|
||||
@@ -681,7 +681,7 @@ class Installer extends Controller
|
||||
$dbText .= sprintf( " define ('DB_REPORT_NAME', '%s' );\n", $rp );
|
||||
$dbText .= sprintf( " define ('DB_REPORT_USER', '%s' );\n", $rp );
|
||||
$dbText .= sprintf( " define ('DB_REPORT_PASS', '%s' );\n", $rpPass );
|
||||
if (defined('PARTNER_FLAG')) {
|
||||
if (defined('PARTNER_FLAG')) {
|
||||
$dbText .= "define ('PARTNER_FLAG', " . PARTNER_FLAG . ");\n";
|
||||
}
|
||||
|
||||
@@ -948,7 +948,7 @@ class Installer extends Controller
|
||||
$dbText .= sprintf( " define ('DB_REPORT_NAME', '%s' );\n", $rp );
|
||||
$dbText .= sprintf( " define ('DB_REPORT_USER', '%s' );\n", $rp );
|
||||
$dbText .= sprintf( " define ('DB_REPORT_PASS', '%s' );\n", $rpPass );
|
||||
if (defined('PARTNER_FLAG')) {
|
||||
if (defined('PARTNER_FLAG')) {
|
||||
$dbText .= "define ('PARTNER_FLAG', " . PARTNER_FLAG . ");\n";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user