</title> <meta http-equiv='Content-Type' content='text/html; charset=UTF-8' /> <link href='<?php echo $urlAppend; ?> /install/install.css' rel='stylesheet' type='text/css' /> </head> <body style='background-color: #ffffff;'> <div class='container'> <p align='center'><img src='<?php echo $urlAppend; ?> /template/classic/img/logo_openeclass.png' alt='logo' /></p> <div class='alert' align='center'> <p>Processing ...</p> </div> </div> </body> </html> <?php session_write_close(); ignore_user_abort(true); CronUtil::flush(); if ($uid > 0) { // restrict anonymous access set_time_limit(0); require_once 'modules/search/indexer.class.php'; $idx = new Indexer(); $idx->queueAsyncProcess(); }
* Panepistimiopolis Ilissia, 15784, Athens, Greece * e-mail: info@openeclass.org * ======================================================================== */ require_once '../../include/baseTheme.php'; require_once 'include/lib/cronutil.class.php'; require_once 'include/log.php'; session_write_close(); CronUtil::lock(); ignore_user_abort(true); CronUtil::imgOut(); CronUtil::flush(); monthlycronjob(); CronUtil::unlock(); /** * @brief run jobs once a month */ function monthlycronjob() { $monthlyname = 'admin_monthly'; $lastmonth = mktime(date("H"), date("i"), date("s"), date("n") - 1, date("j"), date("Y")); $lastrunmonthly = ($res = Database::get()->querySingle("SELECT UNIX_TIMESTAMP(last_run) as last_run FROM cron_params WHERE name = ?s", $monthlyname)) ? $res->last_run : 0; $nevermonthly = ($lastrunmonthly > 0) ? false : true; if ($lastmonth > $lastrunmonthly) { // do monthly work here summarizeLogins(); summarizeMonthlyData();