Example #1
0
		<script type="text/javascript">
			function forgotPass() {
			  document.getElementById('showForm').style.display='block';
				document.getElementById('hideLink').style.display='none';
			}
		</script>
  </head>
  <body>
	  <?php 
include '../includes/header.php';
?>
    <div id="wrapper">
			<div id="login" style="background:url('../../images/logo.png') no-repeat; min-height:320px; width:100%; padding-top:1em;">
				<div style="margin-bottom:1em;">
					<?php 
$log->loginform("../../form_action.php");
?>
				</div>
				<div id="hideLink" style="text-align:center;">
					<span class="fake_link" onclick="forgotPass();">Forgot Password?</span>
				</div>
				<div id="showForm" style="display:none">
					<?php 
$log->resetform("../../form_action.php");
?>
				</div>
      </div> <!-- content -->
			<div style="clear:both"></div>
    </div> <!-- wrapper -->
		<?php 
include '../includes/footer.php';
Example #2
0
			function forgotPass() {
			  document.getElementById('showForm').style.display='block';
				document.getElementById('hideLink').style.display='none';
			}
		</script>
  </head>
  <body>
	  <?php 
include 'includes\\header.php';
?>
    <div id="wrapper">
			<div style="clear:both;"></div>
			<div id="login" style="background:url('images/logo.png') no-repeat; min-height:320px; width:100%; padding-top:1em;">
				<div style="margin-bottom:1em;">
					<?php 
$log->loginform("loginformname", "loginformid", "form_action.php");
?>
				</div>
				<div id="hideLink" style="text-align:center;">
					<span class="fake_link" onclick="forgotPass();">Forgot Password?</span>
				</div>
				<div id="showForm" style="display:none">
					<?php 
$log->resetform("resetformname", "resetformid", "form_action.php");
?>
				</div>
      </div> <!-- content -->
			<div style="clear:both"></div>
    </div> <!-- wrapper -->
		<?php 
include 'includes\\footer.php';
Example #3
0
    $log->update_log("in", $ip_admin);
    #CHECK LOGIN
    if (isset($_POST['password']) and isset($_POST['username'])) {
        $log = new logmein();
        $log->encrypt = true;
        //set encryption
        if ($_REQUEST['action'] == "login") {
            if ($log->login("logon", $_REQUEST['username'], $_REQUEST['password']) == true) {
                $log = new logmein();
                $log->update_log("OK", $ip_admin);
                echo '<meta http-equiv="refresh" content="0; URL=accueil.php">';
            } else {
                $log = new logmein();
                $log->update_log("FAIL", $ip_admin);
                notify("error", "Alerte Securité", "Mot de passe refusée depuis l'adresse IP: " . $ip_admin);
                title('<font color="#990000">Mot de passe incorrecte!</font>');
                echo '<meta http-equiv="refresh" content="4; URL=index.php">';
            }
        }
    }
    #CHECK LOGIN
    header_show("Mot de passe requis", "style2");
    $computername = script("getcomputername");
    title("WebManage sur " . $computername);
    echo '<table align=center><td>';
    $log = new logmein();
    $log->loginform("loginformname", "loginformid", "index.php");
    echo '</td></table>';
    title("Toutes tentatives d'intrusion sera loggué");
    footer_show();
}