ftimme
2005-12-06 c4b4cec36f021be2965b23e34f4fe651f22e0847
interface/lib/app.inc.php
@@ -113,9 +113,29 @@
   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)