Open-Source PHP Framework - Designed for rapid development of performance-oriented scalable applications

/mvc/elements/account/index

[return to app]
1 <?php
2
if (!isset($_SESSION['_id'])) {
3     if (!isset(
$signedup)) {
4         
$args = array();
5         if (isset(
$loginAction)) {
6             
$args['loginAction'] = $loginAction;
7         }
8         
load::element('account/' . (!isset($_GET['signup']) ? 'login' 'signup'), $args);
9     } else {
10         
load::element('account/signedup');
11     }
12 } else {
13     
load::element('account/logout');
14 }