<? include('mylib.php'); $LANG_LIST = GetLangList(); $SITE = $_REQUEST['site']; if (empty($SITE)){ $SITE = "index"; } $LANG = $_REQUEST['lang']; if (empty($LANG)){ $LANG = 'en'; } GetHead($LANG, $SITE, $LANG_LIST); GetSite($LANG, $SITE, $LANG_LIST); ?> <div class="Footer"> Hosted by: <a href="http://developer.berlios.de" title="BerliOS Developer"> <img src="http://developer.berlios.de/bslogo.php?group_id=3237" width="124px" height="32px" border="0" alt="BerliOS Developer"> </a> </div> <!-- To help a friend //--> <div style="display:none;"> <a href="http://www.23inch.de">23 Inch</a>
function AddSignonStatus($lsurl, $show_history = 0) { global $xml, $dsp, $HTTPHeader, $func; if (substr($lsurl, strlen($lsurl) - 1, 1) != '/') { $lsurl .= '/'; } if (substr($lsurl, 0, 7) != 'http://') { $lsurl = 'http://' . $lsurl; } $lsurl .= 'ext_inc/party_infos/infos.xml'; # $lines = @file($lsurl); $content = GetSite($lsurl); # if (!$lines) return t('infos.xml fehlt'); if (!$content) { return '<div class="infolink" style="display:inline">' . t('infos.xml fehlt') . '<span class="infobox">' . $lsurl . HTML_NEWLINE . HTML_NEWLINE . str_replace("'", "\\'", str_replace('"', "'", str_replace("\r\n", HTML_NEWLINE, $HTTPHeader))) . '</span></div>'; } else { # $content = ''; # foreach ($lines as $line_num => $line) $content .= $line; $system = $xml->get_tag_content_array('system', $content); // Version 3.0 XML-File if ($system) { # $name = $xml->get_tag_content('name', $system[0]); # $link = $xml->get_tag_content('link', $system[0]); # $language = $xml->get_tag_content('language', $system[0]); $current_party = $xml->get_tag_content('current_party', $system[0]); # $users = $xml->get_tag_content('users', $system[0]); $partys = $xml->get_tag_content_array('party', $content); $ret = ''; if (!$partys) { return t('Noch keine Party angelegt'); } else { foreach ($partys as $p) { $partyid = $xml->get_tag_content('partyid', $p); $partyname = $xml->get_tag_content('name', $p); $max_guest = $xml->get_tag_content('max_guest', $p); $ort = $xml->get_tag_content('ort', $p); $plz = $xml->get_tag_content('plz', $p); # $startdate = $xml->get_tag_content('startdate', $p); # $enddate = $xml->get_tag_content('enddate', $p); # $sstartdate = $xml->get_tag_content('sstartdate', $p); # $senddate = $xml->get_tag_content('senddate', $p); $registered = $xml->get_tag_content('registered', $p); $paid = $xml->get_tag_content('paid', $p); # Overview if (!$_GET['partyid'] and $current_party == $partyid) { $ret .= $func->CreateSignonBar($registered, $paid, $max_guest) . 'Max.: ' . $max_guest; } # Details if ($_GET['partyid']) { if (!$show_history and $current_party == $partyid) { $ret .= $func->CreateSignonBar($registered, $paid, $max_guest); } elseif ($show_history and $current_party != $partyid) { $dsp->AddDoubleRow($partyname . HTML_NEWLINE . $plz . ' ' . $ort, $func->CreateSignonBar($registered, $paid, $max_guest)); } } } } return $ret; // Old version } else { $guests = $xml->get_tag_content('guests', $content); $paid_guests = $xml->get_tag_content('paid_guests', $content); $max_guests = $xml->get_tag_content('max_guests', $content); $signon_start = $xml->get_tag_content('signon_start', $content); $signon_end = $xml->get_tag_content('signon_end', $content); return $func->CreateSignonBar($registered, $paid, $max_guest); } } }