Revision 1499
Added by DarkViper about 14 years ago
| globalExceptionHandler.php | ||
|---|---|---|
| 21 | 21 |
* define Exception to show error after accessing a forbidden file |
| 22 | 22 |
*/ |
| 23 | 23 |
class IllegalFileException extends LogicException {
|
| 24 |
|
|
| 25 | 24 |
public function __toString() {
|
| 26 | 25 |
$file = str_replace(dirname(dirname(__FILE__)), '', $this->getFile()); |
| 27 |
$out = '<div style="color: #ff0000; text-align: center;"><br /><br /><br /><h1>Illegale file access</h1>'; |
|
| 26 |
$out = '<div style="color: #ff0000; text-align: center;"><br />'; |
|
| 27 |
$out .= '<br /><br /><h1>Illegale file access</h1>'; |
|
| 28 | 28 |
$out .= '<h2>'.$file.'</h2></div>'; |
| 29 | 29 |
return $out; |
| 30 | 30 |
} |
| 31 |
|
|
| 32 | 31 |
} // end of class |
| 33 | 32 |
|
| 34 | 33 |
/** |
Also available in: Unified diff
little fix in calling globalExceptionHandler from inner core files