���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/rickpfrv/tie.cx/app/helpers/ThemeStyle.php
���ѧ٧ѧ�
<?php namespace Altum; use Altum\Database\Database; class ThemeStyle { public static $themes = [ 'light' => [ 'file' => 'bootstrap.min.css' ], 'dark' => [ 'file' => 'bootstrap-dark.min.css' ], ]; public static $theme = 'light'; public static function get() { if(isset($_COOKIE['theme_style']) && array_key_exists($_COOKIE['theme_style'], self::$themes)) { self::$theme = Database::clean_string($_COOKIE['theme_style']); } return self::$theme; } public static function get_file() { return self::$themes[self::get()]['file']; } public static function set_default($theme) { self::$theme = $theme; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