News:

Wondering if this will always be free?  See why free is better.

Main Menu

SSI 'is logged in'?

Started by nugga, April 19, 2014, 11:56:32 AM

Previous topic - Next topic

nugga

Is it possible to do a boolean check to see if the user is logged in or not, when writing a small php page using the extensability of SSI.php?

Thanks

margarett

But of course ;)

<?php
// Include the SSI file.
require(dirname(__FILE__) . '/SSI.php'); 
global 
$context;

if (
$context['user']['is_logged'])
echo 'User is logged';
else
echo 'User is guest';

?>
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

nugga


Advertisement: