From 4cdafba7a287af869917152b5ff3704fbbd3f45f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Garci=CC=81a=20de=20La=20Fuente?= Date: Sun, 5 Jan 2014 18:49:49 +0100 Subject: [PATCH] =?UTF-8?q?Removed=20=E2=80=9Corigin=E2=80=9D=20input=20us?= =?UTF-8?q?e=20in=20poll=20creation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/opensurvey/public/create_survey.php | 7 ++----- htdocs/opensurvey/public/index.php | 5 +---- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/htdocs/opensurvey/public/create_survey.php b/htdocs/opensurvey/public/create_survey.php index 3cf7aea6a74..e9df55effd8 100644 --- a/htdocs/opensurvey/public/create_survey.php +++ b/htdocs/opensurvey/public/create_survey.php @@ -29,8 +29,6 @@ require_once(DOL_DOCUMENT_ROOT."/opensurvey/fonctions.php"); $langs->load("opensurvey"); -$origin=GETPOST('origin','alpha'); - // On teste toutes les variables pour supprimer l'ensemble des warnings PHP // On transforme en entites html les données afin éviter les failles XSS @@ -107,13 +105,13 @@ if (GETPOST("creation_sondage_date") || GETPOST("creation_sondage_autre")) { if (! empty($creation_sondage_date)) { - header("Location: choix_date.php".($origin?'?origin='.$origin:'')); + header("Location: choix_date.php"); exit(); } if (! empty($creation_sondage_autre)) { - header("Location: choix_autre.php".($origin?'?origin='.$origin:'')); + header("Location: choix_autre.php"); exit(); } } @@ -136,7 +134,6 @@ print_fiche_titre($langs->trans("CreatePoll").' (1 / 2)'); //debut du formulaire print '
'."\n"; -print ''; print '
'."\n"; diff --git a/htdocs/opensurvey/public/index.php b/htdocs/opensurvey/public/index.php index cc4693c76a3..80bf73707d0 100644 --- a/htdocs/opensurvey/public/index.php +++ b/htdocs/opensurvey/public/index.php @@ -28,8 +28,6 @@ require_once(DOL_DOCUMENT_ROOT."/core/lib/admin.lib.php"); require_once(DOL_DOCUMENT_ROOT."/core/lib/files.lib.php"); require_once(DOL_DOCUMENT_ROOT."/opensurvey/fonctions.php"); -$origin=GETPOST('origin','alpha'); - $langs->load("opensurvey"); @@ -42,8 +40,7 @@ $arrayofcss=array('/opensurvey/css/style.css'); llxHeader('', $langs->trans("OpenSurvey"), "", 0, 0, $arrayofjs, $arrayofcss); print '
- -'; +'; print '

'.$langs->trans("OrganizeYourMeetingEasily").'