本文整理汇总了PHP中account::logIn方法的典型用法代码示例。如果您正苦于以下问题:PHP account::logIn方法的具体用法?PHP account::logIn怎么用?PHP account::logIn使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类account
的用法示例。
在下文中一共展示了account::logIn方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Anthony
# -[ 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: Copyright
<?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>