#use wml::std::box # # > > > > " "deutsch" ""> " "english" ""> " "deutsch" ""> " "english" ""> " "infodrom" ""> " "linux" ""> " "general" " "english" "" "" > >
">" bdcolor="#" bdwidth=1 bdspace=10 width=100 bgcolor="#"> ") && (($fortune = fopen ("", "r")) !== false)) { while (!feof ($fortune)) { $line = fgets ($fortune, 255); echo $line; } fclose ($fortune); } else { echo ""; } ?>
# -- [ Old ] ----------------------------------------------------------- # # Quote of the day boxes # # quotebox-de-shtml # quotebox-en-shtml # quotebox-de-php # quotebox-en-php # # FIXME: Schöner wäre es, wenn ich %0 == "" -> .fortune, sonst %0 abfragen könnte ">Zitat des Tages" bdcolor="#" bdwidth=2 bdspace=10 bgcolor="#" width=500> ">Quote of the day" bdcolor="#" bdwidth=2 bdspace=10 bgcolor="#"> ">Zitat des Tages" bdcolor="#" bdwidth=2 bdspace=10 bgcolor="#"> ">Quote of the day" bdcolor="#" bdwidth=2 bdspace=10 bgcolor="#"> -- %s"; $attribution = 0; $result = '
'; $firstchar = substr ($cookie[0], 0, 1); if ( ($firstchar == "<") || ($firstchar == ">") || ($firstchar == "*") || ($firstchar == " ") || ($firstchar == "[") ) { $pre = 1; $result .= "
\n";
    } else {
      $result .= "

\n"; } for ($i=0; $i < count ($cookie); $i++) { $line = $cookie[$i]; $line = str_replace (array("<", ">"), array("<", ">"), $line); if (preg_match('/^\t\t?-- (.*)/', $line, $matches)) { $line = rtrim($matches[1]); if ($pre) { $pre = 0; $result .= "

\n"; } else { $result .= "

\n"; } $result .= sprintf ($fsource, $line); $attribution = 1; } else { if (!$pre && substr($line, 0, 1) == ' ') $result .= "
"; $result .= $line; } } if (!$attribution) { if ($pre) { $pre = 0; $result .= "\n"; } else { $result .= "

\n"; } } $result .= "
\n"; return $result; } ?>
> >

")) { $fortune = fopen ("", "r"); } else { $fortune = popen ("", "r"); } if ($fortune !== false) { $cookie = array (); while (!feof ($fortune)) { $line = fgets ($fortune, 255); $cookie[] = $line; } if (is_file ("")) { fclose ($fortune); } else { pclose ($fortune); } echo format_cookie ($cookie, 0); } else { echo "

No fortune today.

"; } ?>
# Local variables: # mode: text # mode: auto-fill # end: