About Us Parcours 2012 Information Archives Sponsors Galerie Sitemap
  deutsch   english   Francaise
Startseite Galerie

Galerie


Contacts Impressum Liver D'or

Galerie

Demi-marathon du Stockhorn 2010

Demi-marathon du Stockhorn 2009

'; $cap_str2=''; $cap_str1 =str_replace('{color1}',$color1,$cap_str1); $cap_str1 =str_replace('{size}',$size1,$cap_str1); $cap_str2 =str_replace('{color2}',$color2,$cap_str2); $cap_str2 =str_replace('{size}',$size1,$cap_str2); if (file_exists($setupfile)) { $data= file($setupfile); $tmp = explode('||',$data[0]); } if ($tmp[11] == 'on') {echo '';} function gbpostVars($myKey) { // Holt Post-Vars if (isset($_POST[$myKey])) { if (get_magic_quotes_gpc()) { return (stripslashes($_POST[$myKey])); } else { return ($_POST[$myKey]); } } else { return (""); } } function gbNLBR($text) { $text=htmlentities($text); $text=str_replace("\n","
",$text); $text=str_replace("\r","",$text); return ($text); } function gbgetVars($myKey) { // Holt Get-Vars if (isset($_GET[$myKey])) { if (get_magic_quotes_gpc()) { return (stripslashes($_GET[$myKey])); } else { return ($_GET[$myKey]); } } else { return (""); } } function gbServerVars($myKey) { // Holt Server-Vars if (isset($_SERVER[$myKey])) { return ($_SERVER[$myKey]); } else { return (""); } } function gbfwritePad($fp,$myVar,$length) { // Schreibt gepadded in Datei fwrite($fp,$myVar.str_repeat(" ",$length),$length); } function gbfgetPad($fp,$length) { // Liest gepaddete Daten return rtrim(fread($fp,$length)); } function gbformatText($text) { // Ersetzt BB-Formate global $smilie_mode,$img_url,$ini_url; $text = preg_replace("#\[i\](.+?)\[/i\]#is","\\1",$text); $text = preg_replace("#\[u\](.+?)\[/u\]#is","\\1",$text); $text = preg_replace("#\[b\](.+?)\[/b\]#is","\\1",$text); $text = preg_replace("#\[(.+?)\]#is","",$text); $text = preg_replace("#\[\/(.+?)\]#is","",$text); $text = w2dgb_badwords($text); if ($smilie_mode==0) { $text=str_replace(":)"," ",$text); $text=str_replace(";)"," ",$text); $text=str_replace(":eek:"," ",$text); $text=str_replace(":("," ",$text); $text=str_replace(":o"," ",$text); $text=str_replace(":roll:"," ",$text); $text=str_replace(":lol:"," ",$text); } else { $all_smilies = file($ini_url); foreach ($all_smilies as $smilie) { $smilie = explode("¿", $smilie); $text = str_replace($smilie[0],"\"\"", $text); } } $text.=""; return($text); } class Digit { var $bits = array(1,2,4,8,16,32,64,128,256,512,1024,2048,4096,8192,16384); var $matrix = array(); var $bitmasks = array(31599, 18740, 29607, 31143, 18921, 31183, 31695, 18855, 31727, 31215); function digit( $dig ) { $this->matrix[] = array(0, 0, 0); // 2^0, 2^1, 2^2 ... usw. $this->matrix[] = array(0, 0, 0); $this->matrix[] = array(0, 0, 0); $this->matrix[] = array(0, 0, 0); $this->matrix[] = array(0, 0, 0); // ..., ..., 2^14 ((int)$dig >= 0 && (int)$dig <= 9) && $this->setMatrix( $this->bitmasks[(int)$dig] ); } function setMatrix( $bitmask ) { $bitsset = array(); for ($i=0; $ibits); ++$i) (($bitmask & $this->bits[$i]) != 0) && $bitsset[] = $this->bits[$i]; foreach($this->matrix AS $row=>$col) foreach($col AS $cellnr => $bit) in_array( pow(2,($row*3+$cellnr)), $bitsset) && $this->matrix[$row][$cellnr] = 1; } } class Number { var $num = 0; var $digits = array(); function number( $num ) { $this->num = (int)$num; $r = "{$this->num}"; for( $i=0; $idigits[] = new Digit((int)$r[$i]); } function getNum() { return $this->num; } function getRef() { return md5($this->num); } function printNumber() { global $cap_str1,$cap_str2; for($row=0; $rowdigits[0]->matrix); $row++) { foreach( $this->digits AS $digit ) { foreach($digit->matrix[$row] AS $cell) if($cell === 1) print $cap_str1.'  
'; else print$cap_str2.'  '; print $cap_str2.' '; } print("
"); } } } function CheckCaptcha($value, $refvalue) { return (md5($value) == $refvalue); } $maxpage=8; $admin=0; $action = gbgetVars("action"); $msgText = ""; $msgEMail = ""; $msgUsername = ""; $msgWww = ""; $errMessage = ""; // Daten schreiben if ($action=="post") { $errMessage=''; if (strstr(gbpostVars("www"),'')) $errMessage ='Illegale Zeichen im Feld WWW'; if (strstr(gbpostVars("www"),'')) $errMessage ='Illegale Zeichen im Feld Name'; if (strstr(gbpostVars("username"),'')) $errMessage ='Illegale Zeichen im Feld '; if (strstr(gbpostVars("email"),'')) $errMessage ='Illegale Zeichen im Feld Eintrag'; if (strstr(gbpostVars("message"),'"); } // Benutzerinterface echo("

