mirror of
https://github.com/mivodev/mivo.git
synced 2026-01-26 05:25:42 +07:00
37 lines
1.4 KiB
PHP
37 lines
1.4 KiB
PHP
<?php
|
|
namespace App\Config;
|
|
|
|
class SiteConfig {
|
|
const APP_NAME = 'MIVO';
|
|
const APP_VERSION = 'v1.2.1';
|
|
const APP_FULL_NAME = 'MIVO - Mikrotik Voucher';
|
|
const CREDIT_NAME = 'MivoDev';
|
|
const CREDIT_URL = 'https://github.com/mivodev';
|
|
const YEAR = '2026';
|
|
const REPO_URL = 'https://github.com/mivodev/mivo';
|
|
|
|
// Security Keys
|
|
// Fetched from .env or fallback to default
|
|
public static function getSecretKey() {
|
|
return getenv('APP_KEY') ?: 'mivo_official_secret_key_32bytes';
|
|
}
|
|
|
|
const IS_DEV = true; // Still useful for code logic not relying on env yet, or can be refactored too.
|
|
|
|
/**
|
|
* Get the formatted page title
|
|
*/
|
|
public static function getTitle($page = '') {
|
|
return empty($page) ? self::APP_NAME : $page . ' | ' . self::APP_NAME;
|
|
}
|
|
|
|
/**
|
|
* Get footer text
|
|
*/
|
|
public static function getFooter() {
|
|
$currentYear = date('Y');
|
|
$yearDisplay = (self::YEAR == $currentYear) ? self::YEAR : self::YEAR . ' - ' . $currentYear;
|
|
return self::APP_FULL_NAME . ' © 2026 - ' . $yearDisplay . ' • Created with Love <i data-lucide="heart" class="w-3 h-3 inline text-red-500 fill-red-500 mx-1"></i> Developed by <a href="' . self::CREDIT_URL . '" target="_blank" class="font-medium hover:text-foreground transition-colors">' . self::CREDIT_NAME . '</a>';
|
|
}
|
|
}
|