Subversion Repositories personal-webbase

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 daniel-mar 1
<?php
2
 
3
if (!defined('WBLEGAL')) die('Kann nicht ohne Personal WebBase ausgef&uuml;hrt werden.');
4
 
5
ob_start();
6
phpinfo();
7
$inhalt = ob_get_contents();
8
@ob_end_clean();
9
 
10
$inhalt = str_replace('<!DOCTYPE', '<!-- <!DOCTYPE', $inhalt);
11
$inhalt = str_replace('<body>', '<body> -->', $inhalt);
12
$inhalt = str_replace('</body></html>', '<!-- </body></html> -->', $inhalt);
13
 
14
$php_style = zwischen_str($inhalt, '<style', '</style>');
15
 
16
echo str_replace('</head>', $php_style.'</head>', $header);
17
 
18
echo '<h1>'.htmlentities($module_information->caption).'</h1>';
19
 
20
$inhalt = str_replace('<a href="http://www.php.net/">', '<a href="'.deferer('http://www.php.net/').'" target="_blank">', $inhalt);
21
$inhalt = str_replace('<a href="http://www.zend.com/">', '<a href="'.deferer('http://www.zend.com/').'" target="_blank">', $inhalt);
22
$inhalt = str_replace('ä', '&auml;', $inhalt);
23
$inhalt = str_replace('ö', '&ouml;', $inhalt);
24
$inhalt = str_replace('ü', '&uuml;', $inhalt);
25
$inhalt = str_replace('Ä', '&Auml;', $inhalt);
26
$inhalt = str_replace('Ö', '&Ouml;', $inhalt);
27
$inhalt = str_replace('Ü', '&Uuml;', $inhalt);
28
$inhalt = str_replace('ß', '&szlig;', $inhalt);
29
 
30
if (strpos($inhalt, '">PHP Credits</a></h1>') !== false)
31
{
32
        $zw_links = zwischen_str($inhalt, '<h1><a href="', '">PHP Credits</a></h1>', false);
33
 
34
        $protokoll = $WBConfig->getForceSSLFlag() ? 'https' : 'http';
35
        $credits_links = $protokoll.'://'.$_SERVER['HTTP_HOST'].$zw_links;
36
 
37
        $credit_inhalt = my_get_contents($credits_links);
38
 
39
        $credit_inhalt = str_replace('<!DOCTYPE', '<!-- <!DOCTYPE', $credit_inhalt);
40
        $credit_inhalt = str_replace('<body>', '<body> -->', $credit_inhalt);
41
        $credit_inhalt = str_replace('</body></html>', '<!-- </body></html> -->', $credit_inhalt);
42
 
43
        $credit_inhalt = str_replace('ä', '&auml;', $credit_inhalt);
44
        $credit_inhalt = str_replace('ö', '&ouml;', $credit_inhalt);
45
        $credit_inhalt = str_replace('ü', '&uuml;', $credit_inhalt);
46
        $credit_inhalt = str_replace('Ä', '&Auml;', $credit_inhalt);
47
        $credit_inhalt = str_replace('Ö', '&Ouml;', $credit_inhalt);
48
        $credit_inhalt = str_replace('Ü', '&Uuml;', $credit_inhalt);
49
        $credit_inhalt = str_replace('ß', '&szlig;', $credit_inhalt);
50
 
51
        echo str_replace('<h1><a href="'.$zw_links.'">PHP Credits</a></h1>', $credit_inhalt, $inhalt);
52
}
53
else
54
{
55
        echo $inhalt;
56
}
57
 
58
echo $footer;
59
 
60
?>