| | |
| | | function error($msg, $next_link = '', $stop = true, $priority = 1) {
|
| | | //$this->uses("error");
|
| | | //$this->error->message($msg, $priority);
|
| | | if($stop == true){
|
| | | $msg = '<html>
|
| | | <head>
|
| | | <title>Error</title>
|
| | | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
| | | <link href="../themes/default/style.css" rel="stylesheet" type="text/css">
|
| | | </head>
|
| | | <body>
|
| | | <br><br><br>
|
| | | <table width="100%" border="0" cellspacing="0" cellpadding="2">
|
| | | <tr>
|
| | | <td class="error"><b>Error:</b><br>'.$msg;
|
| | | if($next_link != "") $msg .= '<a href="'.$next_link.'">Next</a><br>';
|
| | | $msg .= '</td>
|
| | | </tr>
|
| | | </table>
|
| | | </body>
|
| | | </html>';
|
| | | die($msg);
|
| | | } else {
|
| | | echo $msg;
|
| | | if($next_link != "") echo "<a href='$next_link'>Next</a>";
|
| | | if($stop == true) die();
|
| | | }
|
| | | }
|
| | |
|
| | | function lng($text)
|