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 Bozz Change */ /* If an admin signs on We want to se the admin menu Not the File Browser. */ if ( $verified["group"] == 0) { 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 Bozz Change */ } else { 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("
"); // BUG Number: 457588 // This is to display the version inforamation // BEGIN print("
$lang_engine
$lang_version: $default->version

"); // END if($failure == 1) print("
$lang_loginfail
"); if($failure == 2) print("
$lang_logindisabled
"); if($failure == 3) print("
$lang_toomanysessions
"); print "
"; if (isset($fileid)) { print ""; print ""; } print ""; print "
$lang_username:
$lang_password:
"; print "\n"; print "


"; exit; } if($login == "logout") { include("./lib/header.inc"); print("
"); // BUG Number: 457588 // This is to display the version inforamation // BEGIN print("
$lang_engine
$lang_version: $default->version

"); // END $sql = new Owl_DB; $sql->query("delete from $default->owl_sessions_table where sessid = '$sess'"); print("
$lang_successlogout
"); print ""; print ""; print "
$lang_username:
$lang_password:
"; print "\n"; print "


"; exit; } include("./lib/footer.inc"); ?>