예제 #1
0
파일: login.php 프로젝트: nero08/CraftedWeb
#		-[ Created by ©Nomsoft
#		  `-[ Original core by Anthony (Aka. CraftedDev)
#
#				-CraftedWeb Generation II-
#			 __                           __ _
#		  /\ \ \___  _ __ ___  ___  ___  / _| |_
#		 /  \/ / _ \| '_ ` _ \/ __|/ _ \| |_| __|
#		/ /\  / (_) | | | | | \__ \ (_) |  _| |_
#		\_\ \/ \___/|_| |_| |_|___/\___/|_|  \__|	- www.Nomsoftware.com -
#                  The policy of Nomsoftware states: Releasing our software
#                  or any other files are protected. You cannot re-release
#                  anywhere unless you were given permission.
#                  © Nomsoftware 'Nomsoft' 2011-2012. All rights reserved.
if (!isset($_SESSION['cw_user'])) {
    if (isset($_POST['login'])) {
        account::logIn($_POST['login_username'], $_POST['login_password'], $_SERVER['REQUEST_URI'], $_POST['login_remember']);
    }
    ?>
     <div class="box_one">
	 <div class="box_one_title">Account Management</div> 
         <form action="<?php 
    echo $_SERVER['REQUEST_URI'];
    ?>
" method="post">
         <fieldset style="border: none; margin: 0; padding: 0;">
             <input type="text" placeholder="Username..." name="login_username" class="login_input" /><br/>
             <input type="password" placeholder="Password..." name="login_password" class="login_input" style="margin-top: -1px;" /><br/>
             <input type="submit" value="Log In" name="login" style="margin-top: 4px;" /> 
             <input type="checkbox" name="login_remember" checked="checked"/> Remember me
         </fieldset>    
         </form> 
예제 #2
0
파일: login.php 프로젝트: Kheros/CraftedWeb
<?php

/*
            _____           ____
           |   __|_____ _ _|    \ ___ _ _ ___
           |   __|     | | |  |  | -_| | |_ -|
           |_____|_|_|_|___|____/|___|\_/|___|
    Copyright (C) 2013 EmuDevs <http://www.emudevs.com/>
*/
?>
<div class='box_two_title'>Login</div>
Please log in to view this page. <hr/>
<?php 
if (isset($_POST['x_login'])) {
    account::logIn($_POST['x_username'], $_POST['x_password'], $_POST['x_redirect'], $_POST['x_remember']);
}
?>
<form action="?p=login" method="post">
<table>
       <tr>
           <td>Username:</td>
           <td><input type="text" name="x_username"></td>
       </tr>
       <tr>
           <td>Password:</td>
           <td><input type="password" name="x_password"></td>
       </tr>
       <tr>
           <td></td>
           <td><input type="checkbox" name="x_remember"> Remember Me</td>
       </tr>