File: PHPReportConvert.php

package info (click to toggle)
phpreports 0.4.7-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 664 kB
  • ctags: 1,362
  • sloc: php: 3,248; xml: 203; makefile: 29; sh: 17; python: 10
file content (23 lines) | stat: -rwxr-xr-x 770 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
	include_once "PHPReportMaker.php";
	include_once "PHPReportsUtil.php";
	
	/******************************************************************************
	*																										*
	*	Use this file to check how the output plugins works.								*
	*	Please see outmenu.php also.																*
	*	It need to be placed on a directory reached by the web server.					*
	*																										*
	******************************************************************************/
	$sOut = $_REQUEST["output"];
	$sURL = realpath(getPHPReportsTmpPath()."/".$_REQUEST["file"]);

	if(empty($sOut)||empty($sURL))
		return;
	
	$oRpt	= new PHPReportMaker();
	$oOut = $oRpt->createOutputPlugin($sOut);
	$oOut->setInput($sURL);
	$oOut->setClean(false);
	$oOut->run();
?>