// This file has had some changes. // It can show three different pages. // - When not logged in it redirects to login.php // - When logged in a nice screen with logged in // name and the options. // - When logged in and $info == 1 it shows user data include ("common.php"); include ("authenticate.php"); $conn = ConnectDB("sambaldar"); // Standard Vars that can be given to the scripts; $redirect = $_REQUEST[redirect]; $info = $_GET[info]; if (!$sambaldar_loggedin) { header("Location: login.php"); } if ($redirect) { printHeader("Aanmelding Voltooid"); ?> printFooter(); exit; } if ($info == 1) { printHeader("Sambaldar - Sambalbij®", "sambaldar.css"); sambaldarregtop(); ?> $sql = "select * from users where id = " . sambaldar_getIDByUID($sambaldar_uid); $result = pg_exec($conn, $sql); $aresult = pg_fetch_array($result,0); ?>
printFooter(); } ?>