<?php /** * Copyright (C) 2016 Piotr Janczyk * * This file is part of lo1olkusz unofficial app - website. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program 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 Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ //turn on reporting all errors (they are written to stderr) ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL | E_STRICT); require 'autoloader.php'; require 'config.php'; use pjanczyk\lo1olkusz\Cron\CronTask; //run CronTask $task = new CronTask(); $task->run();
public function GET_run_cron_0() { Auth::forceLoggingIn(); header('Content-Type: text'); header('Access-Control-Allow-Origin: *'); $task = new CronTask(); $task->run(); }