include 'install_tpl.php'; break; case "checkDB": include_once "../inc/config.php"; $oDB = new dclDB(); $title = _INSTALL_L104; $content = "<table align='center'><tr><td align='left'>\n"; if (!$oDB->CanConnectServer()) { $content .= _NGIMG . _INSTALL_L106 . "<br />"; $content .= "<div style='text-align:center'><br />" . _INSTALL_L107; $content .= "</div></td></tr></table>\n"; $b_back = array('start', _INSTALL_L103); $b_reload = true; } else { $content .= _OKIMG . _INSTALL_L108 . "<br />"; if (!$oDB->CanConnectDatabase()) { $content .= _NGIMG . sprintf(_INSTALL_L109, $dcl_domain_info[$dcl_domain]['dbName']) . "<br />"; $content .= "</td></tr></table>\n"; $content .= "<p>" . _INSTALL_L21 . "<br />" . "<b>" . $dcl_domain_info[$dcl_domain]['dbName'] . "</b></p>" . "<p>" . _INSTALL_L22 . "</p>"; $b_next = array('createDB', _INSTALL_L105); $b_back = array('start', _INSTALL_L103); $b_reload = true; } else { unset($GLOBALS['__DB_CONN__']); $oDB->Connect(); // If this, the most basic of tables, does not exist, the database is probably empty of DCL if (!$oDB->TableExists('workorders')) { $content .= _OKIMG . sprintf(_INSTALL_L110, $dcl_domain_info[$dcl_domain]['dbName']) . "<br />"; $content .= "</td></tr></table>\n"; $content .= "<p>" . _INSTALL_L111 . "</p>"; $b_next = array('createTables', _INSTALL_L40);