This repository was archived by the owner on Feb 28, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.php
More file actions
57 lines (39 loc) · 1.3 KB
/
404.php
File metadata and controls
57 lines (39 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
/**
* 404.php
*
* Default 404 - Not Found error page
*
* @package Comodojo ServerSide Core Packages
* @author comodojo.org
* @copyright __COPYRIGHT__ comodojo.org (info@comodojo.org)
* @version __CURRENT_VERSION__
* @license GPL Version 3
*/
require 'comodojo/global/comodojo_basic.php';
class fourzerofour extends comodojo_basic {
public $script_name = '404.php';
public $use_session_transport = true;
public $require_valid_session = false;
public $do_authentication = false;
public $header_params = Array(
'statusCode' => 404,
'contentType' => 'text/html',
'charset' => 'UTF-8'
);
public function logic($attributes) {
include COMODOJO_BOOT_PATH.'comodojo/global/qotd.php';
$index = file_get_contents(COMODOJO_BOOT_PATH . "comodojo/templates/web_error.html");
$index = str_replace("*_ERRORNAME_*","This page could not be found",$index);
$index = str_replace("*_ERRORDETAILS_*",'The content you are looking for does not exist or it has been removed... go back, friend, go back.',$index);
$index = str_replace("*_ERRORQUOTE_*","<em>".get_quote()."</em>",$index);
set_header(Array(
'statusCode' => 404,
'contentType' => 'text/html',
'charset' => 'UTF-8'
), strlen($index));
return $index;
}
}
$fourzerofour = new fourzerofour();
?>