Subversion Repositories personal-webbase

Rev

Rev 4 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 daniel-mar 1
<?php
2
 
3
require 'includes/main.inc.php';
4
 
5
$content = '';
6
 
8 daniel-mar 7
if (!file_exists('design/'.wb_dir_escape($konfiguration['admin_design']['design']).'/style.css'))
2 daniel-mar 8
  die('');
9
 
8 daniel-mar 10
$handle = @fopen('design/'.wb_dir_escape($konfiguration['admin_design']['design']).'/style.css', 'r');
2 daniel-mar 11
while (!@feof($handle))
12
{
13
  $buffer = @fgets($handle, 4096);
14
  $content .= $buffer;
15
}
16
@fclose ($handle);
17
 
8 daniel-mar 18
$content = str_replace('###', 'design/'.wb_dir_escape($konfiguration['admin_design']['design']).'/', $content);
2 daniel-mar 19
 
20
echo $content;
21
 
8 daniel-mar 22
?>