Watch
0
0
Fork
You've already forked easterhegg-2007-website
0

import from old webserver

This commit is contained in:
Jannik Beyerstedt 2024-01-27 15:16:07 +01:00
commit 581270204f
650 changed files with 84412 additions and 0 deletions

34
about.shtml Normal file
View file

@ -0,0 +1,34 @@
<!--#include virtual="ssi_site_header.html" -->
<!-- begin of specific page header -->
<title>&Uuml;ber das Easterhegg</title>
<!-- end of specific page header -->
<!--#include virtual="ssi_site_intro.html" -->
<!-- begin of specific page content -->
<div id="main">
<h1 id="Einfuerhung">Was ist das Easterhegg?</h1>
<p>Das Easterhegg ist die zweitgr&ouml;sste, regelm&auml;ssig durchgef&uuml;hrte Veranstaltung des <a href="https://www.ccc.de">Chaos Computer Clubs</a>.<br/> Die Teilnehmer kommen aus dem gesamten Bundesgebiet, vereinzelt auch aus dem Ausland. <br/>Es besteht haupts&auml;chlich aus Workshops, weniger aus reinen Vortr&auml;gen. <br/>Abgedeckt wird das ganze Spektrum von Technik &uuml;ber Netzkultur bis zum Szenetreff. <br/>Die Veranstaltung bietet eine F&uuml;lle an hochklassigen Workshops und Vortr&auml;gen. <br/>Dazu kommt, dass das Easterhegg unschlagbar preiswert ist, da es nichtkommerziell ist und alle Beteiligten ehrenamtlich arbeiten.</p>
<a class="topOfPage" href="#top" title="Go to the top of this page">^ TOP</a>
<h1 id="Unterschiede">Was ist beim Easterhegg anders als beim Chaos Communication Congress?</h1>
<p>Der auff&auml;lligste Unterschied ist wohl, dass das Easterhegg nicht nur aus Vortr&auml;gen besteht, sondern haupts&auml;chlich aus Workshops, bei denen die Besucher selbst mitmachen k&ouml;nnen und sollen. Zum anderen ist es keineswegs ein solch gigantisches Event wie der Chaos Communication Congress, was allerdings hei&szlig;t, dass der Platz begrenzt ist und man sich deshalb anmelden muss. Dar&uuml;berhinaus k&ouml;nnen Tageskarten nur solange ausgegeben werden, wie die Veranstaltung nicht &uuml;berf&uuml;llt ist.</p>
<a class="topOfPage" href="#top" title="Go to the top of this page">^ TOP</a>
<h1 id="Wer">Wer steckt dahinter?</h1>
<p>Wer steckt dahinter?
<ul>
<li><a href="https://www.ccc.de">Der Chaos Computer Club</a></li>
<li><a href="https://www.hamburg.ccc.de">Der CCC Erfa-Kreis Hamburg</a></li>
<li>...und eine Menge freiwilliger Personen</li>
</ul></p>
</div>
<!--#include virtual="ssi_site_extro.html" -->

570
anmeldung.php Normal file
View file

