debug = false; $orderimg = array( "asc" => " ASC", "desc" => " DESC" ); $pagingimg = array( "first" => "first", "prev" => "previous", "next" => "next", "last" => "last" ); // REDIRECT ON ERROR if(!isset($_SESSION["loggedOn"],$_SESSION["application"]) || !isset($_SESSION["fullname"]) || $_SESSION["application"] != APPLICATION) header("Location: logout.php"); // ACTION ON ADMIN LOGIN REQUEST if(isset($in_p) && $in_p == $_ADMIN_LOGIN) { header("Location: login.php?admin"); } // ACTION ON LOGOUT REQUEST if(isset($in_p) && $in_p == $_LOG_OUT) { header("Location: logout.php"); } // ACTION ON NO REQUEST (DEFAULT) elseif(!isset($in_p)) $in_p = 1; // Ordering if(!isset($in_o) || $in_o==""){ $in_o = 1; $default_ordering = true; } if(substr($in_o,0,1) == "-"){ $order["direction"] = "desc"; $order["column"] = substr($in_o,1); } else { $order["direction"] = "asc"; $order["column"] = substr($in_o,0); } // Can be removed if output buffering enabled if($in_p==1) { header("Location: consignmentedit.php?new"); die(); } if($in_p==7) { header("Location: examples/OCR User's Guide.pdf"); die(); } // BODY START include("include/header.php"); //echo "
";print_r($_SESSION);echo "
"; // CONTENT INCLUSION $includeFile = "page/page". $in_p.".php"; if(file_exists($includeFile)) include_once($includeFile); else include_once("page/error.html"); // FOOTER include("include/footer.php"); ?>