function processEvent(&$event) { //perform actions $topic_id = $event['event_param']; $db =& $this->_getDB(); add_topic_to_content($topic_id, $db); //return true to signal completed processing //return false to have another attempt later return true; }
function processEvent(&$event) { //perform actions $post_id = $event['event_param']; $db =& $this->_getDB(); $post = $db->GetRow("select forum_id,topic_id from geobb_posts where post_id={$post_id}"); require 'conf/' . $_SERVER['HTTP_HOST'] . '.conf.php'; if ($post['forum_id'] == $CONF['forum_submittedarticles'] || $post['forum_id'] == $CONF['forum_gallery']) { //todo gsd add_topic_to_content($post['topic_id'], $db); } return true; }