20)||($month==2 && $day<20)){ return "Aquarius"; }else if(($month==02 && $day>18 )||($month==03 && $day<21)){ return "Pisces"; }else if(($month==03 && $day>20)||($month==04 && $day<21)){ return "Aries"; }else if(($month==04 && $day>20)||($month==05 && $day<22)){ return "Taurus"; }else if(($month==05 && $day>21)||($month==06 && $day<22)){ return "Gemini"; }else if(($month==6 && $day>21)||($month==07 && $day<24)){ return "Cancer"; }else if(($month==07 && $day>23)||($month==08 && $day<24)){ return "Leo"; }else if(($month==08 && $day>23)||($month==09 && $day<24)){ return "Virgo"; }else if(($month==09 && $day>23)||($month==10 && $day<24)){ return "Libra"; }else if(($month==10 && $day>23)||($month==11 && $day<23)){ return "Scorpio"; }else if(($month==11 && $day>22)||($month==12 && $day<23)){ return "Sagittarius"; }else if(($month==12 && $day>22)||($month==01 && $day<21)){ return "Capricorn"; } } function birthstone($month) { if($month==1){ return "Garnet"; }else if($month==02){ return "Amethyst"; }else if($month==03){ return "Aquamarine"; }else if($month==04){ return "Diamond"; }else if($month==05){ return "Emerald"; }else if($month==6){ return "Pearl & Alexandrite"; }else if($month==07){ return "Ruby"; }else if($month==08){ return "Peridot"; }else if($month==09){ return "Sapphire"; }else if($month==10){ return "Opal & Tourmaline"; }else if($month==11){ return "Citrine"; }else if($month==12){ return "Topaz"; } } function Show_Form($Error) { echo '
Algorithm "Day You Were Born"

'."\n"; echo '
'."\n"; echo '
'."\n"; if ($Error != "") { echo "".urldecode($Error)."

\n";} echo ' '."\n"; echo ' '."\n"; echo ' '."\n"; echo ' '."\n"; echo ' '."\n"; echo ' '."\n"; echo ' '."\n"; echo ' '."\n"; echo '
Day:
'."\n"; echo ' '; echo '
Month:
'."\n"; echo ' '; echo '
Year:
'."\n"; echo ' '; echo '

'."\n"; echo '
'."\n"; echo '
'."\n"; Show_Buttons("True", "index.php?Cmd=100"); } if (Get_QString('Post') == "True") { $Date_Day = GetPost('Day'); $Date_Month = GetPost('Month'); $Date_Year = GetPost('Year'); $hour = "23"; $h = mktime(0, 0, 0, $Date_Month, $Date_Day, $Date_Year); $d = date("F dS, Y", $h) ; $w= date("l", $h) ; $Birthday= date("-l", $h) ; $today = time(); $birthdate = mktime(0,0,0,GetPost('Month'),GetPost('Day'),GetPost('Year')); $birthdaythis = mktime(0,0,0,GetPost('Month'),GetPost('Day')); // birthday this year $birthdaynext = mktime(0,0,0,GetPost('Month'),GetPost('Day'),date('Y')+1); // birthday next year if($today < $birthdaythis){ $days = floor(($birthdaythis - $today)/60/60/24); }elseif($today > $birthdaythis){ $days = floor(($birthdaynext - $today)/60/60/24); } $starsign = getsign($_POST['Day'],$_POST['Month']); $birthstone = birthstone($_POST['Month']); $date1 = time(); $date2 = mktime(0, 0, 0, $Date_Month, $Date_Day, $Date_Year); $ddif = $date1 - $date2; $age = floor(($ddif/(60*60*24))/365); $dayfallson = mktime(0,0,0,$Date_Month,$Date_Day,date('Y',$today)+1); echo '
Birthday Information

'."\n"; echo 'You were born on a: '.$w.'
'."\n"; echo 'Your Next Birthday falls on a: '.date('l',$nextBirthDate).'
'."\n"; echo 'You Are now: '.$age.' Years old
'."\n"; echo 'There are: '.$days.' left Untill your birthday
'."\n"; echo 'Star Sign: '.$starsign.'
'."\n"; echo 'Birthstone: '.$birthstone.'
'."\n"; Show_Buttons("True", "index.php?Cmd=100"); } function Show_Buttons($BackOnly, $Link) { echo '
'.$GLOBALS["Advert03"].'
'."\n"; echo ''."\n"; if ($BackOnly == "False") { echo ' '."\n"; } echo ' '."\n"; echo '
'."\n"; echo ' Sign Guestbook!
'."\n"; echo '
'."\n"; echo ' Back
'."\n"; echo '
'."\n"; echo '
'."\n"; } function GetPost($PostName) { $Result = ""; if (!isset($_POST[$PostName])) { $Result = ""; } elseif (empty($_POST[$PostName])) { $Result = ""; } else { $Result = $_POST[$PostName]; } return $Result; } include 'Include/Footer.php'; Log_Hit("Birthday"); ?>