diff options
| author | Freya Murphy <freya@freyacat.org> | 2024-04-01 11:09:25 -0400 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2024-04-01 11:09:25 -0400 |
| commit | 3a82baec9d793edf81ac2b151b0f4d4159641375 (patch) | |
| tree | f9d50c296b078ac48c2a2391c172c3ccf37edb3f /web/config | |
| parent | refactor asset dir, refactor oberver in lib (diff) | |
| download | xssbook2-3a82baec9d793edf81ac2b151b0f4d4159641375.tar.gz xssbook2-3a82baec9d793edf81ac2b151b0f4d4159641375.tar.bz2 xssbook2-3a82baec9d793edf81ac2b151b0f4d4159641375.zip | |
login and register, liking on homepage
Diffstat (limited to 'web/config')
| -rw-r--r-- | web/config/aesthetic.php | 59 | ||||
| -rw-r--r-- | web/config/routes.php | 7 |
2 files changed, 0 insertions, 66 deletions
diff --git a/web/config/aesthetic.php b/web/config/aesthetic.php deleted file mode 100644 index a2e4194..0000000 --- a/web/config/aesthetic.php +++ /dev/null @@ -1,59 +0,0 @@ -<?php /* Copyright (c) 2024 Freya Murphy */ -class Aesthetic { - - private $config; - - function __construct() { - $this->config = array( - '_common' => array( - 'js' => [ - 'js/thirdparty/jquery.min.js', - 'js/lib.js', - 'js/modal.js', - ], - 'css' => [ - 'css/common.css' - ], - ), - 'error' => array( - 'css' => [ - 'css/error.css' - ], - ), - 'home' => array( - 'js' => [ - 'js/routes/home.js', - 'js/post.js', - ], - 'css' => [ - 'css/home.css', - 'css/post.css' - ], - ), - ); - } - /** - * @param mixed $route - * @return array<string,> - */ - function get_files($route): array { - $js_files = $this->config['_common']['js']; - $css_files = $this->config['_common']['css']; - - if (array_key_exists($route, $this->config)) { - $config = $this->config[$route]; - if (array_key_exists('js', $config)) { - $js_files = array_merge($js_files, $config['js']); - } - if (array_key_exists('css', $config)) { - $css_files = array_merge($css_files, $config['css']); - } - } - - return array( - 'js_files' => $js_files, - 'css_files' => $css_files, - ); - } - -} diff --git a/web/config/routes.php b/web/config/routes.php deleted file mode 100644 index 78df332..0000000 --- a/web/config/routes.php +++ /dev/null @@ -1,7 +0,0 @@ -<?php /* Copyright (c) 2024 Freya Murphy */ - -$routes = array(); -$routes['home'] = 'apps/home'; -$routes['error'] = 'apps/error'; - -$routes[''] = '_index'; |