Enhance Torn Vault Tracker: Add documentation, improve exception handling, and update styles
Deploy website via FTP / Deploy (push) Skipped
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.
This commit is contained in:
+13
-3
@@ -1,10 +1,20 @@
|
||||
<?php
|
||||
// Configuration file for settings like database and API keys
|
||||
/**
|
||||
* 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
|
||||
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 = [
|
||||
|
||||
Reference in New Issue
Block a user