Project

General

Profile

1 1689 darkviper
<?php
2
/**
3
 * Temporary class to detect invalid instancing
4
 *
5
 * @author wkl
6
 */
7
class database {
8
9
10
	public function  __construct() {
11
12
		$this->showError();
13
	}
14
15
	public function  __call($name, $arguments) {
16
		$this->showError();
17
	}
18
	private function showError() {
19
20
		$y = debug_backtrace();
21
		$msg  = '<div style="margin: 100px auto; width: 70%">';
22
		$msg .= '<p style="color: #dd0000; font-weight: bold;">Runtime Error !!</p>';
23
		$msg .= '<p>Ouups...  there is a invalid statement found!!</p>';
24
		$msg .= '<p>In File: <b>'.$y[0]['file'].'</b> Line: <b>'.$y[0]['line'].'</b><br />tried to create an invalid <b>'.$y[0]['class'].'</b> - object</p>';
25
		$msg .= '<p>Please contact the module author to solve this problem.</p>';
26
		$msg .= '<p>Also you can get information and help from the ';
27
		$msg .= '<a href="http://www.websitebaker2.org/forum/index.php/board,2.0.html">WebsiteBaker Forum</a></p>';
28
		$msg .= '<hr />';
29
		$msg .= '<p style="color: #dd0000; font-weight: bold;">Runtime Error !!</p>';
30
		$msg .= '<p>Ouups...  hier wurde ein ung&uuml;ltiges Kommando gefunden!!</p>';
31
		$msg .= '<p>In Datei: <b>'.$y[0]['file'].'</b> - Zeile: <b>'.$y[0]['line'].'</b><br />es wurde versucht, ein ung&uuml;ltiges <b>'.$y[0]['class'].'</b> - Objekt zu erstellen.</p>';
32
		$msg .= '<p>Bitte kontaktieren Sie den Modulautor um dieses Problem zu l&ouml;sen.</p>';
33
		$msg .= '<p>Ebenso k&ouml;nnen sie auch Informationen und Hilfe im ';
34
		$msg .= '<a href="http://www.websitebaker2.org/forum/index.php/board,31.0.html">WebsiteBaker Forum</a> finden.</p>';
35
		$msg .= '</div>';
36
		die($msg);
37
38
	}
39
40
}