diff --git a/polls/setup.php b/polls/setup.php new file mode 100644 index 0000000..c02894e --- /dev/null +++ b/polls/setup.php @@ -0,0 +1,166 @@ +query("SELECT COUNT(*) FROM users")->fetchColumn(); + +// If at least one user exists, show a message and no form +if ($checkTotal > 0) { + ?> + + +
+ ++ An admin user has already been created. No additional admins can be set up here. +
++ Go back to the Polls site. +
+You can now go to the Admin page to log in.
+ + + +