Добавил:
Upload
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:Веб-разработка (Php JQuery) / src / ch07 / public / login
.php<?php
/*
* Include necessary files
*/
include_once '../sys/core/init.inc.php';
/*
* Output the header
*/
$page_title = "Please Log In";
$css_files = array("style.css", "admin.css");
include_once 'assets/common/header.inc.php';
?>
<div id="content">
<form action="assets/inc/process.inc.php" method="post">
<fieldset>
<legend>Please Log In</legend>
<label for="uname">Username</label>
<input type="text" name="uname"
id="uname" value="" />
<label for="pword">Password</label>
<input type="password" name="pword"
id="pword" value="" />
<input type="hidden" name="token"
value="<?php echo $_SESSION['token']; ?>" />
<input type="hidden" name="action"
value="user_login" />
<input type="submit" name="login_submit"
value="Log In" />
or <a href="./">cancel</a>
</fieldset>
</form>
</div><!-- end #content -->
<?php
/*
* Output the footer
*/
include_once 'assets/common/footer.inc.php';
?>