File: examples/cms/app/blog/templates/login.php

Recommend this page to a friend!
  Classes of Haseeb Ahmad Basil  >  PHP Skeleton Framework  >  examples/cms/app/blog/templates/login.php  >  Download  
File: examples/cms/app/blog/templates/login.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Skeleton Framework
Extensive Web application development framework
Author: By
Last change:
Date: 5 years ago
Size: 773 bytes
 

Contents

Class file image Download
<?php if ($user->isLoggedIn()) { ?>

<h1>Logout</h1>

<div>

<p>You are logged-in as <?php echo $user->get('fname') . ' ' . $user->get('lname'); ?></p>

<form action="login/logout/" method="post">

<p><input type="submit" name="logout" value="Logout"/></p>

</form>

</div>

<?php } else { ?>

<h1>Login</h1>

<div>

<span style="color:red"><?php echo $errmsg; ?></span>

<form action="login/" method="post">

<p>

<label>User ID</label>

<input type="text" name="userid" value="<?php echo $userid; ?>" size="20"/>

</p>

<p>

<label>Password</label>

<input type="password" name="password" value="" size="20"/>

</p>



<p><input type="submit" name="login" value="Login"/></p>

</form>

<p>* You can log in with U:user1 P:user1 or U:user2 P:user2</p>

</div>

<?php } ?>


For more information send a message to info at phpclasses dot org.