コード例 #1
0
ファイル: index.php プロジェクト: koki-h/xoops_utf8
     break;
 case "checkDB":
     include_once "../mainfile.php";
     include_once './class/dbmanager.php';
     $dbm = new db_manager();
     $title = _INSTALL_L104;
     $content = "<table align='center'><tr><td align='left'>\n";
     if (!$dbm->isConnectable()) {
         $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 (!$dbm->dbExists()) {
             $content .= _NGIMG . sprintf(_INSTALL_L109, XOOPS_DB_NAME) . "<br />";
             $content .= "</td></tr></table>\n";
             $content .= "<p>" . _INSTALL_L21 . "<br />" . "<b>" . XOOPS_DB_NAME . "</b></p>" . "<p>" . _INSTALL_L22 . "</p>";
             $b_next = array('createDB', _INSTALL_L105);
             $b_back = array('start', _INSTALL_L103);
             $b_reload = true;
         } else {
             if (!$dbm->tableExists('users')) {
                 $content .= _OKIMG . sprintf(_INSTALL_L110, XOOPS_DB_NAME) . "<br />";
                 $content .= "</td></tr></table>\n";
                 $content .= "<p>" . _INSTALL_L111 . "</p>";
                 $b_next = array('createTables', _INSTALL_L40);
             } else {
                 $content .= _OKIMG . sprintf(_INSTALL_L110, XOOPS_DB_NAME) . "<br />";
                 if (!$dbm->tableExists('config')) {