Index: trunk/fundraiser-statistics/reporting/donor_history_proc.php |
— | — | @@ -9,7 +9,11 @@ |
10 | 10 | // Authenticate form |
11 | 11 | $pwd_key=$_POST["pwd"]; |
12 | 12 | |
13 | | -if ($pwd_key != "angelface") { |
| 13 | +// extract the private the passkey |
| 14 | +$key_string = file_get_contents ("keys.txt"); |
| 15 | +$key_string = trim($key_string); |
| 16 | + |
| 17 | +if ($pwd_key != $key_string) { |
14 | 18 | $message = "Invalid Key.\n"; |
15 | 19 | die($message); |
16 | 20 | } |
Index: trunk/fundraiser-statistics/reporting/compare_test.php |
— | — | @@ -9,7 +9,11 @@ |
10 | 10 | // Authenticate form |
11 | 11 | $pwd_key=$_POST["pwd"]; |
12 | 12 | |
13 | | -if ($pwd_key != "angelface") { |
| 13 | +// extract the private the passkey |
| 14 | +$key_string = file_get_contents ("keys.txt"); |
| 15 | +$key_string = trim($key_string); |
| 16 | + |
| 17 | +if ($pwd_key != $key_string) { |
14 | 18 | $message = "Invalid Key.\n"; |
15 | 19 | die($message); |
16 | 20 | } |
Index: trunk/fundraiser-statistics/reporting/banner_test_proc.php |
— | — | @@ -9,7 +9,11 @@ |
10 | 10 | // Authenticate form |
11 | 11 | $pwd_key=$_POST["pwd"]; |
12 | 12 | |
13 | | -if ($pwd_key != "angelface") { |
| 13 | +// extract the private the passkey |
| 14 | +$key_string = file_get_contents ("keys.txt"); |
| 15 | +$key_string = trim($key_string); |
| 16 | + |
| 17 | +if ($pwd_key != $key_string) { |
14 | 18 | $message = "Invalid Key.\n"; |
15 | 19 | die($message); |
16 | 20 | } |
— | — | @@ -49,7 +53,7 @@ |
50 | 54 | $query = sprintf($query, $start, $end, $cmpgn, $start, $end, $cmpgn); |
51 | 55 | } elseif ($sql_file == "landing_page_test_by_hour.sql") { |
52 | 56 | $query = sprintf($query, "%", "%", "%", "%", $start, $end, $cmpgn, "%", "%", "%", "%", $start, $end, $cmpgn); |
53 | | -} elseif ($sql_file == "ecomm_test.sql") { |
| 57 | +} elseif ($sql_file == "ecomm_test.sql" || $sql_file == "ecomm_test_by_banner.sql" || $sql_file == "ecomm_test_by_lp.sql") { |
54 | 58 | $query = sprintf($query, $start, $end, $cmpgn); |
55 | 59 | } elseif ($sql_file == "ecomm_test_by_hour.sql") { |
56 | 60 | $query = sprintf($query, "%", "%", "%", "%", $start, $end, $cmpgn); |
Index: trunk/fundraiser-statistics/reporting/custom_campaign_plot.php |
— | — | @@ -10,7 +10,11 @@ |
11 | 11 | // Authenticate form |
12 | 12 | $pwd_key=$_POST["pwd"]; |
13 | 13 | |
14 | | -if ($pwd_key != "angelface") { |
| 14 | +// extract the private the passkey |
| 15 | +$key_string = file_get_contents ("keys.txt"); |
| 16 | +$key_string = trim($key_string); |
| 17 | + |
| 18 | +if ($pwd_key != $key_string) { |
15 | 19 | $message = "Invalid Key.\n"; |
16 | 20 | die($message); |
17 | 21 | } |