Thanks Kevin
I don't think it should take more than 1 minute to run the feeds, I am going to try it now.
Should the code be changed like this:
Code:
// #############################################################################
if ($_POST['do'] == 'updatestatus')
{
$vbulletin->input->clean_gpc('p', 'enabled', TYPE_ARRAY_UINT);
$feeds_result = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "rssfeed ORDER BY title");
while ($feed = $db->fetch_array($feeds_result))
{
$old = ($feed['options'] & $vbulletin->bf_misc_feedoptions['enabled'] ? 1 : 0);
$new = ($vbulletin->GPC['enabled']["$feed[rssfeedid]"] ? 1 : 0);
if ($old != $new)
{
$feeddata =& datamanager_init('RSSFeed', $vbulletin, ERRTYPE_ARRAY);
$feeddata->set_existing($feed);
$feeddata->set_bitfield('options', 'enabled', $new);
ORDER BY lastrun ASC LIMIT 1
$feeddata->save();
}
}
exec_header_redirect('rssposter.php');
}
print_cp_header($vbphrase['rss_feed_manager']);
As you can see, I am obviously useless at PHP
Thanks Kevin for all the help