1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?php
- require_once "../auth.php";
- require_once "../init.php";
- $pairs = array(
- 'äää' => 'ae',
- 'öää' => 'oe',
- 'üää' => 'ue',
- 'ßää' => 'ss',
- '€ää' => ' Euro'
- );
- $part = substr($_GET['report'], strpos($_GET['report'], "/")+1);
- $strDoc = '';
- $strDoc = file_get_contents('..' . substr($part, strpos($part, "/")));
- $match = substr($strDoc, strpos($strDoc, 'reportName')+14);
- $match = substr($match, 0, strpos($match, ';')-1);
- echo $match;
- $doc = file_get_contents('Detail_' . $match . '_vorl.rtf');
- $doc = preg_replace('/\<titel\>/i', $match, $doc);
- foreach ( $_GET as $getvar => $getvarval)
- {
-
-
- $doc = preg_replace('/\<' . $getvar . '\>/i', $getvarval, $doc);
- }
- $fd = fopen('Detail.rtf', 'w+');
- rewind($fd);
- fwrite($fd, $doc);
- fclose($fd);
- echo '
- <html>
- <head>
- <title></title>
- <meta http-equiv="refresh" content="0; URL=Detail.rtf">
- </head>
- <body>
- </body>
- </html>';
- ?>
-
|