$language) { array_push($footers, "footer" . $i . "_" . $key); } } if (is_array($footers)) { foreach($footers as $footer) { if (isset($_PAGE_INFO['ini'][$footer])) { $linecount = 0; $found = true; do { $found = (isset($_PAGE_INFO['ini'][$footer]["line" . $linecount])); if ($found) { $footer_value = explode(";", $_PAGE_INFO['ini'][$footer]["line" . $linecount]); if (isset($footer_value[1])) { switch(trim(strtolower($footer_value[1]))) { case "last_tweets": // Acquire mutex if (db_mutex_acquire(RemoveExtension(basename(__FILE__)) . "_" . $params['task_id'] . "_" . $footer_value[2], 0)) { // Update twitter cache TwitterUpdateCache(trim($footer_value[2]), 10); // Release mutex db_mutex_release(RemoveExtension(basename(__FILE__)) . "_" . $params['task_id'] . "_" . $footer_value[2]); } break; default: // Do nothing :) break; } } } // Increment line count $linecount++; } while($found); } } } } } // Set handled flag $handled = 1; ?>