"; echo '

Calculating the list takes about 7 minutes.'; echo'

'; //echo 'Here is your code for downloadng the PDF file: '.$asi; echo ' '; // mis saab siis kui reloadib lehe peale submitti? $con = mysqli_connect("localhost", "megadel_abhi", "Trustn02!!"); mysqli_select_db($con, 'megadel_horoskoop'); $sql = "INSERT into astorders (kuup, day, month, year, time, code, ordr) values ('".date("Y-m-d H:i:s")."','".$day."','".$month."','".$year."','".$time."','".$asi."','".$ordercolumn."')"; //echo $sql; $result = mysqli_query ($con, $sql); //================================================== // siin kontrollime et script juba ei jookseks $result = mysqli_query($con, "select alist from bitid3"); while ($datake = mysqli_fetch_row($result)) { $bit = $datake[0]; } if ($bit < 7777777) // script ei jookse praegu on siis nii et laseme igal juhul biti updateda. keelatu peale. //if ($bit == 0) // script ei jookse { mysqli_query($con, "update bitid3 set alist='1', date=SYSDATE()"); mysqli_close($con); //================================================== } //include('astlist.php'); exit; } // submit echo'
'; if (($HTTP_HOST == 'horoskoop.ee') OR ($HTTP_HOST == 'www.horoskoop.ee')) {include('../inc-bann-est.php');} else {include('../inc-bann-eng.php');} if (!$submit) { echo '

As of 8. January 2022, this list creator is working again. :)))

Here you can order the list of all the named
asteroids positions in a PDF format (125 pages).

You will need Acrobat Reader
for viewing the generated lists.

You can see the example list here
Warning! Calculation takes 6-8 minutes,
depending on server load.

Please enter your birthdata:

Day
01..31
Month
01..12
Year
1900..2100
Time (GMT)
00:00 - 23:59
Tick for longitude ordered asteroids
Tick for alphabetically ordered asteroids




'; exit; mysql_connect("localhost", "megadel_abhi", "Trustn02!!"); $result = mysql_db_query("megadel_horoskoop", "select date from bitid3"); while ($datake = mysql_fetch_row($result)) { $muutmisekuup = $datake[0]; } //echo 'kuup on: '.$muutmisekuup; // enne oli 74*60 if ( mktime(date("H"),date("i"),date("s"),date("m"),date("d"),date("Y")) - mktime(substr($muutmisekuup,11,2),substr($muutmisekuup,14,2),substr($muutmisekuup,17,2),substr($muutmisekuup,5,2),substr($muutmisekuup,8,2),substr($muutmisekuup,0,4)) > 15*60) { //echo '
SUUREM
'; mysql_db_query("megadel_horoskoop", "update bitid3 set alist='0', date=SYSDATE()"); mysql_close(); } /* $jopu = mktime(substr($muutmisekuup,11,2),substr($muutmisekuup,14,2),substr($muutmisekuup,17,2),substr($muutmisekuup,5,2),substr($muutmisekuup,8,2),substr($muutmisekuup,0,4)); echo '
jopu: '.$jopu.'
'; echo date("m-d-Y H:i:s",$jopu); */ include('alistproov.php'); } if ($submit) { //================================================== // siin kontrollime et script juba ei jookseks mysql_connect("localhost", "megadel_abhi", "Trustn02!!"); $result = mysql_db_query("megadel_horoskoop", "select alist from bitid3"); while ($datake = mysql_fetch_row($result)) { $bit = $datake[0]; } if ($bit < 7777777) // script ei jookse //if ($bit == 0) // script ei jookse { mysql_db_query("megadel_horoskoop", "update bitid3 set alist='1', date=SYSDATE()"); mysql_close(); //================================================== if (($day == "") OR ($month == "") OR ($year == "") OR ($time == "")) { echo '


Some fields are empty. Can\'t calculate!'; } else { // mis saab siis kui reloadib lehe peale submitti? $asi = get_rand_id(8); mysql_connect("localhost", "megadel_abhi", "Trustn02!!"); mysql_select_db(megadel_horoskoop); $sql = "INSERT into astorders (kuup, day, month, year, time, code, ordr) values ('".date("Y-m-d H:i:s")."','".$day."','".$month."','".$year."','".$time."','".$asi."','".$ordercolumn."')"; $result = mysql_query ($sql); //echo''; echo '

Thank you for your order!
'; //echo 'sortorder: '.$ordercolumn.'

'; echo 'Your access code is: '.$asi.'
'; echo 'Calculating the whole list takes 3 - 6 minutes.
You can leave this browser window open for that time
and after this time is passed, you can use the following link
to download your asteroids list.
or alternatively you can write down your access code and
use it when you come back to this site to receive your asteroids list.

Use this link after 3 - 6 minutes!

If your browser can\'t open this link properly, right-click the link to the .pdf file,
and then click Save Target As to save the file on your computer.
Please make sure that you save this file with .pdf extension.
After you do this, you can double-click the locally saved .pdf file to open
it in Adobe Acrobat Reader. '; /* siin voiks koodi akna asemel olla link nobody ALL=NOPASSWD: /usr/bin/crontab */ $cmonth = date("n"); $cday = date("j"); $chour = date("G"); $cmin = date("i"); $csek = date("s"); if ($csek < 50) {$lisa = 1;} else {$lisa = 2;} $cmin = $cmin+$lisa; if ($cmin == 60) { $cmin = 0; $chour = $chour+1; } if ($cmin == 61) { $cmin = 1; $chour = $chour+1; } $cron = $cmin." ".$chour." ".$cday." ".$cmonth." * "; //if ($sortorder == 'alpha') //$cron2 = "/usr/php4/bin/php /var/www/vhosts/megadelfi.com/public_html/horoskoop/asteroids/alistcron_by_name.php ".$day." ".$month." ".$year." ".$time." ".$asi; //else // bjargnev sitt on tehtud 11 auug 2011 //$cron2 = "/usr/php4/bin/php /var/www/vhosts/megadelfi.com/public_html/horoskoop/asteroids/alistcron.php ".$day." ".$month." ".$year." ".$time." ".$asi." ".$ordercolumn; //$cron2 = "/usr/bin/php /var/www/vhosts/megadelfi.com/public_html/horoskoop/asteroids/alistcron2.php ".$day." ".$month." ".$year." ".$time." ".$asi." ".$ordercolumn; $cron2 = "/opt/plesk/php/5.4/bin/php /var/www/vhosts/megadelfi.com/public_html/horoskoop/asteroids/alistcron3.php ".$day." ".$month." ".$year." ".$time." ".$asi." ".$ordercolumn; //echo $cron.$cron2; $fname = "/var/www/vhosts/megadelfi.com/public_html/horoskoop/temp/astcron"; $INFO = fopen($fname,"a"); fwrite($INFO,$cron.$cron2."\n"); fclose($INFO); //passthru('sudo crontab -u nobody '.$fname); //passthru("sudo crontab -l -u liivika | { cat; echo '1 1 1 1 1 /etc/bin/ukk'; } | sudo crontab -u liivika -"); echo passthru("sudo crontab -l -u root | { cat; echo '".$cron.$cron2."'; } | sudo crontab - -u root"); //echo passthru('sudo crontab -l -u liivika').'
'; } // kui valjad ei ole tyhjad } // kui script ei jookse else { echo '

Sorry! Someone is already calculating the asteroids list. We don\'t allow multiple lists to be calculated simultaneously. Please come back after 15 min.'; } } // kui submit //passthru("sudo crontab -l -u liivika | { cat; echo '1 1 3 1 1 /etc/bin/ukk'; } | sudo crontab -u liivika -"); ?>