//
// This is the header function
//
function madrash_header ( $dok_title, $fortune, $keywords, $description ) {
$bgcolor="#000000";
$textcolor="#ffffff";
$bluetext="#0000ff";
$linkcolor="#90ee90";
$alinkcolor="#f0f0f0";
$vlinkcolor="#90ee90"; ?>
echo "$dok_title\n"; ?>
echo " \n"; ?>
echo " \n"; ?>
echo "\n";
?>
Bilder aller Magic-Karten von kaeserch
}
?>
//
// A footer is also easier in PHP.
//
function madrash_footer () {
?>
Kontakt zu kaeserch
powered by L
A
M
P ,
last changes done echo date("d.m.Y\n", getlastmod()); ?>
} ?>
function image_index ( $directory ) { ?>
$handle=opendir("$directory");
$counter=0;
while ($file = readdir($handle)) {
if ( is_dir("$directory/$file")) {
if ($file != ".") {
if ($file != "..") {
}
}
}
if ( is_file("$directory/$file")) {
if ($file != "index.phtml") {
$filesplit = split("\.", $file, 10);
for ($i=0;$i < 10;$i++) {
if ($filesplit[$i] == "jpg" || $filesplit[$i] == "JPG") {
$image = 1;
$counter=$counter+1;
}
else if ($filesplit[$i] == "gif" || $filesplit[$i] == "GIF") {
$image = 1;
$counter=$counter+1;
}
else if ($filesplit[$i] == "png" || $filesplit[$i] == "Png") {
$image = 1;
$counter=$counter+1;
}
}
if ($image == 0) {
}
else {
if ($counter==1) {
print "\n";
}
$size = GetImageSize("$file");
$thumb[0]=$size[0]/8;
$thumb[1]=$size[1]/8;
if (($counter-1)%4 == 0) {
print " \n\n";
}
print " $file \n";
$image = 0;
}
}
}
}
?>
} ?>
function klappentext() {
$file="klappentext.txt";
$fp = fopen("$file", "r");
ereg("([0-9]{3})", fgets($fp,1024),$quotemax);
/* Auslesen der Anzahl von Spruechen */
srand((double)microtime()*1000000);
$quotenum=rand()%$quotemax[1]+1;
/* Berechnen der Zufallszahl */
for ($i = 0; !feof($fp) && $i != $quotenum ; $i++) {
$line = fgets($fp, 1024);
/* Durchspulen des Files bis zur richtigen Zeile */
} echo"$line";
/* Ausgabe der Zeile */}?>
//
// Image-Index
//
function thumbnail_index ( $directory, $subdirectory ) {
?>
$handle=opendir("$directory");
$counter=0;
while ($file = readdir($handle)) {
if ( is_dir("$directory/$file")) {
if ($file != ".") {
if ($file != "..") {
}
}
}
if ( is_file("$directory/$file")) {
if ($file != "index.phtml") {
$filesplit = split("\.", $file, 10);
for ($i=0;$i < 10;$i++) {
if (isset($filesplit[$i])){
if ($filesplit[$i] == "jpg" || $filesplit[$i] == "JPG") {
$image = 1;
$counter=$counter+1;
}
else if ($filesplit[$i] == "gif" || $filesplit[$i] == "GIF") {
$image = 1;
$counter=$counter+1;
}
else if ($filesplit[$i] == "png" || $filesplit[$i] == "Png") {
$image = 1;
$counter=$counter+1;
}
}
}
if ($image == 0) {
}
else {
if ($counter==1) {
print "\n";
}
$size = GetImageSize("$directory/thumbs/$file");
$thumb[0]=$size[0];
$thumb[1]=$size[1];
if (($counter-1)%4 == 0) {
print " \n\n";
}
print " $file \n";
$image = 0;
}
}
}
}
?>
} ?>