<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title><?php print SITE_NAME; ?> | <?php print PROVIDED_BY; ?></title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content="<?php print SITE_DESCRIPTION; ?>"> <meta name="author" content="<?php print PROVIDED_BY; ?>"> <link href="/view/theme/default/assets/css/metro-bootstrap.css" rel="stylesheet"> <!-- HTML5 shim, for IE6-8 support of HTML5 elements --> <!-- original location: http://html5shim.googlecode.com/svn/trunk/html5.js --> <!--[if lt IE 9]> <script src="/view/theme/default/assets/js/html5.js"></script> <![endif]--> <!-- Fav and touch icons --> <link rel="apple-touch-icon-precomposed" sizes="144x144" href="/view/theme/default/assets/ico/apple-touch-icon-144-precomposed.png"> <link rel="apple-touch-icon-precomposed" sizes="114x114" href="/view/theme/default/assets/ico/apple-touch-icon-114-precomposed.png"> <link rel="apple-touch-icon-precomposed" sizes="72x72" href="/view/theme/default/assets/ico/apple-touch-icon-72-precomposed.png"> <link rel="apple-touch-icon-precomposed" href="/view/theme/default/assets/ico/apple-touch-icon-57-precomposed.png"> <link rel="shortcut icon" href="/view/theme/default/assets/ico/favicon.png"> </head> <body id="loginpage"> <?php if(!isset($_SESSION['username'])){ ?> <div id="logincontainer" class="container"> <div id="logo-lg"><img src="<?php print SITE_URL; ?><?php print SITE_LOGO_LG; ?>" alt="Archive Logo Image" title="Login" /></div> <form name="login" action="login.php" method="post" class="form-signin"> <h2 class="form-signin-heading"><?php print $text_login; ?></h2> <?php if(isset($x)){ ?><p class="alert alert-error lead"><?php print $x; ?></p><?php } ?> <input type="hidden" name="relocation" value="<?php if(isset($_GET['route']) && !preg_match("/^login/", $_GET['route']) ) { if(isset($_SERVER['REDIRECT_URL'])) { print $_SERVER['REDIRECT_URL']; } else { print $_SERVER['QUERY_STRING']; } } ?>" /> <?php if(ENABLE_GOOGLE_LOGIN == 1) { ?> <div class="info"><a href="<?php print $auth_url; ?>"><?php print $text_login_via_google; ?></a></div> <?php } else { ?> <input type="text" class="input-block-level" name="username" placeholder="<?php print $text_email; ?>"> <input type="password" class="input-block-level" name="password" placeholder="<?php print $text_password; ?>"> <button class="btn btn-large btn-primary" type="submit" value="<?php print $text_submit; ?>"><?php print $text_submit; ?></button> <?php } ?> </form> <div id="compatibility" class="well well-large"><?php print COMPATIBILITY; ?></div> </div> <?php } ?> <!-- <?php print PILER_LOGIN_HELPER_PLACEHOLDER; ?> --> </body> </html>