Hacked By AnonymousFox

Current Path : /home/missmand/public_html/learning/lib/class/
Upload File :
Current File : /home/missmand/public_html/learning/lib/class/Recherche.class.php

<?php

	class Recherche {

		/* Récupération du formulaire*/
		public static function postRecherche($prefix){

			foreach ($_POST as $key => $value) {
				if($key != "addRecherche")
					$_SESSION[$prefix.'_'.$key] = $value;
			}

		}

		/* Compléter la session pour garder la recherche en mémoire */
		public static function getRecherche($prefix, $recherche){

			$return = array();

			foreach ($recherche as $value) {
				if(isset($_SESSION[$prefix.'_'.$value])){
					$$value = $_SESSION[$prefix.'_'.$value];
					$return[$value] = $$value;
				}else{
					$return[$value] = '';
				}
					
			}

			return $return;

		}

	}

?>

Hacked By AnonymousFox1.0, Coded By AnonymousFox