Changed $path_to_root and stamped copyright
[fa-stable.git] / reporting / rep707.php
index 9d2f0d2c9f2e44c8090dcd4430b657abdc5c61e9..30e1d5616f5b4d40e4389c193f0f3c007b306faa 100644 (file)
@@ -1,5 +1,14 @@
 <?php
-
+/**********************************************************************
+    Copyright (C) FrontAccounting, LLC.
+       Released under the terms of the GNU Affero General Public License,
+       AGPL, as published by the Free Software Foundation, either version 
+       3 of the License, or (at your option) any later version.
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
+    See the License here <http://www.gnu.org/licenses/agpl-3.0.html>.
+***********************************************************************/
 $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);