Merci pour vos commentaires dans notre livre d'or. Nous nous félicitons de tous les visiteurs et accepter la critique et des suggestions très au sérieux.

\n"); if ($admin) { echo 'Dieses Gästebuch ist moderiert, ihr Eintrag wird so schnell wie möglich freigeschalten
'; } echo("Voir Le Livre d'or

\n"); } else { $action = "form"; $msgText = gbpostVars("message"); $msgEMail = gbpostVars("email"); $msgUsername = gbpostVars("username"); $msgWww = gbpostVars("www"); if ($errMessage=='') { if (gbpostVars("captchagenerate") != "yes") $errMessage = "Bitte überprüfen Sie den Bestätigungscode."; } } } if ($action=="") { // Anzeigen if (($tmp[5] != 'on' && $tmp[6] != 'on' ) || ($tmp[5] =='on')) { echo("Cliquez ici pour écrire une entrée
\n"); } $displaycount=0; if (file_exists($filename)) { $fp=fopen($filename,"r"); flock ($fp,1); $recordcount=gbfgetPad($fp,6); $first=gbgetVars("offset"); if ($first==0) { $first=1; }; $last=$first+$maxpage-1; $viewcount = 0; // Zählt anzuzeigenden Einträge pro Seite for ($i=1; $i<=$recordcount; $i++) { fseek($fp,6+($recordcount-$i)*4890); $view=gbfgetPad($fp,1); gbfgetPad($fp,15); if ($view==1) { $displaycount++; $viewcount++; // alle anzuzeigenden Einträge werden gezählt //echo $i."-".$first."-".$viewcount."-".$maxpage."
"; //if ($i>=$first && $i<=$last) { if ($viewcount>=$first && $viewcount<=$last) { $username=gbfgetPad($fp,256); $message=gbfgetPad($fp,4096); $email=gbfgetPad($fp,256); $www=gbfgetPad($fp,256); $date=gbfgetPad($fp,10); if ($tmp[8] == 'on') { echo '
'; } echo("

"); echo("$date - "); if ($email=="") { echo(htmlentities($username)); } else { $m_body=""; for ( $x=0; $x "); echo ' '; if ($tmp[9]!='on') { echo("(".htmlentities($www).")"); } else { if ($tmp[10]!='') {echo $tmp[10];} else { echo '(www)';} } echo("\n"); } echo("
\n"); echo(gbformatText($message)."

\n"); } } } flock ($fp,3); fclose ($fp); } // Navigation echo("

\n"); if ($displaycount!=0) { if ($first>1) { print "Zurück "; }; $page=0; if ($displaycount>$maxpage) { for ($i=1;$i<=$displaycount;$i=$i+$maxpage) { $page++; if ($i==$first) { print " $page "; } else { print "$page "; } } } if ($displaycount>$last) { print "Weiter "; } } echo("

\n"); if (($tmp[5] != 'on' && $tmp[6] != 'on' ) || ($tmp[6] =='on')) { echo("Cliquez ici pour écrire une entrée
\n"); } } if ($action=="form") { $width='350'; $height='200'; $left='650'; $top='200'; if (file_exists($rs_smilie_set)) { $tmp = GBArrayLoad ($rs_smilie_set); if (isset($tmp['width'])) $width = $tmp['width']; if (isset($tmp['height'])) $height= $tmp['height']; if (isset($tmp['left'])) $left = $tmp['left']; if (isset($tmp['top'])) $top = $tmp['top']; } $position= 'width='.$width.',height='.$height.',top='.$top.',left='.$left; ?>
 

Name:
E-Mail:
WWW:
Eintrag:
'; echo 'Alle Smilies'; } ?> unterstreichen fett kursiv

Bestätigung: 


printNumber(); echo(''); ?>   Bitte geben Sie den vierstelligen Bestätigungscode in das Textfeld ein. Falls Sie den Code nicht lesen können, klicken Sie hier.


Demi-marathon du Stockhorn 2008

Demi-marathon du Stockhorn 2007

Demi-marathon du Stockhorn 2006