41 if (!defined(
'K_TCPDF_EXTERNAL_CONFIG')) {
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'])));
51 $_SERVER[
'DOCUMENT_ROOT'] =
'/';
56 $k_path_main = str_replace(
'\\',
'/', realpath(substr(dirname(__FILE__), 0, 0-strlen(
'config'))));
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://';
73 $k_path_url =
'http://';
75 $k_path_url .= $_SERVER[
'HTTP_HOST'];
76 $k_path_url .= str_replace(
'\\',
'/', substr(
K_PATH_MAIN, (strlen($_SERVER[
'DOCUMENT_ROOT']) - 1)));
83 define (
'K_PATH_URL', $k_path_url);
94 define (
'K_PATH_CACHE',
K_PATH_MAIN.
'../../../cache/');
99 define (
'K_PATH_URL_CACHE',
K_PATH_URL.
'cache/');
114 define (
'PDF_PAGE_FORMAT',
'A4');
119 define (
'PDF_PAGE_ORIENTATION',
'P');
124 define (
'PDF_CREATOR',
'TCPDF');
129 define (
'PDF_AUTHOR',
'TCPDF');
134 define (
'PDF_HEADER_TITLE',
'TCPDF Example');
139 define (
'PDF_HEADER_STRING',
"by Nicola Asuni - Tecnick.com\nwww.tcpdf.org");
144 define (
'PDF_HEADER_LOGO',
'tcpdf_logo.jpg');
149 define (
'PDF_HEADER_LOGO_WIDTH', 30);
154 define (
'PDF_UNIT',
'mm');
159 define (
'PDF_MARGIN_HEADER', 5);
164 define (
'PDF_MARGIN_FOOTER', 10);
169 define (
'PDF_MARGIN_TOP', 27);
174 define (
'PDF_MARGIN_BOTTOM', 25);
179 define (
'PDF_MARGIN_LEFT', 15);
184 define (
'PDF_MARGIN_RIGHT', 15);
189 define (
'PDF_FONT_NAME_MAIN',
'helvetica');
194 define (
'PDF_FONT_SIZE_MAIN', 10);
199 define (
'PDF_FONT_NAME_DATA',
'helvetica');
204 define (
'PDF_FONT_SIZE_DATA', 8);
209 define (
'PDF_FONT_MONOSPACED',
'courier');
214 define (
'PDF_IMAGE_SCALE_RATIO', 1.25);
219 define(
'HEAD_MAGNIFICATION', 1.1);
224 define(
'K_CELL_HEIGHT_RATIO', 1.25);
229 define(
'K_TITLE_MAGNIFICATION', 1.3);
234 define(
'K_SMALL_RATIO', 2/3);
239 define(
'K_THAI_TOPCHARS',
true);
245 define(
'K_TCPDF_CALLS_IN_HTML',
true);
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))