@ -0,0 +1,570 @@
<?php
// diese Seite stellt die Anmeldefunktion für die eh2007-Seite zur Verfügung
// (Topics: ~ heißt geplant, - heißt im Bau, + heißt implementiert.)
// + diese Seite liegt im öffentlichen Serverbereich, dieser darf *.php nicht als plain/text ausliefern ;)
// + diese Seite verlangt zwingend https
/*
Struktur dieser Seite:
+ write HTTP header
+ recall session
+ check, defuse and shorten input variables
+ Prüfung auf https
= OK => continue
= FAIL => Session-Zwangslogout, Abbruchmeldung und Schlußverarbeitung
+ Prüfung auf Wartungsstatus
= OK => continue
= FAIL => Abbruchmeldung und Schlußverarbeitung
+ Verarbeitung der Submit-Aktionen (POST), Anzeige des Anmeldeformulars
*/
// this script needs following additional server modules for PHP
// (none)
// write HTTP header (anti-cache)
header('Expires: Sun, 31 Dec 1989 23:59:59 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0');
header('Pragma: no-cache');
// recall session
session_cache_limiter('nocache');
session_cache_expire(1);
session_start();
//deactivate automatic use of addslashes
// set_magic_quotes_runtime(0);
// define general server constants
define( "SERVER_SITE_MAINTENANCE", true ); // maintenance state, set to TRUE to lock this page temporarily
define( "SERVER_LOCALHOST_IP", "127.0.0.1" ); // localhost IP, which does not need authentication
define( "SERVER_PROTOCOL_HTTPS", "HTTPS" ); // HTTPS protocol name
// define server file constants
define( "SERVER_FILE_TEMPLATE", "template.shtml" ); // template file
define( "SERVER_FILE_HEADER", "ssi_site_header.html" ); // SSI file for site header
define( "SERVER_FILE_INTRO", "ssi_site_intro.html" ); // SSI file for site intro
define( "SERVER_FILE_EXTRO", "ssi_site_extro.html" ); // SSI file for site extro
define( "SERVER_FILE_AUTOGEN", "ssi_site_autogen.html" ); // SSI file for site autogeneration warning
define( "SERVER_FILE_ANMELDUNGSLISTE", "anmeldung-data/anmeldung.csv" ); // path and file for registered participants
// define display constants
define( "DISPLAY_TEXT_NONE", " " );
define( "DISPLAY_VALUE_SEPARATOR", chr(9));
// init instance variables
$intnow = time();
$bolauthloggedin = false;
$strmsg = ''; // (status/error/etc.) message to user
$bolauthabort = false; // auth check will be aborted: show auth warning
$bolauthlogoutnow = false; // user will be logged out
$strnomailconfirmation = '';
$bolok = true; // action feedback, triggers confirmation if true or warning if false
// function library
function addmsg ($straddmsg)
{
// adds $straddmsg to $strmsg
global $strmsg;
if ( $straddmsg != '' )
{
$strmsg = $strmsg . '<li>' . $straddmsg . '</li>';
}
}
function showmsg ()
{
// shows messages in $strmsg if available
global $strmsg, $bolok;
if ( $strmsg != '' )
{
echo'
<div class="announcement">
<h1 class="';
if ( $bolok )
{
echo 'confirmation';
}
else
{
echo 'warning';
}
echo '">Feedback</h1>
<ul>' . $strmsg . '</ul>
</div>';
$strmsg = '';
$bolok = false;
}
}
// prepare input variables in six steps
// 1. init internal variable, e.g.: $strparam = '';
// 2. execute step 3 up to 6 only if external variable exists, e.g.: if ( isset($_GET['txt_param']) )
// 3. convert to correct type, e.g.: $gstrparam = (string) $_GET['param'];
// 4. defuse dangerous content, e.g.: $gstrparam = trim( addslashes( htmlentities( urldecode( $gstrparam ), ENT_QUOTES )));
// 5. limit allowed size, e.g.: if ( strlen( $gstrparam ) > 255 ) $gstrparam = substr( $gstrparam, 0, 255 );
// 6. on demand evaluate content and overwrite respective internal variables, e.g. $strparam = $gstrparam;
$strnick = '';
if ( isset($_POST['txt_nick']) )
{
$pstrnick = (string) $_POST['txt_nick'];
$pstrnick = str_replace( chr(13) . chr(10), '\n', $pstrnick );
$pstrnick = str_replace( chr(13), '\n', $pstrnick );
$pstrnick = str_replace( chr(10), '\n', $pstrnick );
$pstrnick = str_replace( chr(9), '\t', $pstrnick );
$pstrnick = trim( stripslashes( htmlentities( $pstrnick, ENT_QUOTES )));
if ( strlen( $pstrnick ) > 255 ) $pstrnick = substr( $pstrnick, 0, 255 );
$strnick = $pstrnick;
if ( $strnick == '' )
{
addmsg ( 'Bitte w&auml;hle einen Nickname, mit dem Du auf dem Easterhegg angesprochen werden m&ouml;chtest.' );
$bolok = false;
}
}
$stremail = '';
if ( isset($_POST['txt_email']) )
{
$pstremail = (string) $_POST['txt_email'];
$pstremail = str_replace( chr(13) . chr(10), '\n', $pstremail );
$pstremail = str_replace( chr(13), '\n', $pstremail );
$pstremail = str_replace( chr(10), '\n', $pstremail );
$pstremail = str_replace( chr(9), '\t', $pstremail );
$pstremail = trim( stripslashes( htmlentities( $pstremail, ENT_QUOTES )));
if ( strlen( $pstremail ) > 255 ) $pstremail = substr( $pstremail, 0, 255 );
$stremail = $pstremail;
}
$strstatus = 'Normal';
if ( isset($_POST['opt_status']) )
{
$pstrstatus = (string) $_POST['opt_status'];
$pstrstatus = trim( stripslashes( htmlentities( $pstrstatus, ENT_QUOTES )));
if ( strlen( $pstrstatus ) > 255 ) $pstrstatus = substr( $pstrstatus, 0, 255 );
$strstatus = $pstrstatus;
// zusätzliche Engelprüfung, falls jemand die Sperre gehackt hat
if ( $strstatus == 'Engel' )
{
addmsg ( 'Eine Anmeldung als Engel ist nicht mehr m&ouml;glich.<br />Falls Du der Meinung bist, dass dies in Deinem speziellen Fall nicht klug ist, wende Dich bitte an die Organisatoren.' );
$strstatus = 'Hacker';
$bolok = false;
}
// validate -> schöner (und aufwendiger) wären dynamische Arrays, aber das funktioniert auch so gut genug...
if ( $strstatus != 'Normal' && $strstatus != 'Mitglied' && $strstatus != 'Engel' && $strstatus != 'Ermaeszigt' )
{
$strstatus = 'Hacker';
}
// Look! Hacker ;-)
if ( $strstatus == 'Hacker' )
{
addmsg ( 'Aufgrund Deiner (fast) erfolgreichen Hackversuche gehen wir davon aus, dass Du bereits CCC-Mitglied bist. ;-)' );
$strstatus = 'Mitglied';
}
}
$intwurst = 0;
if ( isset($_POST['txt_wurst']) )
{
$pintwurst = (integer) $_POST['txt_wurst'];
if ( $pintwurst > 65535 ) $pintwurst = 0;
if ( $pintwurst >= 0 and $pintwurst <= 9 )
{
$intwurst = $pintwurst;
}
else
{
addmsg ( 'Bitte korrigiere die Anzahl der Wurstbr&ouml;tchen, eine einstellige Zahl sollte genügen. ;-)' );
$bolok = false;
}
}
$intkaese = 0;
if ( isset($_POST['txt_kaese']) )
{
$pintkaese = (integer) $_POST['txt_kaese'];
if ( $pintkaese > 65535 ) $pintkaese = 0;
if ( $pintkaese >= 0 and $pintkaese <= 9 )
{
$intkaese = $pintkaese;
}
else
{
addmsg ( 'Bitte korrigiere die Anzahl der K&auml;sebr&ouml;tchen, eine einstellige Zahl sollte genügen. ;-)' );
$bolok = false;
}
}
$intmarmelade = 0;
if ( isset($_POST['txt_marmelade']) )
{
$pintmarmelade = (integer) $_POST['txt_marmelade'];
if ( $pintmarmelade > 65535 ) $pintmarmelade = 0;
if ( $pintmarmelade >= 0 and $pintmarmelade <= 9 )
{
$intmarmelade = $pintmarmelade;
}
else
{
addmsg ( 'Bitte korrigiere die Anzahl der Marmeladenbr&ouml;tchen, eine einstellige Zahl sollte genügen. ;-)' );
$bolok = false;
}
}
$bolobst = false;
if ( isset($_POST['chk_obst']) )
{
$pbolobst = (bool) $_POST['chk_obst'];
$bolobst = $pbolobst;
}
$bolmuesli = false;
if ( isset($_POST['chk_muesli']) )
{
$pbolmuesli = (bool) $_POST['chk_muesli'];
$bolmuesli = $pbolmuesli;
}
$bolanmeldung = false;
if ( isset($_POST['cmd_anmeldung']) )
{
$pbolanmeldung = (bool) $_POST['cmd_anmeldung'];
$bolanmeldung = $pbolanmeldung;
}
if
(
// localhost access
(
// direkter Aufruf von localhost
htmlspecialchars( $_SERVER['HTTP_X_FORWARDED_FOR'], ENT_QUOTES ) == ''
&&
htmlspecialchars( $_SERVER['REMOTE_ADDR'], ENT_QUOTES ) == constant("SERVER_LOCALHOST_IP")
)
||
(
// indirekter Aufruf (z.B. transparenter SSL-Proxy) mit übergebenem localhost
htmlspecialchars( $_SERVER['HTTP_X_FORWARDED_FOR'], ENT_QUOTES ) == constant("SERVER_LOCALHOST_IP")
)
)
{
// localhost ist immer eingeloggt
$sbolauthloggedin = true;
}
else
{
// check protocol and timeout
// check secure connection
// possible results:
// - secure => continue
// - insecure => force logout ($bolauthlogoutnow), show error page and prepare message ($strmsg)
if
(
(
// direct connection without HTTPS
$_SERVER['HTTPS'] == ''
&&
$_SERVER['HTTP_X_FORWARDED_PROTO'] == ''
)
||
(
// indirect connection without local HTTPS proxy, e.g. orenosp
strtolower($_SERVER['HTTP_X_FORWARDED_PROTO']) != strtolower(constant("SERVER_PROTOCOL_HTTPS"))
&& $_SERVER['HTTP_X_FORWARDED_PROTO'] != ''
)
)
{
// insecure connection -> abort
if ( !$bolauthlogoutnow && $sbolauthloggedin )
{
// active login over insecure connection -> force logout
$bolauthlogoutnow = true;
addmsg ( 'Du wirst ausgeloggt, da Deine Verbindung unsicher (unverschlüsselt) geworden ist.' );
}
addmsg ( '<a href="https://' . $_SERVER['HTTP_HOST'] . $_SERVER["PHP_SELF"] . '">Dein Verbindungsprotokoll ist HTTP. Bitte verwende für die Anmeldung Verschlüsselung mittels HTTPS.</a>' );
$bolauthabort = true;
$bolok = false;
}
// check auth timeout
// possible results:
// - auth active => continue
// - auth timeout => force logout ($bolauthlogoutnow), prepare message ($strmsg) and continue
if ( $sbolauthloggedin && !$bolauthlogoutnow )
{
// write message on user authentication expired -> also fire a logout ($bolauthlogoutnow)
// echo '<div class="warning">Du wurdest ausgeloggt wegen mehr als ' . constant("AUTH_TIMEOUT_MINUTES") . ' Minuten Inaktivit&auml;t.</div><br>';
$bolauthlogoutnow = true;
addmsg ( 'Du wirst ausgeloggt wegen mehr als ' . constant("AUTH_TIMEOUT_MINUTES") . ' Minuten Inaktivit&auml;t.' );
}
// restart timeout
$sintauthprevtime = $intnow;
}
if ( $bolauthlogoutnow || $bollogout )
{
// logout
if ( $bolauthlogoutnow )
{
addmsg ( 'Du wurdest automatisch ausgeloggt. Bitte gegebenenfalls erneut einloggen.' );
}
$sbolauthloggedin = false;
}
// check maintenance state
if ( constant("SERVER_SITE_MAINTENANCE") )
{
// cancel because of maintenance
$strmsg = '';
addmsg ( 'Die Anmeldung ist zurzeit deaktiviert.' );
$bolok = false;
$bolauthabort = true;
}
// Well, Checkpoint.
// Now a defined and normal state of checking has been reached.
// Possible states are now:
// - $sbolauthloggedin = true: user has successfully authenticated and is still logged in
// - $sbolauthloggedin = false: user is either not (yet) authenticated or authentication has been expired
// If there were any messages on the way up to here, they are stored as list items (<li>) in variable $strmsg.
// check auth phrase if user tries to login
if ( !$bolauthabort )
{
// login accepted
$sbolauthloggedin = true;
}
// prepare page
// assume that all ssi files are there. No, I won't check _that_ explicitely.
// If they ain't there, the user gets a partial page. ...so what? ;o)
readfile( constant("SERVER_FILE_HEADER") );
echo'
<!-- begin of specific page header -->
<title>Easterhegg 2007 - Anmeldung</title>
<!-- end of specific page header -->';
readfile( constant("SERVER_FILE_INTRO") );
echo'
<!-- begin of specific page content -->
';
echo
'
<div id="main">
<h1>Anmeldung</h1>
';
showmsg();
if ( !$sbolauthloggedin )
{
// show anmeldung page and then die
if ( !$bolauthabort )
{
// show login page
}
// close page and stoprun.
echo'
<!-- end of specific page content -->
';
readfile( constant("SERVER_FILE_EXTRO") );
die();
}
// Well, Checkpoint.
// Now the user is proofed to be successfully logged in. (All others are wiped out.)
// From here on the user is authorized to enjoy all the following features.
// default sequence within each chapter:
// 1. headline
// 2. submit action
// 3. showmsg();
// 4. user forms
// 5. showmsg();
// 6. five empty rows to separate from next chapter ;)
// show anmeldung chapter
if ( $bolanmeldung )
{
if ( $bolok )
{
// prüfen, ob die Anmeldungsliste überhaupt vorhanden und beschreibbar ist
if ( !is_writable( constant("SERVER_FILE_ANMELDUNGSLISTE") ))
{
addmsg ( 'Die Anmeldungsliste ist zurzeit nicht verf&uuml;gbar bzw. gesperrt.<br />Falls Du das Gef&uuml;hl hast, da&szlig; dies nicht okay ist, kontaktiere bitte die Orga-Crew. Danke Dir.');
$bolok = false;
}
}
if ( $bolok )
{
// prüfen, ob dieser Nickname bereits angemeldet ist
$strfile = file_get_contents( constant("SERVER_FILE_ANMELDUNGSLISTE") );
if ( stripos( $strfile, chr(10) . html_entity_decode( $strnick, ENT_QUOTES ) . chr(9) ) !== false )
{
// Nickname existiert bereits
addmsg ( 'Mit diesem Nickname ist bereits ein Teilnehmer angemeldet.<br />Bitte w&auml;hle einen anderen Nickname.' );
$bolok = false;
}
}
if ( $bolok )
{
// Anmeldung speichern
if ( $intfileid = fopen( constant("SERVER_FILE_ANMELDUNGSLISTE"), "a" ))
{
if ( !fwrite( $intfileid, html_entity_decode( $strnick, ENT_QUOTES ) . chr(9) . $strstatus . chr(9) . html_entity_decode ( $stremail, ENT_QUOTES ) . chr(9) . $intwurst . chr(9) . $intkaese . chr(9) . $intmarmelade . chr(9) . (integer) $bolobst . chr(9) . (integer) $bolmuesli . chr(9) . date( "Y.m.d-H:i:s", $intnow ) . chr(10) ))
{
$bolok = false;
};
if ( !fclose( $intfileid ))
{
$bolok = false;
}
}
else
{
$bolok = false;
}
if ( $bolok )
{
if ( $stremail != '' )
{
$strnomailconfirmation = '<br />Hinweis: Es wird keine zusätzliche Bestätigungsmail verschickt.';
}
addmsg ( 'Deine Anmeldung ist hiermit erfolgt. (' . date( "d.m.Y H:i:s", $intnow ) . ')' . $strnomailconfirmation );
addmsg ( 'Vielen Dank f&uuml;r Dein Interesse - Bis bald in Hamburg.' );
}
else
{
addmsg ( 'Deine Anmeldung konnte nicht gespeichert werden!<br />Bitte kontaktiere die Orga-Crew! Du bist nicht angemeldet!' );
}
}
}
showmsg();
echo
'
<form id="anmeldungform" name="anmeldungform" action="' . $_SERVER["PHP_SELF"] . '" method="post">
<p>
<span class="topic">Dein Nickname:</span>
<input class="db" name="txt_nick" type="text" value="' . $strnick. '" />
<span class="topic">Deine Emailadresse (optional):</span>
<input class="db" name="txt_email" type="text" value="' . $stremail . '" />
</p>
<span class="topic">Du zahlst einmalig f&uuml;r den gesamten Zeitraum (vier Tage):</span>
<span class="line"><input name="opt_status" id="opt_status" class="control" type="radio" style="width:20px" value="Normal"';
if ( $strstatus == 'Normal' ) echo ' checked="checked"';
echo ' />50 Euro als Normalsterblicher</span>
<span class="line"><input name="opt_status" id="opt_status" class="control" type="radio" style="width:20px" value="Mitglied"';
if ( $strstatus == 'Mitglied' ) echo ' checked="checked"';
echo ' />35 Euro als CCC-Mitglied</span>
<span class="line"><input name="opt_status" id="opt_status" class="control" type="radio" style="width:20px" disabled="true" value="Engel"';
if ( $strstatus == 'Engel' ) echo ' checked="checked"';
echo ' /><strike>25 Euro als Engel (freiwillige Helfer)</strike> - Es haben sich ausreichend Engel angemeldet -&gt; Danke!<span class="line" style="margin-left:50px">Falls speziell Du unbedingt noch zu den Engeln geh&ouml;ren solltest, wende Dich bitte an die Organisatoren.</span></span>
<span class="line"><input name="opt_status" id="opt_status" class="control" type="radio" style="width:20px" value="Ermaeszigt"';
if ( $strstatus == 'Ermaeszigt' ) echo ' checked="checked"';
echo ' />25 Euro als Sch&uuml;ler, erwerbslos etc. (nur gegen g&uuml;ltigen Nachweis)</span>
<p>
<span class="line">Im Preis enthalten ist eine Easterhegg-Tasse sowie ein t&auml;gliches Frühstück (Br&ouml;tchen, Wurst, Obst, K&auml;se, M&uuml;sli) als auch jederzeit Tee und Kaffee (Flatrate).</span>
</p>
<p>
<span class="line">Zur Kalkulation der ben&ouml;tigten Nahrungsmenge teile uns bitte mit, was und wieviel Du t&auml;glich zum Fr&uuml;hst&uuml;ck ben&ouml;tigst.</span>
</p>
<p>
';
echo
'
<span class="topic">Wurstbr&ouml;tchen: </span>
<input class="right" name="txt_wurst" type="text" value="' . $intwurst . '" />
<span class="topic">K&auml;sebr&ouml;tchen: </span>
<input class="right" name="txt_kaese" type="text" value="' . $intkaese . '" />
<span class="topic">Marmeladenbr&ouml;tchen: </span>
<input class="right" name="txt_marmelade" type="text" value="' . $intmarmelade . '" />
';
echo '<span class="line"><input id="chk_obst" name="chk_obst" class="control" type="checkbox" value="' . (string) true . '"';
if ( $bolobst ) echo ' checked="checked"';
echo ' /> Obst </span>';
echo '<span class="line"><input id="chk_muesli" name="chk_muesli" class="control" type="checkbox" value="' . (string) true . '"';
if ( $bolmuesli ) echo ' checked="checked"';
echo ' /> M&uuml;sli </span>';
echo
'
</p>
<p>
<input name="cmd_anmeldung" type="submit" value="Anmeldung best&auml;tigen" />
</p>
</form>
</p>
';
showmsg();
// close page and stoprun.
echo
'
<!-- end of specific page content -->
';
readfile( constant("SERVER_FILE_EXTRO") );
die();
?>

462
announce.php Normal file
View file

