|
@@ 396-398 (lines=3) @@
|
| 393 |
|
|
| 394 |
|
// Retrieves the host configuration (more secure). |
| 395 |
|
$vchamilodata = empty($vchamilodata) ? Virtual::makeThis() : $vchamilodata; |
| 396 |
|
if (strstr($vchamilodata->db_host, ':') !== false) { |
| 397 |
|
list($vchamilodata->db_host, $vchamilodata->db_port) = explode( |
| 398 |
|
':', |
| 399 |
|
$vchamilodata->db_host |
| 400 |
|
); |
| 401 |
|
} |
|
@@ 466-470 (lines=5) @@
|
| 463 |
|
public static function backupDatabase($vchamilo, $outputfilerad) |
| 464 |
|
{ |
| 465 |
|
// Separating host and port, if sticked. |
| 466 |
|
if (strstr($vchamilo->db_host, ':') !== false) { |
| 467 |
|
list($host, $port) = explode(':', $vchamilo->db_host); |
| 468 |
|
} else { |
| 469 |
|
$host = $vchamilo->db_host; |
| 470 |
|
} |
| 471 |
|
|
| 472 |
|
// By default, empty password. |
| 473 |
|
$pass = ''; |