{source}
<!– You can place html anywhere within the source tags –>
<script language=”javascript” type=”text/javascript”>
// You can place JavaScript like this
</script>
<?php
$db = “dicha20_astrolog”; //set this to the name of your database
$host = “localhost”; //set this to the name of your host
$user = “dicha20_astrolog”; //set this to your db user name
$pass = “6658709123”; //set this to your db password
$table = “pcards”; //set this to the name of the table that holds the card info.
$imagedirectory = “images/fortuneteller/”; //main image directory
$largeimage = “large/”; // large image directory
//put your Site copyright here. HTML formatting is allowed
$copyright = ” “;
$copyfontsize = “1”; //set your textsize for your copyright
$tablewidth = “”;
$tableBGcolor = “#FFFFFF”;
$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 = “#00FF00”;//set link color
$vlinkcolor = “#0000FF”; //set visited link color
$headercolor = “#FF0000”; //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 = “95”;
$imageheight = “120”;
$font = “Verdana”; //use this to set the page’s font
$fontsize = “2”; //use this to set the page’s font size
$titlesize = “4”; //size of header
//customize individual pages by changing these values
//the variables below define the page’s wording. use these to edit headers and header text
$title = “Αστρολογικό Διάβασμα”; // page title
$pagetitle = “Αστρολογικό Διάβασμα”; // header title
$readlink = “Κάντε άλλο Διάβασμα”; //link back to main tarot page
$disclaimlink = “Disclaimer”; // disclaimer link
$interplink = “Βασικές Αρχές ΕΡμηνείας”; //interpretation help link
$printlink = “Version to Print”; //print friendly copy link
$titleblurb = “Κατεβείτε κάτω για την ερμηνεία.”; //blurb under page header
$selfheader = “Ο εαυτός μας Συνολικά “; //card 1 in lower table
$currentheader = “Η Παρούσα Διάθεση μας (Η Κάρτα του Κριού) “; //card 2 in lower table
$financeheader = “Οικονομικά Ζητήματα (Η Κάρτα του Ταύρου)”; //card 3 in lower table
$travelheader = “Ζητήματα, που αφορούν την Επικοινωνία και τα Ταξίδια (Η Κάρτα του Δίδυμου)”;//card 4 in lower table
$homeheader = “Ζητήματα, που αφορούν την Οικογένεια, το Σπίτι και τα Παιδιά (Η Κάρτα του Καρκίνου)”;//card 5 in lower table
$pleasureheader = “Ζητήματα, που αφορούν την Απόλαυση, τον Έρωτα και τα Παιδιάν (Η Κάρτα του Λέοντα)”;//card 6 in lower table
$healthheader = “Ζητήματα, που αφορούν την Υγεία και την Καθημερινότητα (Η Κάρτα της Παρθένου)”; //card 7 in lower table
$partnerheader = “Ζητήματα, , που αφορούν τον Γάμο, τη Σχέση και τη Συνεργασία (Η Κάρτα του Ζυγού)”; //card 8 in lower table
$deathheader = “Ζητήματα, που αφορούν την Κληρονομιά, τα Εισοδήματα και το Σεξ (η Κάρτα του Σκορπιού)”; //card 9 in lower table
$spiritheader =”Ζητήματα, που αφορούν τα Ταξίδια, την Πνευματικότητα και τα όνειρα (Η Κάρτα του Τοξότη)”;//card 10 in lower table
$careerheader =”Ζητήματα, που αφορούν την Καριέρα και την Επιτυχία (Η Κάρτα του Αιγόκερου)”; //card 11 in lower table
$friendheader = “Ζητήματα, που αφορούν την Φιλία και την Ελπίδα (Η Κάρτα του Υδροχόου)”; //card 12 in lower table
$burdenheader = “Ζητήματα, που αφορούν τα Βάρη, τις Αντιθέσεις και τους Φόβους (Η κάρτα του Ιχθύ)”; //card 13 in lower table
$con= @mysql_connect(“$host”,”$user”,”$pass”);
if(!$con)
{
$connect_error = “Failed at mysql_connect. “;
echo”error at db connect”;
exit();
}
mysql_query(“SET NAMES ‘utf-8′”, $con);
mysql_query(“SET CHARACTER SET ‘utf-8′”, $con);
srand((double)microtime()*1000000);
$maxnumber = 12;
$count= 0;
$count2 = 0;
$index = 0;
$cardcount = 0;
$cardindex = 0;
$type[0] = 0;
$cards[0] = 0;
$thecards[0][0] = 0;
$typeFlag = 0;
while($count <= $maxnumber)
{
$number = rand(0,52);
for($index; $index <= $maxnumber; $index++)
{
if($cards[$index] == $number)
{
$number = rand(0,52);
$index = -1;
}
}
$cards[$count] = $number;
$query = “SELECT * FROM $table WHERE (card = ‘$cards[$count]’)”;
mysql_query(“SET NAMES ‘utf8′”);
mysql_query(“SET CHARACTER SET ‘utf8′”);
$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]<BR>”;
$test = $thecards[$count][$indice];
//echo”$test <——-test <BR>”;
$indice++;
$thecards[$count][$indice] = $r[“description”];
$indice++;
$thecards[$count][$indice] = $r[“thumb”];
$indice++;
$thecards[$count][$indice] = $r[“limage”];
$typeNum[$count] = $r[“type”];
}
$count++;
$index = 0;
}
for($count2 = 0; $count2 <= $maxnumber; $count2++)
{
$id = $typeNum[$count2];
$theType[$id] = $theType[$id] + 1;
if($theType[$id] == 2 || $theType[$id] == 3 || $theType[$id] == 4)
{
$typeFlag = 1;
}
}
$count = 0;
$index = 0;
?>
<p align=”center”><font face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>”><A HREF=’παραδοσιακή-χαρτομαντεία.html’>Κάντε άλλο Διάβασμα</a></font><BR> </td>
<p align=”center”><b><font color=”<?echo”$headercolor”;?>” face=”<?echo”$font”;?>” size=”4″>
<? echo”$pagetitle”;?></font><br>
</b></p>
<p align=”center”><font color=”#444444″ face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>”><?echo”$titleblurb”;?>
</font></p>
<table>
<tr>
<td align=”center”><? $thumb=$thecards[11][2];?><img border=”<?echo”$imageborder”;?>” src=”<?echo”$imagedirectory$thumb”;?>”><br>
<br>
<? $thumb=$thecards[12][2];?><img border=”<?echo”$imageborder”;?>” src=”<?echo”$imagedirectory$thumb”;?>”><br>
<br>
<? $thumb=$thecards[1][2];?><img border=”<?echo”$imageborder”;?>” src=”<?echo”$imagedirectory$thumb”;?>”><br>
<br>
<? $thumb=$thecards[2][2];?><img border=”<?echo”$imageborder”;?>” src=”<?echo”$imagedirectory$thumb”;?>”><br>
<br>
<? $thumb=$thecards[3][2];?><img border=”<?echo”$imageborder”;?>” src=”<?echo”$imagedirectory$thumb”;?>”></td>
<td align=”center”>
<? $thumb=$thecards[10][2]?><img border=”<?echo”$imageborder”;?>” src=”<?echo”$imagedirectory$thumb”;?>”><br>
<br>
<? $thumb=$thecards[0][2];?><img border=”<?echo”$imageborder”;?>” src=”<?echo”$imagedirectory$thumb”;?>”><br>
<br>
<? $thumb=$thecards[4][2];?><img border=”<?echo”$imageborder”;?>” src=”<?echo”$imagedirectory$thumb”;?>”></td>
<td align=”center”>
<? $thumb=$thecards[9][2];?><img border=”<?echo”$imageborder”;?>” src=”<?echo”$imagedirectory$thumb”;?>”><br>
<br>
<? $thumb=$thecards[8][2];?><img border=”<?echo”$imageborder”;?>” src=”<?echo”$imagedirectory$thumb”;?>”><br>
<br>
<? $thumb=$thecards[7][2];?><img border=”<?echo”$imageborder”;?>” src=”<?echo”$imagedirectory$thumb”;?>”><br>
<br>
<? $thumb=$thecards[6][2];?><img border=”<?echo”$imageborder”;?>” src=”<?echo”$imagedirectory$thumb”;?>”><br>
<br>
<? $thumb=$thecards[5][2];?><img border=”<?echo”$imageborder”;?>” src=”<?echo”$imagedirectory$thumb”;?>”></td>
</tr>
</table>
<div align=”left” style=”width:100%;border-bottom:2px #666666;height:210px;line-height:30px;”>
<p align=”justify”> <font face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>” color=”<?echo”$headercolor”;?>”><b><?echo”$selfheader”;?></b></font></p>
<p align=”justify”><?$thumb=$thecards[0][2];?><img border=”<?echo”$imageborder”;?>” src=”<?echo”$imagedirectory$thumb”;?>” align=”left” style=”padding:10px;”>
<font face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>”><b><? $selfcard = $thecards[0][0]; echo”$selfcard”;?></b>
</font>
<br>
<font color=”<?echo”$pagetext”?>” face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>”><? $selfmeaning = $thecards[0][1]; echo”$selfmeaning”;?></font>
</p>
</div>
<div align=”left” style=”width:100%;border-bottom:2px #666666;height:210px;line-height:30px;”>
<p align=”justify”> <font face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>” color=”<?echo”$headercolor”;?>”><b><?echo”$currentheader”;?></b></font></p>
<p align=”justify”><? $thumb=$thecards[1][2];?><img border=”<?echo”$imageborder”;?>” src=”<?echo”$imagedirectory$thumb”;?>” align=”left” style=”padding:10px;”>
<font face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>”> <b><? $moodcard = $thecards[1][0]; echo”<b>$moodcard</b>”;?></b>
</font>
<br><font color=”<?echo”$pagetext”?>” face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>”><? $moodmeaning = $thecards[1][1]; echo”$moodmeaning”;?></font>
</p>
</div>
<div align=”left” style=”width:100%;border-bottom:2px #666666;height:210px;line-height:30px;”>
<p align=”justify”>
<font face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>” color=”<?echo”$headercolor”;?>”><b><?echo”$financeheader”;?></b></font></p>
<p align=”justify”><? $thumb=$thecards[2][2];?><img border=”<?echo”$imageborder”;?>” src=”<?echo”$imagedirectory$thumb”;?>” align=”left” style=”padding:10px;”>
<font face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>”><b><? $financecard = $thecards[2][0]; echo”$financecard”;?></b>
</font>
<br><font color=”<?echo”$pagetext”?>” face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>”><? $financemeaning = $thecards[2][1]; echo”$financemeaning”;?></font></p>
</div>
<div align=”left” style=”width:100%;border-bottom:2px #666666;height:220px;line-height:30px;”><p align=”justify”>
<p align=”justify”><font face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>” color=”<?echo”$headercolor”;?>”><b><?echo”$travelheader”;?></b></font></p>
<p align=”justify”><? $thumb=$thecards[3][2];?><img border=”<?echo”$imageborder”;?>” src=”<?echo”$imagedirectory$thumb”;?>” align=”left” style=”padding:10px;”>
<font face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>”><b><? $financecard = $thecards[3][0]; echo”$financecard”;?></b>
</font>
<br>
<font color=”<?echo”$pagetext”?>” face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>”><? $financemeaning = $thecards[3][1]; echo”$financemeaning”;?></font></p>
</div>
<div align=”left” style=”width:100%;border-bottom:2px #666666;height:240px;line-height:30px;”><p align=”justify”>
<font face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>” color=”<?echo”$headercolor”;?>”><b><?echo”$homeheader”;?></b></font></p>
<p align=”justify”><? $thumb=$thecards[4][2]; $large=$thecards[4][3];?><img border=”<?echo”$imageborder”;?>” src=”<?echo”$imagedirectory$thumb”;?>” align=”left” style=”padding:10px;”>
<font face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>”><b><? $homecard = $thecards[4][0]; echo”$homecard”;?></b>
</font>
<br><font color=”<?echo”$pagetext”?>” face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>”><? $homemeaning = $thecards[4][1]; echo”$homemeaning”;?></font></p>
</div>
<div align=”left” style=”width:100%;border-bottom:2px #666666;height:240px;line-height:30px;”><p align=”justify”>
<font face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>” color=”<?echo”$headercolor”;?>”><b><?echo”$pleasureheader”;?></b></font></p>
<p align=”justify”><? $thumb=$thecards[5][2];?><img border=”<?echo”$imageborder”;?>” src=”<?echo”$imagedirectory$thumb”;?>” align=”left” style=”padding:10px;”>
<font face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>”><b><? $pleasurecard = $thecards[5][0]; echo”$pleasurecard”;?></b>
</font>
<br><font color=”<?echo”$pagetext”?>” face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>”><? $pleasuremeaning = $thecards[5][1]; echo”$pleasuremeaning”;?></font></p>
</div>
<div align=”left” style=”width:100%;border-bottom:2px #666666;height:240px;line-height:30px;”><p align=”justify”>
<font face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>” color=”<?echo”$headercolor”;?>”><b><?echo”$healthheader”;?></b></font></p>
<p align=”justify”><? $thumb=$thecards[6][2];?><img border=”<?echo”$imageborder”;?>” src=”<?echo”$imagedirectory$thumb”;?>” align=”left” style=”padding:10px;”>
<font face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>”><b><? $healthcard = $thecards[6][0]; echo”$healthcard”;?></b>
</font><br>
<font color=”<?echo”$pagetext”?>” face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>”><? $healthmeaning = $thecards[6][1]; echo”$healthmeaning”;?></font></p>
</div>
<div align=”left” style=”width:100%;border-bottom:2px #666666;height:240px;line-height:30px;”><p align=”justify”>
<font face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>” color=”<?echo”$headercolor”;?>”><b><?echo”$partnerheader”;?></b></font>
<p align=”justify”><? $thumb=$thecards[7][2];?><img border=”<?echo”$imageborder”;?>” src=”<?echo”$imagedirectory$thumb”;?>” align=”left” style=”padding:10px;”>
<font face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>”><b><? $libracard = $thecards[7][0]; echo”$libracard”;?></b>
</font> <br>
<font color=”<?echo”$pagetext”?>” face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>”><? $librameaning = $thecards[7][1]; echo”$librameaning”;?></font></p>
</div>
<div align=”left” style=”width:100%;border-bottom:2px #666666;height:240px;line-height:30px;”><p align=”justify”>
<font face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>” color=”<?echo”$headercolor”;?>”><b><?echo”$deathheader”;?></b></font></p>
<p align=”justify”><? $thumb=$thecards[8][2]; $large=$thecards[8][3];?><img border=”<?echo”$imageborder”;?>” src=”<?echo”$imagedirectory$thumb”;?>” align=”left” style=”padding:10px;”>
<font face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>”><b><? $deathcard = $thecards[8][0]; echo”$deathcard”;?></b>
</font>
<br><font color=”<?echo”$pagetext”?>” face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>”><? $deathmeaning = $thecards[8][1]; echo”$deathmeaning”;?></font></p>
</div>
<div align=”left” style=”width:100%;border-bottom:2px #666666;height:240px;line-height:30px;”><p align=”justify”>
<font face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>” color=”<?echo”$headercolor”;?>”><b><?echo”$spiritheader”;?></b></font></p>
</tr>
<tr>
<p align=”justify”><? $thumb=$thecards[9][2];?><img border=”<?echo”$imageborder”;?>” src=”<?echo”$imagedirectory$thumb”;?>” align=”left” style=”padding:10px;”>
<font face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>”><b><? $spiritcard = $thecards[9][0]; echo”$spiritcard”;?></b>
</font>
<br><font color=”<?echo”$pagetext”?>” face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>”><? $spiritmeaning = $thecards[9][1]; echo”$spiritmeaning”;?></font></p>
</div>
<div align=”left” style=”width:100%;border-bottom:2px #666666;height:220px;line-height:30px;”><p align=”justify”>
<font face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>” color=”<?echo”$headercolor”;?>”><b><?echo”$careerheader”;?></b></font></p>
<p align=”justify”><? $thumb=$thecards[10][2];?><img border=”<?echo”$imageborder”;?>” src=”<?echo”$imagedirectory$thumb”;?>” align=”left” style=”padding:10px;”>
<font face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>”><b><? $jobcard = $thecards[10][0]; echo”$jobcard”;?></b>
</font>
<br><font color=”<?echo”$pagetext”?>” face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>”><? $jobmeaning = $thecards[10][1]; echo”$jobmeaning”;?></font></p>
</div>
<div align=”left” style=”width:100%;border-bottom:2px #666666;height:220px;line-height:30px;”><p align=”justify”><font face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>” color=”<?echo”$headercolor”;?>”><b><?echo”$friendheader”;?></b></font></p>
<p align=”justify”><? $thumb=$thecards[11][2]; $large=$thecards[11][3];?><img border=”<?echo”$imageborder”;?>” src=”<?echo”$imagedirectory$thumb”;?>” align=”left” style=”padding:10px;”>
<font face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>”><b><? $friendcard = $thecards[11][0]; echo”$friendcard”;?></b>
</font>
<br><font color=”<?echo”$pagetext”?>” face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>”><? $friendmeaning = $thecards[11][1]; echo”$friendmeaning”;?></font></p>
</div>
<div align=”left” style=”width:100%;border-bottom:2px #666666;height:230px;line-height:30px;”><p align=”justify”>
<font face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>” color=”<?echo”$headercolor”;?>”><b><?echo”$burdenheader”;?></b></font></p>
<p align=”justify”><? $thumb=$thecards[12][2];?><img border=”<?echo”$imageborder”;?>” src=”<?echo”$imagedirectory$thumb”;?>” align=”left” style=”padding:10px;”>
<font face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>”><b><? $fearcard = $thecards[12][0]; echo”$fearcard”;?></b>
</font>
<br><font color=”<?echo”$pagetext”?>” face=”<?echo”$font”;?>” size=”<?echo”$fontsize”;?>”><? $fearmeaning = $thecards[12][1]; echo”$fearmeaning”;?></font></p>
</div>
{/source}