Show picture if logged in.

Posted on Saturday 29th September 2007 at 04:56 PM
Dalez
Dalez's Avatar
Hey, well, i'm making this game (kinda like habbo.. but pictures) and well.. i'm using the user system with it. And i want it so that they are logged in to see it. How would i do it?
Posted on Tuesday 2nd October 2007 at 01:37 AM
Diablosblizz
Diablosblizz's Avatar
Code
<?php
include("config.php");
if($logged['username']) {
// show picture
} else {
// show whatever if they're not logged in
}
</php>
Login or register to respond to this forum topic.