private function enregistrerSession() { require_once 'modele/SessionSurf.php'; require_once 'modele/Membre.php'; $sessionSurf = new SessionSurf($this->proposition); $sessionSurf->setOrganisateur($_SESSION['Membre']); $manager = new SessionSurfsManager(null); $manager->ajoutSession($sessionSurf, $this->proposition['nomSpot'], $this->proposition['noVeh'], $this->proposition['nbrPlacesDispo'], $this->proposition['nbrPlanchesDispo']); $this->response_status = 1; $this->response_html = '<p>Ok, Proposition enregistrée! Go to surf !!! Recharges la page pour voir apparaitre dans la section je cherche ta proposition</p>'; $sessionSurfEnBase = $manager->loadComplet($sessionSurf->noSes()); require_once 'template.php'; ob_start(); ecrireJeChercheSection(); $this->response_JeChercheSection = ob_get_contents(); ob_end_clean(); }
$propose_form = new Propose_Form($_REQUEST); $propose_form->sendRequest(); break; case 'connection': require_once 'auth.php'; $auth_form = new Auth_Form($_REQUEST); $auth_form->sendRequest(); break; case 'deconnection': require_once 'auth.php'; deconnect(); break; case 'inscription': require_once 'inscription.php'; $insc_form = new Inscription_Form($_REQUEST); $insc_form->sendRequest(); break; default: } } else { ecrireHead(); ecrireSlider(); ecrireNav(); ecrireJeChercheSection(); ecrireJeProposeSection(); // section CV $tabCreateur = Createur::getCreateurArray(); ecrireCreateurs($tabCreateur); // fin section CV ecrireFooter(); }