コード例 #1
0
ファイル: index.php プロジェクト: koki-h/xoops_utf8
     $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')) {
                 $content .= "</td></tr></table>\n";
                 $content .= "<p>" . _INSTALL_L130 . "</p>";
                 $b_next = array('updateTables', _INSTALL_L14);
             } else {
                 $content .= _NGIMG . _INSTALL_L131 . "<br />";
                 $content .= "</td></tr></table>\n";
             }
         }
コード例 #2
0
    }
    icms_core_Filesystem::chmod(XOOPS_ROOT_PATH . '/modules', 0755);
}
$wizard->setPage('tablescreate');
$pageHasForm = true;
$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;
}
$process = '';
if (!$dbm->tableExists('users')) {
    $process = 'create';
}
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    // If there's nothing to do: switch to next page
    if (empty($process)) {
        $wizard->redirectToPage('+1');
        exit;
    }
    $tables = array();
    $result = $dbm->queryFromFile('./sql/' . XOOPS_DB_TYPE . '.structure.sql');
    $content = $dbm->report();
    include 'install_tpl.php';
    exit;
}
ob_start();