# Version .1
# Updated 12/12/08
# Copyright Katz Web Design, http://katzwebdesign.net
# Contact info@katzwebdesign.net
/*
Please give credit if you use this code
and don't steal it. It's not even done yet!
*/
function randomFooter($position, $force = false) {
global $echod;
$rand = rand(1, 5);
$rand2 = rand(1,4);
$rand3 = rand(1,4);
$tag = array('p','span','em','h3','h4','h5');
$tag = $tag[rand(1, 5)];
switch ($rand) {
case 1:
$text = "Denver SEO";
$url = "http://katzwebdesign.net?link=1";
break;
case 2:
$text = "SEO Company in Denver";
$url = "http://katzwebdesign.net?link=2";
break;
case 3:
$text = "Denver SEO Services";
$url = "http://katzwebdesign.net?link=3";
break;
case 4:
$text = "SEO Blog";
$url = "http://katzwebdesign.wordpress.com?link=4";
break;
case 5:
$text = "Denver Blog SEO";
$url = "http://katzwebdesign.wordpress.com?link=5";
break;
}
$output = '<'.$tag.'>'.$text.''.$tag.'>';
// To debug or test, uncomment the line below
// echo 'Link = "'.$url.'", Tag = '.$tag.', Position = '.$position . ', Random = '.$rand2.'
';
if($position == $rand2 && !$echod || $force && !$echod) {
echo $output;
$echod = true;
}
}
echo '