Deploy website via FTP / Deploy (push) Skipped
- Updated .gitignore to exclude new directories and files. - Enhanced config.php with detailed PHPDoc comments for better clarity. - Refactored functions.php to include PHPDoc comments and improve code readability. - Added custom exceptions in exceptions.php with detailed documentation. - Improved utilities.php with better documentation and error handling. - Updated index.php with structured comments and improved readability. - Refined style.css for better visual consistency. - Introduced phpcs.xml for coding style checks and standards enforcement.
27 lines
734 B
PHP
27 lines
734 B
PHP
<?php
|
|
/**
|
|
* Configuration file for settings like database and API keys
|
|
*
|
|
* PHP version 8.1+
|
|
*
|
|
* @category Configuration
|
|
* @package TornVaultTracker
|
|
* @author Keith Solomon <ksolomon@gmail.com>
|
|
* @license Unlicense https://unlicense.org/
|
|
* @link https://github.com/ksolomon/TornVaultTracker
|
|
*/
|
|
|
|
// Database settings
|
|
define('DB_DSN', 'sqlite:data/vault.db'); // Path to your SQLite database
|
|
define('DB_USER', null); // Not needed for SQLite
|
|
define('DB_PASSWORD', null); // Not needed for SQLite
|
|
|
|
// User-specific keys for accessing logs
|
|
const USER_KEYS = [
|
|
'zarathos' => 'y2ypLEEIOweEXC7x',
|
|
'symos' => 'lne9TZLuqvFXtK3V'
|
|
];
|
|
|
|
// Number of rows per page
|
|
define('ROWS_PER_PAGE', 25);
|