Scrambled graphic images to avoid unwanted downloads.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 18 Nov 2010 00:49:53 +0000 (00:49 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 18 Nov 2010 00:49:53 +0000 (00:49 +0000)
CHANGELOG.txt
reporting/rep102.php
reporting/rep202.php
reporting/rep706.php
reporting/rep707.php

index fd4db12fbd1213852a5cb906b29384f94ae5a493..d5e230574531f2586013cc6e9f453b87ca27d1fd 100644 (file)
@@ -19,6 +19,13 @@ Legend:
 ! -> Note
 $ -> Affected files
 
+18-Nov-2010 Joe Hunt
+! Scrambled graphic images to avoid unwanted downloads.
+$ /reporting/rep102.php
+  /reporting/rep202.php
+  /reporting/rep706.php
+  /reporting/rep707.php
+  
 16-Nov-2010 Joe Hunt
 # Minor change in class.graphic.inc
 $ /reporting/includes/class.graphic.inc
index 2daae18d0406c6846f44e9e2fdfc88228b602562..04a55faebea09157ff21fec6d1d998803e841c27 100644 (file)
@@ -231,7 +231,7 @@ function print_aged_customer_analysis()
                $pg->skin      = $graph_skin;
                $pg->built_in  = false;
                $pg->latin_notation = ($decseps[$_SESSION["wa_current_user"]->prefs->dec_sep()] != ".");
-               $filename = company_path(). "/images/test.png";
+               $filename = company_path(). "/pdf_files/". uniqid("").".png";
                $pg->display($filename, true);
                $w = $pg->width / 1.5;
                $h = $pg->height / 1.5;
index c77b657b89e1b021fe658b06c778f479e7419378..2eb27559689efe240c53f395c0a60089ea79f773 100644 (file)
@@ -237,7 +237,7 @@ function print_aged_supplier_analysis()
                $pg->skin      = $graph_skin;
                $pg->built_in  = false;
                $pg->latin_notation = ($decseps[$_SESSION["wa_current_user"]->prefs->dec_sep()] != ".");
-               $filename = company_path(). "/pdf_files/test.png";
+               $filename = company_path(). "/pdf_files/". uniqid("").".png";
                $pg->display($filename, true);
                $w = $pg->width / 1.5;
                $h = $pg->height / 1.5;
index ef975869b821ddbfee174542a1f2ac7b1fcf0cba..8a0e4d459c60bdac2f50db7607a3490781c8842a 100644 (file)
@@ -307,7 +307,7 @@ function print_balance_sheet()
                $pg->skin      = $graph_skin;
                $pg->built_in  = false;
                $pg->latin_notation = ($decseps[$_SESSION["wa_current_user"]->prefs->dec_sep()] != ".");
-               $filename = company_path(). "/pdf_files/test.png";
+               $filename = company_path(). "/pdf_files/". uniqid("").".png";
                $pg->display($filename, true);
                $w = $pg->width / 1.5;
                $h = $pg->height / 1.5;
index 68b62694944c0f2928156c88b612523851a4c25b..211e504fe473aa04a68eca5a7cd2d4de2f09d60a 100644 (file)
@@ -325,7 +325,7 @@ function print_profit_and_loss_statement()
                $pg->skin      = $graph_skin;
                $pg->built_in  = false;
                $pg->latin_notation = ($decseps[$_SESSION["wa_current_user"]->prefs->dec_sep()] != ".");
-               $filename = company_path(). "/pdf_files/test.png";
+               $filename = company_path(). "/pdf_files/". uniqid("").".png";
                $pg->display($filename, true);
                $w = $pg->width / 1.5;
                $h = $pg->height / 1.5;