PEEL Shopping
Open source ecommerce : PEEL Shopping
tcpdf_config.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 : 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 // If you define the constant K_TCPDF_EXTERNAL_CONFIG, the following settings will be ignored.
40 
41 if (!defined('K_TCPDF_EXTERNAL_CONFIG')) {
42 
43  // DOCUMENT_ROOT fix for IIS Webserver
44  if ((!isset($_SERVER['DOCUMENT_ROOT'])) OR (empty($_SERVER['DOCUMENT_ROOT']))) {
45  if(isset($_SERVER['SCRIPT_FILENAME'])) {
46  $_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0-strlen($_SERVER['PHP_SELF'])));
47  } elseif(isset($_SERVER['PATH_TRANSLATED'])) {
48  $_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0-strlen($_SERVER['PHP_SELF'])));
49  } else {
50  // define here your DOCUMENT_ROOT path if the previous fails (e.g. '/var/www')
51  $_SERVER['DOCUMENT_ROOT'] = '/';
52  }
53  }
54 
55  // Automatic calculation for the following K_PATH_MAIN constant
56  $k_path_main = str_replace( '\\', '/', realpath(substr(dirname(__FILE__), 0, 0-strlen('config'))));
57  if (substr($k_path_main, -1) != '/') {
58  $k_path_main .= '/';
59  }
60 
65  define ('K_PATH_MAIN', $k_path_main);
66 
67  // Automatic calculation for the following K_PATH_URL constant
68  $k_path_url = $k_path_main; // default value for console mode
69  if (isset($_SERVER['HTTP_HOST']) AND (!empty($_SERVER['HTTP_HOST']))) {
70  if(isset($_SERVER['HTTPS']) AND (!empty($_SERVER['HTTPS'])) AND strtolower($_SERVER['HTTPS'])!='off') {
71  $k_path_url = 'https://';
72  } else {
73  $k_path_url = 'http://';
74  }
75  $k_path_url .= $_SERVER['HTTP_HOST'];
76  $k_path_url .= str_replace( '\\', '/', substr(K_PATH_MAIN, (strlen($_SERVER['DOCUMENT_ROOT']) - 1)));
77  }
78 
83  define ('K_PATH_URL', $k_path_url);
84 
89  define ('K_PATH_FONTS', K_PATH_MAIN.'fonts/');
90 
94  define ('K_PATH_CACHE', K_PATH_MAIN.'../../../cache/');
95 
99  define ('K_PATH_URL_CACHE', K_PATH_URL.'cache/');
100 
104  define ('K_PATH_IMAGES', K_PATH_MAIN.'images/');
105 
109  define ('K_BLANK_IMAGE', K_PATH_IMAGES.'_blank.png');
110 
114  define ('PDF_PAGE_FORMAT', 'A4');
115 
119  define ('PDF_PAGE_ORIENTATION', 'P');
120 
124  define ('PDF_CREATOR', 'TCPDF');
125 
129  define ('PDF_AUTHOR', 'TCPDF');
130 
134  define ('PDF_HEADER_TITLE', 'TCPDF Example');
135 
139  define ('PDF_HEADER_STRING', "by Nicola Asuni - Tecnick.com\nwww.tcpdf.org");
140 
144  define ('PDF_HEADER_LOGO', 'tcpdf_logo.jpg');
145 
149  define ('PDF_HEADER_LOGO_WIDTH', 30);
150 
154  define ('PDF_UNIT', 'mm');
155 
159  define ('PDF_MARGIN_HEADER', 5);
160 
164  define ('PDF_MARGIN_FOOTER', 10);
165 
169  define ('PDF_MARGIN_TOP', 27);
170 
174  define ('PDF_MARGIN_BOTTOM', 25);
175 
179  define ('PDF_MARGIN_LEFT', 15);
180 
184  define ('PDF_MARGIN_RIGHT', 15);
185 
189  define ('PDF_FONT_NAME_MAIN', 'helvetica');
190 
194  define ('PDF_FONT_SIZE_MAIN', 10);
195 
199  define ('PDF_FONT_NAME_DATA', 'helvetica');
200 
204  define ('PDF_FONT_SIZE_DATA', 8);
205 
209  define ('PDF_FONT_MONOSPACED', 'courier');
210 
214  define ('PDF_IMAGE_SCALE_RATIO', 1.25);
215 
219  define('HEAD_MAGNIFICATION', 1.1);
220 
224  define('K_CELL_HEIGHT_RATIO', 1.25);
225 
229  define('K_TITLE_MAGNIFICATION', 1.3);
230 
234  define('K_SMALL_RATIO', 2/3);
235 
239  define('K_THAI_TOPCHARS', true);
240 
245  define('K_TCPDF_CALLS_IN_HTML', true);
246 }
247 
248 //============================================================+
249 // END OF FILE
250 //============================================================+
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.