Standalone Open OSCAR Server admin dashboard with login, user/session/room management, BART, buddy list, Gotify addon, audit log, and API console. Includes AI disclosure and open-source project docs.
48 lines
1.4 KiB
Markdown
48 lines
1.4 KiB
Markdown
# Contributing
|
|
|
|
Thanks for your interest in improving Oscar Admin.
|
|
|
|
## Before you start
|
|
|
|
- Keep changes focused and easy to review.
|
|
- Do not commit secrets or runtime data (`config.php`, `audit.log`, `gotify-users.php`).
|
|
- Preserve the project's security model: private Management API, CSRF on writes, anti-enumeration login behavior, and optional Gotify.
|
|
|
|
## Development
|
|
|
|
### Requirements
|
|
|
|
- PHP 8.1+ (8.2+ recommended)
|
|
- PHP cURL extension
|
|
- Access to an Open OSCAR Server Management API (private/local)
|
|
|
|
### Local setup
|
|
|
|
```bash
|
|
cp config.example.php config.php
|
|
php -S 127.0.0.1:8081
|
|
```
|
|
|
|
Then open `http://127.0.0.1:8081/login.php`.
|
|
|
|
### Code style
|
|
|
|
- PHP: clear, small functions; strict types where already used; escape output with `h()` in templates.
|
|
- JS: vanilla JS, defensive DOM checks, no build step.
|
|
- CSS: keep admin styles in `admin.css`; `assets/style.css` is the bundled base stylesheet.
|
|
|
|
## Pull requests
|
|
|
|
- Describe the problem and the user-facing impact.
|
|
- Include manual test steps.
|
|
- For security-sensitive changes, note threat/abuse considerations.
|
|
- If AI tools were used, make sure the change is reviewed and understood before submitting.
|
|
|
|
## Reporting bugs
|
|
|
|
Please include:
|
|
|
|
- What you expected vs. what happened
|
|
- Steps to reproduce
|
|
- PHP version and deployment context (nginx/apache/php-fpm/built-in)
|
|
- Relevant logs/screenshots (redact secrets, tokens, and private IPs as needed)
|