Exemplo n.º 1
0
 /**
  * Logs the user out
  *
  */
 public function logout()
 {
     Session::destroy();
     /* Clear all sessions set for this project */
     Url::redirect("http://something.sellerstam.mebokund.com/", true);
     /* Goes back to the home page */
 }
Exemplo n.º 2
0
 public function action_logout()
 {
     if (!$this->userRequired()) {
         return;
     }
     Session::destroy();
     $this->redirect(FRONT_CONTROLLER . '/user/login');
 }
Exemplo n.º 3
0
 public function loguit()
 {
     //Unset de sessions.
     \Helpers\Session::destroy('username');
     \Helpers\Session::destroy('id');
     \Helpers\Session::destroy('rechten');
     //Stuurt je door naar de homepagina.
     \Helpers\Url::redirect('home');
 }
Exemplo n.º 4
0
 public function logout()
 {
     Session::destroy('loggedin');
     Session::destroy('id');
     Session::destroy('login');
     setcookie("remember", "", time() - 10000, DIR);
     Session::set('message', 'Vous avez bien été déconnecté');
     Session::set('message_type', 'alert-success');
     Url::redirect();
 }
 public function post($slug)
 {
     //Checkt of de aangemaakt url matched aan één van de url's in de database.
     $check = $this->registreren->validateUser($slug);
     if (count($check) == 1) {
         //Als er een gebruiker gelinkt is word het account geactiveerd.
         \Helpers\Session::destroy('checkmail');
         $this->registreren->givePrivilage($check[0]->klant_id);
     }
     //Linkt je naar de succes pagina.
     \Helpers\Url::redirect('activatie');
 }
Exemplo n.º 6
0
 public function handleSearch($post)
 {
     if (isset($post['search_submit'])) {
         $search = $this->runSearch($post['search_username']);
         if (is_array($search)) {
             Session::set('search_results', $search);
         } else {
             Session::destroy('search_results');
             Session::set('search_message', $search);
             if ($search == 0) {
                 Session::set('search_message', 'no results');
             }
         }
     }
     //return $data;
 }
Exemplo n.º 7
0
 public function logout()
 {
     Session::destroy();
     Url::redirect('admin/login');
 }
 public function logout()
 {
     Session::destroy();
     Url::redirect();
 }
Exemplo n.º 9
0
 public function logout()
 {
     Session::destroy('user');
     Session::destroy('user_id');
     Url::redirect('account/login');
 }
Exemplo n.º 10
0
 public function deconnexion()
 {
     Session::destroy('', false);
     Url::redirect();
 }
Exemplo n.º 11
0
 /**
  * Handle account logout, session destory
  */
 public function logout()
 {
     \Helpers\Session::destroy();
     \Helpers\Url::redirect('Home');
 }
Exemplo n.º 12
0
 public function logout()
 {
     Session::destroy();
     setcookie('rememberme', false, time() - 3600 * 3650);
     //'/', COOKIE_DOMAIN);
     Url::previous();
 }
Exemplo n.º 13
0
 public function logout()
 {
     if (isset($_SESSION['rf_user']) && isset($_SESSION['rf_user_id'])) {
         if (isset($_COOKIE['rf_user_cookie']) && isset($_COOKIE['rf_user_id_cookie'])) {
             setcookie("rf_user_cookie", "", time() - 3600, "/", "", false, true);
             setcookie("rf_user_id_cookie", "", time() - 3600, "/", "", false, true);
             setcookie("rf_user_pass_cookie", "", time() - 3600, "/", "", false, true);
         }
         \Helpers\Session::destroy('user');
         \Helpers\Session::destroy('user_id');
         \Helpers\Url::redirect('');
     } else {
         \Helpers\Url::redirect('');
     }
 }
Exemplo n.º 14
0
					'warningNumber': 40
				};
				// $('.textcounter').textareaCount(options);

				var options2 = {
						'maxCharacterSize': 160,
						'originalStyle': 'originalTextareaInfo',
						'warningStyle' : 'warningTextareaInfo',
						'warningNumber': 40,
						'displayFormat' : '#input/#max | #words words'
				};
				$('.textcounter').textareaCount(options2);

				var options3 = {
						'maxCharacterSize': 200,
						'originalStyle': 'originalTextareaInfo',
						'warningStyle' : 'warningTextareaInfo',
						'warningNumber': 40,
						'displayFormat' : '#left Characters Left / #max'
				};
			});
		</script>
			<?php 
Assets::js(array(Url::templatePath() . 'js/custom.js'));
?>
</body>
</html>
<?php 
Session::destroy('success');
Session::destroy('error');