$message = CheckServerReq(); } elseif ($_POST['s'] == 3) { if (InitExixst()) { $next_step = 5; } else { $next_step = 4; } $process_title = "Checking File Permission"; $message = CheckFilePermission(); } elseif ($_POST['s'] == 4) { $next_step = 5; $process_title = "Application Setting"; $message = ShowForm(); } elseif ($_POST['s'] == 5) { if (!InitExixst()) { $error_message = CheckForm(); } else { unset($_POST['sql_option']['Fresh Installation']); } if (empty($error_message)) { $next_step = 6; WriteConfigurationFile(); $process_title = "Prepare Database"; $message = ShowFormSQL(); } else { $next_step = 5; $process_title = "Application Setting"; $message = ShowForm(); } } elseif ($_POST['s'] == 6) { if (!empty($_POST['sql_select'])) {
<?php require 'config.php'; require 'func.php'; IsAdminLogin(); SiteMenu(); $GLOBALS['page_title'] = "Admin - " . $GLOBALS['page_title']; if (!$GLOBALS['admin']) { if ($_POST['submit'] == '') { ShowForm(); } elseif ($_POST['submit'] == 1) { if (CheckForm()) { Redirect('admin.php'); } else { ShowForm(); } } } else { if ($_GET['action'] == 'edit') { EditWord($_GET['id'] + 0); } elseif ($_GET['action'] == 'delete') { DeleteWord($_GET['id'] + 0); } elseif ($_GET['action'] == 'logout') { Logout(); } elseif ($_GET['action'] == 'rewrite') { ModRewrite(); } elseif ($_GET['action'] == 'change') { if ($_POST['submit'] == 2) { if (ModPass()) { Redirect('admin.php'); } else {