return 200; } else { $_SESSION['error'] = $error; $_SESSION['siteconfig'] = $siteconfig; $wizard->redirectToPage('+1'); return 302; } } else { $dbm = new XoopsDatabaseManager(); if (!$dbm->isConnectable()) { $_SESSION['error'] = $error; $_SESSION['siteconfig'] = $siteconfig; $wizard->redirectToPage('dbsettings'); exit; } $res = $dbm->query("SELECT COUNT(*) FROM " . $dbm->db->prefix('system_user')); list($isadmin) = $dbm->db->fetchRow($res); } ob_start(); if ($isadmin) { $pageHasForm = false; $pageHasHelp = false; echo "<div class='x2-note errorMsg'>" . ADMIN_EXIST . "</div>\n"; } else { ?> <fieldset> <legend><?php echo LEGEND_ADMIN_ACCOUNT; ?> </legend>
return 200; } else { $_SESSION['error'] = $error; $_SESSION['siteconfig'] = $siteconfig; $wizard->redirectToPage('+1'); return 302; } } else { $dbm = new XoopsDatabaseManager(); if (!$dbm->isConnectable()) { $_SESSION['error'] = $error; $_SESSION['siteconfig'] = $siteconfig; $wizard->redirectToPage('dbsettings'); exit; } $res = $dbm->query("SELECT COUNT(*) FROM " . $dbm->db->prefix("users")); list($isadmin) = $dbm->db->fetchRow($res); } ob_start(); if ($isadmin) { $pageHasForm = false; $pageHasHelp = false; echo "<div class='x2-note errorMsg'>" . ADMIN_EXIST . "</div>\n"; } else { ?> <fieldset> <legend><?php echo LEGEND_ADMIN_ACCOUNT; ?> </legend>