PHP Classes

File: demo/views/index.tpl.php

Recommend this page to a friend!
  Classes of Nikos M.   PHP Login System Manager   demo/views/index.tpl.php   Download  
File: demo/views/index.tpl.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Login System Manager
Manage user register and login in a single script
Author: By
Last change: v.1.1.0

* support not logged in guest user objects
Date: 6 months ago
Size: 465 bytes
 

Contents

Class file image Download
<?php $this->extend('content.tpl.php'); ?>

<?php $this->start('content'); ?>
<p><b>LoginManager w/ Tico</b> Index page</p>
<?php if ($isLoggedIn) { ?>
<p>You are logged in as <b><?php echo $user->username; ?></b>, <a href="<?php echo tico()->uri('/logout'); ?>">logout</a></p>
<?php } else { ?>
<p>You are not logged in, <b><?php echo $user->username; ?></b>, <a href="<?php echo tico()->uri('/login'); ?>">login</a></p>
<?php } ?>
<?php $this
->end('content'); ?>