Postfix Admin Setup Checker

Running software:

"; print "

Checking for dependencies:\n"; print "

"; if ($error != 0) { print "

Please fix the errors listed above.

"; } else { print "

Everything seems fine... you are ready to rock & roll!

\n"; $pAdminCreate_admin_username_text = $PALANG['pAdminCreate_admin_username_text']; $pAdminCreate_admin_password_text = ""; $tUsername = ''; $tMessage = ''; if ($_SERVER['REQUEST_METHOD'] == "POST") { if (isset ($_POST['fUsername'])) $fUsername = escape_string ($_POST['fUsername']); if (isset ($_POST['fPassword'])) $fPassword = escape_string ($_POST['fPassword']); if (isset ($_POST['fPassword2'])) $fPassword2 = escape_string ($_POST['fPassword2']); list ($error, $tMessage, $pAdminCreate_admin_username_text, $pAdminCreate_admin_password_text) = create_admin($fUsername, $fPassword, $fPassword2, array('ALL'), TRUE); if ($error != 0) { if (isset ($_POST['fUsername'])) $tUsername = escape_string ($_POST['fUsername']); } else { print "

$tMessage

"; echo "

You can now log in to Postfix Admin.

"; } } if ($_SERVER['REQUEST_METHOD'] == "GET" || $error != 0) { ?>

Create superadmin account

 
Make sure you delete this setup.php file!
\n"; print "Also check the config.inc.php file for any settings that you might need to change!
\n"; print "Click here to go to the admin section (make sure that your .htaccess is setup properly)\n"; } ?>