mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 09:19:01 +00:00
6f1197d633
HG : Enter commit message. Lines beginning with 'HG:' are removed.
16 lines
No EOL
497 B
PHP
16 lines
No EOL
497 B
PHP
<?php
|
|
/**
|
|
* This function is beign used to load info that's needed for the error page.
|
|
* 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.
|
|
* @author Daan Janssens, mentored by Matthew Lagoe
|
|
*/
|
|
function error(){
|
|
if(isset($_SESSION['error_code'])){
|
|
$result['error_code'] = $_SESSION['error_code'];
|
|
unset($_SESSION['error_code']);
|
|
}else{
|
|
$result['error_code'] = "404";
|
|
}
|
|
return $result;
|
|
|
|
} |