From c6374c16218ff8e57b215f2def41c71194d1c3f1 Mon Sep 17 00:00:00 2001
From: prashantsinalkar
Date: Mon, 18 Jan 2016 17:53:57 +0530
Subject: done minoer changes
---
unsubscribe.php | 23 ++++++++++-------------
1 file changed, 10 insertions(+), 13 deletions(-)
diff --git a/unsubscribe.php b/unsubscribe.php
index 7cb961c..292747d 100755
--- a/unsubscribe.php
+++ b/unsubscribe.php
@@ -1,3 +1,4 @@
+
prepare($sql);
@@ -28,12 +29,9 @@ ini_set('display_errors', 1);
{
foreach ($data as $row)
{
- if ($data != NULL)
- {
- switch ($event)
- {
-
- case 'scipy 2015':
+
+ if($event=='scipy 2015')
+ {
if ($row['unsubscribe'] == 0 && $row['email_hash'] == $email_id_hash)
{
$sql_up = "UPDATE sent_email SET unsubscribe = 1 WHERE email_hash =:email_id_hash ";
@@ -57,8 +55,7 @@ ini_set('display_errors', 1);
echo '
If you are not automatically redirected, click here: SciPy India 2015.';
header('Refresh: 3; URL=http://scipy.in');
}
- break;
- case 'cfd-openfoam-symposium 2016':
+ }elseif($event=='cfd-openfoam-symposium-2016'){
if ($row['unsubscribe'] == 0 && $row['email_hash'] == $email_id_hash)
{
$sql_up = "UPDATE sent_email SET unsubscribe = 1 WHERE email_hash =:email_id_hash";
@@ -82,14 +79,14 @@ ini_set('display_errors', 1);
echo '
If you are not automatically redirected, click here: OpenFOAM Symposium 2016.';
header('Refresh: 3; URL=http://fossee.in/conference/cfd-symposium/');
}
- break;
- }
- }
- else
+ }else
{
echo "Wrong Link please try again";
header('Refresh: 3; URL=http://fossee.in');
}
+
+
+
}
}
}
--
cgit