Project

General

Profile

« Previous | Next » 

Revision 43

Added by stefan over 19 years ago

Added automatic frontend redirection on login.

View differences:

class.frontend.php
220 220
			// Check if the user is authenticated
221 221
			if($this->is_authenticated() == false) {
222 222
				// User needs to login first
223
				header("Location: ".WB_URL."/account/login".PAGE_EXTENSION);
223
				header("Location: ".WB_URL."/account/login".PAGE_EXTENSION.'?redirect='.$this->link);
224 224
			}
225 225
			// Check if we should show this page
226 226
			if($this->show_page($this->page) == false) {

Also available in: Unified diff