diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 0000000..00663f7 --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,17 @@ +version: "2" + +build: + os: "ubuntu-22.04" + tools: + python: "3.10" + +python: + install: + - requirements: docs/requirements.txt + +sphinx: + configuration: docs/conf.py + +formats: + - epub + - pdf diff --git a/admin/settings.php b/admin/settings.php new file mode 100644 index 0000000..8fd920a --- /dev/null +++ b/admin/settings.php @@ -0,0 +1,160 @@ +load(); +$errors = []; +$notice = null; + +if ($_SERVER['REQUEST_METHOD'] === 'POST') { + if (!hash_equals($_SESSION['csrf'], $_POST['csrf'] ?? '')) { + $errors[] = 'Invalid CSRF token.'; + } else { + [$saved, $errs] = $settings->save($_POST, $_FILES); + $current = $saved; + $errors = $errs; + if (!$errors) $notice = 'Settings updated successfully.'; + } +} +?> + + +
+ +This updates the database. If settings.php exists, it is merged as fallback.
Manage categories for organizing your maps and content
+= htmlspecialchars($category['description']) ?>
+Create your first category to get started.
+ +View and manage your saved dashboards
+Create your first dashboard to get started with GeoLite
+ + Create Your First Dashboard + +{{ _('Your search did not match any documents. Please make sure that all words are spelled correctly and that you\'ve selected enough categories.') }}
+ {% endif %} + {% endif %} +{{ context|e }}
+Upload your first document to get started
+Map Export -
+Center: ,
+Zoom Level:
+Export Date:
+Note: This is a text-based export. Use your browser's print function (Ctrl+P) to create a PDF.
+Create your first HTML page to get started
++ +
+Description:
+Created:
+Welcome
+Create your first map, dashboard, document, or HTML page to get started with GeoLite
+You don't have access to any content yet. Please contact your administrator for access.
+ +Map Builder & Dashboard Installation
+This Quick Start guide will help you get started with creating Maps, Dashboards, Documents, and HTML pages in GeoLite, as well as managing users and permissions.
+ +Note: Most creation and management features require Admin access. Regular users can view and interact with content that has been shared with them.
+Maps allow you to display geographic data from your GeoServer with customizable basemaps and interactive features.
+ +map_builder.php.
+ Tip: After saving, your map will appear on the home page and can be viewed by users with appropriate permissions.
+Dashboards combine multiple widgets (maps, charts, tables, counters, and text) into a single interactive view for data visualization.
+ +dashboard_builder.php.
+ Tip: Dashboards can be exported as PDF for reports and presentations using the "Export PDF" button.
+HTML Pages allow you to create custom web pages with full HTML, CSS, and JavaScript support.
+ +html_pages.php.
+ Tip: HTML pages can embed maps, charts, and other GeoLite resources using iframes or JavaScript APIs.
+Documents allow you to upload and share PDFs, Word documents, images, and other file types.
+ +documents.php.
+ Tip: Documents are stored securely and can be accessed by users based on their permission settings.
+User management allows administrators to create, edit, and manage user accounts in the system.
+ +Only administrators can access user management. Navigate to it by:
+users.php| Role | +Access | +Permissions | +
|---|---|---|
| Admin | +Everything | +Full access to all content and user management | +
| User | +Restricted | +Only sees items explicitly granted by admins | +
Important: Admin group has automatic full access - no need to set permissions. User group starts with NO access and must be granted permissions per item.
+Permissions control what content users can view, edit, or delete. This is essential for securing your GeoLite installation.
+ +To grant access to content for the User group:
+| Permission | +What It Does | +
|---|---|
| View | +User sees the item in library and can open it | +
| Edit | +User can modify the item | +
| Delete | +User can delete the item | +
Important Notes:
+Ready to begin? Follow these steps to get started:
+Default Admin Credentials: Username: admin, Password: geolite
+ ⚠️ IMPORTANT: Change the default password immediately for security!
| Username | +Full Name | +Group | +Status | +Last Login | +Actions | +|
|---|---|---|---|---|---|---|
| + + + You + + | ++ | + | + + + + | ++ + Active + + Inactive + + | ++ + + + Never + + | ++ + + + + | +
| URL | +Username | +Actions | +
|---|---|---|
| + | + | + + | +