@ -0,0 +1,462 @@
<?php
// diese Seite stellt Orga-Funktionen für die eh2005-Seite zur Verfügung
// + diese Seite liegt im öffentlichen Serverbereich, dieser darf *.php nicht als plain/text ausliefern ;)
// + diese Seite verlangt zwingend https
// + diese Seite fragt bei jedem Submit ein Authentifikationspasswort ab, es gibt jedoch keine Session
/*
Struktur dieser Seite:
+ write HTTP header
+ check, defuse and shorten input variables
+ Prüfung auf https
= OK => continue
= FAIL => Abbruchmeldung und Schlußverarbeitung
+ Prüfung auf gültige Authentifizierung
= OK => continue
= FAIL => Abbruchmeldung und Schlußverarbeitung
+ Prüfung auf Wartungsstatus
= OK => continue
= FAIL => Abbruchmeldung und Schlußverarbeitung
+ Verarbeitung der Submit-Aktionen (POST), Anzeige der einzelnen Orga-Formulare
*/
// this script needs following additional server modules for PHP
// - (none)
// write HTTP header (anti-cache)
header('Expires: Sun, 31 Dec 1989 23:59:59 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0');
header('Pragma: no-cache');
// define general server constants
define( "SERVER_SITE_MAINTENANCE", false ); // maintenance state, set to TRUE to lock this page temporarily
define( "SERVER_LOCALHOST_IP", "127.0.0.1" ); // localhost IP, which does not need authentication
define( "SERVER_PROTOCOL_HTTPS", "HTTPS" ); // HTTPS protocol name
// define server file constants
define( "SERVER_FILE_MYSELF", "announce.php" ); // submit target of forms = this file itself
define( "SERVER_FILE_ANNOUNCE", "index.shtml" ); // announcement file; e.g. index file
define( "SERVER_FILE_RSS09", "rss09.rdf" ); // RSS 0.91 file; e.g. *.rdf
define( "SERVER_FILE_HEADER", "ssi_site_header.html" ); // SSI file for site header
define( "SERVER_FILE_INTRO", "ssi_site_intro.html" ); // SSI file for site intro
define( "SERVER_FILE_EXTRO", "ssi_site_extro.html" ); // SSI file for site extro
// define auth constants
define( "AUTH_SERVER_PASS", "?!?!BunnY2007!?!" ); // auth password, [todo:] should be outsourced to an external, secured data file
// init references to $_POST variables ($pxxx)
$pstrauth = & $_POST['txtauth'];
$pstrtitle = & $_POST['txttitle'];
$pstrannouncement = & $_POST['txtannouncement'];
$pbolannouncement = & $_POST['cmdannouncement'];
// init post variables (only for mandatory variables, ignore variables submitted by special forms!)
if ( !isset($pstrauth) ) $pstrauth = '';
if ( !isset($pstrtitle) ) $pstrtitle = '';
if ( !isset($pstrannouncement) ) $pstrannouncement = '';
// init instance variables
$intnow = time();
$strmsg = ''; // (status/error/etc.) message to user
$strauth = '';
$strinput = '';
$stroutput = '';
$intfileid = 0;
$strtitle = '';
$strannouncement = '';
$strauth = '';
$bolannouncement = false;
$bolauthabort= false;
$bolok = false; // action feedback, triggers confirmation if true or warning if false
// function library
function addmsg ($straddmsg)
{
// adds $straddmsg to $strmsg
global $strmsg;
if ( $straddmsg != '' )
{
$strmsg = $strmsg . '<li>' . $straddmsg . '</li>';
}
}
function showmsg ()
{
// shows messages in $strmsg if available
global $strmsg, $bolok;
if ( $strmsg != '' )
{
echo
'
<div class="announcement">
<h1 class="';
if ( $bolok )
{
echo 'confirmation';
}
else
{
echo 'warning';
}
echo '">Feedback</h3>
<ul>' . $strmsg . '</ul>
</div>
';
$strmsg = '';
}
}
// check input variables
//$bolannouncement = isset( $pbolannouncement ); // does not work in IE when submitted from within a text field by pressing Return key, reason unknown
$bolannouncement = ( isset( $pbolannouncement ) || $pstrannouncement != '' ); //workaround for IE problem, see line above
$intwsid = $pintwsid;
$strtitle = $pstrtitle;
$strannouncement = $pstrannouncement;
$strauth = $pstrauth;
// defuse input variables
$strtitle = trim( htmlentities( $pstrtitle, ENT_QUOTES ));
// leave announcement html'ed
//$strannouncement = trim( htmlentities( $pstrannouncement, ENT_QUOTES ));
$strauth = trim( htmlentities( $pstrauth, ENT_QUOTES ));
// shorten input variables
if ( strlen( $strauth ) > 255 ) $strauth = substr( $strauth, 0, 4095 ); //cut it, do not modify
if ( strlen( $strtitle ) > 255 ) $strtitle = substr( $strtitle, 0, 252 ) . "...";
if ( strlen( $strannouncement ) > 4095 ) $strannouncement = substr( $strannouncement, 0, 4092 ) . "...";
if
(
// localhost access
(
// direkter Aufruf von localhost
htmlspecialchars( $_SERVER['HTTP_X_FORWARDED_FOR'], ENT_QUOTES ) == ''
&&
htmlspecialchars( $_SERVER['REMOTE_ADDR'], ENT_QUOTES ) == constant("SERVER_LOCALHOST_IP")
)
||
(
// indirekter Aufruf (z.B. transparenter SSL-Proxy) mit übergebenem localhost
htmlspecialchars( $_SERVER['HTTP_X_FORWARDED_FOR'], ENT_QUOTES ) == constant("SERVER_LOCALHOST_IP")
)
)
{
// localhost ist immer eingeloggt
// -> continue
}
else
{
// check protocol and timeout
// check secure connection
// possible results:
// - secure => continue
// - insecure => force logout ($bolauthlogoutnow), show error page and prepare message ($strmsg)
if
(
(
// direct connection without HTTPS
$_SERVER['HTTPS'] == ''
&&
$_SERVER['HTTP_X_FORWARDED_PROTO'] == ''
)
||
(
// indirect connection without local HTTPS proxy, e.g. orenosp
strtolower($_SERVER['HTTP_X_FORWARDED_PROTO']) != strtolower(constant("SERVER_PROTOCOL_HTTPS"))
&& $_SERVER['HTTP_X_FORWARDED_PROTO'] != ''
)
)
{
// insecure connection -> abort
addmsg ( 'Dein Verbindungsprotokoll ist HTTP. Bitte verwende für die Announce-Seite Verschlüsselung mittels HTTPS.' );
$bolauthabort = true;
}
}
// check maintenance state
if ( constant("SERVER_SITE_MAINTENANCE") )
{
// cancel because of maintenance
addmsg ( 'Die Announce-Seite ist zurzeit wegen Wartungsarbeiten deaktiviert. Bitte sp&auml;ter wiederkommen. Danke.' );
$bolauthabort = true;
}
// prepare announce page
// assume that all ssi files are there. No, I won't check _that_ explicitely.
// If they ain't there, the user gets a partial page. ...so what? ;o)
readfile( constant("SERVER_FILE_HEADER") );
echo
'
<!-- begin of specific page header -->
<title>Easterhegg 2007 - Announce</title>
<!-- end of specific page header -->
';
readfile( constant("SERVER_FILE_INTRO") );
echo
'
<!-- begin of specific page content -->
<div id="main">
';
// show msg, if available
if ( $strmsg != '' )
{
echo
'
<div class="announcement">
<h1 class="warning">Authentifizierungshinweis:</h3>
<ul>' . $strmsg . '</ul>
</div>
';
$strmsg = '';
$bolauthabort = true;
}
showmsg();
if ( $bolauthabort )
{
// close page and stoprun.
echo
'
<!-- end of specific page content -->
';
readfile( constant("SERVER_FILE_EXTRO") );
die();
}
// Well, Checkpoint.
// Now a defined and normal state of checking has been reached.
// Possible states are now:
// - $bolauthabort = false: user is authenticated to see this page
// - $bolauthabort = true: user is not authenticated to see this page
// If there were any messages on the way up to here, they are stored as list items (<li>) in variable $strmsg.
// check auth phrase if user tries to login
if ( $bolannouncement )
{
if ( $strauth == htmlentities( constant("AUTH_SERVER_PASS") , ENT_QUOTES ))
{
// auth accepted
if ( $strannouncement != '' )
{
// announcement accepted
if ( $strtitle != '' )
{
// title accepted
// -> continue
$bolok = true;
// this feature has been deactivated on the production machine due to security reasons
// to use it on your own machine just delete or uncomment the following lines
// addmsg ( 'Diese Funktion wurde aus Sicherheitsgründen deaktiviert.<br>Um sie auf Deiner Umgebung zu reaktivieren, entferne die Sperre in der Datei &quot;announce.php&quot;.' );
// $bolok = false;
}
else
{
// title empty
addmsg ( 'Bitte gib noch einen griffigen Titel an! Danke :-)' );
}
}
else
{
// announcement empty
addmsg ( 'Das Announcement funktioniert besser, wenn Du etwas zum Announcen einträgst... ;-)' );
}
}
else
{
// auth failed
addmsg ( 'Das klappt so nicht. Vermutlich hast Du Dich beim Passwort vertippt.' );
}
}
if ( $bolok && $bolannouncement )
{
$bolok = false;
//announce it now to WWW
$strinput = file_get_contents( constant("SERVER_FILE_ANNOUNCE") );
$stroutput =
'
<h1>' . date( "d.m.Y", $intnow ) . ' - ' . $strtitle . '</h1>
<p>' . $strannouncement . '</p>
<a class="topOfPage" href="#top" title="Go to the top of this page">^ TOP</a>
';
$stroutput = str_replace( "<!--> [%announcement%] </!-->", '<!--> [%announcement%] </!-->' . $stroutput, $strinput );
if ( is_writable( constant("SERVER_FILE_ANNOUNCE") ))
{
// file_put_contents does not work with PHP 4.x, so use instead: fopen, fwrite, fclose
// file_put_contents( constant("SERVER_FILE_ANNOUNCE"), $stroutput );
$intfileid = fopen( constant("SERVER_FILE_ANNOUNCE"), "w" );
fwrite( $intfileid, $stroutput );
fclose( $intfileid );
$bolok = true;
}
else
{
addmsg ( 'Die Announcementdatei &quot;' . constant("SERVER_FILE_ANNOUNCE") . '&quot; konnte nicht geschrieben werden. (Rechteproblem?)');
$bolok = false;
}
}
if ( $bolannouncement )
{
if ( $bolok )
{
addmsg ( 'Das Announcement wurde gesetzt.' );
}
else
{
addmsg ( 'Das Announcement wurde nicht gesetzt.' );
}
}
if ( $bolok && $bolannouncement )
{
$bolok = false;
//announce it now as RSS
$strinput = file_get_contents( constant("SERVER_FILE_RSS09") );
$stroutput =
'
<item>
<title>' . date( "d.m.Y", $intnow ) . ' - ' . html_entity_decode( strip_tags( $strtitle ) ) . '</title>
<link>https://' . $_SERVER['HTTP_HOST'] . '/' . constant("SERVER_FILE_ANNOUNCE") . '</link>
<description>' . html_entity_decode( strip_tags( $strannouncement ) ) . '</description>
</item>
';
$stroutput = str_replace( "</channel>" . chr(13) . chr(10), '</channel>' . chr(13) . chr(10) . $stroutput, $strinput );
if ( is_writable( constant("SERVER_FILE_RSS09") ))
{
// file_put_contents does not work with PHP 4.x, so use instead: fopen, fwrite, fclose
// file_put_contents( constant("SERVER_FILE_ANNOUNCE"), $stroutput );
$intfileid = fopen( constant("SERVER_FILE_RSS09"), "w" );
fwrite( $intfileid, $stroutput );
fclose( $intfileid );
$bolok = true;
}
else
{
addmsg ( 'Die RSS 0.91-Datei &quot;' . constant("SERVER_FILE_RSS09") . '&quot; konnte nicht geschrieben werden. (Rechteproblem?)');
$bolok = false;
}
}
if ( $bolannouncement )
{
if ( $bolok )
{
addmsg ( 'Das Announcement wurde per RSS 0.91 veröffentlicht.' );
}
else
{
addmsg ( 'Das Announcement wurde nicht per RSS 0.91 veröffentlicht.' );
}
}
showmsg();
// show announce page
echo
'
<form id="announceform" name="announceform" action="' . constant("SERVER_FILE_MYSELF") . '" method="post">
<p>
<h1>Announce</h1>
<p>Hier können Announcements abgegeben werden, die anschließend auf der Startseite erscheinen.<br />
HTML ist nicht nur erlaubt, sondern auch präferiert. Es wird darum gebeten, XHTML-konform zu bleiben.<br />
<span class="line important"><span class="topic">Achtung:</span>Abgegebene Announcements können hier nicht mehr zurückgenommen oder korrigiert werden!</span>
</p>
</p>
<p>
<p>
<span class="topic">Authentifizierung:</span><input name="txtauth" type="password" />
</p>
<p>
<span class="topic">Titel:</span><input name="txttitle" type="text" ';
if ( !$bolok ) echo 'value="' . $strtitle . '" ';
echo '/>
</p>
<p>
<span class="topic">Announcement: <span class="small">(HTML accepted)</span></span>
</p>
<p><textarea class="db big" name="txtannouncement" cols="75" rows="10">';
if ( !$bolok ) echo $strannouncement;
echo
'</textarea>
</p>
<p>
<input name="cmdannouncement" type="submit" value="Spread it now!" />
</p>
</p>
</form>
</div>
';
// close page and stoprun.
echo
'
<!-- end of specific page content -->
';
readfile( constant("SERVER_FILE_EXTRO") );
die();
?>

668
clsdb.php Normal file
View file

