function plus_get_sig_data() { // new mgs class require_once dirname(__FILE__) . '/../include/bsmgs.class.php'; $mybsmgs = new BSMGS(); if (!$mybsmgs->game_supported('bossbase')) { return false; } else { # Get configuration data from the database #################################################### require_once dirname(__FILE__) . '/../include/bssql.class.php'; $mybcsql = new BSSQL(); $bb_conf = $mybcsql->get_config('bossbase'); $bc_conf = $mybcsql->get_config('bosscounter'); $sbzone = $mybcsql->get_bzone(); # Get data #################################################### $data = $mybcsql->get_data($bb_conf, $sbzone); return $data; } }
* @copyright 2006-2008 sz3 * @link http://eqdkp-plus.com * @package bosssuite * @version $Rev$ * * $Id$ */ if (!defined('EQDKP_INC')) { die('Do not access this file directly.'); } // new mgs class require_once dirname(__FILE__) . '/../include/bsmgs.class.php'; $mybsmgs = new BSMGS(); # Check whether the current game is supported #################################################### if (!$mybsmgs->game_supported('bossbase')) { $bcout = '<table width=100% class="borderless" cellspacing="0" cellpadding="2"> <tr><th colspan="2" align="center">BossCounter</th></tr>' . "\n" . '<tr><td>GAME NOT SUPPORTED!</td></tr></table>'; $bchout = '<table cellpadding=2 cellspacing=0 border=0 width=100% align=center>' . "\n" . '<tr><td>GAME NOT SUPPORTED</td></tr></table>'; } else { # Get configuration data from the database #################################################### $mybsmgs->load_game_specific_language('bossbase'); require_once dirname(__FILE__) . '/../include/bssql.class.php'; $mybcsql = new BSSQL(); $bb_conf = $mybcsql->get_config('bossbase'); $bc_conf = $mybcsql->get_config('bosscounter'); $sbzone = $mybcsql->get_bzone('bosscounter'); # Get data #################################################### $data = $mybcsql->get_data($bb_conf, $sbzone);
function do_hook($hook) { global $eqdkp_root_path; $valid_hooks = array('/admin/addevent.php?action=update', '/admin/addraid.php?action=add', '/admin/addraid.php?action=update', '/admin/addraid.php?action=delete', '/plugins/bosssuite/admin/settings.php', '/plugins/bosssuite/admin/cache.php', '/plugins/bosssuite/admin/entity_conf.php', '/plugins/ctrt/index.php', '/plugins/raidlogimport/admin/dkp.php'); if (in_array($hook, $valid_hooks)) { include $eqdkp_root_path . 'plugins/bosssuite/include/bsmgs.class.php'; $bsmgs = new BSMGS(); if ($bsmgs->game_supported('bossbase')) { include $eqdkp_root_path . 'plugins/bosssuite/include/bssql.class.php'; $bssql = new BSSQL(); $bssql->update_cache(); } } }