GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GLPI; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -------------------------------------------------------------------------- */ // ---------------------------------------------------------------------- // Original Author of file: // Purpose of file: // ---------------------------------------------------------------------- define('GLPI_ROOT', '..'); include GLPI_ROOT . "/inc/includes.php"; if (isset($_GET['action']) && $_GET['action'] == 'check_version') { checkRight("check_update", "r"); checkNewVersionAvailable(0, true); glpi_header($_SERVER['HTTP_REFERER']); } checkRight("backup", "w"); // full path $path = GLPI_DUMP_DIR; commonHeader($LANG['common'][12], $_SERVER['PHP_SELF'], "admin", "backup"); $max_time = min(get_cfg_var("max_execution_time"), get_cfg_var("max_input_time")); if ($max_time == 0) { $defaulttimeout = 60; $defaultrowlimit = 5; } else { if ($max_time > 5) { $defaulttimeout = $max_time - 2; $defaultrowlimit = 5; } else {
/** * Cron job to check if a new version is available * * @param $task for log **/ static function cronCheckUpdate($task) { $result = checkNewVersionAvailable(1); $task->log($result); return 1; }