Rev 1 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | daniel-mar | 1 | <?php |
2 | |||
3 | require 'includes/main.inc.php'; |
||
4 | require 'includes/modulinit.inc.php'; |
||
5 | |||
6 | if (!headers_sent()) header('Content-Type: text/css'); |
||
7 | |||
8 | $content = ''; |
||
9 | |||
10 | if (!file_exists('designs/'.$configuration['admin_designs']['design'].'/style.css')) |
||
11 | die(''); |
||
12 | |||
13 | $handle = @fopen('designs/'.$configuration['admin_designs']['design'].'/style.css', 'r'); |
||
14 | while (!@feof($handle)) |
||
15 | { |
||
16 | $buffer = @fgets($handle, 4096); |
||
17 | $content .= $buffer; |
||
18 | } |
||
19 | @fclose ($handle); |
||
20 | |||
21 | $content = str_replace('###', 'designs/'.$configuration['admin_designs']['design'].'/', $content); |
||
22 | |||
23 | echo $content; |
||
24 | |||
25 | ?> |