3 * This function is beign used to load info that's needed for the error page.
4 * if a error_code session var is set it will unset it (else 404 is used), and it will return the error code so it can be used in the template.
5 * @author Daan Janssens, mentored by Matthew Lagoe
8 if(isset($_SESSION['error_code'])){
9 $result['error_code'] = $_SESSION['error_code'];
10 unset($_SESSION['error_code']);
12 $result['error_code'] = "404";