@ -0,0 +1,668 @@
<?php
class clsdb
{
// class clsdb.php
// database abstraction layer, supports multiple databases
/*
usage:
- activatedb() will be called automatically each time you use runsql() (it will guarantee database availability)
- you may call deactivatedb() at the end of your work (e.g. at end of script)
- in normal operation use control constants in your main code and just call runsql() and similar functions
control variables:
mstrdbtype declares database type of constants DB_TYPE_*, e.g. "POSTGRESQL", "ODBC", "MYSQL" or others
each database type needs some more special variables:
POSTGRESQL:
- mstrdbhost, e.g. "localhost"
- mintdbport, e.g. 5432
- mstrdbname, e.g. "testdatabase"
- mstrdbuser, e.g. "testuser"
- mstrdbpass, e.g. "testpass"
ODBC:
- mstrdbname, e.g. "testdatabase"
- mstrdbuser, e.g. "testuser"
- mstrdbpass, e.g. "testpass"
property functions:
- [get/set]dbtype
- [get/set]dbhost
- [get/set]dbport
- [get/set]dbname
- [get/set]dbuser
- [get/set]dbpass
- [get]dbdefaultschemas
- [get]dbrowcount
- [get]dblastsql
- [get]dberror
methods:
- __constructor clsdb = initializes class instance
- initdb = initializes database
- activatedb = activates/opens database connection, will be called automatically
- deactivatedb = deactivates/closes database connection, will be done automatically at the end of the parent script
- changedbdefaultschemas = changes search list of default schemas in database
- runsql = executes SQL statement on given database connection
- getdbrow = fetches row on position intdbrow from mintdbresultid as associative array into strdbrow
- getdbfields = returns list of field names, field type and field length from mintdbresultid as associative arrays into strdbfields
- dbtimestamp = converts given timestamp into database format
*/
// class constants are always public and static and can be defined by: const constantname = constantvalue;
// refer to them from within or from outside the class by: classname::constantname
// e.g.: tstclass::tstconstant
const DB_TYPE_NONE = "";
const DB_TYPE_POSTGRESQL = "POSTGRESQL";
const DB_TYPE_ODBC = "ODBC";
const DB_TYPE_MYSQL = "MYSQL";
const DB_PORT_NONE = 0;
const DB_PORT_POSTGRESQL = 5432;
const DB_PORT_ODBC = 0;
const DB_PORT_MYSQL = 3306;
const DB_ROW_FIRST = 0;
const DB_ROW_NEXT = -1;
const DB_ROW_LAST = -2;
const DB_FIELD_NAME = 0;
const DB_FIELD_TYPE = 1;
const DB_FIELD_LEN = 2;
private $mstrdbtype;
private $mstrdbhost;
private $mintdbport;
private $mstrdbname;
private $mstrdbuser;
private $mstrdbpass;
private $mintdbconnid;
private $mintdbresultid;
private $mstrdbdefaultschemas;
private $mlngdbrowcount;
private $mstrdblastsql;
private $mstrdberror;
// **********************************************************************
function __construct ()
// class constructor, initializes class instance
{
// init class
$this->initdb();
}
// **********************************************************************
// public property functions
function setdbtype ( $strdbtype ) { $this->mstrdbtype = trim( $strdbtype ); }
function getdbtype () { return $this->mstrdbtype; }
function setdbhost ( $strdbhost ) { $this->mstrdbhost = trim( $strdbhost ); }
function getdbhost () { return $this->mstrdbhost; }
function setdbport ( $intdbport ) { $this->mintdbport = intval( $intdbport ); }
function getdbport () { return $this->mintdbport; }
function setdbname ( $strdbname ) { $this->mstrdbname = trim( $strdbname ); }
function getdbname () { return $this->mstrdbname; }
function setdbuser ( $strdbuser ) { $this->mstrdbuser = trim( $strdbuser ); }
function getdbuser () { return $this->mstrdbuser; }
function setdbpass ( $strdbpass ) { $this->mstrdbpass = $strdbpass; }
function getdbpass () { return $this->mstrdbpass; }
function getdbdefaultschemas () { return $this->mstrdbdefaultschemas; }
function getdbrowcount () { return $this->mlngdbrowcount; }
function getdblastsql () { return $this->mstrdblastsql; }
function getdberror () { return $this->mstrdberror; }
// **********************************************************************
function initdb()
// initdb = initializes database
{
$this->mstrdbtype = clsdb::DB_TYPE_NONE;
$this->mstrdbhost = 'localhost';
$this->mintdbport = clsdb::DB_PORT_NONE;
$this->mstrdbname = '';
$this->mstrdbuser = '';
$this->mstrdbpass = '';
$this->mstrdefaultschemas = '';
$this->mintdbconnid = 0;
$this->mintdbresultid = 0;
$this->mstrdblastsql = '';
$this->mlngdbrowcount = 0;
$this->mstrdberror = '';
}
// **********************************************************************
function activatedb ()
// activates/opens database connection, will be called automatically
// updates mintdbconnid and mstrdberror
// returns true if database had already been opened or has been opened successfully,
// otherwise returns false and sets mstrdberror
{
$bolretcode = true;
$this->mstrdberror = '';
if ( $this->mintdbconnid == 0 )
{
// database is dead or closed -> (re)open it
switch ( $this->mstrdbtype )
{
case clsdb::DB_TYPE_POSTGRESQL:
if ( $this->mintdbport == clsdb::DB_PORT_NONE ) { $this->mintdbport = clsdb::DB_PORT_POSTGRESQL; }
$this->mintdbconnid = pg_connect ("host=" . $this->mstrdbhost . " port=" . strval( $this->mintdbport ) . " dbname=" . $this->mstrdbname . " user=" . $this->mstrdbuser . " password=" . $this->mstrdbpass );
$this->mstrdberror = pg_last_error( $this->mintdbconnid );
break;
case clsdb::DB_TYPE_ODBC:
if ( $this->mintdbport == clsdb::DB_PORT_NONE ) { $this->mintdbport = clsdb::DB_PORT_ODBC; }
$this->mintdbconnid = odbc_connect ( $this->mstrdbname, $this->mstrdbuser, $this->mstrdbpass, SQL_CUR_USE_ODBC );
$this->mstrdberror = odbc_errormsg( $this->mintdbconnid );
break;
case clsdb::DB_TYPE_MYSQL:
if ( $this->mintdbport == clsdb::DB_PORT_NONE ) { $this->mintdbport = clsdb::DB_PORT_MYSQL; }
$this->mintdbconnid = mysql_connect ( $this->mstrdbhost . ':' . strval( $this->mintdbport ), $this->mstrdbuser, $this->mstrdbpass );
$this->mstrdberror = mysql_error( $this->mintdbconnid );
if ( $this->mintdbconnid != 0 )
{
if ( !mysql_select_db ( $this->mstrdbname, $this->mintdbconnid )) { $this->mintdbconnid = 0; }
$this->mstrdberror = mysql_error( $this->mintdbconnid );
}
break;
default:
// db type not supported!
$this->mintdbconnid = 0;
$this->mstrdberror = 'Sorry, database of type "' . $this->mstrdbtype . '" is not supported.';
break;
}
// set return code on success
$bolretcode = ( $this->mintdbconnid != 0 );
if ( $bolretcode and $this->mstrdefaultschemas != '' )
{
// reset default schemas of database
$bolretcode = changedbdefaultschemas( $this->mstrdefaultschemas );
}
}
return $bolretcode;
}
// **********************************************************************
function deactivatedb ()
// deactivates/closes database connection, will be done automatically at the end of the parent script
// updates mintdbconnid and mstrdberror
// returns true if database had already been closed or has been closed successfully,
// otherwise returns false and sets mstrdberror
{
$bolretcode = true;
$this->mstrdberror = '';
if ( $this->mintdbconnid != 0 )
{
// database is still opened -> close it
switch ( $this->mstrdbtype )
{
case clsdb::DB_TYPE_POSTGRESQL:
$bolretcode = pg_close ( $this->mintdbconnid );
$this->mstrdberror = pg_last_error( $this->mintdbconnid );
break;
case clsdb::DB_TYPE_ODBC:
$bolretcode = odbc_close ( $this->mintdbconnid );
$this->mstrdberror = odbc_errormsg( $this->mintdbconnid );
break;
case clsdb::DB_TYPE_MYSQL:
$bolretcode = mysql_close ( $this->mintdbconnid );
$this->mstrdberror = mysql_error( $this->mintdbconnid );
break;
default:
// db type not supported!
$bolretcode = false;
$this->mstrdberror = 'Sorry, database of type "' . $this->mstrdbtype . '" is not supported.';
break;
}
}
// init/clear database connection on success
if ( $bolretcode )
{
initdb();
}
return $bolretcode;
}
// **********************************************************************
function changedbdefaultschemas ( $strdbdefaultschemas )
// changes search list of default schemas in database
// expects comma separated list of schema names, but ignores empty list
// returns true if no schemas were given or default schemas have been updated
// and false if some error occured when updating
{
$bolretcode = true;
if ( $strdbdefaultschemas != '' )
{
// do not change to empty value
$bolretcode = false;
if ( $this->activatedb() )
{
// database is ok
// change default schemas
switch ( $this->mstrdbtype )
{
case clsdb::DB_TYPE_POSTGRESQL:
if ( $this->runsql( "set session search_path to " . $strdbdefaultschemas ))
{
$bolretcode = true;
}
else
{
$this->mstrdberror = pg_last_error( $this->mintdbconnid );
}
break;
case clsdb::DB_TYPE_ODBC:
$this->mstrdberror = 'Sorry, changing the default database schema generically is not supported on ODBC databases.';
break;
case clsdb::DB_TYPE_MYSQL:
$this->mstrdberror = 'Sorry, database schemas are not supported on MYSQL databases.';
break;
default:
// db type not supported!
$this->mstrdberror = 'Sorry, database of type "' . $this->mstrdbtype . '" is not supported.';
break;
}
}
else
{
// database is dead or closed ->
$this->mstrdberror = 'Sorry, database is currently not available.';
}
// remember current database default schemas
if ( $bolretcode )
{
$this->mstrdbdefaultschemas = $strdbdefaultschemas;
}
}
return $bolretcode;
}
// **********************************************************************
function runsql ( $strdbsql )
// executes SQL statement on given database connection
// updates mlngdbrowcount, mintdbresultid and mstrdberror
// returns true and sets mlngdbrowcount and mintdbresultid if SQL statement had been executed successfully,
// otherwise returns false and sets mstrdberror
{
$bolretcode = false;
$this->mlngdbrowcount = 0;
$this->mintdbresultid = 0;
$this->mstrdberror = '';
if ( $this->activatedb() )
{
// database is ok
switch ( $this->mstrdbtype )
{
case clsdb::DB_TYPE_POSTGRESQL:
$this->mintdbresultid = pg_query ( $this->mintdbconnid, $strdbsql );
$this->mstrdberror = pg_last_error( $this->mintdbconnid );
if ( $this->mintdbresultid != 0 )
{
if ( strtolower(substr( trim( $strdbsql ), 0, 6 ) == 'select' ) )
{
$this->mlngdbrowcount = pg_num_rows( $this->mintdbresultid );
}
else
{
$this->mlngdbrowcount = pg_affected_rows( $this->mintdbresultid );
}
$bolretcode = true;
}
break;
case clsdb::DB_TYPE_ODBC:
$this->mintdbresultid = odbc_exec ( $this->mintdbconnid, $strdbsql );
$this->mstrdberror = odbc_errormsg( $this->mintdbconnid );
if ( $this->mintdbresultid != 0 )
{
// Attention: odbc_num_rows may return wrong record count in SELECT-statements!
// to retrieve exact number of records in SELECT statements you should walk through the recordset
$this->mlngdbrowcount = odbc_num_rows( $this->mintdbresultid );
$bolretcode = true;
}
break;
case clsdb::DB_TYPE_MYSQL:
$this->mintdbresultid = mysql_query ( $strdbsql, $this->mintdbconnid );
$this->mstrdberror = mysql_error( $this->mintdbconnid );
if ( $this->mintdbresultid != 0 )
{
if ( strtolower(substr( trim( $strdbsql ), 0, 6 ) == 'select' ) )
{
$this->mlngdbrowcount = mysql_num_rows( $this->mintdbresultid );
}
else
{
$this->mlngdbrowcount = mysql_affected_rows( $this->mintdbconnid );
}
$bolretcode = true;
}
break;
default:
// db type not supported!
$bolretcode = false;
$this->mstrdberror = 'Sorry, database of type "' . $this->mstrdbtype . '" is not supported.';
break;
}
}
return $bolretcode;
}
// **********************************************************************
function getdbrow ( &$strdbrow, $intdbrow = clsdb::DB_ROW_NEXT )
// fetches row on position intdbrow from mintdbresultid as associative array into strdbrow
// position intdbrow may be DB_RESULT_NEXTROW to fetch the next row of mintdbresultid
// updates mstrdberror
// returns true and sets strdbrow if row has been fetched successfully,
// otherwise returns false and sets mstrdberror
{
$bolretcode = false;
$strdbrow = array();
$intindex = 0;
$this->mstrdberror = '';
if ( $this->mintdbresultid != 0 )
{
// resultset is ok
switch ( $this->mstrdbtype )
{
case clsdb::DB_TYPE_POSTGRESQL:
switch ( $intdbrow )
{
case clsdb::DB_ROW_FIRST:
$bolretcode = ( $strdbrow = pg_fetch_assoc( $this->mintdbresultid, 0 ));
break;
case clsdb::DB_ROW_NEXT:
$bolretcode = ( $strdbrow = pg_fetch_assoc( $this->mintdbresultid ));
break;
case clsdb::DB_ROW_LAST:
$bolretcode = ( $strdbrow = pg_fetch_assoc( $this->mintdbresultid, pg_num_rows( $this->mintdbresultid ) - 1 ));
break;
default:
// specific $intdbrow given -> use it directly, offer start at position 1
$bolretcode = ( $strdbrow = pg_fetch_assoc( $this->mintdbresultid, $intdbrow - 1 ));
break;
}
$this->mstrdberror = pg_result_error( $this->mintdbresultid );
if ( $bolretcode )
{
// cast special field types to common string values
$intindex = 0;
while ( $intindex < pg_num_fields( $this->mintdbresultid ))
{
if ( pg_field_type( $this->mintdbresultid, $intindex ) == 'bool' )
{
// boolean type of postgresql is "f" or "t"
// -> convert to "0" or "1"
switch ( $strdbrow[pg_field_name( $this->mintdbresultid, $intindex )] )
{
case 'f':
$strdbrow[pg_field_name( $this->mintdbresultid, $intindex )] = '0';
break;
case 't':
$strdbrow[pg_field_name( $this->mintdbresultid, $intindex )] = '1';
break;
}
}
$intindex++;
}
}
break;
case clsdb::DB_TYPE_ODBC:
switch ( $intdbrow )
{
case clsdb::DB_ROW_FIRST:
$bolretcode = ( $strdbrow = odbc_fetch_array( $this->mintdbresultid, 0 ));
break;
case clsdb::DB_ROW_NEXT:
$bolretcode = ( $strdbrow = odbc_fetch_array( $this->mintdbresultid ));
break;
case clsdb::DB_ROW_LAST:
// Attention: odbc_num_rows may return wrong record count in SELECT-statements!
// to retrieve exact number of records in SELECT statements you should walk through the recordset
$bolretcode = ( $strdbrow = odbc_fetch_array( $this->mintdbresultid, odbc_num_rows( $this->mintdbresultid ) - 1 ));
break;
default:
// specific $intdbrow given -> use it directly, offer start at position 1
$bolretcode = ( $strdbrow = odbc_fetch_array( $this->mintdbresultid, $intdbrow - 1));
break;
}
// ODBC does not support error messages on resultset level
if ( !$bolretcode )
{
$this->mstrdberror = 'Sorry, could not read result row on position ' . $intdbrow ;
}
break;
case clsdb::DB_TYPE_MYSQL:
switch ( $intdbrow )
{
case clsdb::DB_ROW_FIRST:
$bolretcode = mysql_data_seek( $this->mintdbresultid, 0 );
$this->mstrdberror = mysql_error( $this->mintdbconnid );
break;
case clsdb::DB_ROW_NEXT:
// just stay where the pointer is
$bolretcode = true;
break;
case clsdb::DB_ROW_LAST:
$bolretcode = mysql_data_seek( $this->mintdbresultid, mysql_num_rows( $this->mintdbresultid ) - 1 );
$this->mstrdberror = mysql_error( $this->mintdbconnid );
break;
default:
// specific $intdbrow given -> use it directly, offer start at position 1
$bolretcode = mysql_data_seek( $this->mintdbresultid, $intdbrow - 1 );
$this->mstrdberror = mysql_error( $this->mintdbconnid );
break;
}
if ( $bolretcode )
{
$bolretcode = ( $strdbrow = mysql_fetch_assoc( $this->mintdbresultid ));
$this->mstrdberror = mysql_error( $this->mintdbconnid );
}
break;
default:
// db type not supported!
$bolretcode = false;
$this->mstrdberror = 'Sorry, database of type "' . $this->mstrdbtype . '" is not supported.';
break;
}
}
else
{
$bolretcode = false;
$this->mstrdberror = 'Sorry, no data available to read.';
}
if ( $bolretcode )
{
// convert boolean string ('f', 't') manually to ('0', '1')
}
return $bolretcode;
}
// **********************************************************************
function getdbfields ( &$strdbfields )
// returns list of field names, field type and field length from mintdbresultid as associative arrays into strdbfields
// strdbfields will contain following partial arrays: DB_FIELD_NAME, DB_FIELD_TYPE, DB_FIELD_LEN
// use as following: $strdbfields[clsdb::DB_FIELD_*][$intdbfield or $strdbfieldname]
// example: $intdbfieldtype[$strdbfieldname] = $strdbfields[DB_FIELD_TYPE][$strdbfieldname]
// updates parameter strdbfields, mstrdberror
// returns true and sets strdbfields if field names have been retrieved successfully,
// otherwise returns false and sets mstrdberror
{
$bolretcode = false;
$intindex = 0;
$strfieldname = '';
$strdbfields = array (clsdb::DB_FIELD_NAME => array(),
clsdb::DB_FIELD_TYPE => array(),
clsdb::DB_FIELD_LEN => array());
$this->mstrdberror = '';
if ( $this->mintdbresultid != 0 )
{
// resultset is ok
//no errors expected at all
$bolretcode = true;
switch ( $this->mstrdbtype )
{
case clsdb::DB_TYPE_POSTGRESQL:
// field numeration in PostgreSQL starts with 0
$intindex = 0;
while ( $intindex < pg_num_fields( $this->mintdbresultid ))
{
array_push ( $strdbfields[clsdb::DB_FIELD_NAME], pg_field_name( $this->mintdbresultid, $intindex ));
array_push ( $strdbfields[clsdb::DB_FIELD_TYPE], pg_field_type( $this->mintdbresultid, $intindex ));
array_push ( $strdbfields[clsdb::DB_FIELD_LEN], pg_field_prtlen( $this->mintdbresultid, $intindex ));
$intindex++;
}
$this->mstrdberror = pg_result_error( $this->mintdbresultid );
break;
case clsdb::DB_TYPE_ODBC:
// field numeration in ODBC starts with 1
$intindex = 1;
while ( $intindex <= odbc_num_fields( $this->mintdbresultid ))
{
$strfieldname = odbc_field_name( $this->mintdbresultid, $intindex );
array_push ( $strdbfields[clsdb::DB_FIELD_NAME], $strfieldname );
array_push ( $strdbfields[clsdb::DB_FIELD_TYPE], odbc_field_type( $this->mintdbresultid, $intindex ));
array_push ( $strdbfields[clsdb::DB_FIELD_LEN], odbc_field_len( $this->mintdbresultid, $intindex ));
$intindex++;
}
// ODBC does not support error messages on resultset level
if ( !$bolretcode )
{
$this->mstrdberror = 'Sorry, could not read field names.';
}
break;
case clsdb::DB_TYPE_MYSQL:
// field numeration in MYSQL starts with 0
$intindex = 0;
while ( $intindex < mysql_num_fields( $this->mintdbresultid ))
{
array_push ( $strdbfields[clsdb::DB_FIELD_NAME], mysql_field_name( $this->mintdbresultid, $intindex ));
array_push ( $strdbfields[clsdb::DB_FIELD_TYPE], mysql_field_type( $this->mintdbresultid, $intindex ));
array_push ( $strdbfields[clsdb::DB_FIELD_LEN], mysql_field_len( $this->mintdbresultid, $intindex ));
$intindex++;
}
$this->mstrdberror = mysql_error( $this->mintdbconnid );
break;
default:
// db type not supported!
$bolretcode = false;
$this->mstrdberror = 'Sorry, database of type "' . $this->mstrdbtype . '" is not supported.';
break;
}
}
else
{
$bolretcode = false;
$this->mstrdberror = 'Sorry, no data available to read.';
}
return $bolretcode;
}
// **********************************************************************
function dbtimestamp( $vartimestamp )
// converts given timestamp into database format
{
$strretcode = '';
$inttimestamp = 0;
if ( is_numeric( $vartimestamp ) )
{
// UNIX timestamp assumed
$inttimestamp = $vartimestamp;
}
else
{
// time string assumed
$inttimestamp = strtotime( $vartimestamp );
}
// inttimestamp now contains UNIX timestamp
switch ( $this->mstrdbtype )
{
case clsdb::DB_TYPE_POSTGRESQL:
$strretcode = "TIMESTAMP '" . date( "Y-m-d H:i:s", $vartimestamp) . "'";
break;
case clsdb::DB_TYPE_ODBC:
$strretcode = "'" . date( "Y-m-d H:i:s", $vartimestamp) . "'";
break;
case clsdb::DB_TYPE_MYSQL:
$strretcode = "'" . date( "YmdHis", $vartimestamp ) . "'";
break;
default:
// db type not supported!
// -> return original string
$strretcode = $vartimestamp;
break;
}
return $strretcode;
}
}
?>

