diff --git a/dev/SQL/index.php b/dev/SQL/index.php index e3c24d2b9..ded83e800 100644 --- a/dev/SQL/index.php +++ b/dev/SQL/index.php @@ -11,11 +11,13 @@ const ACCOUNT_DB=2; require NOALYSS_INCLUDE."/lib/class_database.php"; require NOALYSS_INCLUDE."/lib/class_iselect.php"; +require NOALYSS_INCLUDE."/lib/class_http_input.php"; require './table_sql.class.php'; // Show a db connection -$gDossier=HtmlInput::default_value_request('gDossier',-1); + +$gDossier=$http->request('gDossier',"string",-1); $select = new ISelect('gDossier'); $select->row=20; $acc=new Database(); @@ -57,7 +59,7 @@ $table_sql = "select schemaname ||','||tablename,tablename||','||schemaname from $select_table = new ISelect('table'); $select_table->row=20; $select_table->value=$cn->make_array($table_sql); -$select_table->selected = HtmlInput::default_value_request("table", ""); +$select_table->selected = $http->request("table","string", ""); ?>
'; if ( $request_sa == 'del') { $op=new Pre_operation($cn); - $op->od_id=HtmlInput::default_value_request('od_id',-1); + $http=new HttpInput(); + $op->od_id=$http->request('od_id',"string",-1); if (isNumber($op->od_id)==1 && $op->od_id != -1 ) { $op->delete(); diff --git a/include/recover.php b/include/recover.php index e3e413cbc..d197edb91 100644 --- a/include/recover.php +++ b/include/recover.php @@ -136,7 +136,8 @@ EOF; L\'email a été envoyé avec un lien et le nouveau mot de passe, vérifiez vos spams'; endif; elseif ($action=="req") : - $request_id=HtmlInput::default_value_request("req", ""); + $http=new HttpInput(); + $request_id=$http->request("req","string", ""); if (strlen(trim($request_id))==SIZE_REQUEST) : require_once NOALYSS_INCLUDE.'/lib/class_database.php'; $cn=new Database(0); diff --git a/include/template/anc_key_input.php b/include/template/anc_key_input.php index a4916dbf4..b1f71cb08 100644 --- a/include/template/anc_key_input.php +++ b/include/template/anc_key_input.php @@ -27,8 +27,9 @@ echo HtmlInput::request_to_hidden(array('gDossier', 'ac')); echo HtmlInput::hidden('op','consult'); echo HtmlInput::hidden('key', $this->key->getp('id')); - $name=HtmlInput::default_value_post("name_key",$this->key->getp('name')); - $description_text=HtmlInput::default_value_post("description_key",$this->key->getp('description')); + $http=new HttpInput(); + $name=$http->post("name_key","string",$this->key->getp('name')); + $description_text=$http->post("description_key","string",$this->key->getp('description')); ?>