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