<?php
$getfile = 'listlinks.array';//read the array file from setup.php
$contents = file_get_contents($getfile);//this gets the database content userlinks.array
$convertfle = unserialize($contents);//this converts data back into php from listlinks.array
$login = file_get_contents('login.html');//This gets the login page if user is not authenicated
$user=$_POST['user']; //this gets the user name from the setup php script
$pass=$_POST['pass']; //this gets the pass code from the setup php script
$dbfile="userlinks.sqlite";
$dbh = sqlite_open($dbfile);//this opens the database
$getrow = "SELECT pass FROM users WHERE user='steve';";
$rh = sqlite_query($dbh,$getrow,SQLITE_ASSOC); //this creates a row handle and grabs the specific row from the database
$row = sqlite_fetch_array($rh);//this get the associative array and sets it just to bring the associative array
//print_r($row);
if ($user == 'steve' && $pass == 'letmein')//this checks with the database base to see if the username and password are the same as the ones beong put in
{
print "