This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
-------------------------------------------------------------------------------
*/
function msg($messages) {
global $_SERVER, $_colors;
if(empty($messages)) return;
$messages = explode("\n", $messages);
echo "
\n
\n";
foreach($messages as $message) {
if(empty($message)) continue;
#$message = explode(";", $message);
#print_r($messages);
preg_match("#(.*);(.*)#", $message, $matches);
#if($global_mode == "console") $matches[1] = strip_tags($matches[1]);
$matches[1] = str_replace("
", "\n", $matches[1]);
$matches[1] = str_replace("
", "\n", $matches[1]);
$matches[1] = str_replace("ä", "ä", $matches[1]);
$matches[1] = str_replace("Ä", "Ä", $matches[1]);
$matches[1] = str_replace("ö", "ö", $matches[1]);
$matches[1] = str_replace("Ö", "Ö", $matches[1]);
$matches[1] = str_replace("ü", "ü", $matches[1]);
$matches[1] = str_replace("Ü", "Ü", $matches[1]);
$matches[1] = str_replace("ß", "ß", $matches[1]);
$matches[1] = str_replace("", "[em]", $matches[1]);
$matches[1] = str_replace("", "[/em]", $matches[1]);
$matches[1] = str_replace("
", "[pre]", $matches[1]);
$matches[1] = str_replace("
", "[/pre]", $matches[1]);
$matches[1] = str_replace("
", "[strong]", $matches[1]);
$matches[1] = str_replace("", "[/strong]", $matches[1]);
$matches[1] = str_replace("", "[/a]", $matches[1]);
$matches[1] = ereg_replace("
", "[a href=#\\1#]", $matches[1]);
$matches[1] = htmlentities($matches[1]);
$matches[1] = ereg_replace("\[a href=#([^#]*)#\]", "", $matches[1]);
$matches[1] = str_replace("[/a]", "", $matches[1]);
$matches[1] = str_replace("[em]", "
", $matches[1]);
$matches[1] = str_replace("[/em]", "", $matches[1]);
$matches[1] = str_replace("[pre]", "
", $matches[1]);
$matches[1] = str_replace("[/pre]", "
", $matches[1]);
$matches[1] = str_replace("[strong]", "
", $matches[1]);
$matches[1] = str_replace("[/strong]", "", $matches[1]);
$matches[1] = nl2br($matches[1]);
if ($matches[2] == "info" ) echo "
INFO: ".$matches[1]."\n";
elseif($matches[2] == "info" ) echo $_colors["BOLD"].$_colors["GREEN"].$_colors["BOLD"]."INFO: ".strip_tags($matches[1]).$_colors["NORMAL"]."\n";
elseif($matches[2] == "info" ) echo "#
INFO: ".strip_tags($matches[1], "")."\n";
elseif($matches[2] == "warning") echo "WARNUNG: ".$matches[1]."\n";
elseif($matches[2] == "warning") echo $_colors["BOLD"]."WARNING: ".strip_tags($matches[1]).$_colors["NORMAL"]."\n";
elseif($matches[2] == "warning") echo "# WARNING: ".strip_tags($matches[1], "")."\n";
elseif($matches[2] == "error" ) echo "ERROR: ".$matches[1]."\n";
elseif($matches[2] == "error" ) echo $_colors["BOLD"].$_colors["LIGHT_RED"].$_colors["BOLD"]."ERROR: ".strip_tags($matches[1]).$_colors["NORMAL"]."\n";
elseif($matches[2] == "error" ) echo "# ERROR: ".strip_tags($matches[1], "")."\n";
else echo "Fehler in der Funktion msg(): ".$matches[1];
if($matches[2] == "error") $all.= $matches[2].": ".$matches[1]."\n";
}
echo "\n \n";
}
class table {
var $row = 0;
var $col = 0;
var $colmax = 0;
var $packages;
var $params;
var $thId;
var $tdId;
var $tableId;
var $innerBorder = TRUE;
function setCol($input = "", $inputparams = "") {
$this->col++;
if($this->col > $this->colmax) $this->colmax = $this->col;
$this->data[$this->row][$this->col]["data"] = $input;
$this->data[$this->row][$this->col]["params"] = $inputparams;
}
function setRow() {
$this->row++;
$this->col = 0;
}
function show() {
$h = "height=\"13\"";
$w = "width=\"7\"";
$colspan = $this->colmax;
if(isset($this->summary)) $summary = "summary=\"".$this->summary."\"";
echo "