// along with Meteor Pi. If not, see <http://www.gnu.org/licenses/>. // ------------------------------------------------- require "php/imports.php"; require_once "php/html_getargs.php"; $getargs = new html_getargs(true); $pageInfo = ["pageTitle" => "Search for still images", "pageDescription" => "Meteor Pi", "activeTab" => "search", "teaserImg" => null, "cssextra" => null, "includes" => [], "linkRSS" => null, "options" => []]; // Paging options $pageSize = 24; $pageNum = 1; if (array_key_exists("page", $_GET) && is_numeric($_GET["page"])) { $pageNum = $_GET["page"]; } // Read which time range to cover $t2 = time(); $t1 = $t2 - 3600 * 24 * 5; $tmin = $getargs->readTime('year1', 'month1', 'day1', 'hour1', 'min1', null, $const->yearMin, $const->yearMax, $t1); $tmax = $getargs->readTime('year2', 'month2', 'day2', 'hour2', 'min2', null, $const->yearMin, $const->yearMax, $t2); // Which observatory are we searching for images from? $obstory = $getargs->readObservatory("obstory"); // Swap times if they are the wrong way round if ($tmax['utc'] < $tmin['utc']) { $tmp = $tmax; $tmax = $tmin; $tmin = $tmp; } // Read image options $flag_bgsub = false; $flag_lenscorr = false; $flag_highlights = false; if (array_key_exists("flag_bgsub", $_GET)) { $flag_bgsub = true;
// the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Meteor Pi is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Meteor Pi. If not, see <http://www.gnu.org/licenses/>. // ------------------------------------------------- require_once "php/imports.php"; require_once "php/html_getargs.php"; $getargs = new html_getargs(false); // Read which month to cover $tmin = $getargs->readTime('year', 'month', null, null, null, null, $const->yearMin, $const->yearMax); $month_name = date('F Y', $tmin['utc'] + 1); $month = date('n', $tmin['utc'] + 1); $year = date('Y', $tmin['utc'] + 1); $prev_month = date('n', $tmin['utc'] - 10 * 24 * 3600); $prev_month_year = date('Y', $tmin['utc'] - 10 * 24 * 3600); $next_month = date('n', $tmin['utc'] + 40 * 24 * 3600); $next_month_year = date('Y', $tmin['utc'] + 40 * 24 * 3600); $days_in_month = date('t', $tmin['utc'] + 1); $day_offset = date('w', $tmin['utc'] + 1); $period = 24 * 3600; $obstories = $getargs->obstory_objlist; $obstory = $getargs->readObservatory("id"); $obstory_name = $getargs->obstory_objs[$obstory]['name']; $byday = []; // Fetch observatory activity history