Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/ijmeisner/einerlei/llms.txt

Use this file to discover all available pages before exploring further.

The MPADQ admin dashboard is the central control panel for managing every operational aspect of the questionnaire — from issuing license keys to book purchasers, to editing quiz questions, reviewing collected response data, and maintaining account credentials. Access is restricted to authenticated administrators and every page inside the dashboard enforces a session check on every load.

Accessing the Dashboard

The admin area is located at /admin/. Visiting that URL presents the Admin Login form where you enter your username and password. Upon successful authentication you are redirected to the dashboard home at /admin/dashboard/, which lists all available administrative functions.
The /admin/ path should never be publicly advertised or linked from the respondent-facing quiz pages. Use server-level access controls (e.g., .htaccess IP restrictions or HTTP Basic Auth as an outer layer) to add defence-in-depth on top of the application login. Never share admin credentials over unencrypted channels.

Session-Based Authentication

All dashboard pages begin with the following PHP session check:
session_start();
if (!isset($_SESSION["loggedin"])) {
    header('Location: ../'); // redirect to /admin/
}
If $_SESSION['loggedin'] is not present — whether because the user never logged in or because their session has expired — PHP immediately redirects the request back to the login page. No dashboard content is ever rendered for unauthenticated visitors.

Dashboard Functions

From the dashboard home (/admin/dashboard/) the following functions are available:

Generate Keys

Bulk-generate license keys for book purchasers. Enter a quantity (1–1000), generate, and download the resulting CSV for distribution.

Review Answers

Browse and export collected questionnaire responses. View demographic answers alongside Likert-scale scores for every completed submission.

Edit Questions

Update the wording of any Likert-scale or demographic question shown to respondents without touching the database directly.

Edit Understanding Your Scores Text

Modify the interpretive copy that respondents read after completing the questionnaire and viewing their scored results.

Change Admin Password

Update the administrator password. Requires confirmation of the current password followed by the new password entered twice.

Update Email

Change the admin contact email address used for login recovery and system notifications.
Logout is available at /admin/dashboard/logout.php. Clicking it destroys the PHP session immediately and returns you to the login page.

Quick-Reference: Dashboard URLs

FunctionURL
Login/admin/
Dashboard Home/admin/dashboard/
Generate Keys/admin/dashboard/keygen/
View Keys / Download/admin/dashboard/keygen/keys/
Review Answers/admin/dashboard/data-view/
Edit Questions/admin/dashboard/question-edit/
Edit Scores Text/admin/dashboard/understanding-your-scores-edit/
Change Password/admin/dashboard/change-password/
Update Email/admin/dashboard/update-email/
Logout/admin/dashboard/logout.php

Build docs developers (and LLMs) love