" . $bodies[$i] . ""; } $htmlis=" Astronomy Helper via Python PyEphem Module

Astronomy Helper via Python PyEphem module

RJM Programming - October, 2018

Celestial BodyAstrometric geocentric
Right Ascension ... for now or ...
Declination
"; if (isset($_GET['body'])) { if (urldecode($_GET['body']) != "") { if (file_exists('py_ephem.xxx')) { unlink('py_ephem.xxx'); } if (isset($_GET['epoch'])) { if (urldecode($_GET['epoch']) != "") { exec("cat .." . '/' . "Python" . '/' . "Jupiter.py | sed '" . '/' . "Jupiter" . '/' . "s" . '/' . "" . '/' . "" . urldecode($_GET['body']) . "" . '/' . "g' | sed \"" . '/' . "compute()" . '/' . "s" . '/' . "" . '/' . "compute(" . str_replace('/','!',urldecode($_GET['epoch'])) . ")" . '/' . "g\" | tr '!' '/' > .." . '/' . "Python" . '/' . "thisone.py"); $htmlis=str_replace(" value=''", " value=\"" . urldecode($_GET['epoch']) . "\"", $htmlis); } else { exec("cat .." . '/' . "Python" . '/' . "Jupiter.py | sed '" . '/' . "Jupiter" . '/' . "s" . '/' . "" . '/' . "" . urldecode($_GET['body']) . "" . '/' . "g' > .." . '/' . "Python" . '/' . "thisone.py"); } } else { exec("cat .." . '/' . "Python" . '/' . "Jupiter.py | sed '" . '/' . "Jupiter" . '/' . "s" . '/' . "" . '/' . "" . urldecode($_GET['body']) . "" . '/' . "g' > .." . '/' . "Python" . '/' . "thisone.py"); } exec("" . '/' . "usr" . '/' . "local" . '/' . "bin" . '/' . "python3.3 .." . '/' . "Python" . '/' . "thisone.py > py_ephem.xxx"); $ar_dec=""; if (file_exists('py_ephem.xxx')) { $ar_dec=file_get_contents('py_ephem.xxx'); unlink('py_ephem.xxx'); $htmlis=str_replace(">" . urldecode($_GET['body']) . "<", " selected>" . urldecode($_GET['body']) . "<", $htmlis); $htmlis=str_replace("", "" . explode(" ",$ar_dec)[0] . "", $htmlis); $htmlis=str_replace("", "" . explode(" ",$ar_dec)[1] . "", $htmlis); } } } echo $htmlis; ?>