From 45b9663b6305cb70c2f3f1782406232d3ed0d755 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Fri, 9 Jan 2009 11:59:45 +0000 Subject: [PATCH] Changed $path_to_root and stamped copyright --- CHANGELOG.txt | 4 ++++ gl/includes/gl_db.inc | 11 +++++++++- reporting/includes/class.pdf.inc | 10 +++++++++ reporting/includes/doctext.inc | 10 +++++++++ reporting/includes/doctext2.inc | 10 +++++++++ reporting/includes/header2.inc | 10 +++++++++ reporting/includes/pdf_report.inc | 15 +++++++------ reporting/includes/reports_classes.inc | 10 +++++++++ reporting/prn_redirect.php | 29 +++++++++++++++++--------- reporting/rep101.php | 23 +++++++++++++------- reporting/rep102.php | 27 ++++++++++++++++-------- reporting/rep103.php | 23 +++++++++++++------- reporting/rep104.php | 29 +++++++++++++++++--------- reporting/rep105.php | 25 +++++++++++++++------- reporting/rep106.php | 25 +++++++++++++++------- reporting/rep107.php | 27 ++++++++++++++++-------- reporting/rep108.php | 27 ++++++++++++++++-------- reporting/rep109.php | 27 ++++++++++++++++-------- reporting/rep110.php | 27 ++++++++++++++++-------- reporting/rep201.php | 23 +++++++++++++------- reporting/rep202.php | 27 ++++++++++++++++-------- reporting/rep203.php | 23 +++++++++++++------- reporting/rep204.php | 23 +++++++++++++------- reporting/rep209.php | 26 +++++++++++++++-------- reporting/rep301.php | 25 +++++++++++++++------- reporting/rep302.php | 25 +++++++++++++++------- reporting/rep303.php | 25 +++++++++++++++------- reporting/rep304.php | 27 ++++++++++++++++-------- reporting/rep401.php | 25 +++++++++++++++------- reporting/rep501.php | 25 +++++++++++++++------- reporting/rep601.php | 23 +++++++++++++------- reporting/rep701.php | 23 +++++++++++++------- reporting/rep702.php | 25 +++++++++++++++------- reporting/rep704.php | 23 +++++++++++++------- reporting/rep705.php | 23 +++++++++++++------- reporting/rep706.php | 27 ++++++++++++++++-------- reporting/rep707.php | 27 ++++++++++++++++-------- reporting/rep708.php | 23 +++++++++++++------- reporting/rep709.php | 14 ++++++------- reporting/reports_main.php | 11 +++++++++- 40 files changed, 601 insertions(+), 261 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 985966e9..7c2ce80d 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -19,6 +19,10 @@ Legend: ! -> Note $ -> Affected files +09-Jan-2009 Joe Hunt +! Changed $path_to_root in report files and stamped copyright +$ All report files + 08-Jan-2009 Joe Hunt ! Changed attachments to use unique files store instead of blobs $ /admin/attachments/attachments.php diff --git a/gl/includes/gl_db.inc b/gl/includes/gl_db.inc index cb9a2f1f..b3a3ec95 100644 --- a/gl/includes/gl_db.inc +++ b/gl/includes/gl_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ include_once($path_to_root . "/includes/banking.inc"); include_once($path_to_root . "/gl/includes/db/gl_db_trans.inc"); diff --git a/reporting/includes/class.pdf.inc b/reporting/includes/class.pdf.inc index 856a7994..1fcda859 100644 --- a/reporting/includes/class.pdf.inc +++ b/reporting/includes/class.pdf.inc @@ -1,4 +1,14 @@ . +***********************************************************************/ /* This class is an extension to the tcpdf class using a syntax that the original reports were written in (the R &OS pdf.php class) - due to easily portation this wrapper class diff --git a/reporting/includes/doctext.inc b/reporting/includes/doctext.inc index 2bb0e9c8..8a2539ed 100644 --- a/reporting/includes/doctext.inc +++ b/reporting/includes/doctext.inc @@ -1,4 +1,14 @@ . +***********************************************************************/ if (isset($header2type)) { $doc_Cust_no = _("Cust no"); diff --git a/reporting/includes/doctext2.inc b/reporting/includes/doctext2.inc index 0eb0be98..9107d72a 100644 --- a/reporting/includes/doctext2.inc +++ b/reporting/includes/doctext2.inc @@ -1,4 +1,14 @@ . +***********************************************************************/ if (isset($header2type)) { $doc_Cust_no = "Cust no"; diff --git a/reporting/includes/header2.inc b/reporting/includes/header2.inc index 3f7986bf..c71ce254 100644 --- a/reporting/includes/header2.inc +++ b/reporting/includes/header2.inc @@ -1,4 +1,14 @@ . +***********************************************************************/ $this->row = $this->pageHeight - $this->topMargin; diff --git a/reporting/includes/pdf_report.inc b/reporting/includes/pdf_report.inc index 07d83546..c849f98f 100644 --- a/reporting/includes/pdf_report.inc +++ b/reporting/includes/pdf_report.inc @@ -14,9 +14,9 @@ $page_security = 8; //include_once($path_to_root . "reporting/includes/class.pdf.inc"); include_once(dirname(__FILE__)."/class.pdf.inc"); include_once(dirname(__FILE__)."/printer_class.inc"); -include_once($path_to_root . "admin/db/company_db.inc"); -include_once($path_to_root . "admin/db/printers_db.inc"); -include_once($path_to_root . "config.php"); +include_once($path_to_root . "/admin/db/company_db.inc"); +include_once($path_to_root . "/admin/db/printers_db.inc"); +include_once($path_to_root . "/config.php"); class FrontReport extends Cpdf { var $size; @@ -150,7 +150,7 @@ class FrontReport extends Cpdf function Info($params, $cols, $headers, $aligns, $cols2 = null, $headers2 = null, $aligns2 = null) { - global $app_title, $version, $power_by, $power_url, $path_to_root, $db_connections; + global $app_title, $version, $power_by, $power_url; $this->addinfo('Title', $this->title); $this->addinfo('Subject', $this->title); @@ -164,7 +164,6 @@ class FrontReport extends Cpdf $this->fiscal_year = sql2date($year['begin']) . " - " . sql2date($year['end']) . " " . "(" . $how . ")"; $this->company = get_company_prefs(); $this->user = $_SESSION["wa_current_user"]->name; - //$this->host = $db_connections[$_SESSION["wa_current_user"]->company]["host"]; $this->host = $_SERVER['SERVER_NAME']; $this->params = $params; $this->cols = $cols; @@ -268,14 +267,14 @@ class FrontReport extends Cpdf $header2type = true; if ($this->currency != $myrow['curr_code']) { - include($path_to_root . "reporting/includes/doctext2.inc"); + include($path_to_root . "/reporting/includes/doctext2.inc"); } else { - include($path_to_root . "reporting/includes/doctext.inc"); + include($path_to_root . "/reporting/includes/doctext.inc"); } - include($path_to_root . "reporting/includes/header2.inc"); + include($path_to_root . "/reporting/includes/header2.inc"); $this->row = $temp; } diff --git a/reporting/includes/reports_classes.inc b/reporting/includes/reports_classes.inc index c717c973..31e98b8a 100644 --- a/reporting/includes/reports_classes.inc +++ b/reporting/includes/reports_classes.inc @@ -1,4 +1,14 @@ . +***********************************************************************/ class BoxReports { var $ar_classes; diff --git a/reporting/prn_redirect.php b/reporting/prn_redirect.php index 262f8109..a0d4aa61 100644 --- a/reporting/prn_redirect.php +++ b/reporting/prn_redirect.php @@ -1,11 +1,21 @@ . +***********************************************************************/ /* Print request redirector. This file is fired via print link or print button in reporting module. */ -$path_to_root = "../"; +$path_to_root = ".."; $page_security = 2; // this level is later overriden in rep file -include_once($path_to_root . "includes/session.inc"); +include_once($path_to_root . "/includes/session.inc"); if (!isset($_POST['REP_ID'])) { // print link clicked $def_pars = array(0, 0, '', '', 0, '', '', 0); //default values @@ -15,13 +25,12 @@ if (!isset($_POST['REP_ID'])) { // print link clicked ? $_GET['PARAM_'.$i] : $def_pars[$i]; } } - $rep = $_POST['REP_ID']; - $rep_file = $comp_path.'/'.user_company(). - "/reporting/rep$rep.php"; - if (!file_exists($rep_file)) { - $rep_file = $path_to_root ."/reporting/rep$rep.php"; - } - require($rep_file); - exit(); +$rep = $_POST['REP_ID']; +$rep_file = $comp_path.'/'.user_company()."/reporting/rep$rep.php"; +if (!file_exists($rep_file)) { + $rep_file = $path_to_root ."/reporting/rep$rep.php"; +} +require($rep_file); +exit(); ?> \ No newline at end of file diff --git a/reporting/rep101.php b/reporting/rep101.php index a206239a..b51b4488 100644 --- a/reporting/rep101.php +++ b/reporting/rep101.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 2; // ---------------------------------------------------------------- @@ -8,12 +17,12 @@ $page_security = 2; // date_: 2005-05-19 // Title: Customer Balances // ---------------------------------------------------------------- -$path_to_root="../"; +$path_to_root=".."; -include_once($path_to_root . "includes/session.inc"); -include_once($path_to_root . "includes/date_functions.inc"); -include_once($path_to_root . "includes/data_checks.inc"); -include_once($path_to_root . "gl/includes/gl_db.inc"); +include_once($path_to_root . "/includes/session.inc"); +include_once($path_to_root . "/includes/date_functions.inc"); +include_once($path_to_root . "/includes/data_checks.inc"); +include_once($path_to_root . "/gl/includes/gl_db.inc"); //---------------------------------------------------------------------------------------------------- @@ -45,7 +54,7 @@ function print_customer_balances() { global $path_to_root; - include_once($path_to_root . "reporting/includes/pdf_report.inc"); + include_once($path_to_root . "/reporting/includes/pdf_report.inc"); $to = $_POST['PARAM_0']; $fromcust = $_POST['PARAM_1']; diff --git a/reporting/rep102.php b/reporting/rep102.php index 41d6379f..620d5011 100644 --- a/reporting/rep102.php +++ b/reporting/rep102.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 2; // ---------------------------------------------------------------- // $ Revision: 2.0 $ @@ -7,12 +16,12 @@ $page_security = 2; // date_: 2005-05-19 // Title: Aged Customer Balances // ---------------------------------------------------------------- -$path_to_root="../"; +$path_to_root=".."; -include_once($path_to_root . "includes/session.inc"); -include_once($path_to_root . "includes/date_functions.inc"); -include_once($path_to_root . "includes/data_checks.inc"); -include_once($path_to_root . "gl/includes/gl_db.inc"); +include_once($path_to_root . "/includes/session.inc"); +include_once($path_to_root . "/includes/date_functions.inc"); +include_once($path_to_root . "/includes/data_checks.inc"); +include_once($path_to_root . "/gl/includes/gl_db.inc"); //---------------------------------------------------------------------------------------------------- @@ -60,7 +69,7 @@ function print_aged_customer_analysis() { global $comp_path, $path_to_root; - include_once($path_to_root . "reporting/includes/pdf_report.inc"); + include_once($path_to_root . "/reporting/includes/pdf_report.inc"); $to = $_POST['PARAM_0']; $fromcust = $_POST['PARAM_1']; @@ -70,7 +79,7 @@ function print_aged_customer_analysis() $comments = $_POST['PARAM_5']; if ($graphics) { - include_once($path_to_root . "reporting/includes/class.graphic.inc"); + include_once($path_to_root . "/reporting/includes/class.graphic.inc"); $pg = new graph(); } @@ -217,7 +226,7 @@ function print_aged_customer_analysis() $pg->type = $graphics; $pg->skin = $graph_skin; $pg->built_in = false; - $pg->fontfile = $path_to_root . "reporting/fonts/Vera.ttf"; + $pg->fontfile = $path_to_root . "/reporting/fonts/Vera.ttf"; $pg->latin_notation = ($decseps[$_SESSION["wa_current_user"]->prefs->dec_sep()] != "."); $filename = $comp_path .'/'. user_company(). "/images/test.png"; $pg->display($filename, true); diff --git a/reporting/rep103.php b/reporting/rep103.php index dd655487..d6ebfb00 100644 --- a/reporting/rep103.php +++ b/reporting/rep103.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 2; // ---------------------------------------------------------------- // $ Revision: 2.0 $ @@ -7,12 +16,12 @@ $page_security = 2; // date_: 2005-05-19 // Title: Customer Details Listing // ---------------------------------------------------------------- -$path_to_root="../"; +$path_to_root=".."; -include_once($path_to_root . "includes/session.inc"); -include_once($path_to_root . "includes/date_functions.inc"); -include_once($path_to_root . "includes/data_checks.inc"); -include_once($path_to_root . "gl/includes/gl_db.inc"); +include_once($path_to_root . "/includes/session.inc"); +include_once($path_to_root . "/includes/date_functions.inc"); +include_once($path_to_root . "/includes/data_checks.inc"); +include_once($path_to_root . "/gl/includes/gl_db.inc"); //---------------------------------------------------------------------------------------------------- @@ -87,7 +96,7 @@ function print_customer_details_listing() { global $path_to_root; - include_once($path_to_root . "reporting/includes/pdf_report.inc"); + include_once($path_to_root . "/reporting/includes/pdf_report.inc"); $from = $_POST['PARAM_0']; $area = $_POST['PARAM_1']; diff --git a/reporting/rep104.php b/reporting/rep104.php index 55660331..e34e5937 100644 --- a/reporting/rep104.php +++ b/reporting/rep104.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 2; // ---------------------------------------------------------------- // $ Revision: 2.0 $ @@ -7,15 +16,15 @@ $page_security = 2; // date_: 2005-05-19 // Title: price Listing // ---------------------------------------------------------------- -$path_to_root="../"; +$path_to_root=".."; -include_once($path_to_root . "includes/session.inc"); -include_once($path_to_root . "includes/date_functions.inc"); -include_once($path_to_root . "includes/ui/ui_input.inc"); -include_once($path_to_root . "includes/data_checks.inc"); -include_once($path_to_root . "gl/includes/gl_db.inc"); -include_once($path_to_root . "sales/includes/db/sales_types_db.inc"); -include_once($path_to_root . "inventory/includes/db/items_category_db.inc"); +include_once($path_to_root . "/includes/session.inc"); +include_once($path_to_root . "/includes/date_functions.inc"); +include_once($path_to_root . "/includes/ui/ui_input.inc"); +include_once($path_to_root . "/includes/data_checks.inc"); +include_once($path_to_root . "/gl/includes/gl_db.inc"); +include_once($path_to_root . "/sales/includes/db/sales_types_db.inc"); +include_once($path_to_root . "/inventory/includes/db/items_category_db.inc"); //---------------------------------------------------------------------------------------------------- @@ -44,7 +53,7 @@ function print_price_listing() { global $comp_path, $path_to_root, $pic_height, $pic_width; - include_once($path_to_root . "reporting/includes/pdf_report.inc"); + include_once($path_to_root . "/reporting/includes/pdf_report.inc"); $currency = $_POST['PARAM_0']; $category = $_POST['PARAM_1']; diff --git a/reporting/rep105.php b/reporting/rep105.php index e25b89aa..6832f435 100644 --- a/reporting/rep105.php +++ b/reporting/rep105.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 2; // ---------------------------------------------------------------- // $ Revision: 2.0 $ @@ -7,13 +16,13 @@ $page_security = 2; // date_: 2005-05-19 // Title: Order Status List // ---------------------------------------------------------------- -$path_to_root="../"; +$path_to_root=".."; -include_once($path_to_root . "includes/session.inc"); -include_once($path_to_root . "includes/date_functions.inc"); -include_once($path_to_root . "includes/data_checks.inc"); -include_once($path_to_root . "sales/includes/sales_db.inc"); -include_once($path_to_root . "inventory/includes/db/items_category_db.inc"); +include_once($path_to_root . "/includes/session.inc"); +include_once($path_to_root . "/includes/date_functions.inc"); +include_once($path_to_root . "/includes/data_checks.inc"); +include_once($path_to_root . "/sales/includes/sales_db.inc"); +include_once($path_to_root . "/inventory/includes/db/items_category_db.inc"); //---------------------------------------------------------------------------------------------------- @@ -63,7 +72,7 @@ function print_order_status_list() { global $path_to_root; - include_once($path_to_root . "reporting/includes/pdf_report.inc"); + include_once($path_to_root . "/reporting/includes/pdf_report.inc"); $from = $_POST['PARAM_0']; $to = $_POST['PARAM_1']; diff --git a/reporting/rep106.php b/reporting/rep106.php index ad26d7dd..50570839 100644 --- a/reporting/rep106.php +++ b/reporting/rep106.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 2; // ---------------------------------------------------------------- // $ Revision: 2.0 $ @@ -7,13 +16,13 @@ $page_security = 2; // date_: 2005-05-19 // Title: Order Status List // ---------------------------------------------------------------- -$path_to_root="../"; +$path_to_root=".."; -include_once($path_to_root . "includes/session.inc"); -include_once($path_to_root . "includes/date_functions.inc"); -include_once($path_to_root . "includes/data_checks.inc"); -include_once($path_to_root . "sales/includes/sales_db.inc"); -include_once($path_to_root . "inventory/includes/db/items_category_db.inc"); +include_once($path_to_root . "/includes/session.inc"); +include_once($path_to_root . "/includes/date_functions.inc"); +include_once($path_to_root . "/includes/data_checks.inc"); +include_once($path_to_root . "/sales/includes/sales_db.inc"); +include_once($path_to_root . "/inventory/includes/db/items_category_db.inc"); //---------------------------------------------------------------------------------------------------- @@ -51,7 +60,7 @@ function print_salesman_list() { global $path_to_root; - include_once($path_to_root . "reporting/includes/pdf_report.inc"); + include_once($path_to_root . "/reporting/includes/pdf_report.inc"); $from = $_POST['PARAM_0']; $to = $_POST['PARAM_1']; diff --git a/reporting/rep107.php b/reporting/rep107.php index 05b28c3f..f4e43cc0 100644 --- a/reporting/rep107.php +++ b/reporting/rep107.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 2; // ---------------------------------------------------------------- // $ Revision: 2.0 $ @@ -7,12 +16,12 @@ $page_security = 2; // date_: 2005-05-19 // Title: Print Invoices // ---------------------------------------------------------------- -$path_to_root="../"; +$path_to_root=".."; -include_once($path_to_root . "includes/session.inc"); -include_once($path_to_root . "includes/date_functions.inc"); -include_once($path_to_root . "includes/data_checks.inc"); -include_once($path_to_root . "sales/includes/sales_db.inc"); +include_once($path_to_root . "/includes/session.inc"); +include_once($path_to_root . "/includes/date_functions.inc"); +include_once($path_to_root . "/includes/data_checks.inc"); +include_once($path_to_root . "/sales/includes/sales_db.inc"); //---------------------------------------------------------------------------------------------------- @@ -25,7 +34,7 @@ function print_invoices() { global $path_to_root; - include_once($path_to_root . "reporting/includes/pdf_report.inc"); + include_once($path_to_root . "/reporting/includes/pdf_report.inc"); $from = $_POST['PARAM_0']; $to = $_POST['PARAM_1']; @@ -142,11 +151,11 @@ function print_invoices() $doctype = $j; if ($rep->currency != $myrow['curr_code']) { - include($path_to_root . "reporting/includes/doctext2.inc"); + include($path_to_root . "/reporting/includes/doctext2.inc"); } else { - include($path_to_root . "reporting/includes/doctext.inc"); + include($path_to_root . "/reporting/includes/doctext.inc"); } $rep->TextCol(3, 6, $doc_Sub_total, -2); diff --git a/reporting/rep108.php b/reporting/rep108.php index 4a5bb107..d7b06d5c 100644 --- a/reporting/rep108.php +++ b/reporting/rep108.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 2; // ---------------------------------------------------------------- // $ Revision: 2.0 $ @@ -7,12 +16,12 @@ $page_security = 2; // date_: 2005-05-19 // Title: Print Statements // ---------------------------------------------------------------- -$path_to_root="../"; +$path_to_root=".."; -include_once($path_to_root . "includes/session.inc"); -include_once($path_to_root . "includes/date_functions.inc"); -include_once($path_to_root . "includes/data_checks.inc"); -include_once($path_to_root . "sales/includes/sales_db.inc"); +include_once($path_to_root . "/includes/session.inc"); +include_once($path_to_root . "/includes/date_functions.inc"); +include_once($path_to_root . "/includes/data_checks.inc"); +include_once($path_to_root . "/sales/includes/sales_db.inc"); //---------------------------------------------------------------------------------------------------- @@ -43,7 +52,7 @@ function print_statements() { global $path_to_root; - include_once($path_to_root . "reporting/includes/pdf_report.inc"); + include_once($path_to_root . "/reporting/includes/pdf_report.inc"); $customer = $_POST['PARAM_0']; $currency = $_POST['PARAM_1']; @@ -107,11 +116,11 @@ function print_statements() $doctype = 12; if ($rep->currency != $myrow['curr_code']) { - include($path_to_root . "reporting/includes/doctext2.inc"); + include($path_to_root . "/reporting/includes/doctext2.inc"); } else { - include($path_to_root . "reporting/includes/doctext.inc"); + include($path_to_root . "/reporting/includes/doctext.inc"); } $rep->fontSize += 2; $rep->TextCol(0, 8, $doc_Outstanding); diff --git a/reporting/rep109.php b/reporting/rep109.php index 2a89aeeb..c93fe069 100644 --- a/reporting/rep109.php +++ b/reporting/rep109.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 2; // ---------------------------------------------------------------- // $ Revision: 2.0 $ @@ -7,12 +16,12 @@ $page_security = 2; // date_: 2005-05-19 // Title: Print Sales Orders // ---------------------------------------------------------------- -$path_to_root="../"; +$path_to_root=".."; -include_once($path_to_root . "includes/session.inc"); -include_once($path_to_root . "includes/date_functions.inc"); -include_once($path_to_root . "includes/data_checks.inc"); -include_once($path_to_root . "sales/includes/sales_db.inc"); +include_once($path_to_root . "/includes/session.inc"); +include_once($path_to_root . "/includes/date_functions.inc"); +include_once($path_to_root . "/includes/data_checks.inc"); +include_once($path_to_root . "/sales/includes/sales_db.inc"); //---------------------------------------------------------------------------------------------------- @@ -25,7 +34,7 @@ function print_sales_orders() { global $path_to_root, $print_as_quote; - include_once($path_to_root . "reporting/includes/pdf_report.inc"); + include_once($path_to_root . "/reporting/includes/pdf_report.inc"); $from = $_POST['PARAM_0']; $to = $_POST['PARAM_1']; @@ -126,11 +135,11 @@ function print_sales_orders() $doctype = 9; if ($rep->currency != $myrow['curr_code']) { - include($path_to_root . "reporting/includes/doctext2.inc"); + include($path_to_root . "/reporting/includes/doctext2.inc"); } else { - include($path_to_root . "reporting/includes/doctext.inc"); + include($path_to_root . "/reporting/includes/doctext.inc"); } $rep->TextCol(3, 6, $doc_Sub_total, -2); diff --git a/reporting/rep110.php b/reporting/rep110.php index 3ec50038..75ffe45b 100644 --- a/reporting/rep110.php +++ b/reporting/rep110.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 2; // ---------------------------------------------------------------- // $ Revision: 2.0 $ @@ -8,12 +17,12 @@ $page_security = 2; // Title: Print Delivery Notes // draft version! // ---------------------------------------------------------------- -$path_to_root="../"; +$path_to_root=".."; -include_once($path_to_root . "includes/session.inc"); -include_once($path_to_root . "includes/date_functions.inc"); -include_once($path_to_root . "includes/data_checks.inc"); -include_once($path_to_root . "sales/includes/sales_db.inc"); +include_once($path_to_root . "/includes/session.inc"); +include_once($path_to_root . "/includes/date_functions.inc"); +include_once($path_to_root . "/includes/data_checks.inc"); +include_once($path_to_root . "/sales/includes/sales_db.inc"); //---------------------------------------------------------------------------------------------------- @@ -26,7 +35,7 @@ function print_deliveries() { global $path_to_root; - include_once($path_to_root . "reporting/includes/pdf_report.inc"); + include_once($path_to_root . "/reporting/includes/pdf_report.inc"); $from = $_POST['PARAM_0']; $to = $_POST['PARAM_1']; @@ -121,11 +130,11 @@ function print_deliveries() $doctype=13; if ($rep->currency != $myrow['curr_code']) { - include($path_to_root . "reporting/includes/doctext2.inc"); + include($path_to_root . "/reporting/includes/doctext2.inc"); } else { - include($path_to_root . "reporting/includes/doctext.inc"); + include($path_to_root . "/reporting/includes/doctext.inc"); } $rep->TextCol(3, 6, $doc_Sub_total, -2); diff --git a/reporting/rep201.php b/reporting/rep201.php index 89169ce0..e0a882d0 100644 --- a/reporting/rep201.php +++ b/reporting/rep201.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 2; // ---------------------------------------------------------------- // $ Revision: 2.0 $ @@ -7,12 +16,12 @@ $page_security = 2; // date_: 2005-05-19 // Title: Supplier Balances // ---------------------------------------------------------------- -$path_to_root="../"; +$path_to_root=".."; -include_once($path_to_root . "includes/session.inc"); -include_once($path_to_root . "includes/date_functions.inc"); -include_once($path_to_root . "includes/data_checks.inc"); -include_once($path_to_root . "gl/includes/gl_db.inc"); +include_once($path_to_root . "/includes/session.inc"); +include_once($path_to_root . "/includes/date_functions.inc"); +include_once($path_to_root . "/includes/data_checks.inc"); +include_once($path_to_root . "/gl/includes/gl_db.inc"); //---------------------------------------------------------------------------------------------------- @@ -44,7 +53,7 @@ function print_supplier_balances() { global $path_to_root; - include_once($path_to_root . "reporting/includes/pdf_report.inc"); + include_once($path_to_root . "/reporting/includes/pdf_report.inc"); $to = $_POST['PARAM_0']; $fromsupp = $_POST['PARAM_1']; diff --git a/reporting/rep202.php b/reporting/rep202.php index ad720ecc..8e20018d 100644 --- a/reporting/rep202.php +++ b/reporting/rep202.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 2; // ---------------------------------------------------------------- // $ Revision: 2.0 $ @@ -7,12 +16,12 @@ $page_security = 2; // date_: 2005-05-19 // Title: Ages Supplier Analysis // ---------------------------------------------------------------- -$path_to_root="../"; +$path_to_root=".."; -include_once($path_to_root . "includes/session.inc"); -include_once($path_to_root . "includes/date_functions.inc"); -include_once($path_to_root . "includes/data_checks.inc"); -include_once($path_to_root . "gl/includes/gl_db.inc"); +include_once($path_to_root . "/includes/session.inc"); +include_once($path_to_root . "/includes/date_functions.inc"); +include_once($path_to_root . "/includes/data_checks.inc"); +include_once($path_to_root . "/gl/includes/gl_db.inc"); //---------------------------------------------------------------------------------------------------- @@ -61,7 +70,7 @@ function print_aged_supplier_analysis() { global $comp_path, $path_to_root; - include_once($path_to_root . "reporting/includes/pdf_report.inc"); + include_once($path_to_root . "/reporting/includes/pdf_report.inc"); $to = $_POST['PARAM_0']; $fromsupp = $_POST['PARAM_1']; @@ -71,7 +80,7 @@ function print_aged_supplier_analysis() $comments = $_POST['PARAM_5']; if ($graphics) { - include_once($path_to_root . "reporting/includes/class.graphic.inc"); + include_once($path_to_root . "/reporting/includes/class.graphic.inc"); $pg = new graph(); } @@ -218,7 +227,7 @@ function print_aged_supplier_analysis() $pg->type = $graphics; $pg->skin = $graph_skin; $pg->built_in = false; - $pg->fontfile = $path_to_root . "reporting/fonts/Vera.ttf"; + $pg->fontfile = $path_to_root . "/reporting/fonts/Vera.ttf"; $pg->latin_notation = ($decseps[$_SESSION["wa_current_user"]->prefs->dec_sep()] != "."); $filename = $comp_path.'/'.user_company(). "/pdf_files/test.png"; $pg->display($filename, true); diff --git a/reporting/rep203.php b/reporting/rep203.php index d69bf519..fbfe709b 100644 --- a/reporting/rep203.php +++ b/reporting/rep203.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 2; // ---------------------------------------------------------------- // $ Revision: 2.0 $ @@ -7,12 +16,12 @@ $page_security = 2; // date_: 2005-05-19 // Title: Payment Report // ---------------------------------------------------------------- -$path_to_root="../"; +$path_to_root=".."; -include_once($path_to_root . "includes/session.inc"); -include_once($path_to_root . "includes/date_functions.inc"); -include_once($path_to_root . "includes/data_checks.inc"); -include_once($path_to_root . "gl/includes/gl_db.inc"); +include_once($path_to_root . "/includes/session.inc"); +include_once($path_to_root . "/includes/date_functions.inc"); +include_once($path_to_root . "/includes/data_checks.inc"); +include_once($path_to_root . "/gl/includes/gl_db.inc"); //---------------------------------------------------------------------------------------------------- @@ -50,7 +59,7 @@ function print_payment_report() { global $path_to_root; - include_once($path_to_root . "reporting/includes/pdf_report.inc"); + include_once($path_to_root . "/reporting/includes/pdf_report.inc"); $to = $_POST['PARAM_0']; $fromsupp = $_POST['PARAM_1']; diff --git a/reporting/rep204.php b/reporting/rep204.php index e3d3dc5a..8f495ba6 100644 --- a/reporting/rep204.php +++ b/reporting/rep204.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 2; // ---------------------------------------------------------------- // $ Revision: 2.0 $ @@ -7,12 +16,12 @@ $page_security = 2; // date_: 2005-05-19 // Title: Outstanding GRNs Report // ---------------------------------------------------------------- -$path_to_root="../"; +$path_to_root=".."; -include_once($path_to_root . "includes/session.inc"); -include_once($path_to_root . "includes/date_functions.inc"); -include_once($path_to_root . "includes/data_checks.inc"); -include_once($path_to_root . "gl/includes/gl_db.inc"); +include_once($path_to_root . "/includes/session.inc"); +include_once($path_to_root . "/includes/date_functions.inc"); +include_once($path_to_root . "/includes/data_checks.inc"); +include_once($path_to_root . "/gl/includes/gl_db.inc"); //---------------------------------------------------------------------------------------------------- @@ -54,7 +63,7 @@ function print_outstanding_GRN() { global $path_to_root; - include_once($path_to_root . "reporting/includes/pdf_report.inc"); + include_once($path_to_root . "/reporting/includes/pdf_report.inc"); $fromsupp = $_POST['PARAM_0']; $comments = $_POST['PARAM_1']; diff --git a/reporting/rep209.php b/reporting/rep209.php index 41d0ca3d..4130124b 100644 --- a/reporting/rep209.php +++ b/reporting/rep209.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 2; // ---------------------------------------------------------------- // $ Revision: 2.0 $ @@ -7,12 +16,11 @@ $page_security = 2; // date_: 2005-05-19 // Title: Purchase Orders // ---------------------------------------------------------------- -$path_to_root="../"; +$path_to_root=".."; -include_once($path_to_root . "includes/session.inc"); -include_once($path_to_root . "includes/date_functions.inc"); -include_once($path_to_root . "includes/data_checks.inc"); -//include_once($path_to_root . "sales/includes/sales_db.inc"); +include_once($path_to_root . "/includes/session.inc"); +include_once($path_to_root . "/includes/date_functions.inc"); +include_once($path_to_root . "/includes/data_checks.inc"); //---------------------------------------------------------------------------------------------------- @@ -48,7 +56,7 @@ function print_po() { global $path_to_root; - include_once($path_to_root . "reporting/includes/pdf_report.inc"); + include_once($path_to_root . "/reporting/includes/pdf_report.inc"); $from = $_POST['PARAM_0']; $to = $_POST['PARAM_1']; @@ -145,11 +153,11 @@ function print_po() $doctype = 8; if ($rep->currency != $myrow['curr_code']) { - include($path_to_root . "reporting/includes/doctext2.inc"); + include($path_to_root . "/reporting/includes/doctext2.inc"); } else { - include($path_to_root . "reporting/includes/doctext.inc"); + include($path_to_root . "/reporting/includes/doctext.inc"); } $rep->TextCol(3, 6, $doc_Sub_total, -2); diff --git a/reporting/rep301.php b/reporting/rep301.php index a2801336..9e7c1af8 100644 --- a/reporting/rep301.php +++ b/reporting/rep301.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 2; // ---------------------------------------------------------------- // $ Revision: 2.0 $ @@ -7,13 +16,13 @@ $page_security = 2; // date_: 2005-05-19 // Title: Supplier Balances // ---------------------------------------------------------------- -$path_to_root="../"; +$path_to_root=".."; -include_once($path_to_root . "includes/session.inc"); -include_once($path_to_root . "includes/date_functions.inc"); -include_once($path_to_root . "includes/data_checks.inc"); -include_once($path_to_root . "gl/includes/gl_db.inc"); -include_once($path_to_root . "inventory/includes/db/items_category_db.inc"); +include_once($path_to_root . "/includes/session.inc"); +include_once($path_to_root . "/includes/date_functions.inc"); +include_once($path_to_root . "/includes/data_checks.inc"); +include_once($path_to_root . "/gl/includes/gl_db.inc"); +include_once($path_to_root . "/inventory/includes/db/items_category_db.inc"); //---------------------------------------------------------------------------------------------------- @@ -59,7 +68,7 @@ function print_inventory_valuation_report() { global $path_to_root; - include_once($path_to_root . "reporting/includes/pdf_report.inc"); + include_once($path_to_root . "/reporting/includes/pdf_report.inc"); $category = $_POST['PARAM_0']; $location = $_POST['PARAM_1']; diff --git a/reporting/rep302.php b/reporting/rep302.php index 68758cd4..9c00255e 100644 --- a/reporting/rep302.php +++ b/reporting/rep302.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 2; // ---------------------------------------------------------------- // $ Revision: 2.0 $ @@ -7,13 +16,13 @@ $page_security = 2; // date_: 2005-05-19 // Title: Inventory Planning // ---------------------------------------------------------------- -$path_to_root="../"; +$path_to_root=".."; -include_once($path_to_root . "includes/session.inc"); -include_once($path_to_root . "includes/date_functions.inc"); -include_once($path_to_root . "includes/data_checks.inc"); -include_once($path_to_root . "gl/includes/gl_db.inc"); -include_once($path_to_root . "inventory/includes/db/items_category_db.inc"); +include_once($path_to_root . "/includes/session.inc"); +include_once($path_to_root . "/includes/date_functions.inc"); +include_once($path_to_root . "/includes/data_checks.inc"); +include_once($path_to_root . "/gl/includes/gl_db.inc"); +include_once($path_to_root . "/inventory/includes/db/items_category_db.inc"); //---------------------------------------------------------------------------------------------------- @@ -138,7 +147,7 @@ function print_inventory_planning() { global $path_to_root; - include_once($path_to_root . "reporting/includes/pdf_report.inc"); + include_once($path_to_root . "/reporting/includes/pdf_report.inc"); $category = $_POST['PARAM_0']; $location = $_POST['PARAM_1']; diff --git a/reporting/rep303.php b/reporting/rep303.php index bc04f769..57a011ed 100644 --- a/reporting/rep303.php +++ b/reporting/rep303.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 2; // ---------------------------------------------------------------- // $ Revision: 2.0 $ @@ -7,13 +16,13 @@ $page_security = 2; // date_: 2005-05-19 // Title: Stock Check // ---------------------------------------------------------------- -$path_to_root="../"; +$path_to_root=".."; -include_once($path_to_root . "includes/session.inc"); -include_once($path_to_root . "includes/date_functions.inc"); -include_once($path_to_root . "includes/data_checks.inc"); -include_once($path_to_root . "gl/includes/gl_db.inc"); -include_once($path_to_root . "inventory/includes/db/items_category_db.inc"); +include_once($path_to_root . "/includes/session.inc"); +include_once($path_to_root . "/includes/date_functions.inc"); +include_once($path_to_root . "/includes/data_checks.inc"); +include_once($path_to_root . "/gl/includes/gl_db.inc"); +include_once($path_to_root . "/inventory/includes/db/items_category_db.inc"); //---------------------------------------------------------------------------------------------------- @@ -98,7 +107,7 @@ function print_stock_check() { global $comp_path, $path_to_root, $pic_height, $pic_width; - include_once($path_to_root . "reporting/includes/pdf_report.inc"); + include_once($path_to_root . "/reporting/includes/pdf_report.inc"); $category = $_POST['PARAM_0']; $location = $_POST['PARAM_1']; diff --git a/reporting/rep304.php b/reporting/rep304.php index a53a9215..f77251d1 100644 --- a/reporting/rep304.php +++ b/reporting/rep304.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 2; // ---------------------------------------------------------------- // $ Revision: 2.0 $ @@ -7,14 +16,14 @@ $page_security = 2; // date_: 2005-05-19 // Title: Inventory Planning // ---------------------------------------------------------------- -$path_to_root="../"; +$path_to_root=".."; -include_once($path_to_root . "includes/session.inc"); -include_once($path_to_root . "includes/date_functions.inc"); -include_once($path_to_root . "includes/data_checks.inc"); -include_once($path_to_root . "includes/banking.inc"); -include_once($path_to_root . "gl/includes/gl_db.inc"); -include_once($path_to_root . "inventory/includes/db/items_category_db.inc"); +include_once($path_to_root . "/includes/session.inc"); +include_once($path_to_root . "/includes/date_functions.inc"); +include_once($path_to_root . "/includes/data_checks.inc"); +include_once($path_to_root . "/includes/banking.inc"); +include_once($path_to_root . "/gl/includes/gl_db.inc"); +include_once($path_to_root . "/inventory/includes/db/items_category_db.inc"); //---------------------------------------------------------------------------------------------------- @@ -97,7 +106,7 @@ function print_inventory_sales() { global $path_to_root; - include_once($path_to_root . "reporting/includes/pdf_report.inc"); + include_once($path_to_root . "/reporting/includes/pdf_report.inc"); $from = $_POST['PARAM_0']; $to = $_POST['PARAM_1']; diff --git a/reporting/rep401.php b/reporting/rep401.php index 096952c7..29c89f72 100644 --- a/reporting/rep401.php +++ b/reporting/rep401.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 2; // ---------------------------------------------------------------- // $ Revision: 2.0 $ @@ -7,13 +16,13 @@ $page_security = 2; // date_: 2005-05-19 // Title: Bill Of Material // ---------------------------------------------------------------- -$path_to_root="../"; +$path_to_root=".."; -include_once($path_to_root . "includes/session.inc"); -include_once($path_to_root . "includes/date_functions.inc"); -include_once($path_to_root . "includes/data_checks.inc"); -include_once($path_to_root . "gl/includes/gl_db.inc"); -include_once($path_to_root . "inventory/includes/db/items_db.inc"); +include_once($path_to_root . "/includes/session.inc"); +include_once($path_to_root . "/includes/date_functions.inc"); +include_once($path_to_root . "/includes/data_checks.inc"); +include_once($path_to_root . "/gl/includes/gl_db.inc"); +include_once($path_to_root . "/inventory/includes/db/items_db.inc"); //---------------------------------------------------------------------------------------------------- @@ -47,7 +56,7 @@ function print_bill_of_material() { global $path_to_root; - include_once($path_to_root . "reporting/includes/pdf_report.inc"); + include_once($path_to_root . "/reporting/includes/pdf_report.inc"); $frompart = $_POST['PARAM_0']; $topart = $_POST['PARAM_1']; diff --git a/reporting/rep501.php b/reporting/rep501.php index d0c270f4..09d6203f 100644 --- a/reporting/rep501.php +++ b/reporting/rep501.php @@ -1,18 +1,27 @@ . +***********************************************************************/ $page_security = 2; // ---------------------------------------------------------------- // $ Revision: 2.0 $ // Creator: Joe Hunt // date_: 2005-05-19 -// Title: Bill Of Material +// Title: Dimension Summary // ---------------------------------------------------------------- -$path_to_root="../"; +$path_to_root=".."; -include_once($path_to_root . "includes/session.inc"); -include_once($path_to_root . "includes/date_functions.inc"); -include_once($path_to_root . "includes/data_checks.inc"); -include_once($path_to_root . "gl/includes/gl_db.inc"); +include_once($path_to_root . "/includes/session.inc"); +include_once($path_to_root . "/includes/date_functions.inc"); +include_once($path_to_root . "/includes/data_checks.inc"); +include_once($path_to_root . "/gl/includes/gl_db.inc"); //---------------------------------------------------------------------------------------------------- @@ -62,7 +71,7 @@ function print_dimension_summary() { global $path_to_root; - include_once($path_to_root . "reporting/includes/pdf_report.inc"); + include_once($path_to_root . "/reporting/includes/pdf_report.inc"); $fromdim = $_POST['PARAM_0']; $todim = $_POST['PARAM_1']; diff --git a/reporting/rep601.php b/reporting/rep601.php index a6a178b5..75206499 100644 --- a/reporting/rep601.php +++ b/reporting/rep601.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 2; // ---------------------------------------------------------------- // $ Revision: 2.0 $ @@ -7,12 +16,12 @@ $page_security = 2; // date_: 2005-05-19 // Title: Bank Accounts Transactions // ---------------------------------------------------------------- -$path_to_root="../"; +$path_to_root=".."; -include_once($path_to_root . "includes/session.inc"); -include_once($path_to_root . "includes/date_functions.inc"); -include_once($path_to_root . "includes/data_checks.inc"); -include_once($path_to_root . "gl/includes/gl_db.inc"); +include_once($path_to_root . "/includes/session.inc"); +include_once($path_to_root . "/includes/date_functions.inc"); +include_once($path_to_root . "/includes/data_checks.inc"); +include_once($path_to_root . "/gl/includes/gl_db.inc"); //---------------------------------------------------------------------------------------------------- @@ -48,7 +57,7 @@ function print_bank_transactions() { global $path_to_root; - include_once($path_to_root . "reporting/includes/pdf_report.inc"); + include_once($path_to_root . "/reporting/includes/pdf_report.inc"); $rep = new FrontReport(_('Bank Statement'), "BankStatement.pdf", user_pagesize()); diff --git a/reporting/rep701.php b/reporting/rep701.php index f01628f8..f1f11252 100644 --- a/reporting/rep701.php +++ b/reporting/rep701.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 2; // ---------------------------------------------------------------- // $ Revision: 2.0 $ @@ -7,12 +16,12 @@ $page_security = 2; // date_: 2005-05-19 // Title: Chart of GL Accounts // ---------------------------------------------------------------- -$path_to_root="../"; +$path_to_root=".."; -include_once($path_to_root . "includes/session.inc"); -include_once($path_to_root . "includes/date_functions.inc"); -include_once($path_to_root . "includes/data_checks.inc"); -include_once($path_to_root . "gl/includes/gl_db.inc"); +include_once($path_to_root . "/includes/session.inc"); +include_once($path_to_root . "/includes/date_functions.inc"); +include_once($path_to_root . "/includes/data_checks.inc"); +include_once($path_to_root . "/gl/includes/gl_db.inc"); //---------------------------------------------------------------------------------------------------- @@ -25,7 +34,7 @@ function print_Chart_of_Accounts() { global $path_to_root; - include_once($path_to_root . "reporting/includes/pdf_report.inc"); + include_once($path_to_root . "/reporting/includes/pdf_report.inc"); $showbalance = $_POST['PARAM_0']; $comments = $_POST['PARAM_1']; diff --git a/reporting/rep702.php b/reporting/rep702.php index 71afa149..841d4f2f 100644 --- a/reporting/rep702.php +++ b/reporting/rep702.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 2; // ---------------------------------------------------------------- // $ Revision: 2.0 $ @@ -7,13 +16,13 @@ $page_security = 2; // date_: 2005-05-19 // Title: List of Journal Entries // ---------------------------------------------------------------- -$path_to_root="../"; +$path_to_root=".."; -include_once($path_to_root . "includes/session.inc"); -include_once($path_to_root . "includes/date_functions.inc"); -include_once($path_to_root . "includes/data_checks.inc"); -include_once($path_to_root . "gl/includes/gl_db.inc"); -include_once($path_to_root . "includes/ui/ui_view.inc"); +include_once($path_to_root . "/includes/session.inc"); +include_once($path_to_root . "/includes/date_functions.inc"); +include_once($path_to_root . "/includes/data_checks.inc"); +include_once($path_to_root . "/gl/includes/gl_db.inc"); +include_once($path_to_root . "/includes/ui/ui_view.inc"); //---------------------------------------------------------------------------------------------------- @@ -26,7 +35,7 @@ function print_list_of_journal_entries() { global $path_to_root; - include_once($path_to_root . "reporting/includes/pdf_report.inc"); + include_once($path_to_root . "/reporting/includes/pdf_report.inc"); $from = $_POST['PARAM_0']; $to = $_POST['PARAM_1']; diff --git a/reporting/rep704.php b/reporting/rep704.php index 794b053a..b30262b3 100644 --- a/reporting/rep704.php +++ b/reporting/rep704.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 2; // ---------------------------------------------------------------- // $ Revision: 2.0 $ @@ -7,12 +16,12 @@ $page_security = 2; // date_: 2005-05-19 // Title: GL Accounts Transactions // ---------------------------------------------------------------- -$path_to_root="../"; +$path_to_root=".."; -include_once($path_to_root . "includes/session.inc"); -include_once($path_to_root . "includes/date_functions.inc"); -include_once($path_to_root . "includes/data_checks.inc"); -include_once($path_to_root . "gl/includes/gl_db.inc"); +include_once($path_to_root . "/includes/session.inc"); +include_once($path_to_root . "/includes/date_functions.inc"); +include_once($path_to_root . "/includes/data_checks.inc"); +include_once($path_to_root . "/gl/includes/gl_db.inc"); //---------------------------------------------------------------------------------------------------- @@ -25,7 +34,7 @@ function print_GL_transactions() { global $path_to_root; - include_once($path_to_root . "reporting/includes/pdf_report.inc"); + include_once($path_to_root . "/reporting/includes/pdf_report.inc"); $rep = new FrontReport(_('GL Account Transactions'), "GLAccountTransactions.pdf", user_pagesize()); $dim = get_company_pref('use_dimension'); diff --git a/reporting/rep705.php b/reporting/rep705.php index 86674fe3..c26a1ebb 100644 --- a/reporting/rep705.php +++ b/reporting/rep705.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 2; // ---------------------------------------------------------------- // $ Revision: 2.0 $ @@ -7,12 +16,12 @@ $page_security = 2; // date_: 2005-05-19 // Title: Annual expense breakdown // ---------------------------------------------------------------- -$path_to_root="../"; +$path_to_root=".."; -include_once($path_to_root . "includes/session.inc"); -include_once($path_to_root . "includes/date_functions.inc"); -include_once($path_to_root . "includes/data_checks.inc"); -include_once($path_to_root . "gl/includes/gl_db.inc"); +include_once($path_to_root . "/includes/session.inc"); +include_once($path_to_root . "/includes/date_functions.inc"); +include_once($path_to_root . "/includes/data_checks.inc"); +include_once($path_to_root . "/gl/includes/gl_db.inc"); //---------------------------------------------------------------------------------------------------- @@ -72,7 +81,7 @@ function print_annual_expense_breakdown() { global $path_to_root, $date_system; - include_once($path_to_root . "reporting/includes/pdf_report.inc"); + include_once($path_to_root . "/reporting/includes/pdf_report.inc"); $dim = get_company_pref('use_dimension'); $dimension = $dimension2 = 0; diff --git a/reporting/rep706.php b/reporting/rep706.php index 9917bf53..b936758b 100644 --- a/reporting/rep706.php +++ b/reporting/rep706.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 2; // ---------------------------------------------------------------- // $ Revision: 2.0 $ @@ -7,12 +16,12 @@ $page_security = 2; // date_: 2005-05-19 // Title: Balance Sheet // ---------------------------------------------------------------- -$path_to_root="../"; +$path_to_root=".."; -include_once($path_to_root . "includes/session.inc"); -include_once($path_to_root . "includes/date_functions.inc"); -include_once($path_to_root . "includes/data_checks.inc"); -include_once($path_to_root . "gl/includes/gl_db.inc"); +include_once($path_to_root . "/includes/session.inc"); +include_once($path_to_root . "/includes/date_functions.inc"); +include_once($path_to_root . "/includes/data_checks.inc"); +include_once($path_to_root . "/gl/includes/gl_db.inc"); //---------------------------------------------------------------------------------------------------- @@ -26,7 +35,7 @@ function print_balance_sheet() { global $comp_path, $path_to_root; - include_once($path_to_root . "reporting/includes/pdf_report.inc"); + include_once($path_to_root . "/reporting/includes/pdf_report.inc"); $dim = get_company_pref('use_dimension'); $dimension = $dimension2 = 0; @@ -52,7 +61,7 @@ function print_balance_sheet() } if ($graphics) { - include_once($path_to_root . "reporting/includes/class.graphic.inc"); + include_once($path_to_root . "/reporting/includes/class.graphic.inc"); $pg = new graph(); } $dec = 0; @@ -258,7 +267,7 @@ function print_balance_sheet() $pg->type = $graphics; $pg->skin = $graph_skin; $pg->built_in = false; - $pg->fontfile = $path_to_root . "reporting/fonts/Vera.ttf"; + $pg->fontfile = $path_to_root . "/reporting/fonts/Vera.ttf"; $pg->latin_notation = ($decseps[$_SESSION["wa_current_user"]->prefs->dec_sep()] != "."); $filename = $comp_path.'/'.user_company()."/pdf_files/test.png"; $pg->display($filename, true); diff --git a/reporting/rep707.php b/reporting/rep707.php index 9d2f0d2c..30e1d561 100644 --- a/reporting/rep707.php +++ b/reporting/rep707.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 2; // ---------------------------------------------------------------- // $ Revision: 2.0 $ @@ -7,12 +16,12 @@ $page_security = 2; // date_: 2005-05-19 // Title: Profit and Loss Statement // ---------------------------------------------------------------- -$path_to_root="../"; +$path_to_root=".."; -include_once($path_to_root . "includes/session.inc"); -include_once($path_to_root . "includes/date_functions.inc"); -include_once($path_to_root . "includes/data_checks.inc"); -include_once($path_to_root . "gl/includes/gl_db.inc"); +include_once($path_to_root . "/includes/session.inc"); +include_once($path_to_root . "/includes/date_functions.inc"); +include_once($path_to_root . "/includes/data_checks.inc"); +include_once($path_to_root . "/gl/includes/gl_db.inc"); //---------------------------------------------------------------------------------------------------- @@ -39,7 +48,7 @@ function print_profit_and_loss_statement() { global $comp_path, $path_to_root; - include_once($path_to_root . "reporting/includes/pdf_report.inc"); + include_once($path_to_root . "/reporting/includes/pdf_report.inc"); $dim = get_company_pref('use_dimension'); $dimension = $dimension2 = 0; @@ -66,7 +75,7 @@ function print_profit_and_loss_statement() } if ($graphics) { - include_once($path_to_root . "reporting/includes/class.graphic.inc"); + include_once($path_to_root . "/reporting/includes/class.graphic.inc"); $pg = new graph(); } $dec = 0; @@ -293,7 +302,7 @@ function print_profit_and_loss_statement() $pg->type = $graphics; $pg->skin = $graph_skin; $pg->built_in = false; - $pg->fontfile = $path_to_root . "reporting/fonts/Vera.ttf"; + $pg->fontfile = $path_to_root . "/reporting/fonts/Vera.ttf"; $pg->latin_notation = ($decseps[$_SESSION["wa_current_user"]->prefs->dec_sep()] != "."); $filename = $comp_path.'/'.user_company(). "/pdf_files/test.png"; $pg->display($filename, true); diff --git a/reporting/rep708.php b/reporting/rep708.php index 97d2d95d..7f9fa243 100644 --- a/reporting/rep708.php +++ b/reporting/rep708.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 2; // ---------------------------------------------------------------- // $ Revision: 2.0 $ @@ -7,12 +16,12 @@ $page_security = 2; // date_: 2005-05-19 // Title: Trial Balance // ---------------------------------------------------------------- -$path_to_root="../"; +$path_to_root=".."; -include_once($path_to_root . "includes/session.inc"); -include_once($path_to_root . "includes/date_functions.inc"); -include_once($path_to_root . "includes/data_checks.inc"); -include_once($path_to_root . "gl/includes/gl_db.inc"); +include_once($path_to_root . "/includes/session.inc"); +include_once($path_to_root . "/includes/date_functions.inc"); +include_once($path_to_root . "/includes/data_checks.inc"); +include_once($path_to_root . "/gl/includes/gl_db.inc"); //---------------------------------------------------------------------------------------------------- @@ -55,7 +64,7 @@ function print_trial_balance() { global $path_to_root; - include_once($path_to_root . "reporting/includes/pdf_report.inc"); + include_once($path_to_root . "/reporting/includes/pdf_report.inc"); $dim = get_company_pref('use_dimension'); $dimension = $dimension2 = 0; diff --git a/reporting/rep709.php b/reporting/rep709.php index 471343dc..4ea86e29 100644 --- a/reporting/rep709.php +++ b/reporting/rep709.php @@ -16,12 +16,12 @@ $page_security = 2; // date_: 2005-05-19 // Title: Tax Report // ---------------------------------------------------------------- -$path_to_root="../"; +$path_to_root=".."; -include_once($path_to_root . "includes/session.inc"); -include_once($path_to_root . "includes/date_functions.inc"); -include_once($path_to_root . "includes/data_checks.inc"); -include_once($path_to_root . "gl/includes/gl_db.inc"); +include_once($path_to_root . "/includes/session.inc"); +include_once($path_to_root . "/includes/date_functions.inc"); +include_once($path_to_root . "/includes/data_checks.inc"); +include_once($path_to_root . "/gl/includes/gl_db.inc"); //---------------------------------------------------------------------------------------------------- @@ -162,7 +162,7 @@ function print_tax_report() { global $path_to_root; - include_once($path_to_root . "reporting/includes/pdf_report.inc"); + include_once($path_to_root . "/reporting/includes/pdf_report.inc"); $rep = new FrontReport(_('Tax Report'), "TaxReport.pdf", user_pagesize()); @@ -462,7 +462,7 @@ function print_tax_report() $rep->Line($rep->row - 4); - $locale = $path_to_root . "lang/" . $_SESSION['language']->code . "/locale.inc"; + $locale = $path_to_root . "/lang/" . $_SESSION['language']->code . "/locale.inc"; if (file_exists($locale)) { $taxinclude = true; diff --git a/reporting/reports_main.php b/reporting/reports_main.php index 6e215c46..83fca3b5 100644 --- a/reporting/reports_main.php +++ b/reporting/reports_main.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $path_to_root=".."; $page_security = 5; include_once($path_to_root . "/includes/session.inc"); -- 2.30.2