Initial commit

This commit is contained in:
2018-04-02 08:07:38 +02:00
commit 7330c1ed3e
2054 changed files with 405203 additions and 0 deletions

View File

@@ -0,0 +1,71 @@
<?php
/***************************************************************
* Copyright notice
*
* (c) 2011-2015 Michael Stopp <stopp@eye.ch>
* 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!
***************************************************************/
// tell TCPDF not to use default config
define("K_TCPDF_EXTERNAL_CONFIG", true);
// load T3 config file
require_once(t3lib_extMgm::extPath('t3_tcpdf').'t3_tcpdf_config.php');
require_once(t3lib_extMgm::extPath('t3_tcpdf').'tcpdf/tcpdf.php');
class tx_t3_tcpdf extends TCPDF {
var $t3_header_txt = '';
var $t3_header_font = 'helvetica';
var $t3_header_fontstyle = '';
var $t3_header_fontsize = 9;
var $t3_header_align = 'C';
var $t3_footer_txt = '';
var $t3_footer_font = 'helvetica';
var $t3_footer_fontstyle = '';
var $t3_footer_fontsize = 9;
var $t3_footer_align = 'C';
function Header() {
if ( $this->t3_header_txt != '' ) {
$this->SetFont($this->t3_header_font, $this->t3_header_fontstyle, $this->t3_header_fontsize);
$this->writeHTMLCell($w=0, $h=0, $x='', $y='', $this->t3_header_txt, $border=0, $ln=0, $fill=false, $reseth=true, $this->t3_header_align, $autopadding=true);
}
else {
parent::Header();
}
}
function Footer() {
$currPage = $this->PageNo();
$totalPages = $this->getAliasNbPages();
// NOTE: unless for L, the alignment of page numbers will be off due to http://sourceforge.net/p/tcpdf/bugs/593/
$footerText = str_replace(array('###PAGE_CURR###', '###PAGE_TOTAL###'), array($currPage, $totalPages), $this->t3_footer_txt);
if ( $this->t3_footer_txt != '' ) {
$this->SetFont($this->t3_footer_font, $this->t3_footer_fontstyle, $this->t3_footer_fontsize);
$this->writeHTMLCell($w=0, $h=0, $x='', $y='', $footerText, $border=0, $ln=0, $fill=false, $reseth=true, $this->t3_footer_align, $autopadding=true);
}
else {
parent::Footer();
}
}
}
?>