Zitat: Unterschied zwischen den Versionen

 
(21 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
−
<html>
+
[[file:001z.jpg]]
−
<?php
 
−
$allqts = array
 
−
    ("The Black Knight Always Triumphs!",
 
−
        "Monty Python"
 
−
        );
 
  
−
// Gets the Total number of Items in the array
+
test
−
//  Divides by 2 because there is a Quote followed by an Author
 
−
$totalqts = (count($allqts)/2);
 
  
−
// Subtracted 1 from the total because '0' is not accounted for otherwise
+
[[category:Zitate]]
−
$nmbr = (rand(0,($totalqts-1)));
 
−
$nmbr = $nmbr*2;
 
−
 
 
−
//$nmbr = 18;
 
−
 
 
−
$quote = $allqts[$nmbr];
 
−
        $nmbr = $nmbr+1;
 
−
$author = $allqts[$nmbr];
 
−
 
 
−
// You can delete this section
 
−
//  it is only so Search engines can find it
 
−
if ($_SERVER['PHP_SELF'] == "/quotes.php") {
 
−
    echo "<Title>Random Quote Script for PHP</title>";
 
−
    echo "<meta name=\"Description\" content=\"Random Quote script written in PHP\">";
 
−
    echo "<meta name=\"keywords\" content=\"Random Quote script written in PHP\">";
 
−
}
 
−
/// End Delete
 
−
 
 
−
 
 
−
$space = "<font color=$bgcolor>.....................................</font>";
 
−
$comments = "<br><center><font size='-2'><i><a href='quotes.php'>Random Quote Script by Dave</a></i></font></center>";
 
−
 
 
−
echo "<center>";
 
−
echo "<Font color=$textcolor size='$textsize'><i>";
 
−
echo "$quote<br>";
 
−
echo "</i></font>";
 
−
echo "$space $author";
 
−
echo "$comments";
 
−
echo "</center>";
 
−
?>
 
−
</html>
 

Aktuelle Version vom 27. November 2021, 01:29 Uhr

001z.jpg

test