|
@@ 733-739 (lines=7) @@
|
| 730 |
|
} |
| 731 |
|
|
| 732 |
|
// check LDAP if available |
| 733 |
|
if (extension_loaded('ldap') && !is_null($ldapEnabled)) { |
| 734 |
|
if (! $instanceSetup->createLdapFile($ldapSetup, '')) { |
| 735 |
|
echo "<p class=\"alert alert-danger\"><strong>Error:</strong> Setup cannot write to ./config/ldap.php.</p>"; |
| 736 |
|
$this->_system->cleanInstallation(); |
| 737 |
|
PMF_System::renderFooter(true); |
| 738 |
|
} |
| 739 |
|
} |
| 740 |
|
|
| 741 |
|
// connect to the database using config/database.php |
| 742 |
|
require PMF_ROOT_DIR . '/config/database.php'; |
|
@@ 800-808 (lines=9) @@
|
| 797 |
|
|
| 798 |
|
// add admin account and rights |
| 799 |
|
$admin = new PMF_User($configuration); |
| 800 |
|
if (! $admin->createUser($loginname, $password, 1)) { |
| 801 |
|
printf( |
| 802 |
|
"<p class=\"alert alert-danger\"><strong>Fatal installation error:</strong><br>" . |
| 803 |
|
"Couldn't create the admin user: %s</p>\n", |
| 804 |
|
$admin->error() |
| 805 |
|
); |
| 806 |
|
$this->_system->cleanInstallation(); |
| 807 |
|
PMF_System::renderFooter(true); |
| 808 |
|
} |
| 809 |
|
$admin->setStatus('protected'); |
| 810 |
|
$adminData = array( |
| 811 |
|
'display_name' => $realname, |