322
css/sinorcanav.css Normal file
View file

@ -0,0 +1,322 @@
/*************************************
* TITLE: Sinorca Screen Stylesheet *
* URI : sinorca/sinorca-screen.css *
* MODIF: 2003-Apr-30 19:31 +0800 *
*************************************/
/* ##### Common Styles ##### */
body
{
color: #000000;
background-color: #ffffcc;
font-family: verdana, helvetica, arial, sans-serif;
font-size: 71%;
/* Enables font size scaling in MSIE */
margin: 0;
padding: 0;
}
html > body { font-size: 8.5pt; }
acronym, .titleTip
{
border-bottom: 1px dotted #cccccc;
cursor: help;
margin: 0;
padding: 0 0 0.4px 0;
}
.doNotDisplay { display: none; }
.smallCaps
{
font-size: 110%;
font-variant: small-caps;
}
/* ##### Header ##### */
.superHeader
{
color: white;
background-color: black;
height: 2em;
}
.superHeader a
{
color: white;
background-color: transparent;
text-decoration: none;
font-size: 91%;
margin: 0;
padding: 0 0.5ex 0 0.25ex;
}
.superHeader a:hover { text-decoration: underline; }
.superHeader .left
{
position: absolute;
left: 1.5mm;
top: 0.75ex;
}
.superHeader .right
{
position: absolute;
right: 1.5mm;
top: 0.75ex;
}
.midHeader
{
color: black;
background-color: #fcfcfc;
height: 4.5em;
}
.midHeader .left
{
position: absolute;
left: 1.5mm;
top: 2.75ex;
}
.midHeader .right
{
position: absolute;
right: 1.5mm;
top: 5.0ex;
}
.headerTitle
{
background-color: transparent;
font-size: 300%;
font-weight: normal;
margin: 0 0 0 4mm;
padding: 0.25ex 0;
}
.subHeader
{
color: black;
background-color: #ffffcc;
margin: 0;
padding: 1ex 1ex 1ex 1.5mm;
}
.subHeader a
{
color: black;
background-color: transparent;
text-decoration: none;
font-weight: bold;
margin: 0;
padding: 0 0.75ex 0 0.5ex;
}
.subHeader a:hover { text-decoration: underline; }
.superHeader .highlight, .subHeader .highlight
{
color: #aaaaaa;
background-color: transparent;
}
/* ##### Side Bar ##### */
#side-bar
{
width: 15em;
float: left;
clear: left;
border-right: 1px solid #cccccc;
color: black;
background-color: #ffffcc;
}
.sideBarTitle
{
font-weight: bold;
margin: 0 0 0.5em 2.5mm;
padding: 1em 0 0 0;
}
#side-bar ul
{
list-style-type: none;
list-style-position: outside;
margin: 0;
padding: 0 0 1.1em 0;
}
#side-bar li
{
margin: 0;
padding: 0;
/* padding: 0.1ex; */
/* Circumvents a rendering bug (?) in MSIE 6.0 */
}
#side-bar a, .thisPage
{
color: black;
background-color: transparent;
text-decoration: none;
margin: 0;
padding: 0.75em 1ex 0.75em 5mm;
display: block;
}
.thisPage
{
color: black;
background-color: #ddddee;
padding-left: 4mm;
border-top: 1px solid rgb(153,153,153);
border-bottom: 1px solid rgb(153,153,153);
}
#side-bar a:hover
{
background-color: #98c2f0;
/* background-color: #ffffee; */
text-decoration: none;
}
.sideBarText
{
line-height: 1.5em;
margin: 0 0 1em 0;
padding: 0 1.5ex 0 2.5mm;
display: block;
}
#side-bar .sideBarText a
{
text-decoration: underline;
margin: 0;
padding: 0;
display: inline;
}
#side-bar .sideBarText a:hover
{
color: black;
background-color: transparent;
text-decoration: none;
}
.lighterBackground
{
color: inherit;
background-color: white;
}
/* ##### Main ##### */
#main
{
color: black;
background-color: #fcfcfc;
text-align: justify;
line-height: 1.5em;
margin: 0 0 0 15em;
padding: 0.5mm 5mm 5mm 5mm;
border-left: 1px solid rgb(153,153,153);
}
p
{
margin: 1em 1ex 2em 1ex;
padding: 0;
}
a
{
color: #ff0000;
background-color: transparent;
text-decoration: underline;
}
a:hover { text-decoration: none; }
h1
{
color: black;
background-color: #ddddee;
font-size: 100%;
font-weight: bold;
margin: 3em 0 0 0;
padding: 0.5ex 0 0.5ex 1ex;
}
.topOfPage
{
color: black;
background-color: transparent;
font-size: 91%;
font-weight: bold;
text-decoration: none;
margin: 2.5ex 1ex 0 0;
/* For MSIE */
padding: 0;
float: right;
}
#main > .topOfPage
{
margin: 2.75ex 1ex 0 0;
/* For fully standards-compliant user agents */
}
dl
{
margin: 1em 1ex 2em 1ex;
padding: 0;
}
dt
{
font-weight: bold;
margin: 0 0 0 0;
padding: 0;
}
dd
{
margin: 0 0 2em 2em;
padding: 0;
}
/* ##### Footer ##### */
#footer
{
color: black;
background-color: #ff0000;
font-size: 91%;
margin: 0;
padding: 1em 2.5mm 2.5ex 2.5mm;
clear: both;
}
#footer .left
{
line-height: 1.45em;
float: left;
clear: left;
}
#footer .right
{
text-align: right;
line-height: 1.45em;
}
#footer a
{
color: white;
background-color: transparent;
text-decoration: underline;
}
#footer a:hover { text-decoration: none; }

