Rev 12 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
12 | daniel-mar | 1 | <?php |
2 | |||
14 | daniel-mar | 3 | if (!defined('WBLEGAL')) die('Kann nicht ohne Personal WebBase ausgeführt werden.'); |
12 | daniel-mar | 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 | if ($modulueberschrift == '') $modulueberschrift = $modul; |
||
19 | echo '<h1>'.my_htmlentities($modulueberschrift).'</h1>'; |
||
20 | |||
21 | $inhalt = str_replace('<a href="http://www.php.net/">', '<a href="http://www.php.net/" target="_blank">', $inhalt); |
||
22 | $inhalt = str_replace('<a href="http://www.zend.com/">', '<a href="http://www.zend.com/" target="_blank">', $inhalt); |
||
23 | $inhalt = str_replace('ä', 'ä', $inhalt); |
||
24 | $inhalt = str_replace('ö', 'ö', $inhalt); |
||
25 | $inhalt = str_replace('ü', 'ü', $inhalt); |
||
26 | $inhalt = str_replace('Ä', 'Ä', $inhalt); |
||
27 | $inhalt = str_replace('Ö', 'Ö', $inhalt); |
||
28 | $inhalt = str_replace('Ü', 'Ü', $inhalt); |
||
29 | $inhalt = str_replace('ß', 'ß', $inhalt); |
||
30 | |||
31 | if (strpos($inhalt, '">PHP Credits</a></h1>') !== false) |
||
32 | { |
||
33 | $zw_links = zwischen_str($inhalt, '<h1><a href="', '">PHP Credits</a></h1>', false); |
||
34 | |||
35 | $protokoll = $force_ssl ? 'https' : 'http'; |
||
36 | $credits_links = $protokoll.'://'.$_SERVER["HTTP_HOST"].$zw_links; |
||
37 | |||
38 | $credit_inhalt = my_get_contents($credits_links); |
||
39 | |||
40 | $credit_inhalt = str_replace('<!DOCTYPE', '<!-- <!DOCTYPE', $credit_inhalt); |
||
41 | $credit_inhalt = str_replace('<body>', '<body> -->', $credit_inhalt); |
||
42 | $credit_inhalt = str_replace('</body></html>', '<!-- </body></html> -->', $credit_inhalt); |
||
43 | |||
44 | $credit_inhalt = str_replace('ä', 'ä', $credit_inhalt); |
||
45 | $credit_inhalt = str_replace('ö', 'ö', $credit_inhalt); |
||
46 | $credit_inhalt = str_replace('ü', 'ü', $credit_inhalt); |
||
47 | $credit_inhalt = str_replace('Ä', 'Ä', $credit_inhalt); |
||
48 | $credit_inhalt = str_replace('Ö', 'Ö', $credit_inhalt); |
||
49 | $credit_inhalt = str_replace('Ü', 'Ü', $credit_inhalt); |
||
50 | $credit_inhalt = str_replace('ß', 'ß', $credit_inhalt); |
||
51 | |||
52 | echo str_replace('<h1><a href="'.$zw_links.'">PHP Credits</a></h1>', $credit_inhalt, $inhalt); |
||
53 | } |
||
54 | else |
||
55 | { |
||
56 | echo $inhalt; |
||
57 | } |
||
58 | |||
59 | echo $footer; |
||
60 | |||
61 | ?> |