diff --git a/admin/deactivate.php b/admin/deactivate.php index 0dc6c8cab0b..b534459b255 100644 --- a/admin/deactivate.php +++ b/admin/deactivate.php @@ -35,44 +35,64 @@ */ $date = date(YmdHi); //'Hi' adds 24hours+minutes to name to allow multiple deactiviations in a day -if (!$ok) +if (!$_GET['ok']) { - - echo "
$setfont";
- echo ":WARNING: READ THIS CAREFULLY BEFORE PROCEEDING |
$setfont";
- echo "In an active survey, a table is created to store all the data-entry records.";
- echo " When you de-activate a survey all the data entered in the original table will "; - echo "be moved elsewhere, and when you activate the survey again, the table will be empty. "; - echo "If you click on OK below, your survey will be de-activated, and all the data in the "; - echo "existing table will be moved to a new table name called old_{$sid}_{$date} "; - echo "and the existing table survey_{$sid} will no longer exist. "; - echo "De-activated survey data can only be accessed by system administrators using a MySQL "; - echo "data access tool like phpmyadmin. "; - echo "The point we are trying to make here is... DON'T DO THIS IF YOU ARE UNSURE."; - echo " |
";
- echo " \n"; - echo ""; - echo " |
\n";
+ echo "\t\t\t$setfont";
+ echo ":WARNING: READ THIS CAREFULLY BEFORE PROCEEDING"; + echo "\t\t | \n";
+ echo "\t
\n";
+ echo "\t\t\t{$setfont}In an active survey, a table is created to store all the data-entry records.\n";
+ echo "\t\t\t When you de-activate a survey all the data entered in the original table will \n"; + echo "\t\t\tbe moved elsewhere, and when you activate the survey again, the table will be empty. \n"; + echo "\t\t\tIf you click on OK below, your survey will be de-activated, and all the data in the \n"; + echo "\t\t\texisting table will be moved to a new table name called old_{$_GET['sid']}_{$date} \n"; + echo "\t\t\tand the existing table survey_{$_GET['sid']} will no longer exist. \n"; + echo "\t\t\tDe-activated survey data can only be accessed by system administrators using a MySQL \n"; + echo "\t\t\tdata access tool like phpmyadmin. \n"; + echo "\t\t\tThe point we are trying to make here is... DON'T DO THIS IF YOU ARE UNSURE.\n"; + echo "\t\t | \n";
+ echo "\t
\n";
+ echo "\t\t\t \n"; + echo "\t\t\t\n"; + echo "\t\t | \n";
+ echo "\t
$setfont"; - echo "Survey Has Been De-Activated |
The survey named $oldtable has been renamed to ";
- echo "$newtable and is now no longer accessible using the Surveyor scripts. "; - echo "You should write down the name of this table and keep it somewhere safe "; - echo "in case you ever need to access this information again. Or, in case you "; - echo "want your system administrator to completely delete the old table."; - echo " |
\n"; - echo " |
\n"; + echo "\t\t\t$setfontSurvey Has Been De-Activated\n"; + echo "\t\t | \n"; + echo "\t
\n";
+ echo "\t\t\tThe survey named $oldtable has been renamed to \n";
+ echo "\t\t\t$newtable and is now no longer accessible using the PHPSurveyor scripts.\n";
+ echo "\t\t\t You should write down the name of this table and keep it somewhere safe \n"; + echo "\t\t\tin case you ever need to access this information again. Or, in case you \n"; + echo "\t\t\twant your system administrator to completely delete the old table. \n"; + echo "\t\t | \n";
+ echo "\t
\n"; + echo "\t\t\t\n"; + echo "\t\t | \n"; + echo "\t