This repository has been archived by the owner on Dec 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclass.errors.php
executable file
·42 lines (38 loc) · 1.92 KB
/
class.errors.php
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
<?php
/*======================================================================*\
|| #################################################################### ||
|| # PHP Utilities Alpha 2 # ||
|| # ---------------------------------------------------------------- # ||
|| # Useful Everyday PHP classes, that work as one! # ||
|| # ---------------------------------------------------------------- # ||
|| # All PHP code in this file is ©2014 VisionWare Studios # ||
|| # This script is released under The MIT License. # ||
|| # # ||
|| # --------------- PHP VERSION 5.5.0 OR GREATER ----------------- # ||
|| # # ||
|| # http://visionware-studios.com # ||
|| #################################################################### ||
\*======================================================================*/
class Error_Handle
{
public static function GEN_ERROR($message)
{
$output = '<h2>Website Error</h2>';
$output .= $message . '<hr />';
$output .= '<small><em>Script by, Matt Kent (@Matt_Kent9)</em></small>';
exit($output);
}
public static function DISPLAY_BANNED()
{
$output = '<h2><span style="color: red;">You have been banned!</span></h2>';
$output .= 'Dear ' . User::username() . ', you have been banned from accessing this website. ';
$output .= 'This could be for one one of many reasons: ';
$output .=
'<ul>
<li>Spam & Abuse</li>
<li>Trolling, Upsetting & Disruptive use</li>
</ul>Please contact the site admin for further information<hr />';
$output .= '<small><em>Script by, Matt Kent (@Matt_Kent9)</em></small>';
exit($output);
}
}