1) {
$teil = split('\.' , $servername);
$domain = $teil[count($teil)-2] . "." . $teil[count($teil)-1];
}
function db2html($dbvar) {
return str_replace("\n","
",htmlentities($dbvar, ENT_QUOTES));
}
function banner($minwidth, $maxwidth, $minheight, $maxheight) {
$datei = "banner/banner.txt";
@$dateiinhalt = file ($datei) OR exit;
$zeile = "0";
$i = "0";
foreach ($dateiinhalt as $wert) {
list($grafikurl, $border, $width, $height, $alt, $status_in, $status_out, $url, $target) = split ('##', $dateiinhalt[$zeile]);
if(($minwidth <= $width ) && ($maxwidth >= $width )){
$passendewidthliste[$i] = $dateiinhalt[$zeile];
$i++;
}
$zeile++;
}
$zeile = "0";
$i = "0";
foreach ($passendewidthliste as $wert) {
list($grafikurl, $border, $width, $height, $alt, $status_in, $status_out, $url, $target) = split ('##', $passendewidthliste[$zeile]);
if(($minheight <= $height ) && ($maxheight >= $height )){
$passendeheightliste[$i] = $passendewidthliste[$zeile];
$i++;
}
$zeile++;
}
$zufallszeile = array_rand ($passendeheightliste);
list($grafikurl, $border, $width, $height, $alt, $status_in, $status_out, $url, $target) = split ('##', $passendeheightliste[$zufallszeile]);
?>
Wartungsarbeiten! |