/** * Make sure you started your'e sessions! * You need to include su.inc.php to make SimpleUsers Work * After that, create an instance of SimpleUsers and your'e all set! */ session_start(); require_once dirname(__FILE__) . "/simpleusers/su.inc.php"; $SimpleUsers = new SimpleUsers(); // This is a simple way of validating if a user is logged in or not. // If the user is logged in, the value is (bool)true - otherwise (bool)false. if (!$SimpleUsers->logged_in) { header("Location: login.php"); exit; } // If the user is logged in, we can safely proceed. $users = $SimpleUsers->getUsers(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <style type="text/css"> * { margin: 0px; padding: 0px; } body { padding: 30px; font-family: Calibri, Verdana, "Sans Serif"; font-size: 12px; }