Open_Session(0,$verified["uid"]); /* $sql = new Owl_DB; $sql->query("select * from $default->owl_folders_table where parent = '2' and name = '$loginname'"); while($sql->next_record()) $id = $sql->f("id"); */ $id = 1; /* BEGIN Admin Change */ /* If an admin signs on We want to se the admin menu Not the File Browser. */ if ( $verified["group"] == 0) { // if admin logs on..goto the admin main page // else goto the normal file browser page if(!isset($fileid)) { header("Location: admin/index.php?sess=". $uid->sessdata["sessid"]); } else { header("Location: browse.php?sess=". $uid->sessdata["sessid"]."&parent=$parent&fileid=$fileid"); } } else { if(!isset($fileid)) { header("Location: browse.php?sess=". $uid->sessdata["sessid"]); } else { header("Location: browse.php?sess=". $uid->sessdata["sessid"]."&parent=$parent&fileid=$fileid"); } } /* END Admin Change */ } else {//normal user..check failures if ($verified["bit"] == 2) { header("Location: index.php?login=1&failure=2"); } else if ($verified["bit"] == 3 ) { header("Location: index.php?login=1&failure=3"); } else { header("Location: index.php?login=1&failure=1"); } } } // if(($login == 1) || ($failure == 1)) { include("./lib/header.inc"); print("