streams/Code/Module/View.php

25 lines
458 B
PHP
Raw Normal View History

2016-04-19 03:38:38 +00:00
<?php
2021-12-03 03:01:39 +00:00
2022-02-16 04:08:28 +00:00
namespace Code\Module;
2021-12-03 03:01:39 +00:00
2022-02-16 04:08:28 +00:00
use Code\Web\Controller;
2021-12-02 22:33:36 +00:00
2016-04-19 03:38:38 +00:00
/**
2022-08-26 22:37:04 +00:00
* load view/theme/$current_theme/style.php with content
2016-04-19 03:38:38 +00:00
*/
2021-12-02 23:02:31 +00:00
class View extends Controller
{
2016-04-19 03:38:38 +00:00
2021-12-02 23:02:31 +00:00
public function init()
{
header("Content-Type: text/css");
$theme = argv(2);
$THEMEPATH = "view/theme/$theme";
2021-12-03 03:01:39 +00:00
if (file_exists("view/theme/$theme/php/style.php")) {
2021-12-02 23:02:31 +00:00
require_once("view/theme/$theme/php/style.php");
2021-12-03 03:01:39 +00:00
}
2021-12-02 23:02:31 +00:00
killme();
}
2016-04-19 03:38:38 +00:00
}