From 77d7238eef84f498fc024fa8b9e06f187dd0f2a6 Mon Sep 17 00:00:00 2001 From: Oleg Pudeyev Date: Wed, 14 Apr 2010 16:14:32 -0400 Subject: [feature/system-cron] WIP on making cron tasks runnable via system cron PHPBB3-9596 --- phpBB/common.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'phpBB/common.php') diff --git a/phpBB/common.php b/phpBB/common.php index 0ac7cbbd86..3586031c36 100644 --- a/phpBB/common.php +++ b/phpBB/common.php @@ -239,3 +239,9 @@ foreach ($cache->obtain_hooks() as $hook) { @include($phpbb_root_path . 'includes/hooks/' . $hook . '.' . $phpEx); } + +if (!$config['use_system_cron']) +{ + require($phpbb_root_path . 'includes/cron.' . $phpEx); + $cron = new cron(); +} -- cgit v1.2.1 From 8f567a21a3fe5c4ceeaed8c38c6bcf8251821e3a Mon Sep 17 00:00:00 2001 From: Oleg Pudeyev Date: Sat, 17 Apr 2010 07:05:54 -0400 Subject: [feature/system-cron] Updated includes after moving files. PHPBB3-9596 --- phpBB/common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpBB/common.php') diff --git a/phpBB/common.php b/phpBB/common.php index 3586031c36..e2300f0bd5 100644 --- a/phpBB/common.php +++ b/phpBB/common.php @@ -242,6 +242,6 @@ foreach ($cache->obtain_hooks() as $hook) if (!$config['use_system_cron']) { - require($phpbb_root_path . 'includes/cron.' . $phpEx); + include($phpbb_root_path . 'includes/cron/cron_manager.' . $phpEx); $cron = new cron(); } -- cgit v1.2.1 From 763dc86c166ab850007fea8da4622e4cd1eeafc8 Mon Sep 17 00:00:00 2001 From: Oleg Pudeyev Date: Sun, 18 Apr 2010 13:48:32 -0400 Subject: [feature/system-cron] Fixes to make cron actually run. PHPBB3-9596 --- phpBB/common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpBB/common.php') diff --git a/phpBB/common.php b/phpBB/common.php index e2300f0bd5..cbd8399206 100644 --- a/phpBB/common.php +++ b/phpBB/common.php @@ -243,5 +243,5 @@ foreach ($cache->obtain_hooks() as $hook) if (!$config['use_system_cron']) { include($phpbb_root_path . 'includes/cron/cron_manager.' . $phpEx); - $cron = new cron(); + $cron = new cron_manager(); } -- cgit v1.2.1 From 5a075c3dca431797fd21420e6bdeb25bbc08bee6 Mon Sep 17 00:00:00 2001 From: Igor Wiedler Date: Thu, 28 Oct 2010 21:48:58 +0200 Subject: [feature/system-cron] remove more includes, adjust path PHPBB3-9596 --- phpBB/common.php | 1 - 1 file changed, 1 deletion(-) (limited to 'phpBB/common.php') diff --git a/phpBB/common.php b/phpBB/common.php index cbd8399206..c4c1d2979a 100644 --- a/phpBB/common.php +++ b/phpBB/common.php @@ -242,6 +242,5 @@ foreach ($cache->obtain_hooks() as $hook) if (!$config['use_system_cron']) { - include($phpbb_root_path . 'includes/cron/cron_manager.' . $phpEx); $cron = new cron_manager(); } -- cgit v1.2.1 From a9e0f9947d1d71779a6c02dbc4c40f70f6a98723 Mon Sep 17 00:00:00 2001 From: Igor Wiedler Date: Thu, 28 Oct 2010 22:26:49 +0200 Subject: [feature/system-cron] add phpbb_ prefix to all class names PHPBB3-9596 --- phpBB/common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpBB/common.php') diff --git a/phpBB/common.php b/phpBB/common.php index c4c1d2979a..00fc1a5cb7 100644 --- a/phpBB/common.php +++ b/phpBB/common.php @@ -242,5 +242,5 @@ foreach ($cache->obtain_hooks() as $hook) if (!$config['use_system_cron']) { - $cron = new cron_manager(); + $cron = new phpbb_cron_manager(); } -- cgit v1.2.1 From 7a8233020bdeb872dad6057b7799c43c1543aba4 Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Thu, 13 Jan 2011 00:07:40 +0100 Subject: [feature/system-cron] Use a RecursiveDirectoryIterator instead of readdir. PHPBB3-9596 --- phpBB/common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpBB/common.php') diff --git a/phpBB/common.php b/phpBB/common.php index 00fc1a5cb7..e099a324bf 100644 --- a/phpBB/common.php +++ b/phpBB/common.php @@ -242,5 +242,5 @@ foreach ($cache->obtain_hooks() as $hook) if (!$config['use_system_cron']) { - $cron = new phpbb_cron_manager(); + $cron = new phpbb_cron_manager($phpbb_root_path, $phpEx); } -- cgit v1.2.1 From 09b136272b9ec25824f1c72d0148bdfe43a43603 Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Thu, 13 Jan 2011 00:51:32 +0100 Subject: [feature/system-cron] Cache cron's task names. Instead of using a path relative to phpbb_root_path the path to the task directory is directly passed to the cron manager. Dummy tasks are now in the tests directory directly. PHPBB3-9596 --- phpBB/common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpBB/common.php') diff --git a/phpBB/common.php b/phpBB/common.php index e099a324bf..68be033578 100644 --- a/phpBB/common.php +++ b/phpBB/common.php @@ -242,5 +242,5 @@ foreach ($cache->obtain_hooks() as $hook) if (!$config['use_system_cron']) { - $cron = new phpbb_cron_manager($phpbb_root_path, $phpEx); + $cron = new phpbb_cron_manager($phpbb_root_path . 'includes/cron/task', $phpEx, $cache->get_driver()); } -- cgit v1.2.1