Ejemplo n.º 1
0
<?php

set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
include_once "aur.inc.php";
set_lang();
check_sid();
$disable_http_login = config_get_bool('options', 'disable_http_login');
if (!$disable_http_login || isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']) {
    $login = try_login();
    $login_error = $login['error'];
}
html_header('AUR ' . __("Login"));
?>
<div id="dev-login" class="box">
	<h2>AUR <?php 
echo __('Login');
?>
</h2>
	<?php 
if (isset($_COOKIE["AURSID"])) {
    ?>
	<p>
		<?php 
    echo __("Logged-in as: %s", '<strong>' . username_from_sid($_COOKIE["AURSID"]) . '</strong>');
    ?>
		<a href="<?php 
    echo get_uri('/logout/');
    ?>
">[<?php 
    echo __("Logout");
    ?>
Ejemplo n.º 2
0
"><?php 
    echo __("Logout");
    ?>
</a></li>
					<?php 
} else {
    ?>
						<li><a href="<?php 
    echo get_uri('/register/');
    ?>
"><?php 
    echo __("Register");
    ?>
</a></li>
						<?php 
    if (config_get_bool('options', 'disable_http_login') && empty($_SERVER['HTTPS'])) {
        ?>
						<li><a href="<?php 
        echo get_uri('/login/', true);
        ?>
"><?php 
        echo __("Login");
        ?>
</a></li>
						<?php 
    } else {
        ?>
						<li><a href="<?php 
        echo get_uri('/login/');
        ?>
"><?php