345
css/site_aligns.css Normal file
View file

@ -0,0 +1,345 @@
/* site_aligns.css */
/* this is for all styles regarding site arrangement of blocks, elements etc. */
body
{
margin: 0px;
/* padding: 20px; */
/* set "overflow" depending on include method of files: */
/* when using SSI there won't be scrollbars, so set "overflow: auto" */
/* when using <object>-Tags (XHTML 1.1) they will have own scrollbars, so set "overflow: hidden" */
overflow: auto;
}
div#div_body
{
width: 96%;
height: 96%;
}
div#div_left
{
position: fixed;
left: 20px;
width: 180px;
top: 20px;
bottom: 20px;
overflow: hidden;
z-index: 20;
}
div#div_menu
{
position: relative;
left: 0px;
top: 20px;
bottom: 0px;
overflow: auto;
z-index: 70;
}
div#div_title
{
position: fixed;
display: block;
left: 120px;
right: 20px;
top: 0px;
padding-left: 0px;
padding-top: 0px;
z-index: 50;
}
div#div_chaosknoten
{
position: fixed;
display: block;
right: 20px;
top: 20px;
width: 150px; /* div only holds floating image and must not overlay other elements */
height: 108px; /* div only holds floating image and must not overlay other elements */
padding-right: 20px;
padding-top: 2px;
z-index: 50;
}
img.logo
{
display: block;
padding: 0px;
margin: 0px;
z-index: 20;
}
img.rechts
{
float: right;
}
div#div_main
{
position: absolute;
display: block;
padding: 0px;
left: 220px;
right: 20px;
top: 90px;
bottom: 20px;
z-index: 30;
}
div#div_content
{
display: block;
padding: 5px;
padding-bottom: 25px; /* keep bottom margin free of content! */
min-height: 96%;
}
div.coverbar
{
position: fixed;
display: block;
left: 220px;
right: 20px;
z-index: 40;
}
div.coverbar.top
{
top: 0px;
height: 90px;
}
div.coverbar.bottom
{
bottom: 0px;
height: 20px;
}
h1, h2
{
padding: 0.4em;
}
ul.w3c
{
position: absolute;
display: block;
float: left;
padding-left: 0px;
padding-bottom: 0px;
margin-bottom: 0px;
bottom: 0px;
left: 0px;
bottom: 0px;
z-index: 40;
}
li.w3c
{
display: inline;
padding-top: 0px;
padding-right: 0px;
padding-left: 0px;
padding-bottom: 0px;
}
.textshadow
{
position: absolute;
top: 0px;
left: 20px;
right: 0px;
}
.textshadow.front
{
padding-top: 0.3em;
padding-left: 1.2em;
z-index: 22;
}
.textshadow.back
{
padding-top: 0.4em;
padding-left: 1.3em;
z-index: 21;
}
/* workaround for CSS implementation problem relating */
/* to anchor positions inside an inner division block */
/* Problem: anchors will be positioned by top of body */
/* Solution: anchors must be moved below all top bars */
.linktarget
{
display: none; /* anchor must be drawn as block element */
top: 0px; /* = sum of top and padding-top must be */
padding-top: 0px; /* ...exact sum of heights of top bars */
border-bottom-style: none;
}
a
{
border-bottom-style: dotted;
border-bottom-width: 1px;
}
img
{
border-style: none;
}
p
{
text-align: left;
}
div.leftmenu
{
margin-left: 0px;
margin-bottom: 10px;
margin-right: 0px;
margin-top: 0px;
}
.headbox, a.leftmenu
{
display: block;
padding-left: 5px;
padding-bottom: 2px;
padding-right: 5px;
padding-top: 2px;
border-style: solid;
border-width: 1px;
text-align: left;
}
a.leftmenu
{
border-top-width: 0;
}
.announcement
{
text-align: center;
}
div.announcement
{
margin-bottom: 5px;
padding-left: 0px;
padding-bottom: 10px;
padding-right: 0px;
padding-top: 0px;
border-left-style: none;
border-bottom-style: dashed;
border-right-style: none;
border-top-style: dashed;
border-width: thin;
}
ul
{
text-align: left;
}
div.chapter
{
margin-top: 30px;
}
div.box
{
padding: 2px;
border-style: solid;
border-width: thin;
margin-top: 20px;
margin-bottom: 20px;
}
h4
{
margin-bottom: 10px;
}
.line
{
display: block;
}
li
{
padding-bottom: 10px;
}
input
{
margin-top: 5px;
margin-bottom: 5px;
}
table.db
{
border-spacing: 0.05em;
empty-cells: show;
}
tr.dbhead
{
height: 3em;
border-spacing: 0.05em;
}
td.db
{
padding: 0.2em;
border-left-style: dotted;
border-bottom-style: none;
border-right-style: dotted;
border-top-style: none;
border-width: thin;
vertical-align: top;
}
input.db, textarea.db, select.db
{
width: 99%;
margin-bottom: 10px;
}
select.dbdata
{
width: 105px;
margin: 0px;
}
textarea
{
height: 50px;
}
.big
{
height: 100px;
}
.verybig
{
height: 200px;
}
.right
{
text-align: right;
}
.center
{
text-align: center;
}
.control
{
vertical-align: middle;
}

127
css/site_colors.css Normal file
View file

@ -0,0 +1,127 @@
/* site_colors.css */
/* this is for all styles regarding site colorization */
body
{
/* color : #000000; */
/* background-color: #2e526e; */
}
div#div_main
{
background: transparent;
}
div#div_content
{
background-color: #d0e1f5;
}
div.coverbar
{
background-color: #2e526e;
}
.textshadow.front
{
color: #000000;
}
.textshadow.back
{
color: #7d9fc4;
background-color: #d0e1f5;
}
.headbox
{
background-color: #7d9fc4;
color: #ffffff;
border-color: #000000;
}
.headbox a:hover
{
color: #ffffff;
}
h1.announcement, h2.announcement, h3.announcement, h4.announcement, h5.announcement, h6.announcement
{
background-color: #7d9fc4;
color: #000000;
}
a
{
color: #000000;
}
a.inactive
{
color: #888888;
}
a.leftmenu:link, a.leftmenu:visited
{
background-color: #d0e1f5;
border-color: #000000;
}
a.leftmenu:hover
{
background-color: #98c2f0;
border-color: #000000;
}
a:hover
{
background-color: #98c2f0;
}
a.linktarget:hover
{
background-color: #d0e1f5;
}
div.announcement
{
border-color: #000000;
}
div.box
{
background: rgb(192,224,255);
}
.warning
{
background-color: #ff0000;
color: #000000;
}
.confirmation
{
background-color: #00aa00;
color: #000000;
}
tr.dbhead
{
background: #7d9fc4;
color: rgb(255,255,255);
}
tr.db1
{
background: rgb(192,224,255);
}
tr.db0
{
background: rgb(192,255,255);
}
td.db
{
border-color: #7d9fc4;
}

84
css/site_fonts.css Normal file
View file

@ -0,0 +1,84 @@
/* site_fonts.css */
/* this is for all styles regarding font settings, except font colors */
body
{
/* font-family: Arial, Helvetica, sans-serif; */
font-weight: normal;
}
h1, h2, h3, h4, h5, h6
{
font-family: "Trebuchet MS", Verdana, "Lucida Sans", Arial, Geneva, Helvetica, Helv, "Myriad Web", Syntax, sans-serif;
}
h1, h2, h3, h4
{
font-weight: bold;
}
h5, h6
{
font-weight: normal;
}
a
{
text-decoration: none;
}
.headbox, a.leftmenu
{
font-weight: bold;
text-decoration: none;
font-size: 80%;
font-family: Verdana, "Lucida Sans", Arial, Geneva, Helvetica, Helv, "Myriad Web", Syntax, sans-serif;
}
p, ul, ol, td, span, div.chaptercontent
{
/* font-size: 95%; */
}
p
{
font-weight: normal;
}
.announcement
{
font-weight: bold;
}
span.timestamp
{
font-size: 80%;
font-family: Courier New, monospace;
border-right: solid;
border-width: 1px;
padding-right: 5px;
margin-right: 5px;
}
.important
{
font-weight: bold;
/* font-size: 90%; */
}
.topic
{
font-style: italic;
display: block;
}
.small
{
font-size: 80%;
}
tr.dbhead
{
font-weight: bold;
}

View file

@ -0,0 +1,52 @@
/* CSS only needed for the demo */
body,html{
margin:0px;
padding:0px;
text-align:center;
background-color: #E2EBED;
font-family: Trebuchet MS, Lucida Sans Unicode, Arial, sans-serif;
line-height: 130%;
text-align:center;
height:100%;
width:100%;
}
#mainContainer{
width:630px;
border-left:1px solid #317082;
border-right:1px solid #317082;
margin:0 auto; /* Center align content, equivalent to margin-left:auto;margin-right:auto; */
text-align:left; /* Override inherited text-align:center from the body tag */
background-color:#FFF;
height:100%;
}
#menuColumn{
width:160px;
float:left;
padding:5px;
font-size:0.9em;
}
#mainContent{
width:440px;
float:left;
}
.oddRow{
background-color:#FFF;
}
.evenRow{
background-color:#EEE;
}
.productTable{
border:3px double #000;
}
h3{
margin-top:0px;
}
/* End css for the demo */

90
css/tst/ajax-tooltip.css Normal file
View file

@ -0,0 +1,90 @@
/* CSS only needed for the demo */
body,html{
margin:0px;
padding:0px;
text-align:center;
background-color: #E2EBED;
font-family: Trebuchet MS, Lucida Sans Unicode, Arial, sans-serif;
line-height: 130%;
text-align:center;
height:100%;
width:100%;
}
#mainContainer{
width:630px;
border-left:1px solid #317082;
border-right:1px solid #317082;
margin:0 auto; /* Center align content, equivalent to margin-left:auto;margin-right:auto; */
text-align:left; /* Override inherited text-align:center from the body tag */
background-color:#FFF;
height:100%;
}
#menuColumn{
width:160px;
float:left;
padding:5px;
font-size:0.9em;
}
#mainContent{
width:440px;
float:left;
}
.oddRow{
background-color:#FFF;
}
.evenRow{
background-color:#EEE;
}
.productTable{
border:3px double #000;
}
h3{
margin-top:0px;
}
/* End css for the demo */
/* CSS needed for the script */
#ajax_tooltipObj{
z-index:1000000;
text-align:left;
}
#ajax_tooltipObj div{
position:relative;
}
/* If you don't want the arrow - Just set the width of this div to 1 or something like that and drop the background selectors from the CSS below */
#ajax_tooltipObj .ajax_tooltip_arrow{ /* Left div for the small arrow */
background-image:url('../images/arrow.gif');
width:20px;
position:absolute;
left:0px;
top:0px;
background-repeat:no-repeat;
background-position:center left;
z-index:1000005;
height:60px;
}
#ajax_tooltipObj .ajax_tooltip_content{
border:2px solid #317082; /* Border width */
left:18px; /* Same as border thickness */
top:0px;
position:absolute;
width:150px; /* Width of tooltip content */
height:200px; /* Height of tooltip content */
background-color:#FFF; /* Background color */
padding:5px; /* Space between border and content */
font-size:0.8em; /* Font size of content */
overflow:auto; /* Hide overflow content */
z-index:1000001;
}

92
css/tst/default.css Normal file
View file

@ -0,0 +1,92 @@
/* - - - - - - - - - - - - - - - - - - - - -
Title : Default CSS for Lightbox Gone Wild
Author : Kevin Hale
URL : http://particletree.com/features/lightbox-gone-wild/
Created : January 13, 2006
Modified : February 1, 2006
- - - - - - - - - - - - - - - - - - - - - */
/* ----- CSS ----- */
*{
margin:0;
padding:0;
}
body{
margin:30px 0 30px 0;
text-align:center;
background-color:#62E122;
font-size:80%;
font-family:"Lucida Grande", Tahoma, sans-serif;
}
p{
margin:0 0 1em 0;
}
a{
color:green;
}
a img{
border:none !important;
}
#container{
margin:0 auto;
width:500px;
padding:40px;
text-align:left;
background-color:#fff;
}
#container ul{
text-align:center;
margin:0 0 30px 0;
list-style:none;
}
#container ul a{
border:1px solid #eee;
background-color:#f5f5f5;
color:#444;
font-size:1.5em;
line-height:2em;
padding:20px;
margin:0 0 20px 0;
display:block;
}
#container ul a:hover{
border:1px solid #B5DF99;
background-color:#CDEFB6;
color:#358610;
}
#lightbox h2{
margin:0 0 1em 0;
}
#lightbox h3{
color:#FF713F;
}
#lightbox.done p{
color:#333;
}
#form{
text-align:left;
margin:25px;
}
#form ul{
list-style:none;
}
#form li{
margin:0 0 1em 0;
}
#form textarea{
width:100%;
height:150px;
}
#definition{
margin:25px;
}
.highlight{
background-color:#FEFFAF;
}

