include("config.inc"); //db connection and directory variables
//customize individual pages by changing these values
$pagebackground = "#ffffff"; //page background color
$pagetext = "#000000"; //page text color
$imageborder = "0"; // card border width. this must be set to a number larger than 0 for the images to have a border
$imagebordercolor = "#00FF00"; //set specific border color. will not work in old browsers
$linkcolor = "blue";//set link color
$vlinkcolor = "#0000FF"; //set visited link color
$headercolor = "blue"; //use this to set the color of headers
$imageborder = "0"; // card border width. this must be set to a number larger than 0 for the images to have a border
//$imagebordercolor = "#FF0000"; //set specific border color. will not work in old browsers
$imagewidth = "73";
$imageheight = "120";
$font = "Verdana"; //use this to set the page's font
$fontsize = "2"; //use this to set the page's font size
//the variables below define the page's wording. use these to edit headers and header text
$title = "Your Celtic Cross Spread"; // page title
$pagetitle = "Your Celtic Cross Spread"; // page header title
$readlink = "Get Another Reading";
$disclaimlink = "Disclaimer";
$interplink = "Interpretation Basics";
$printlink = "Version to Print";
$titleblurb = "Scroll down for your interpretation. Click on individual cards to see a larger representation."; //blurb under page header
$sigheader = "The Significator "; //card 1 in lower table ***NOTICE THE SPACE AT THE STRING'S END ***
$sigtext = "represents you and your current state of being.";
$crossheader = "The Crossing Card "; //card 2 in lower table ***NOTICE THE SPACE AT THE STRING'S END ***
$crosstext = "denotes that which opposes or influences you.";
$foundationheader = "The Foundation card "; //card 3 in lower table ***NOTICE THE SPACE AT THE STRING'S END ***
$foundationtext = "addresses the origin of your question.";
$recentheader ="The Recent Past "; //card 4 in lower table ***NOTICE THE SPACE AT THE STRING'S END ***
$recenttext ="represents past events and concerns.";
$crownheader = "The Crown "; //card 5 in lower table ***NOTICE THE SPACE AT THE STRING'S END ***
$crowntext = "issues that are significant in the present or may come to pass in the future. This card foretells future events which you may or may not occur, depending upon how you respond to the present situation.";
$futureheader = "The Future "; //card 6 in lower table ***NOTICE THE SPACE AT THE STRING'S END ***
$futuretext = "depicts that which lies ahead.";
$emotionsheader = "Emotions "; //card 7 in lower table ***NOTICE THE SPACE AT THE STRING'S END ***
$emotionstext = "card signifies the current state of your emotional self.";
$externheader ="External Forces "; //card 8 in lower table ***NOTICE THE SPACE AT THE STRING'S END ***
$externtext = "represents the influence of others in your life as well as trends in your relationships with others.";
$hopesheader = "Hopes and Desires "; //card 9 in lower table ***NOTICE THE SPACE AT THE STRING'S END ***
$hopestext = "stands for the hopes and desires you have for the outcome of your question.";
$outcomeheader = "The Outcome "; //card 10 in lower table ***NOTICE THE SPACE AT THE STRING'S END ***
$outcometext = "the ultimate outcome your question. Remember the future is not predetermined.
Interpret this card in the context of the entire reading
and as an indicator of the path you are currently on, but not bound to. reading.";
$con= @mysql_connect("$host","$user","$pass");
if(!$con)
{
$connect_error = "Failed at mysql_connect. ";
echo"error at db connect";
exit();
}
srand((double)microtime()*1000000);
$maxnumber = 9;
$count= 0;
$index = 0;
$cardcount = 0;
$cardindex = 0;
$cards[0];
$thecards[0][0];
while($count <= $maxnumber)
{
$number = rand(0,78);
for($index; $index <= $maxnumber; $index++)
{
if($cards[$index] == $number)
{
$number = rand(0,78);
$index = -1;
}
}
$cards[$count] = $number;
$randnum = rand(0,78);
if($count != 0 && $count != 1)
{
if(($randnum % 2) != 0)
{
$cards[$count] = $cards[$count]."r";
}
}
$query = "SELECT * FROM $table WHERE (card = '$cards[$count]')";
$result = @mysql_db_query($db, $query);
$r = mysql_fetch_array($result);
if(!$result)
{
$query_error = "Failed at the mysql_db_query.";
echo"$query_error";
exit();
}
else
{
$indice = 0;
$thecards[$count][$indice] = $r["title"];
$test2 = $r["card"];
//echo"$test2 <-------no array value test <--->cards count --> $cards[$count]
";
$test = $thecards[$count][$indice];
//echo"$test <-------test
";
$indice++;
$thecards[$count][$indice] = $r["description"];
$indice++;
$thecards[$count][$indice] = $r["thumb"];
$indice++;
$thecards[$count][$indice] = $r["limage"];
}
// $cards[$count] = $number;
// echo"$cards[$count]<---CARD $count <---COUNT
";
$count++;
$index = 0;
}
$count = 0;
$index = 0;
$printcards = implode (":", $cards);
?>
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||