PHP Fatal error: Call to undefined method vB_Database::quer_write() in /home/forumtest/public_html/fbb/cron_hourly.php on line 25
cron_hourly.php
Code:
<?php
/*======================================================================*\
|| #################################################################### ||
|| # Yay! Another Facebook Bridge 5.0
|| # Coded by Dao Hoang Son
|| # Contact: daohoangson@gmail.com
|| # Check out my hompage: http://daohoangson.com/
|| # Last Updated: 10:19 September 29, 2011
|| #################################################################### ||
\*======================================================================*/
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE & ~8192);
if (!is_object($vbulletin->db)) die('I AM A VBULLETIN CRONJOB. LEAVE ME ALONE!');
// ########################################################################
// ######################### START MAIN SCRIPT ############################
// ########################################################################
$logs = array();
if ($vbulletin->options['fbb_log_cleanup']) {
//sometimes our init code won't be run so we need to use direct option array from vBulletin
$timelimit = TIMENOW - $vbulletin->options['fbb_log_cleanup'] * 24 * 60 * 60;
$vbulletin->db->quer_write("
DELETE FROM `" . TABLE_PREFIX . "fbb_log`
WHERE timeline < $timelimit
");
$logs[] = 'YAFB\'s log';
}
if ($log_info) {
log_cron_action(implode(', ',$logs), $nextitem, 1);
}
?>
25 line
$vbulletin->db->quer_write("
friends