From bc2159e29e2186ac6c2b5d034fe6228a5c6e77f5 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Thu, 18 Nov 2010 00:49:53 +0000 Subject: [PATCH] Scrambled graphic images to avoid unwanted downloads. --- CHANGELOG.txt | 7 +++++++ reporting/rep102.php | 2 +- reporting/rep202.php | 2 +- reporting/rep706.php | 2 +- reporting/rep707.php | 2 +- 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index fd4db12f..d5e23057 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -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 diff --git a/reporting/rep102.php b/reporting/rep102.php index 2daae18d..04a55fae 100644 --- a/reporting/rep102.php +++ b/reporting/rep102.php @@ -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; diff --git a/reporting/rep202.php b/reporting/rep202.php index c77b657b..2eb27559 100644 --- a/reporting/rep202.php +++ b/reporting/rep202.php @@ -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; diff --git a/reporting/rep706.php b/reporting/rep706.php index ef975869..8a0e4d45 100644 --- a/reporting/rep706.php +++ b/reporting/rep706.php @@ -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; diff --git a/reporting/rep707.php b/reporting/rep707.php index 68b62694..211e504f 100644 --- a/reporting/rep707.php +++ b/reporting/rep707.php @@ -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; -- 2.30.2