|
<?php
|
|
/***************************************************************
|
|
* Copyright notice
|
|
*
|
|
* (c) 2005 Robert Lemke (robert@typo3.org)
|
|
* All rights reserved
|
|
*
|
|
* This script is part of the TYPO3 project. The TYPO3 project is
|
|
* free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* The GNU General Public License can be found at
|
|
* http://www.gnu.org/copyleft/gpl.html.
|
|
*
|
|
* This script is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* This copyright notice MUST APPEAR in all copies of the script!
|
|
***************************************************************/
|
|
/**
|
|
* Popup print view script for the rlmp_eventdb plugin 1
|
|
*
|
|
* @author Robert Lemke <rl@robertlemke.de>
|
|
*/
|
|
|
|
/**
|
|
* [CLASS/FUNCTION INDEX of SCRIPT]
|
|
*
|
|
*
|
|
*/
|
|
|
|
error_reporting (E_ALL ^ E_NOTICE);
|
|
|
|
define('TYPO3_MODE','FE');
|
|
|
|
define('PATH_site', '../../../../');
|
|
define('PATH_t3lib', PATH_site.'t3lib/');
|
|
define('PATH_tslib', PATH_site.'tslib/');
|
|
define('PATH_typo3', PATH_site.'typo3/');
|
|
define('PATH_typo3conf', PATH_site.'typo3conf/');
|
|
|
|
require_once(PATH_t3lib.'class.t3lib_div.php');
|
|
require_once(PATH_t3lib.'class.t3lib_extmgm.php');
|
|
|
|
|
|
require_once(PATH_t3lib.'config_default.php');
|
|
|
|
|
|
if (!defined ('TYPO3_db')) die ('The configuration file was not included.');
|
|
|
|
/**
|
|
* @package TYPO3
|
|
* @subpackage tx_rlmpeventdb
|
|
*/
|
|
class tx_rlmpeventdb_print {
|
|
var $content; // Page content accumulated here.
|
|
|
|
/**
|
|
* Main function which creates the HTML code for the page.
|
|
* Accumulates the content in $this->content
|
|
*
|
|
* @return void
|
|
*/
|
|
function main() {
|
|
global $LANG, $TYPO3_DB, $TYPO3_CONF_VARS;
|
|
global $TYPO3_LOADED_EXT;
|
|
debug($TYPO3_LOADED_EXT,'search_error_1',__LINE__,__FILE__);
|
|
$bodyContent = urldecode(t3lib_div::_POST('output'));
|
|
if (md5($bodyContent . $TYPO3_CONF_VARS["SYS"]["encryptionKey"] . 'rlmp_eventdb') !== t3lib_div::_POST('output_hash')) {
|
|
$this->content = '';
|
|
return;
|
|
}
|
|
|
|
$this->content = '
|
|
|
|
<!DOCTYPE html
|
|
PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<link rel="stylesheet" type="text/css" href="../res/confirmation-print.css" />
|
|
<script type="text/javascript">
|
|
/*<![CDATA[*/
|
|
<!--
|
|
this.print();
|
|
// -->
|
|
/*]]>*/
|
|
</script>
|
|
<title></title>
|
|
</head>
|
|
<body bgcolor="#FFFFFF"">
|
|
'.$bodyContent.'
|
|
</body>
|
|
</html>
|
|
';
|
|
}
|
|
|
|
/**
|
|
* Outputs the content from $this->content
|
|
*
|
|
* @return void
|
|
*/
|
|
function printContent() {
|
|
echo $this->content;
|
|
}
|
|
}
|
|
|
|
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/rlmp_eventdb/pi1/rlmp_eventdb_print.php']) {
|
|
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/rlmp_eventdb/pi1/rlmp_eventdb_print.php']);
|
|
}
|
|
|
|
|
|
// Make instance:
|
|
$SOBE = t3lib_div::makeInstance('tx_rlmpeventdb_print');
|
|
$SOBE->main();
|
|
$SOBE->printContent();
|
|
?>
|