Location: PHPKode > scripts > SmashUser > smashuser/example.php
<?php

session_start();
$config = parse_ini_file('config.ini.php', true);
require 'user.php';

$joe = new user('joe', 'test', 'admins');
$joe->check();
if ($joe->login())
print 'Logged in successfully with username '.$HTTP_SESSION_VARS['username'].'.<br>';
$joe->logout();
print 'Logged out successfully. Current user is '.$HTTP_SESSION_VARS['username'].'.<br>';

?>
Return current item: SmashUser