<style>
	body, table{
		font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
		font-size: 12px;
	}
</style>
<script src="scripts/basicFunctions.js"></script>
<a href="actions.php">Index</a>
<?php 
echo getFlashMessages();
include "views/{$action}.php";
?>
<fb:google-analytics uacct="UA-2420747-2" />
Exemple #2
0
		/**
		*	Show the account login page
		*/
		public function ShowLoginPage($Message = "", $MessageStatus = 0, $MessageIsString = false)
		{
			if (isset($_GET['from'])) {
				$Message = "LoginToAccessThatPage";
				$_SESSION['LOGIN_REDIR'] = sprintf("%s/%s", $GLOBALS['ShopPath'], urldecode($_GET['from']));
			}
			else {
				$_SESSION['LOGIN_REDIR'] = '';
			}

			// Do we need to show a message?
			if ($Message != "") {
				if ($MessageIsString) {
					$GLOBALS['LoginMessage'] = $Message;
				} else {
					$GLOBALS['LoginMessage'] = GetLang($Message);
				}
			}
			else {
				// Hide the error box
				$GLOBALS['HideLoginMessage'] = "none";
			}

			// Is it a critical message?
			if($MessageStatus == 1) {
				$GLOBALS['MessageClass'] = "ErrorMessage";
			} else {
				$GLOBALS['MessageClass'] = "SuccessMessage";
			}

			if(!$Message) {
				$messages = getFlashMessages();
				if(!empty($messages)) {
					$message = $messages[0];
					$GLOBALS['LoginMessage'] = $message['message'];
					$GLOBALS['MessageClass'] = $message['class'];
					$GLOBALS['HideLoginMessage'] = '';
				}
			}

			// Show the login page
			$GLOBALS['ISC_CLASS_TEMPLATE']->SetPageTitle(GetConfig('StoreName') . " - " . GetLang('Login'));
			$GLOBALS['ISC_CLASS_TEMPLATE']->SetTemplate("login");
			$GLOBALS['ISC_CLASS_TEMPLATE']->ParseTemplate();
		}