PEEL Shopping
Open source ecommerce : PEEL Shopping
tcpdf_config_alt.php
Go to the documentation of this file.
1 <?php
2 //============================================================+
3 // File name : tcpdf_config.php
4 // Begin : 2004-06-11
5 // Last Update : 2011-04-15
6 //
7 // Description : Alternative configuration file for TCPDF.
8 // Author : Nicola Asuni - Tecnick.com LTD - Manor Coach House, Church Hill, Aldershot, Hants, GU12 4RQ, UK - www.tecnick.com - info@tecnick.com
9 // License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
10 // -------------------------------------------------------------------
11 // Copyright (C) 2004-2015 Nicola Asuni - Tecnick.com LTD
12 //
13 // This file is part of TCPDF software library.
14 //
15 // TCPDF is free software: you can redistribute it and/or modify it
16 // under the terms of the GNU Lesser General Public License as
17 // published by the Free Software Foundation, either version 3 of the
18 // License, or (at your option) any later version.
19 //
20 // TCPDF is distributed in the hope that it will be useful, but
21 // WITHOUT ANY WARRANTY; without even the implied warranty of
22 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 // See the GNU Lesser General Public License for more details.
24 //
25 // You should have received a copy of the GNU Lesser General Public License
26 // along with TCPDF. If not, see <http://www.gnu.org/licenses/>.
27 //
28 // See LICENSE.TXT file for more information.
29 //============================================================+
30 
39 // DOCUMENT_ROOT fix for IIS Webserver
40 if ((!isset($_SERVER['DOCUMENT_ROOT'])) OR (empty($_SERVER['DOCUMENT_ROOT']))) {
41  if(isset($_SERVER['SCRIPT_FILENAME'])) {
42  $_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0-strlen($_SERVER['PHP_SELF'])));
43  } elseif(isset($_SERVER['PATH_TRANSLATED'])) {
44  $_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0-strlen($_SERVER['PHP_SELF'])));
45  } else {
46  // define here your DOCUMENT_ROOT path if the previous fails (e.g. '/var/www')
47  $_SERVER['DOCUMENT_ROOT'] = '/';
48  }
49 }
50 
51 // Automatic calculation for the following K_PATH_MAIN constant
52 $k_path_main = str_replace( '\\', '/', realpath(substr(dirname(__FILE__), 0, 0-strlen('config'))));
53 if (substr($k_path_main, -1) != '/') {
54  $k_path_main .= '/';
55 }
56 
61 define ('K_PATH_MAIN', $k_path_main);
62 
63 // Automatic calculation for the following K_PATH_URL constant
64 if (isset($_SERVER['HTTP_HOST']) AND (!empty($_SERVER['HTTP_HOST']))) {
65  if(isset($_SERVER['HTTPS']) AND (!empty($_SERVER['HTTPS'])) AND strtolower($_SERVER['HTTPS'])!='off') {
66  $k_path_url = 'https://';
67  } else {
68  $k_path_url = 'http://';
69  }
70  $k_path_url .= $_SERVER['HTTP_HOST'];
71  $k_path_url .= str_replace( '\\', '/', substr(K_PATH_MAIN, (strlen($_SERVER['DOCUMENT_ROOT']) - 1)));
72 }
73 
78 define ('K_PATH_URL', $k_path_url);
79 
84 define ('K_PATH_FONTS', K_PATH_MAIN.'fonts/');
85 
89 define ('K_PATH_CACHE', K_PATH_MAIN.'cache/');
90 
94 define ('K_PATH_URL_CACHE', K_PATH_URL.'cache/');
95 
99 define ('K_PATH_IMAGES', K_PATH_MAIN.'images/');
100 
104 define ('K_BLANK_IMAGE', K_PATH_IMAGES.'_blank.png');
105 
109 define ('PDF_PAGE_FORMAT', 'A4');
110 
114 define ('PDF_PAGE_ORIENTATION', 'P');
115 
119 define ('PDF_CREATOR', 'TCPDF');
120 
124 define ('PDF_AUTHOR', 'TCPDF');
125 
129 define ('PDF_HEADER_TITLE', 'TCPDF Example');
130 
134 define ('PDF_HEADER_STRING', "by Nicola Asuni - Tecnick.com\nwww.tcpdf.org");
135 
139 define ('PDF_HEADER_LOGO', 'tcpdf_logo.jpg');
140 
144 define ('PDF_HEADER_LOGO_WIDTH', 30);
145 
149 define ('PDF_UNIT', 'mm');
150 
154 define ('PDF_MARGIN_HEADER', 5);
155 
159 define ('PDF_MARGIN_FOOTER', 10);
160 
164 define ('PDF_MARGIN_TOP', 27);
165 
169 define ('PDF_MARGIN_BOTTOM', 25);
170 
174 define ('PDF_MARGIN_LEFT', 15);
175 
179 define ('PDF_MARGIN_RIGHT', 15);
180 
184 define ('PDF_FONT_NAME_MAIN', 'helvetica');
185 
189 define ('PDF_FONT_SIZE_MAIN', 10);
190 
194 define ('PDF_FONT_NAME_DATA', 'helvetica');
195 
199 define ('PDF_FONT_SIZE_DATA', 8);
200 
204 define ('PDF_FONT_MONOSPACED', 'courier');
205 
209 define ('PDF_IMAGE_SCALE_RATIO', 1.25);
210 
214 define('HEAD_MAGNIFICATION', 1.1);
215 
219 define('K_CELL_HEIGHT_RATIO', 1.25);
220 
224 define('K_TITLE_MAGNIFICATION', 1.3);
225 
229 define('K_SMALL_RATIO', 2/3);
230 
234 define('K_THAI_TOPCHARS', true);
235 
240 define('K_TCPDF_CALLS_IN_HTML', true);
241 
242 //============================================================+
243 // END OF FILE
244 //============================================================+
const K_PATH_URL(isset($_SERVER['HTTP_HOST']) AND(!empty($_SERVER['HTTP_HOST'])))
URL path to tcpdf installation folder (http://localhost/tcpdf/).
const K_PATH_IMAGES
images directory
const K_PATH_MAIN(substr($k_path_main,-1)!= '/')
Installation path (/var/www/tcpdf/).
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $k_path_main
if(strlen($date2)== '10') if($type== 'users-by-age'&&a_priv('admin_users', true)) elseif($type== 'forums-count'&&a_priv('admin_content', true)) elseif($type== 'forums-categories'&&a_priv('admin_content', true)) elseif($type== 'users-count'&&a_priv('admin_users', true)) elseif($type== 'product-categories'&&a_priv('admin_products', true)) elseif($type== 'users-by-sex'&&a_priv('admin_users', true)) elseif($type== 'users-by-country'&&a_priv('admin_users', true)) elseif($type== 'sales'&&a_priv('admin_sales', true))
Definition: chart-data.php:160

This documentation for Open ecommerce PEEL Shopping and PEEL.fr has been generated by Doxygen on Thu Oct 15 2015 14:30:04 - Peel ecommerce is a product of Agence web Advisto SAS. All rights reserved.