Subversion Repositories personal-webbase

Rev

Rev 12 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  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. 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('ä', '&auml;', $inhalt);
  24. $inhalt = str_replace('ö', '&ouml;', $inhalt);
  25. $inhalt = str_replace('ü', '&uuml;', $inhalt);
  26. $inhalt = str_replace('Ä', '&Auml;', $inhalt);
  27. $inhalt = str_replace('Ö', '&Ouml;', $inhalt);
  28. $inhalt = str_replace('Ü', '&Uuml;', $inhalt);
  29. $inhalt = str_replace('ß', '&szlig;', $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('ä', '&auml;', $credit_inhalt);
  45.   $credit_inhalt = str_replace('ö', '&ouml;', $credit_inhalt);
  46.   $credit_inhalt = str_replace('ü', '&uuml;', $credit_inhalt);
  47.   $credit_inhalt = str_replace('Ä', '&Auml;', $credit_inhalt);
  48.   $credit_inhalt = str_replace('Ö', '&Ouml;', $credit_inhalt);
  49.   $credit_inhalt = str_replace('Ü', '&Uuml;', $credit_inhalt);
  50.   $credit_inhalt = str_replace('ß', '&szlig;', $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. ?>
  62.