26
css/tst/demos.css Normal file
View file

@ -0,0 +1,26 @@
#mainContainer{
width:500px;
margin:0 auto;
margin-top:10px;
border:1px double #000;
padding:5px;
}
/* Alternative layout for the message box - used by one of the messages */
.modalDialog_contentDiv_error{
border:3px solid #FFF;
padding:2px;
z-index:100;/* Always needed */
position:absolute; /* Always needed */
background-color:#F00; /* White background color for the message */
color:#FFF;
}
.modalDialog_contentDiv_error a{
color:#FFF;
}
h1{
margin-top:0px;
}

104
css/tst/lightbox.css Normal file
View file

@ -0,0 +1,104 @@
#lightbox{
position: absolute;
top: 40px;
left: 0;
width: 100%;
z-index: 100;
text-align: center;
line-height: 0;
}
#lightbox a img{ border: none; }
#outerImageContainer{
position: relative;
background-color: #fff;
width: 250px;
height: 250px;
margin: 0 auto;
}
#imageContainer{
padding: 10px;
}
#loading{
position: absolute;
top: 40%;
left: 0%;
height: 25%;
width: 100%;
text-align: center;
line-height: 0;
}
#hoverNav{
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
z-index: 10;
}
#imageContainer>#hoverNav{ left: 0;}
#hoverNav a{ outline: none;}
#prevLink, #nextLink{
width: 49%;
height: 100%;
background: transparent url(../images/blank.gif) no-repeat; /* Trick IE into showing hover */
display: block;
}
#prevLink { left: 0; float: left;}
#nextLink { right: 0; float: right;}
#prevLink:hover, #prevLink:visited:hover { background: url(../images/prevlabel.gif) left 15% no-repeat; }
#nextLink:hover, #nextLink:visited:hover { background: url(../images/nextlabel.gif) right 15% no-repeat; }
#imageDataContainer{
font: 10px Verdana, Helvetica, sans-serif;
background-color: #fff;
margin: 0 auto;
line-height: 1.4em;
}
#imageData{
padding:0 10px;
}
#imageData #imageDetails{ width: 70%; float: left; text-align: left; }
#imageData #caption{ font-weight: bold; }
#imageData #numberDisplay{ display: block; clear: left; padding-bottom: 1.0em; }
#imageData #bottomNavClose{ width: 66px; float: right; padding-bottom: 0.7em; }
#overlay{
position: absolute;
top: 0;
left: 0;
z-index: 90;
width: 100%;
height: 500px;
background-color: #000;
filter:alpha(opacity=60);
-moz-opacity: 0.6;
opacity: 0.6;
}
.clearfix:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
* html>body .clearfix {
display: inline-block;
width: 100%;
}
* html .clearfix {
/* Hides from IE-mac \*/
height: 1%;
/* End hide from IE-mac */
}

33
css/tst/modal-message.css Normal file
View file

@ -0,0 +1,33 @@
/************************************************************************************************************
* DHTML modal dialog box (CSS for the DHTMLSuite_modalMessage class)
*
* Created: August, 26th, 2006
* @class Purpose of class: Display a modal dialog box on the screen.
*
* Css files used by this script: modal-message.css
*
* Update log:
*
************************************************************************************************************/
.modalDialog_transparentDivs{
filter:alpha(opacity=60); /* Transparency */
opacity:0.6; /* Transparency */
background-color:#AAA;
z-index:1;
position:absolute; /* Always needed */
}
.modalDialog_contentDiv{
border:3px solid #000;
padding:2px;
z-index:100;/* Always needed */
position:absolute; /* Always needed */
background-color:#FFF; /* White background color for the message */
}
.modalDialog_contentDiv_shadow{
z-index:90;/* Always needed - to make it appear below the message */
position:absolute; /* Always needed */
background-color:#555;
filter:alpha(opacity=30); /* Transparency */
opacity:0.3; /* Transparency */
}

204
css/tst/old.css Normal file
View file

@ -0,0 +1,204 @@
.announcement
{
text-align: center;
}
div.announcement
{
margin-bottom: 5px;
padding-left: 0px;
padding-bottom: 10px;
padding-right: 0px;
padding-top: 0px;
border-left-style: none;
border-bottom-style: dashed;
border-right-style: none;
border-top-style: dashed;
border-width: thin;
}
ul
{
text-align: left;
}
div.chapter
{
margin-top: 30px;
}
div.box
{
padding: 2px;
border-style: solid;
border-width: thin;
margin-top: 20px;
margin-bottom: 20px;
}
h4
{
margin-bottom: 10px;
}
.line
{
display: block;
}
li
{
padding-bottom: 10px;
}
input
{
margin-top: 5px;
margin-bottom: 5px;
}
tr.dbhead
{
background: #7d9fc4;
color: rgb(255,255,255);
font-family: verdana, helvetica, arial, sans-serif;
font-size: 71%; /* Enables font size scaling in MSIE */
}
tr.db1
{
background: rgb(250,250,250);
color: rgb(0,0,0);
font-family: verdana, helvetica, arial, sans-serif;
font-size: 71%; /* Enables font size scaling in MSIE */
}
tr.db0
{
background: rgb(230,230,230);
color: rgb(0,0,0);
font-family: verdana, helvetica, arial, sans-serif;
font-size: 71%; /* Enables font size scaling in MSIE */
}
td.db
{
border-color: #7d9fc4;
}
table.db
{
border-spacing: 0.05em;
empty-cells: show;
}
tr.dbhead
{
height: 3em;
border-spacing: 0.05em;
}
td.db
{
padding: 0.2em;
border-left-style: dotted;
border-bottom-style: none;
border-right-style: dotted;
border-top-style: none;
border-width: thin;
vertical-align: top;
}
input.db, textarea.db, select.db
{
width: 99%;
margin-bottom: 10px;
}
select.dbdata
{
width: 105px;
margin: 0px;
}
textarea
{
height: 50px;
}
.big
{
height: 100px;
}
.verybig
{
height: 200px;
}
.line
{
display: block;
}
.line
{
display: block;
}
.topic
{
font-style: italic;
display: block;
}
.right
{
text-align: right;
}
p
{
font-weight: normal;
}
.small
{
font-size: 80%;
}
.announcement
{
font-weight: bold;
}
.warning
{
background-color: #ff0000;
color: #000000;
}
.confirmation
{
background-color: #00aa00;
color: #000000;
}
h1, h2, h3, h4
{
font-weight: bold;
}
h5, h6
{
font-weight: normal;
}

136
css/tst/sinorca-print.css Normal file
View file

@ -0,0 +1,136 @@
/************************************
* TITLE: Sinorca Print Stylesheet *
* URI : sinorca/sinorca-print.css *
* MODIF: 2003-May-01 19:30 +0800 *
************************************/
/* ##### Common Styles ##### */
body {
color: black;
background-color: white;
font-family: "times new roman", times, roman, serif;
font-size: 12pt;
margin: 0;
padding: 0;
}
acronym, .titleTip {
font-style: italic;
border-bottom: none;
}
acronym:after, .titleTip:after { /* Prints titles after the acronyms/titletips. Doesn't work in MSIE */
content: "(" attr(title) ")";
font-size: 90%;
font-style: normal;
padding-left: 1ex;
}
.doNotPrint {
display: none !important;
}
/* ##### Header ##### */
#header {
margin: 0;
padding: 0;
border-bottom: 1px solid black;
}
.superHeader {
display: none;
}
.headerTitle {
color: black;
background-color: transparent;
font-family: "trebuchet ms", verdana, helvetica, arial, sans-serif;
font-size: 200%;
font-weight: normal;
text-decoration: none;
margin: 0;
padding: 0 0 0.5ex 0;
}
.subHeader {
display: none;
}
/* ##### Side Bar ##### */
#side-bar {
display: none;
}
/* ##### Main Copy ##### */
#main-copy {
text-align: justify;
margin: 0;
padding: 0;
}
#main-copy h1 {
font-family: "trebuchet ms", verdana, helvetica, arial, sans-serif;
font-size: 120%;
margin: 2ex 0 1ex 0;
padding: 0;
}
#main-copy a {
color: black;
background-color: transparent;
text-decoration: none;
}
#main-copy a:after { /* Prints the links' URIs after the links' texts. Doesn't work in MSIE */
content: "<" attr(href) ">";
font-size: 90%;
padding-left: 1ex;
}
p {
margin: 0 0 2ex 0;
padding: 0;
}
dl {
margin: 0;
padding: 0;
}
dt {
font-weight: bold;
margin: 0;
padding: 0 0 1ex 0;
}
dd {
margin: 0 0 2ex 1.5em;
padding: 0;
}
.topOfPage {
display: none;
}
/* ##### Footer ##### */
#footer {
margin: 2em 0 0 0;
padding: 1ex 0 0 0;
border-top: 1px solid black;
}
#footer a {
color: black;
background-color: transparent;
text-decoration: none;
}

View file

@ -0,0 +1,304 @@
/*************************************
* TITLE: Sinorca Screen Stylesheet *
* URI : sinorca/sinorca-screen.css *
* MODIF: 2003-Apr-30 19:31 +0800 *
*************************************/
/* ##### Common Styles ##### */
body {
color: white;
background-color: #cccccc;
font-family: verdana, helvetica, arial, sans-serif;
font-size: 71%; /* Enables font size scaling in MSIE */
margin: 0;
padding: 0;
}
html > body {
font-size: 8.5pt;
}
acronym, .titleTip {
border-bottom: 1px dotted #cccccc;
cursor: help;
margin: 0;
padding: 0 0 0.4px 0;
}
.doNotDisplay {
display: none;
}
.smallCaps {
font-size: 110%;
font-variant: small-caps;
}
/* ##### Header ##### */
.superHeader {
color: white;
background-color: black;
height: 2em;
}
.superHeader a {
color: white;
background-color: transparent;
text-decoration: none;
font-size: 91%;
margin: 0;
padding: 0 0.5ex 0 0.25ex;
}
.superHeader a:hover {
text-decoration: underline;
}
.superHeader .left {
position: absolute;
left: 1.5mm;
top: 0.75ex;
}
.superHeader .right {
position: absolute;
right: 1.5mm;
top: 0.75ex;
}
.midHeader {
color: black;
background-color: #cccccc;
height: 4.5em;
}
.midHeader .left {
position: absolute;
left: 1.5mm;
top: 2.75ex;
}
.midHeader .right {
position: absolute;
right: 1.5mm;
top: 2.75ex;
}
.headerTitle {
font-size: 337%;
font-weight: normal;
margin: 0 0 0 4mm;
padding: 0.25ex 0;
}
.subHeader {
color: black;
background-color: #ff0000;
margin: 0;
padding: 1ex 1ex 1ex 1.5mm;
}
.subHeader a {
color: black;
background-color: transparent;
text-decoration: none;
font-weight: bold;
margin: 0;
padding: 0 0.75ex 0 0.5ex;
}
.subHeader a:hover {
text-decoration: underline;
}
.superHeader .highlight, .subHeader .highlight {
color: #aaaaaa;
background-color: transparent;
}
/* ##### Side Bar ##### */
#side-bar {
width: 15em;
float: left;
clear: left;
border-right: 1px solid #cccccc;
color: white;
background-color: black;
}
#side-bar div {
border-bottom: 1px solid #cccccc;
}
.sideBarTitle {
font-weight: bold;
margin: 0 0 0.5em 2.5mm;
padding: 1em 0 0 0;
}
#side-bar ul {
list-style-type: none;
list-style-position: outside;
margin: 0;
padding: 0 0 1.1em 0;
}
#side-bar li {
margin: 0;
padding: 0.1ex 0; /* Circumvents a rendering bug (?) in MSIE 6.0 */
}
#side-bar a, .thisPage {
color: white;
background-color: transparent;
text-decoration: none;
margin: 0;
padding: 0.75em 1ex 0.75em 5mm;
display: block;
}
.thisPage {
color: black;
background-color: #ff0000;
padding-left: 4mm;
border-top: 1px solid rgb(153,153,153);
border-bottom: 1px solid rgb(153,153,153);
}
#side-bar a:hover {
color: black;
background-color: #ff0000;
text-decoration: none;
}
.sideBarText {
line-height: 1.5em;
margin: 0 0 1em 0;
padding: 0 1.5ex 0 2.5mm;
display: block;
}
#side-bar .sideBarText a {
text-decoration: underline;
margin: 0;
padding: 0;
display: inline;
}
#side-bar .sideBarText a:hover {
color: black;
background-color: transparent;
text-decoration: none;
}
.lighterBackground {
color: inherit;
background-color: white;
}
/* ##### Main Copy ##### */
#main-copy {
color: black;
background-color: #dddddd;
text-align: justify;
line-height: 1.5em;
margin: 0 0 0 15em;
padding: 0.5mm 5mm 5mm 5mm;
border-left: 1px solid rgb(153,153,153);
}
#main-copy p {
margin: 1em 1ex 2em 1ex;
padding: 0;
}
#main-copy a {
color: #ff0000;
background-color: transparent;
text-decoration: underline;
}
#main-copy a:hover {
text-decoration: none;
}
#main-copy h1 {
color: black;
background-color: #ff0000;
font-size: 100%;
font-weight: bold;
margin: 3em 0 0 0;
padding: 0.5ex 0 0.5ex 1ex;
}
#main-copy .topOfPage {
color: black;
background-color: transparent;
font-size: 91%;
font-weight: bold;
text-decoration: none;
margin: 2.5ex 1ex 0 0; /* For MSIE */
padding: 0;
float: right;
}
#main-copy > .topOfPage {
margin: 2.75ex 1ex 0 0; /* For fully standards-compliant user agents */
}
dl {
margin: 1em 1ex 2em 1ex;
padding: 0;
}
dt {
font-weight: bold;
margin: 0 0 0 0;
padding: 0;
}
dd {
margin: 0 0 2em 2em;
padding: 0;
}
/* ##### Footer ##### */
#footer {
color: black;
background-color: #ff0000;
font-size: 91%;
margin: 0;
padding: 1em 2.5mm 2.5ex 2.5mm;
clear: both;
}
#footer .left {
line-height: 1.45em;
float: left;
clear: left;
}
#footer .right {
text-align: right;
line-height: 1.45em;
}
#footer a {
color: white;
background-color: transparent;
text-decoration: underline;
}
#footer a:hover {
text-decoration: none;
}

