Another feature of BitOwl Application Suit is the ability to use the users system to create a members section for your site. To use it you only need to have included init.php. Next you need to add the HTML that follows...
<form method="post" action=">?php echo $_SERVER['PHP_SELF']; ?>"> Username: <input type="text" name="username" /><br /> Password: <input type="password" name="password" /><br /> <input type="checkbox" name="remember" /> Automatically login me in next visit. </form>
You may also check to see if a user is logged in and/or their name with the variables $isloggedin and $isloggedinas.
<?php
//if user is loggged in display welcome message
//else display login form
if($isloggedin)
{
echo "Welcome ".$inloggedinas."!";
}
else
{
?>
<form method="post" action=">?php echo $_SERVER['PHP_SELF']; ?>">
Username: <input type="text" name="username" /><br />
Password: <input type="password" name="password" /><br />
<input type="checkbox" name="remember" /> Automatically login me in next visit.
</form>
<?php
}
?>
By default BitOwl Application Suit does not contain a way to allow visitors to register.