This commit is contained in:
Roman Kelesidis 2024-08-04 22:38:01 +07:00
commit 3e19c1a973
22 changed files with 66 additions and 0 deletions

View file

@ -211,3 +211,6 @@ if ($debug_mode) {
DB()->query("DROP TEMPORARY TABLE $tmp_attach_tbl"); DB()->query("DROP TEMPORARY TABLE $tmp_attach_tbl");
unset($fix_errors, $debug_mode); unset($fix_errors, $debug_mode);
// Cron completed
define('CRONJOB_COMPLETED', true);

View file

@ -64,3 +64,6 @@ $datastore->update('check_updates');
// Integrity check // Integrity check
$datastore->update('files_integrity'); $datastore->update('files_integrity');
// Cron completed
define('CRONJOB_COMPLETED', true);

View file

@ -83,3 +83,6 @@ DB()->query("
up_bonus_today = 0, up_bonus_today = 0,
points_today = 0 points_today = 0
"); ");
// Cron completed
define('CRONJOB_COMPLETED', true);

View file

@ -16,3 +16,6 @@ $log_days_keep = (int)$bb_cfg['log_days_keep'];
if ($log_days_keep !== 0) { if ($log_days_keep !== 0) {
DB()->query("DELETE FROM " . BB_LOG . " WHERE log_time < " . (TIMENOW - 86400 * $log_days_keep)); DB()->query("DELETE FROM " . BB_LOG . " WHERE log_time < " . (TIMENOW - 86400 * $log_days_keep));
} }
// Cron completed
define('CRONJOB_COMPLETED', true);

View file

@ -38,3 +38,6 @@ if ($pm_days_keep !== 0) {
$start_id += $per_cycle; $start_id += $per_cycle;
} }
} }
// Cron completed
define('CRONJOB_COMPLETED', true);

View file

@ -17,3 +17,6 @@ DB()->query("
DELETE FROM " . BB_SEARCH . " DELETE FROM " . BB_SEARCH . "
WHERE search_time < $search_results_expire WHERE search_time < $search_results_expire
"); ");
// Cron completed
define('CRONJOB_COMPLETED', true);

View file

@ -42,3 +42,6 @@ foreach (file($dump_path) as $line) {
$temp_line = ''; $temp_line = '';
} }
} }
// Cron completed
define('CRONJOB_COMPLETED', true);

View file

@ -12,3 +12,6 @@ if (!defined('BB_ROOT')) {
} }
$datastore->update('cat_forums'); $datastore->update('cat_forums');
// Cron completed
define('CRONJOB_COMPLETED', true);

View file

@ -12,3 +12,6 @@ if (!defined('BB_ROOT')) {
} }
$datastore->update('stats'); $datastore->update('stats');
// Cron completed
define('CRONJOB_COMPLETED', true);

View file

@ -33,3 +33,6 @@ DB()->query("DELETE buf FROM " . BUF_TOPIC_VIEW . " buf");
// Unlock tables // Unlock tables
DB()->unlock(); DB()->unlock();
// Cron completed
define('CRONJOB_COMPLETED', true);

View file

@ -18,3 +18,6 @@ if ($bb_cfg['prune_enable']) {
\TorrentPier\Legacy\Admin\Common::topic_delete('prune', $row['forum_id'], (TIMENOW - 86400 * $row['prune_days'])); \TorrentPier\Legacy\Admin\Common::topic_delete('prune', $row['forum_id'], (TIMENOW - 86400 * $row['prune_days']));
} }
} }
// Cron completed
define('CRONJOB_COMPLETED', true);

View file

@ -53,3 +53,6 @@ while (true) {
break; break;
} }
} }
// Cron completed
define('CRONJOB_COMPLETED', true);

View file

@ -20,3 +20,6 @@ if ($bb_cfg['topic_moved_days_keep']) {
AND topic_time < $prune_time AND topic_time < $prune_time
"); ");
} }
// Cron completed
define('CRONJOB_COMPLETED', true);

View file

@ -52,3 +52,6 @@ DB()->query("
OR OR
(s.session_time < $admin_session_gc_time AND s.session_admin != 0) (s.session_time < $admin_session_gc_time AND s.session_admin != 0)
"); ");
// Cron completed
define('CRONJOB_COMPLETED', true);

View file

@ -21,3 +21,6 @@ if (is_file(SITEMAP_DIR . '/sitemap.xml')) {
$map->sendSitemap($source_link, $map_link); $map->sendSitemap($source_link, $map_link);
} }
} }
// Cron completed
define('CRONJOB_COMPLETED', true);

View file

@ -158,3 +158,6 @@ DB()->query("
" . NEW_BB_BT_LAST_USERSTAT . " TO " . BB_BT_LAST_USERSTAT . " " . NEW_BB_BT_LAST_USERSTAT . " TO " . BB_BT_LAST_USERSTAT . "
"); ");
DB()->query("DROP TABLE IF EXISTS " . NEW_BB_BT_LAST_USERSTAT . ", " . OLD_BB_BT_LAST_USERSTAT); DB()->query("DROP TABLE IF EXISTS " . NEW_BB_BT_LAST_USERSTAT . ", " . OLD_BB_BT_LAST_USERSTAT);
// Cron completed
define('CRONJOB_COMPLETED', true);

View file

@ -64,3 +64,6 @@ if ($bb_cfg['ocelot']['enabled']) {
// Drop tmp table // Drop tmp table
DB()->query("DROP TEMPORARY TABLE tmp_complete_count"); DB()->query("DROP TEMPORARY TABLE tmp_complete_count");
}*/ }*/
// Cron completed
define('CRONJOB_COMPLETED', true);

View file

@ -60,3 +60,6 @@ if ($dead_tor_sql && $attach_sql) {
WHERE topic_id IN($dead_tor_sql) WHERE topic_id IN($dead_tor_sql)
"); ");
} }
// Cron completed
define('CRONJOB_COMPLETED', true);

View file

@ -191,3 +191,6 @@ if ($bb_cfg['torhelp_enabled']) {
} }
DB()->expect_slow_query(10); DB()->expect_slow_query(10);
// Cron completed
define('CRONJOB_COMPLETED', true);

View file

@ -69,3 +69,6 @@ if ($bb_cfg['seed_bonus_enabled'] && $bb_cfg['seed_bonus_points'] && $bb_cfg['se
DB()->query("DROP TEMPORARY TABLE IF EXISTS tmp_bonus"); DB()->query("DROP TEMPORARY TABLE IF EXISTS tmp_bonus");
} }
// Cron completed
define('CRONJOB_COMPLETED', true);

View file

@ -23,3 +23,6 @@ DB()->query("
"); ");
DB()->query("TRUNCATE TABLE " . BUF_LAST_SEEDER); DB()->query("TRUNCATE TABLE " . BUF_LAST_SEEDER);
// Cron completed
define('CRONJOB_COMPLETED', true);

View file

@ -33,3 +33,6 @@ foreach ($forums_data as $forum_data) {
\TorrentPier\Legacy\Atom::update_forum_feed($forum_data['forum_id'], $forum_data); \TorrentPier\Legacy\Atom::update_forum_feed($forum_data['forum_id'], $forum_data);
} }
} }
// Cron completed
define('CRONJOB_COMPLETED', true);