View file

@ -0,0 +1,302 @@
/*************************************
* TITLE: Sinorca Screen Stylesheet *
* URI : sinorca/sinorca-screen.css *
* MODIF: 2003-Apr-30 19:31 +0800 *
*************************************/
/* ##### Common Styles ##### */
body {
color: white;
background-color: #cccccc;
font-family: verdana, helvetica, arial, sans-serif;
font-size: 71%; /* Enables font size scaling in MSIE */
margin: 0;
padding: 0;
}
html > body {
font-size: 8.5pt;
}
acronym, .titleTip {
border-bottom: 1px dotted #cccccc;
cursor: help;
margin: 0;
padding: 0 0 0.4px 0;
}
.doNotDisplay {
display: none;
}
.smallCaps {
font-size: 110%;
font-variant: small-caps;
}
/* ##### Header ##### */
.superHeader {
color: white;
background-color: #ff0000;
height: 2em;
}
.superHeader a {
color: black;
background-color: transparent;
text-decoration: none;
font-size: 91%;
margin: 0;
padding: 0 0.5ex 0 0.25ex;
}
.superHeader a:hover {
text-decoration: underline;
}
.superHeader .left {
position: absolute;
left: 1.5mm;
top: 0.75ex;
}
.superHeader .right {
position: absolute;
right: 1.5mm;
top: 0.75ex;
}
.midHeader {
color: white;
background-color: #cccccc;
height: 4.5em;
}
.midHeader .left {
position: absolute;
left: 1.5mm;
top: 2.75ex;
}
.midHeader .right {
position: absolute;
right: 1.5mm;
top: 2.75ex;
}
.headerTitle {
font-size: 337%;
font-weight: normal;
margin: 0 0 0 4mm;
padding: 0.25ex 0;
}
.subHeader {
color: white;
background-color: black;
margin: 0;
padding: 1ex 1ex 1ex 1.5mm;
}
.subHeader a {
color: white;
background-color: transparent;
text-decoration: none;
font-weight: bold;
margin: 0;
padding: 0 0.75ex 0 0.5ex;
}
.subHeader a:hover {
text-decoration: underline;
}
.superHeader .highlight, .subHeader .highlight {
color: rgb(253,160,91);
background-color: transparent;
}
/* ##### Side Bar ##### */
#side-bar {
width: 15em;
float: left;
clear: left;
border-right: 1px solid rgb(153,153,153);
}
#side-bar div {
border-bottom: 1px solid rgb(153,153,153);
}
.sideBarTitle {
font-weight: bold;
margin: 0 0 0.5em 2.5mm;
padding: 1em 0 0 0;
}
#side-bar ul {
list-style-type: none;
list-style-position: outside;
margin: 0;
padding: 0 0 1.1em 0;
}
#side-bar li {
margin: 0;
padding: 0.1ex 0; /* Circumvents a rendering bug (?) in MSIE 6.0 */
}
#side-bar a, .thisPage {
color: rgb(0,102,204);
background-color: transparent;
text-decoration: none;
margin: 0;
padding: 0.75em 1ex 0.75em 5mm;
display: block;
}
.thisPage {
color: black;
background-color: #ff0000;
padding-left: 4mm;
border-top: 1px solid rgb(153,153,153);
border-bottom: 1px solid rgb(153,153,153);
}
#side-bar a:hover {
color: black;
background-color: #ff0000;
text-decoration: none;
}
.sideBarText {
line-height: 1.5em;
margin: 0 0 1em 0;
padding: 0 1.5ex 0 2.5mm;
display: block;
}
#side-bar .sideBarText a {
text-decoration: underline;
margin: 0;
padding: 0;
display: inline;
}
#side-bar .sideBarText a:hover {
color: black;
background-color: transparent;
text-decoration: none;
}
.lighterBackground {
color: inherit;
background-color: white;
}
/* ##### Main Copy ##### */
#main-copy {
color: black;
background-color: #dddddd;
text-align: justify;
line-height: 1.5em;
margin: 0 0 0 15em;
padding: 0.5mm 5mm 5mm 5mm;
border-left: 1px solid rgb(153,153,153);
}
#main-copy p {
margin: 1em 1ex 2em 1ex;
padding: 0;
}
#main-copy a {
color: #ff0000;
background-color: transparent;
text-decoration: underline;
}
#main-copy a:hover {
text-decoration: none;
}
#main-copy h1 {
color: black;
background-color: #ff0000;
font-size: 100%;
font-weight: bold;
margin: 3em 0 0 0;
padding: 0.5ex 0 0.5ex 1ex;
}
#main-copy .topOfPage {
color: black;
background-color: transparent;
font-size: 91%;
font-weight: bold;
text-decoration: none;
margin: 2.5ex 1ex 0 0; /* For MSIE */
padding: 0;
float: right;
}
#main-copy > .topOfPage {
margin: 2.75ex 1ex 0 0; /* For fully standards-compliant user agents */
}
dl {
margin: 1em 1ex 2em 1ex;
padding: 0;
}
dt {
font-weight: bold;
margin: 0 0 0 0;
padding: 0;
}
dd {
margin: 0 0 2em 2em;
padding: 0;
}
/* ##### Footer ##### */
#footer {
color: black;
background-color: #ff0000;
font-size: 91%;
margin: 0;
padding: 1em 2.5mm 2.5ex 2.5mm;
clear: both;
}
#footer .left {
line-height: 1.45em;
float: left;
clear: left;
}
#footer .right {
text-align: right;
line-height: 1.45em;
}
#footer a {
color: white;
background-color: transparent;
text-decoration: underline;
}
#footer a:hover {
text-decoration: none;
}

322
css/tst/sinorca-screen.css Normal file
View file

@ -0,0 +1,322 @@
/*************************************
* TITLE: Sinorca Screen Stylesheet *
* URI : sinorca/sinorca-screen.css *
* MODIF: 2003-Apr-30 19:31 +0800 *
*************************************/
/* ##### Common Styles ##### */
body
{
color: white;
background-color: #ffffcc;
font-family: verdana, helvetica, arial, sans-serif;
font-size: 71%;
/* Enables font size scaling in MSIE */
margin: 0;
padding: 0;
}
html > body { font-size: 8.5pt; }
acronym, .titleTip
{
border-bottom: 1px dotted #cccccc;
cursor: help;
margin: 0;
padding: 0 0 0.4px 0;
}
.doNotDisplay { display: none; }
.smallCaps
{
font-size: 110%;
font-variant: small-caps;
}
/* ##### Header ##### */
.superHeader
{
color: white;
background-color: black;
height: 2em;
}
.superHeader a
{
color: white;
background-color: transparent;
text-decoration: none;
font-size: 91%;
margin: 0;
padding: 0 0.5ex 0 0.25ex;
}
.superHeader a:hover { text-decoration: underline; }
.superHeader .left
{
position: absolute;
left: 1.5mm;
top: 0.75ex;
}
.superHeader .right
{
position: absolute;
right: 1.5mm;
top: 0.75ex;
}
.midHeader
{
color: black;
background-color: #fcfcfc;
height: 4.5em;
}
.midHeader .left
{
position: absolute;
left: 1.5mm;
top: 2.75ex;
}
.midHeader .right
{
position: absolute;
right: 1.5mm;
top: 5.0ex;
}
.headerTitle
{
background-color: transparent;
font-size: 300%;
font-weight: normal;
margin: 0 0 0 4mm;
padding: 0.25ex 0;
}
.subHeader
{
color: black;
background-color: #ffffcc;
margin: 0;
padding: 1ex 1ex 1ex 1.5mm;
}
.subHeader a
{
color: black;
background-color: transparent;
text-decoration: none;
font-weight: bold;
margin: 0;
padding: 0 0.75ex 0 0.5ex;
}
.subHeader a:hover { text-decoration: underline; }
.superHeader .highlight, .subHeader .highlight
{
color: #aaaaaa;
background-color: transparent;
}
/* ##### Side Bar ##### */
#side-bar
{
width: 15em;
float: left;
clear: left;
border-right: 1px solid #cccccc;
color: black;
background-color: #ffffcc;
}
#side-bar div { border-bottom: 1px solid #cccccc; }
.sideBarTitle
{
font-weight: bold;
margin: 0 0 0.5em 2.5mm;
padding: 1em 0 0 0;
}
#side-bar ul
{
list-style-type: none;
list-style-position: outside;
margin: 0;
padding: 0 0 1.1em 0;
}
#side-bar li
{
margin: 0;
padding: 0.1ex 0;
/* Circumvents a rendering bug (?) in MSIE 6.0 */
}
#side-bar a, .thisPage
{
color: black;
background-color: transparent;
text-decoration: none;
margin: 0;
padding: 0.75em 1ex 0.75em 5mm;
display: block;
}
.thisPage
{
color: black;
background-color: #ddddee;
padding-left: 4mm;
border-top: 1px solid rgb(153,153,153);
border-bottom: 1px solid rgb(153,153,153);
}
#side-bar a:hover
{
background-color: #ffffee;
text-decoration: none;
}
.sideBarText
{
line-height: 1.5em;
margin: 0 0 1em 0;
padding: 0 1.5ex 0 2.5mm;
display: block;
}
#side-bar .sideBarText a
{
text-decoration: underline;
margin: 0;
padding: 0;
display: inline;
}
#side-bar .sideBarText a:hover
{
color: black;
background-color: transparent;
text-decoration: none;
}
.lighterBackground
{
color: inherit;
background-color: white;
}
/* ##### Main Copy ##### */
#main-copy
{
color: black;
background-color: #fcfcfc;
text-align: justify;
line-height: 1.5em;
margin: 0 0 0 15em;
padding: 0.5mm 5mm 5mm 5mm;
border-left: 1px solid rgb(153,153,153);
}
p
{
margin: 1em 1ex 2em 1ex;
padding: 0;
}
a
{
color: #ff0000;
background-color: transparent;
text-decoration: underline;
}
a:hover { text-decoration: none; }
h1
{
color: black;
background-color: #ddddee;
font-size: 100%;
font-weight: bold;
margin: 3em 0 0 0;
padding: 0.5ex 0 0.5ex 1ex;
}
.topOfPage
{
color: black;
background-color: transparent;
font-size: 91%;
font-weight: bold;
text-decoration: none;
margin: 2.5ex 1ex 0 0;
/* For MSIE */
padding: 0;
float: right;
}
#main-copy > .topOfPage
{
margin: 2.75ex 1ex 0 0;
/* For fully standards-compliant user agents */
}
dl
{
margin: 1em 1ex 2em 1ex;
padding: 0;
}
dt
{
font-weight: bold;
margin: 0 0 0 0;
padding: 0;
}
dd
{
margin: 0 0 2em 2em;
padding: 0;
}
/* ##### Footer ##### */
#footer
{
color: black;
background-color: #ff0000;
font-size: 91%;
margin: 0;
padding: 1em 2.5mm 2.5ex 2.5mm;
clear: both;
}
#footer .left
{
line-height: 1.45em;
float: left;
clear: left;
}
#footer .right
{
text-align: right;
line-height: 1.45em;
}
#footer a
{
color: white;
background-color: transparent;
text-decoration: underline;
}
#footer a:hover { text-decoration: none; }

1
fahrplan Symbolic link
View file

@ -0,0 +1 @@
fahrplan-data/EH2007

Some files were not shown because too many files have changed in this diff Show more