} } if (isset($_POST['doImport'])) { if (!file_exists($filename)) { echo formatMessage('You need to create a localconf.xml before attempting to import the sample database.'); } else { $cfg->fromXML($filename); doImport($cfg); } } // Re-read for display $cfg = new AmberConfig(); if (file_exists($filename)) { $cfg->fromXML($filename); } $dbcfg = $cfg->get('db'); $syscfg = $cfg->get('sys'); ?> <p /> <form method="post" action="<?php echo $__SELF__; ?> "> <table align="center" style="width: 450px; border: #b08454 1px dashed;"> <tr> <td class="install_header" colspan="2"><p><em><strong>Database configuration</strong></em></p></td> </tr>