* If you did not receive this file, get it at http://www.gnu.org/licenses/gpl-2.0.html
 *
 * @copyright    (c) 2000-2016 XOOPS Project (www.xoops.org)
 * @license          GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
 * @package          installer
 * @since            2.3.0
 * @author           Haruki Setoyama  <*****@*****.**>
 * @author           Kazumi Ono <*****@*****.**>
 * @author           Skalpa Keo <*****@*****.**>
 * @author           Taiwen Jiang <*****@*****.**>
 * @author           DuGris (aka L. JEN) <*****@*****.**>
 **/
require_once './include/common.inc.php';
defined('XOOPS_INSTALL') || die('XOOPS Installation wizard die');
$pageHasForm = false;
$pageHasHelp = false;
$vars =& $_SESSION['settings'];
include_once '../mainfile.php';
include_once './class/dbmanager.php';
$dbm = new Db_manager();
if (!$dbm->isConnectable()) {
    $wizard->redirectToPage('-3');
    exit;
}
if ($dbm->tableExists('users')) {
    $content = '<div class="x2-note confirmMsg">' . XOOPS_TABLES_FOUND . '</div>';
} else {
    $result = $dbm->queryFromFile('./sql/' . XOOPS_DB_TYPE . '.structure.sql');
    $content = '<div class="x2-note successMsg">' . XOOPS_TABLES_CREATED . '</div><br>' . $dbm->report();
}
include './include/install_tpl.php';