-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcss.php
More file actions
35 lines (25 loc) · 703 Bytes
/
Copy pathcss.php
File metadata and controls
35 lines (25 loc) · 703 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
namespace Runtime;
//! Dynamic generated CSS styles
header("Content-Type: text/css; charset=utf-8;");
define('DIRECT_LOAD', true);
require_once "config/app_config.php";
require_once "class/request.php";
require_once "class/css.php";
if(CONFIG_DEBUG) {
error_reporting(E_ALL ^ E_NOTICE);
ini_set('display_errors', true);
ini_set('html_errors', true);
}
$file = request::get_var('id');
if(file_exists($file))
{
ob_start();
include $file;
$css = ob_get_contents();
ob_end_clean();
}
else
$css = "/* <not found: ".$file."> */".LN;
print $css;
unset($css);