<?php

	CLASS AKB_LOGIN_PANEL extends AKB_PANEL
	{
		/**
		* SetPanelSettings
		* This function is a chance to set any last minute global variables for
		* the template to use
		*
		* @return void
		*/
		function SetPanelSettings() {
			$referrer = (isset($_SERVER['HTTP_REFERER']))?$_SERVER['HTTP_REFERER']:'';
			$GLOBALS['prevPage'] = $GLOBALS['pathToKB'];
			
			//If we're refreshing, attempt to get from the post vars.
			if (isset($_POST['prevPage'])) {
				$referrer = $_POST['prevPage'];
			}
			
			//Make sure the prevPage is actually from this site.
			if (strpos($referrer,$GLOBALS['pathToKB']) !== false) {
				$GLOBALS['prevPage'] = $referrer;
			}
		}
	}
?>
