Revision 1690
Added by darkviper over 13 years ago
| class.database.php | ||
|---|---|---|
| 18 | 18 |
private function showError() {
|
| 19 | 19 |
|
| 20 | 20 |
$y = debug_backtrace(); |
| 21 |
$msg = '<div style="margin: 100px auto; width: 70%">'; |
|
| 21 |
$msg = '<div style="margin: 100px auto; width: 70%; background-color: #ffcccc; padding: 10px;">';
|
|
| 22 | 22 |
$msg .= '<p style="color: #dd0000; font-weight: bold;">Runtime Error !!</p>'; |
| 23 | 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>'; |
|
| 24 |
$msg .= '<p>In File: <b>'.$y[1]['file'].'</b> Line: <b>'.$y[1]['line'].'</b><br />'; |
|
| 25 |
$msg .= 'tried to create an invalid <b>'.$y[1]['class'].'</b> - object</p>'; |
|
| 26 |
$msg .= '<p>Please replace <span style="color:#dd0000; font-weight:bold;">'; |
|
| 27 |
$msg .= '$database = new database();</span> by <span style="color:#00bb00; font-weight:bold;">'; |
|
| 28 |
$msg .= '$database = WbDatabase::getInstance();</span>.</p>'; |
|
| 26 | 29 |
$msg .= '<p>Also you can get information and help from the '; |
| 27 | 30 |
$msg .= '<a href="http://www.websitebaker2.org/forum/index.php/board,2.0.html">WebsiteBaker Forum</a></p>'; |
| 28 | 31 |
$msg .= '<hr />'; |
| 29 | 32 |
$msg .= '<p style="color: #dd0000; font-weight: bold;">Runtime Error !!</p>'; |
| 30 | 33 |
$msg .= '<p>Ouups... hier wurde ein ungü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ültiges <b>'.$y[0]['class'].'</b> - Objekt zu erstellen.</p>'; |
|
| 32 |
$msg .= '<p>Bitte kontaktieren Sie den Modulautor um dieses Problem zu lösen.</p>'; |
|
| 33 |
$msg .= '<p>Ebenso können sie auch Informationen und Hilfe im '; |
|
| 34 |
$msg .= '<p>In der Datei: <b>'.$y[1]['file'].'</b> - Zeile: <b>'.$y[1]['line'].'</b><br />'; |
|
| 35 |
$msg .= 'wurde versucht, ein ungültiges <b>'.$y[1]['class'].'</b> - Objekt zu erstellen.</p>'; |
|
| 36 |
$msg .= '<p>Bitte ersetzen Sie <span style="color:#dd0000; font-weight:bold;">'; |
|
| 37 |
$msg .= '$database = new database();</span> durch <span style="color:#00bb00; font-weight:bold;">'; |
|
| 38 |
$msg .= '$database = WbDatabase::getInstance();</span>.</p>'; |
|
| 39 |
$msg .= '<p>Auch können sie auch Informationen und Hilfe im '; |
|
| 34 | 40 |
$msg .= '<a href="http://www.websitebaker2.org/forum/index.php/board,31.0.html">WebsiteBaker Forum</a> finden.</p>'; |
| 35 | 41 |
$msg .= '</div>'; |
| 36 | 42 |
die($msg); |
Also available in: Unified diff
ModLanguage modified for auto fallback to DEFAULT_LANGUAGE
globalExceptionHandler added AppException, SecurityException, SecDirectoryTraversalException
Errormessage for old class.database modified