undef HALF_FREQUENCY_SENDING_TO_CLIENT
[ryzomcore.git] / web / public_php / ams / inc / error.php
blob84de1083d3f8d717f019d24e7a0afc78377f3bc4
1 <?php
2 /**
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
6 */
7 function error(){
8 if(isset($_SESSION['error_code'])){
9 $result['error_code'] = $_SESSION['error_code'];
10 unset($_SESSION['error_code']);
11 }else{
12 $result['error_code'] = "404";
14 return $result;