12include_once
'../mainfile.php';
13include_once
'./class/dbmanager.php';
16$title = _INSTALL_L104;
18if ( ! $dbm->isConnectable() ) {
19 $wizard->addArray(
'checks', _NGIMG . _INSTALL_L106 );
20 $wizard->addArray(
'msgs',
'<div class="confirmError">'. _INSTALL_L107 .
'</div' );
21 $wizard->setBack( [
'start', _INSTALL_L103 ] );
22 $wizard->setReload(
true );
25 $wizard->addArray(
'checks', _OKIMG . _INSTALL_L108 );
28 if ( ! $dbm->dbExists() ) {
29 $wizard->addArray(
'checks', _NGIMG . sprintf( _INSTALL_L109 , XOOPS_DB_NAME ) );
30 $wizard->addArray(
'msgs',
'<div class="confirmError">'. _INSTALL_L21 .
'<br><code>' . XOOPS_DB_NAME .
'</code></div>' );
31 $wizard->addArray(
'msgs',
'<div class="confirmInfo">'._INSTALL_L22.
'</div>' );
34 $wizard->addArray(
'checks', _OKIMG . sprintf( _INSTALL_L110,
'<code>'.XOOPS_DB_NAME.
'</code>' ) );
36 if ( ! $dbm->tableExists(
'users' ) ) {
37 $wizard->addArray(
'msgs',
'<div class="confirmOk">'._INSTALL_L111.
'</div>' );
38 $wizard->setNext( [
'createTables', _INSTALL_L40 ] );
40 }elseif ( $dbm->tableExists(
'users' ) ) {
41 $wizard->addArray(
'msgs',
'<div class="confirmError">'._INSTALL_L130.
'</div>');
42 $wizard->setBack( [
'start', _INSTALL_L103 ] );
44 $wizard->setNext( [
'createTables', _INSTALL_L40 ] );
45 } elseif ( ! $dbm->tableExists(
'config' ) ) {
46 $wizard->addArray(
'msgs',
'<div class="confirmError">'._INSTALL_L130.
'</div>' );
48 $wizard->setNext( [
'updateTables', _INSTALL_L14 ] );
49 $wizard->setReload(
true );
51 $wizard->addArray(
'checks', _NGIMG . _INSTALL_L131 );
52 $wizard->addArray(
'msgs',
'<div class="confirmError">'. _INSTALL_L131 .
'</div>' );
53 $wizard->setBack( [
'start', _INSTALL_L103 ] );
58$wizard->render(
'install_checkDB.tpl.php' );