<?php
if (!defined('IBLEGAL')) die('Kann nicht ohne Personal WebBase ausgeführt werden.');
//////////////////////////////////////////////////////////////////////////////
// CODIERUNGSFUNKTIONEN //
//////////////////////////////////////////////////////////////////////////////
function transamp_replace_spitze_klammern($inp)
{
//$inp = str_replace('"', '"', $inp);
return $inp;
}
function undo_transamp_replace_spitze_klammern($inp)
{
//$inp = str_replace('"', '"', $inp);
return $inp;
}
function ausfuehrbarer_html_code($inp)
{
// Wenn der Benutzer z.B. ä im HTML-Formular eingegeben hat, würde hier aufgrund von Unicode quatsch rauskommen
$inp = my_htmlentities($inp);
$inp = undo_transamp_replace_spitze_klammern($inp);
foreach ($trans as $m1 => $m2)
{
if (($m2 != '<') && ($m2 != '>'))
}
// Erweiterte Zeichensatztabelle, die auch da Euro-Zeichen enthält
// Entnommen von http://www.php.net/manual/de/function.get-html-translation-table.php#73410
$trans2 = array('''=>''', '−'=>'-', 'ˆ'=>'^', '˜'=>'~', 'Š'=>'Š', '‹'=>'‹', 'Œ'=>'Œ', '‘'=>'‘', '’'=>'’', '“'=>'“', '”'=>'”', '•'=>'•', '–'=>'–', '—'=>'—', '˜'=>'˜', '™'=>'™', 'š'=>'š', '›'=>'›', 'œ'=>'œ', 'Ÿ'=>'Ÿ', 'ÿ'=>'ÿ', 'Œ'=>'Œ', 'œ'=>'œ', 'Š'=>'Š', 'š'=>'š', 'Ÿ'=>'Ÿ', 'ƒ'=>'ƒ', 'ˆ'=>'ˆ', '˜'=>'˜', 'Α'=>'Α', 'Β'=>'Β', 'Γ'=>'Γ', 'Δ'=>'Δ', 'Ε'=>'Ε', 'Ζ'=>'Ζ', 'Η'=>'Η', 'Θ'=>'Θ', 'Ι'=>'Ι', 'Κ'=>'Κ', 'Λ'=>'Λ', 'Μ'=>'Μ', 'Ν'=>'Ν', 'Ξ'=>'Ξ', 'Ο'=>'Ο', 'Π'=>'Π', 'Ρ'=>'Ρ', 'Σ'=>'Σ', 'Τ'=>'Τ', 'Υ'=>'Υ', 'Φ'=>'Φ', 'Χ'=>'Χ', 'Ψ'=>'Ψ', 'Ω'=>'Ω', 'α'=>'α', 'β'=>'β', 'γ'=>'γ', 'δ'=>'δ', 'ε'=>'ε', 'ζ'=>'ζ', 'η'=>'η', 'θ'=>'θ', 'ι'=>'ι', 'κ'=>'κ', 'λ'=>'λ', 'μ'=>'μ', 'ν'=>'ν', 'ξ'=>'ξ', 'ο'=>'ο', 'π'=>'π', 'ρ'=>'ρ', 'ς'=>'ς', 'σ'=>'σ', 'τ'=>'τ', 'υ'=>'υ', 'φ'=>'φ', 'χ'=>'χ', 'ψ'=>'ψ', 'ω'=>'ω', 'ϑ'=>'ϑ', 'ϒ'=>'ϒ', 'ϖ'=>'ϖ', ' '=>' ', ' '=>' ', ' '=>' ', '‌'=>'‌', '‍'=>'‍', '‎'=>'‎', '‏'=>'‏', '–'=>'–', '—'=>'—', '‘'=>'‘', '’'=>'’', '‚'=>'‚', '“'=>'“', '”'=>'”', '„'=>'„', '†'=>'†', '‡'=>'‡', '•'=>'•', '…'=>'…', '‰'=>'‰', '′'=>'′', '″'=>'″', '‹'=>'‹', '›'=>'›', '‾'=>'‾', '⁄'=>'⁄', '€'=>'€', 'ℑ'=>'ℑ', '℘'=>'℘', 'ℜ'=>'ℜ', '™'=>'™', 'ℵ'=>'ℵ', '←'=>'←', '↑'=>'↑', '→'=>'→', '↓'=>'↓', '↔'=>'↔', '↵'=>'↵', '⇐'=>'⇐', '⇑'=>'⇑', '⇒'=>'⇒', '⇓'=>'⇓', '⇔'=>'⇔', '∀'=>'∀', '∂'=>'∂', '∃'=>'∃', '∅'=>'∅', '∇'=>'∇', '∈'=>'∈', '∉'=>'∉', '∋'=>'∋', '∏'=>'∏', '∑'=>'∑', '−'=>'−', '∗'=>'∗', '√'=>'√', '∝'=>'∝', '∞'=>'∞', '∠'=>'∠', '∧'=>'∧', '∨'=>'∨', '∩'=>'∩', '∪'=>'∪', '∫'=>'∫', '∴'=>'∴', '∼'=>'∼', '≅'=>'≅', '≈'=>'≈', '≠'=>'≠', '≡'=>'≡', '≤'=>'≤', '≥'=>'≥', '⊂'=>'⊂', '⊃'=>'⊃', '⊄'=>'⊄', '⊆'=>'⊆', '⊇'=>'⊇', '⊕'=>'⊕', '⊗'=>'⊗', '⊥'=>'⊥', '⋅'=>'⋅', '⌈'=>'⌈', '⌉'=>'⌉', '⌊'=>'⌊', '⌋'=>'⌋', '⟨'=>'〈', '⟩'=>'〉', '◊'=>'◊', '♠'=>'♠', '♣'=>'♣', '♥'=>'♥', '♦'=>'♦');
foreach ($trans2 as $m1 => $m2)
{
// Funktioniert chr() bei den 8... Einträgen? Finde Eurozeichen nicht bei chr(8364)!
if (($m2 != '<') && ($m2 != '>'))
}
return undo_transamp_replace_spitze_klammern($inp);
}
//////////////////////////////////////////////////////////////////////////////
// VERSCHLÜSSELUNGSFUNKTIONEN FÜR SESSIONS U.A. //
//////////////////////////////////////////////////////////////////////////////
function special_hash($string)
{
$iterations = 10;
$last = $string;
$out = '';
for ($i=0; $i<$iterations; $i++)
{
$out .= $last;
}
$garbarge_count = 0;
for ($i=0; $i<strlen($last); $i++)
{
if (($last[$i] == '0') || ($last[$i] == '1') || ($last[$i] == '2') || ($last[$i] == '3') ||
($last[$i] == '4') || ($last[$i] == '5') || ($last[$i] == '6') || ($last[$i] == '7') ||
($last[$i] == '8') || ($last[$i] == '9'))
{
$garbarge_count = $garbarge_count + $last[$i];
}
}
for ($i=0; $i<=$garbarge_count; $i++)
{
$out = $last[0].$out.$last[1];
}
return $out;
}
function get_rnd_iv($iv_len)
{
$iv = '';
while ($iv_len-- > 0) {
}
return $iv;
}
function md5_encrypt($plain_text, $password, $iv_len = 16)
{
$plain_text .= "\x13";
if ($n % 16) $plain_text .= str_repeat("\0", 16 - ($n % 16));
$i = 0;
$enc_text = get_rnd_iv($iv_len);
$iv = substr($password ^
$enc_text, 0, 512);
while ($i < $n) {
$enc_text .= $block;
$iv = substr($block . $iv, 0, 512) ^
$password;
$i += 16;
}
}
function md5_decrypt($enc_text, $password, $iv_len = 16)
{
$i = $iv_len;
$plain_text = '';
$iv = substr($password ^
substr($enc_text, 0, $iv_len), 0, 512);
while ($i < $n) {
$block = substr($enc_text, $i, 16);
$plain_text .= $block ^
pack('H*', md5($iv));
$iv = substr($block . $iv, 0, 512) ^
$password;
$i += 16;
}
}
function ib_encrypt($message, $key)
{
return md5_encrypt($message, $key);
}
function ib_decrypt($message, $key)
{
return md5_decrypt($message, $key);
}
//////////////////////////////////////////////////////////////////////////////
// NÜTZLICHE FUNKTIONEN //
//////////////////////////////////////////////////////////////////////////////
function dirname_with_pathdelimiter($directory)
{
return $tmp;
}
function string2hex($str)
{
{
$hex = "";
for ($i=0; $i<$length; $i++)
{
}
return $hex;
}
}
function hex2string($hex)
{
$string = '';
for ($ix=0; $ix < strlen($hex); $ix=$ix+2)
{
}
return $string;
}
// http://lists.phpbar.de/pipermail/php/Week-of-Mon-20040322/007749.html
function fetchip()
{
$client_ip = (isset($_SERVER['HTTP_CLIENT_IP'])) ?
$_SERVER['HTTP_CLIENT_IP'] : '';
$x_forwarded_for = (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) ?
$_SERVER['HTTP_X_FORWARDED_FOR'] : '';
$remote_addr = (isset($_SERVER['REMOTE_ADDR'])) ?
$_SERVER['REMOTE_ADDR'] : '';
{
$ip_expl = explode('.',$client_ip);
$referer = explode('.',$remote_addr);
if($referer[0] != $ip_expl[0])
{
}
else
{
$return = $client_ip;
}
}
else if (!empty($x_forwarded_for))
{
if(strstr($x_forwarded_for,','))
{
$ip_expl = explode(',',$x_forwarded_for);
}
else
{
$return = $x_forwarded_for;
}
}
else
{
$return = $remote_addr;
}
unset ($client_ip, $x_forwarded_for, $remote_addr, $ip_expl);
return $return;
}
// http://de.php.net/manual/de/function.fsockopen.php#73581
// http://de.php.net/manual/de/function.fsockopen.php#75175
function decode_header ( $str )
{
$part = preg_split ( "/\r?\n/", $str, -1, PREG_SPLIT_NO_EMPTY
);
for ( $h = 0; $h < sizeof ( $part ); $h++ )
{
if ( $h != 0 )
{
$pos = strpos ( $part[$h], ':' );
}
else
{
$k = 'status';
$v = $v[1];
}
if ($k == '') break; // Zusatz von Personal WebBase
if ( $k == 'set-cookie' )
{
$out['cookies'][] = $v;
}
else if ( $k == 'content-type' )
{
if ( ( $cs = strpos ( $v, ';' ) ) !== false )
{
$out[$k] = substr ( $v, 0, $cs );
}
else
{
$out[$k] = $v;
}
}
else
{
$out[$k] = $v;
}
}
return $out;
}
function decode_body ( $info, $str, $eol = "\r\n" )
{
$tmp = $str;
$str = '';
if ( isset ( $info['transfer-encoding'] ) && $info['transfer-encoding'] == 'chunked' )
{
do
{
if ( isset ( $info['content-encoding'] ) )
{
}
else
{
$str .= substr ( $tmp, ( $pos + $add ), $len );
}
$tmp = substr ( $tmp, ( $len + $pos + $add ) );
}
while ( ! empty ( $check ) );
}
else if ( isset ( $info['content-encoding'] ) )
{
}
else {
$str = $tmp;
}
return $str;
}
function url_protokoll_vorhanden($url)
{
return ((strpos($ary[0], '/') === false) && (isset($ary[1])));
}
function my_get_contents($url, $show_errors = false, $ignore_status_code = false, $time_out = 10, $umleitung_limit = 50, $umleitung_count = 0)
{
if (!url_protokoll_vorhanden($url)) $url = 'http://'.$url;
if (!inetconn_ok())
{
if ($show_errors)
{
echo '<b>Fehler:</b> my_get_contents('.$url.'): Es existiert keine Internetverbindung.<br>';
}
return false;
}
// Jetzt reichts abba...
if ($umleitung_count > $umleitung_limit)
{
if ($show_errors)
{
echo '<b>Fehler:</b> my_get_contents('.$url.'): Umleitungslimit von 50 erreicht.<br>';
}
return false;
}
// URL splitten
// Host festlegen
$ssl = '';
$host = $bry[0];
// Port festlegen und ggf. SSL-Präfix setzen
{
$port = $bry[1];
}
else
{
if ($ary[0] == 'ftp')
{
$port = 21;
}
if ($ary[0] == 'http')
{
$port = 80;
}
else if ($ary[0] == 'https')
{
$ssl = 'ssl://';
$port = 443;
}
else
{
$port = 80; // Problem
}
}
// Request-String festlegen
$req = '';
for ($i=1; isset($cry[$i]); $i++)
{
$req .= '/'.$cry[$i];
}
if ($req == '') $req = '/';
// User-Agent = Personal WebBase
$revision = '???';
if (file_exists('includes/rev.inc.php')) include('includes/rev.inc.php');
$uagent = 'ViaThinkSoft-Personal WebBase/'.$revision;
// Anfrage starten
$fp = @fsockopen($ssl.$host, $port, $errno, $errstr, $time_out);
if (!$fp)
{
if ($show_errors)
{
echo '<b>Fehler:</b> my_get_contents('.$url.'): Fehler beim öffnen des Sockets - '.$errstr.' ('.$errno.')<br>';
}
return false;
}
else
{
$tmp = '';
@fputs ($fp, "GET $req HTTP/1.1\r\nHost: $host\r\nConnection: close\r\nUser-Agent: $uagent\r\n\r\n");
{
}
$info = decode_header($tmp);
// Fehler?
if ((!$ignore_status_code) && (isset($info['status'])) && ($info['status'] >= 400))
{
if ($show_errors)
{
echo '<b>Fehler:</b> my_get_contents('.$url.'): HTTP-Status-Code '.$info['status'].'<br>';
}
return false;
}
// Umleitung vorhanden?
if ((isset($info['location'])) && ($info['location'] != ''))
{
if (strpos($info['location'], '://') !== false)
{
// 1. Fall: http://www.example.com/test.php
return my_get_contents($info['location'], $show_errors, $ignore_status_code, $time_out, $umleitung_limit, $umleitung_count+1);
}
else if (substr($info['location'], 0, 2) == './')
{
// 2. Fall: ./test.php
{
// Entweder ein Verzeichnis ohne / am Ende oder eine Datei
// Letztes Element muss abgeschnitten werden
$x = '';
for ($j=1; isset($gry[$j+1]); $j++)
{
$x .= '/'.$gry[$j];
}
$x .= '/';
}
else
{
$x = $req;
}
$x .= substr($info['location'], 2, strlen($info['location'])-2);
return my_get_contents($ary[0].'://'.$host.$x, $show_errors, $ignore_status_code, $time_out, $umleitung_limit, $umleitung_count+1);
}
else if (substr($info['location'], 0, 1) == '/')
{
// 3. Fall: /test.php
$x = $info['location'];
return my_get_contents($ary[0].'://'.$host.$x, $show_errors, $ignore_status_code, $time_out, $umleitung_limit, $umleitung_count+1);
}
else
{
// 4. Fall: test.php (= ./test.php)
$x = $req;
{
// Entweder ein Verzeichnis ohne / am Ende oder eine Datei
// Letztes Element muss abgeschnitten werden
$x = '';
for ($j=1; isset($gry[$j+1]); $j++)
{
$x .= '/'.$gry[$j];
}
$x .= '/';
}
else
{
$x = $req;
}
$x .= $info['location'];
return my_get_contents($ary[0].'://'.$host.$x, $show_errors, $ignore_status_code, $time_out, $umleitung_limit, $umleitung_count+1);
}
}
// Content filtern
$tmp = '';
for ($i=1; isset($con[$i]); $i++)
{
$tmp .= $con[$i];
if (isset($con[$i+1])) $tmp .= "\r\n\r\n";
}
return decode_body ( $info, $tmp );
}
}
function my_htmlentities($inp, $charset = 'iso-8859-1')
{
// http://www.php.net/manual/de/function.htmlspecialchars.php
// PHP-Version wird nicht kontrolliert...
$cs = 'utf-8';
if (strtolower($charset) == 'iso-8859-1') $cs = 'ISO-8859-1';
if (strtolower($charset) == 'iso8859-1') $cs = 'ISO-8859-1';
if (strtolower($charset) == 'iso-8859-15') $cs = 'ISO-8859-15';
if (strtolower($charset) == 'iso8859-15') $cs = 'ISO-8859-15';
if (strtolower($charset) == 'utf-8') $cs = 'UTF-8';
if (strtolower($charset) == 'cp866') $cs = 'cp866';
if (strtolower($charset) == 'ibm866') $cs = 'cp866';
if (strtolower($charset) == 'cp1251') $cs = 'cp1251';
if (strtolower($charset) == 'windows-1251') $cs = 'cp1251';
if (strtolower($charset) == 'win-1251') $cs = 'cp1251';
if (strtolower($charset) == '1251') $cs = 'cp1251';
if (strtolower($charset) == 'cp1252') $cs = 'cp1252';
if (strtolower($charset) == 'windows-1252') $cs = 'cp1252';
if (strtolower($charset) == '1252') $cs = 'cp1252';
if (strtolower($charset) == 'koi8-r') $cs = 'KOI8-R';
if (strtolower($charset) == 'koi8-ru') $cs = 'KOI8-R';
if (strtolower($charset) == 'koi8r') $cs = 'KOI8-R';
if (strtolower($charset) == 'gb2312') $cs = 'GB2312';
if (strtolower($charset) == '936') $cs = 'GB2312';
if (strtolower($charset) == 'big5-hkscs') $cs = 'BIG5-HKSCS';
if (strtolower($charset) == 'shift_jis') $cs = 'Shift_JIS';
if (strtolower($charset) == 'sjis') $cs = 'Shift_JIS';
if (strtolower($charset) == '932') $cs = 'Shift_JIS';
if (strtolower($charset) == 'euc-jp') $cs = 'EUC-JP';
if (strtolower($charset) == 'eucjp') $cs = 'EUC-JP';
}
function check_email($email_adresse)
{
return preg_match("/^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,4}$/",$email_adresse);
}
function return_bytes($val)
{
switch($last)
{
case 'g':
$val *= 1024;
/* ... falls through ... */
case 'm':
$val *= 1024;
/* ... falls through ... */
case 'k':
$val *= 1024;
/* ... falls through ... */
}
return $val;
}
function zufall($size)
{
$result = "";
for($i=0; $i < $size; $i++)
{
while (($num >= 58 && $num <= 64) || ($num >= 91 && $num <= 96))
}
return $result;
}
function runden($inp, $nachkommastellen = 0)
{
}
// PHP-AntiSpam-Funktion "secure_email", Version 3.0
// von Daniel Marschall [www.daniel-marschall.de]
function secure_email($email, $linktext, $crypt_linktext)
{
{
function alas_js_crypt($text)
{
$tmp = '';
for ($i=0; $i<strlen($text); $i++)
{
$tmp .= 'document.write("&#'.ord(substr($text, $i, 1)).';");';
}
return $tmp;
}
}
{
function alas_js_write($text)
{
return 'document.write("'.$text.'");';
}
}
$aus = '';
if ($email != '')
{
$aus .= '<script language="JavaScript" type="text/javascript"><!--'."\n";
$aus .= alas_js_write('<a href="');
$aus .= alas_js_crypt('mailto:'.$email);
$aus .= alas_js_write('">');
$aus .= $crypt_linktext ? alas_js_crypt($linktext) : alas_js_write($linktext);
$aus .= alas_js_write('</a>').'// --></script>';
}
return $aus;
}
function de_convertmysqldatetime($datum, $zeige_sekunden = false)
{
if (($datum == '') || ($datum == '0000-00-00 00:00:00'))
{
return 'Unbekannt';
}
else
{
{
}
else
{
$date[0] = '';
$date[1] = '';
$date[2] = '';
}
if ($ddatum[1] == '01') $mon = 'Januar';
if ($ddatum[1] == '02') $mon = 'Februar';
if ($ddatum[1] == '03') $mon = 'März';
if ($ddatum[1] == '04') $mon = 'April';
if ($ddatum[1] == '05') $mon = 'Mai';
if ($ddatum[1] == '06') $mon = 'Juni';
if ($ddatum[1] == '07') $mon = 'Juli';
if ($ddatum[1] == '08') $mon = 'August';
if ($ddatum[1] == '09') $mon = 'September';
if ($ddatum[1] == '10') $mon = 'Oktober';
if ($ddatum[1] == '11') $mon = 'November';
if ($ddatum[1] == '12') $mon = 'Dezember';
$datum = $tag.". ".$mon." ".$ddatum[0];
if (($date[0] != '') && ($date[1] != ''))
{
if ($zeige_sekunden) $zus = ':'.$date[2]; else $zus = '';
return $datum.', '.$date[0].':'.$date[1].$zus.' Uhr';
}
else
return $datum;
}
}
function zwischen_url($url, $von, $bis, $flankierungen_miteinbeziehen = true)
{
return zwischen_str(my_get_contents($url), $von, $bis, $flankierungen_miteinbeziehen);
}
function zwischen_str($str, $von, $bis, $flankierungen_miteinbeziehen = true)
{
$ausgabe = $str;
if ($von != '')
{
$pos = strpos($ausgabe, $von);
if ($pos !== false)
{
if (!$flankierungen_miteinbeziehen)
}
}
if ($bis != '')
{
$pos = strpos($ausgabe, $bis);
if ($pos !== false)
{
if (!$flankierungen_miteinbeziehen)
}
}
return $ausgabe;
}
//////////////////////////////////////////////////////////////////////////////
// GFX/LISTE/OOP-FUNKTIONEN //
//////////////////////////////////////////////////////////////////////////////
function oop_link_to_modul($modul, $seite = 'inhalt', $titelzeile_modul = '')
{
$titel = $modul;
$modulueberschrift = '';
$modulsekpos = '';
$modulpos = '';
$modulrechte = '';
$autor = '';
$version = '';
$menuevisible = '';
$license = '';
$deaktiviere_zugangspruefung = 0;
if ($titelzeile_modul == '') $titelzeile_modul = $modul;
if (file_exists('modules/'.wb_dir_escape
($titelzeile_modul).'/var.inc.php'))
{
include('modules/'.wb_dir_escape($titelzeile_modul).'/var.inc.php');
$titel = $modulueberschrift;
}
if (file_exists('modules/'.wb_dir_escape
($titelzeile_modul).'/images/menu/32.png'))
$g = 'modules/'.wb_dir_escape($titelzeile_modul).'/images/menu/32.png';
else if (file_exists('modules/'.wb_dir_escape
($titelzeile_modul).'/images/menu/32.gif'))
$g = 'modules/'.wb_dir_escape($titelzeile_modul).'/images/menu/32.gif';
else
$g = 'design/spacer.gif';
return "javascript:oop('".$modul."', '".$seite."', '".my_htmlentities($titel)."', '".$g."');";
}
function liste_items($modul, $table, $append, $dir = 0)
{
global $benutzer;
$i = 0;
$res = db_query("SELECT * FROM `$table` WHERE `folder` = '".db_escape($dir)."' AND `user` = '".$benutzer['id']."' $append");
while ($row = db_fetch($res))
{
$i++;
$erg[$i] = $row;
}
return $erg;
}
function liste_items_filter($modul, $table, $append)
{
$i = 0;
$res = db_query("SELECT * FROM `$table` $append");
while ($row = db_fetch($res))
{
$i++;
$erg[$i] = $row;
}
return $erg;
}
function gfx_begintable()
{
echo '<div align="center"><table cellspacing="0" cellpadding="2" border="0" width="90%">';
}
function gfx_endtable()
{
echo '</table></div><br>';
}
function gfx_tablecontent()
{
echo '<tr class="row_tab" onmouseover="this.className=\'row_tab_act\';" onmouseout="this.className=\'row_tab\';">';
$j = 0;
{
$j++;
else
$w = '';
echo '<td valign="top" align="left" '.$w.'>'.@func_get_arg($i+1).'</td>';
}
if ($j == 0)
echo '<td valign="top" align="left" width="100%"> </td>';
echo '</tr>'."\n";
}
function gfx_tablespancontent($highlight, $span, $text)
{
if ($highlight == 1) $hfarb = '4';
if ($highlight == 0) $hfarb = '5';
if ($highlight == 2) $hfarb = '6';
echo '<tr class="row_tab" onmouseover="this.className=\'row_tab_act\';" onmouseout="this.className=\'row_tab\';">';
echo '<td valign="top" align="left" colspan="'.$span.'">'.$text.'</td>';
echo '</tr>';
}
function gfx_zeichneitems_filter($modul, $table, $append)
{
global $ordnereinzug, $mysql_zugangsdaten;
$einzug = 0;
$ary = liste_items_filter($modul, $table, $append);
$durchlauf = 0;
for ($i=1; isset($ary[$i]['id']); $i++)
{
$durchlauf++;
if (file_exists('modules/'.wb_dir_escape
($modul).'/menueeintrag.inc.php'))
include('modules/'.wb_dir_escape($modul).'/menueeintrag.inc.php');
echo "\n";
}
return $durchlauf;
}
function gfx_zeichneitems($modul, $table, $append, $folder = 0, $einzug = 0)
{
global $ordnereinzug, $mysql_zugangsdaten;
$ary = liste_items($modul, $table, $append, $folder);
$durchlauf = 0;
for ($i=1; isset($ary[$i]['id']); $i++)
{
$durchlauf++;
if (file_exists('modules/'.wb_dir_escape
($modul).'/menueeintrag.inc.php'))
include('modules/'.wb_dir_escape($modul).'/menueeintrag.inc.php');
}
return $durchlauf;
}
function gfx_zeichnemenuepunkt($modul, $seite, $titel, $klein, $gross)
{
$g = $gross;
else
$g = 'design/spacer.gif';
$k = $klein;
else
$k = 'design/spacer.gif';
return '<tr class="row_nav" onmouseover="this.className=\'row_nav_act\';" onmouseout="this.className=\'row_nav\';">
<td onclick="oop(\''.$modul.'\', \''.$seite.'\', \''.$titel.'\', \''.$g.'\');" valign="middle" align="left"><img src="design/spacer.gif" height="1" width="3" alt=""></td>
<td onclick="oop(\''.$modul.'\', \''.$seite.'\', \''.$titel.'\', \''.$g.'\');" valign="bottom" align="left"><img src="'.$k.'" height="16" width="16" alt=""></td>
<td onclick="oop(\''.$modul.'\', \''.$seite.'\', \''.$titel.'\', \''.$g.'\');" valign="bottom" align="left"><img src="design/spacer.gif" height="1" width="5" alt=""></td>
<td onclick="oop(\''.$modul.'\', \''.$seite.'\', \''.$titel.'\', \''.$g.'\');" valign="bottom" align="left" width="100%"><a href="javascript:oop(\''.$modul.'\', \''.$seite.'\', \''.$titel.'\', \''.$g.'\');" class="menu_blk">'.$titel.'</a></td>
<td onclick="oop(\''.$modul.'\', \''.$seite.'\', \''.$titel.'\', \''.$g.'\');" valign="middle" align="left"><img src="design/spacer.gif" alt="" width="1" height="1"></td>
</tr>'."\n";
}
function gfx_zeichnemenueplatzhalter()
{
return '<tr>
<td colspan="5"><img src="design/spacer.gif" alt="" width="1" height="14"></td>
</tr>';
}
function wb_dir_escape($s) {
return $s;
}