/** * WoWRoster.net WoWRoster * * Main Roster configuration * * * @copyright 2002-2011 WoWRoster.net * @license http://www.gnu.org/licenses/gpl.html Licensed under the GNU General Public License v3. * @version SVN: $Id$ * @link http://www.wowroster.net * @since File available since Release 1.8.0 * @package WoWRoster * @subpackage RosterCP */ if (!defined('IN_ROSTER') || !defined('IN_ROSTER_ADMIN')) { exit('Detected invalid access to this file!'); } $roster->output['title'] .= $roster->locale->act['pagebar_rosterconf']; // ----[ Set the tablename and create the config class ]---- include ROSTER_LIB . 'config.lib.php'; $config = new roster_config($roster->db->table('config')); // ----[ Include special functions file ]------------------- include ROSTER_ADMIN . 'roster_config_functions.php'; // ----[ Get configuration data ]--------------------------- $config->getConfigData(); // ----[ Process data if available ]------------------------ $config->processData($roster->config); // ----[ Build the page items using lib functions ]--------- $menu = $config->buildConfigMenu(); $config->buildConfigPage(); $body .= $config->form_start . $config->submit_button . $config->formpages . $config->form_end . $config->nonformpages;
} elseif ($addon['config'] != '') { if (file_exists($addon['admin_dir'] . 'config.func.php')) { include $addon['admin_dir'] . 'config.func.php'; if (function_exists('topBox')) { $body .= topBox(); } else { $body .= ''; } } // ----[ Set the tablename and create the config class ]---- include ROSTER_LIB . 'config.lib.php'; $config = new roster_config($roster->db->table('addon_config'), '`addon_id` = "' . $addon['addon_id'] . '"'); // ----[ Get configuration data ]--------------------------- $config->getConfigData(); // ----[ Process data if available ]------------------------ $save_message = $config->processData($addon['config']); // ----[ Build the page items using lib functions ]--------- $menu = $config->buildConfigMenu(); $config->buildConfigPage(); $body .= $config->form_start . $save_message . $config->formpages . $config->submit_button . $config->form_end . $config->nonformpages . $config->jscript; } else { $body .= messagebox(sprintf($roster->locale->act['addon_no_config'], $addon['basename']), $roster->locale->act['addon_error'], 'sred'); } } else { $body .= messagebox(sprintf($roster->locale->act['addon_disabled'], $addon['basename']), $roster->locale->act['addon_error'], 'sred'); } // Pass all the css to $roster->output['html_head'] which is a placeholder in roster_header for more css style defines if ($addon['css_url'] != '') { $roster->output['html_head'] .= '<link rel="stylesheet" type="text/css" href="' . $addon['css_url'] . '" />' . "\n"; } if ($addon['tpl_css_url'] != '') {
include $addon['admin_dir'] . 'config.func.php'; if (function_exists('topBox')) { $body .= topBox(); } else { $body .= ''; } } // ----[ Set the tablename and create the config class ]---- include ROSTER_LIB . 'config.lib.php'; $config = new roster_config($roster->db->table('plugin_config'), '`addon_id` = "' . $addon['addon_id'] . '"'); // ----[ Include special functions file ]------------------- include ROSTER_ADMIN . 'roster_config_functions.php'; // ----[ Get configuration data ]--------------------------- $config->getConfigData(); // ----[ Process data if available ]------------------------ $config->processData($addon['config']); // ----[ Build the page items using lib functions ]--------- $menu = $config->buildConfigMenu(); $config->buildConfigPage(); $body .= $config->form_start . $config->formpages . $config->submit_button . $config->form_end . $config->nonformpages; $footer .= $config->jscript; } else { $roster->set_message(sprintf($roster->locale->act['addon_no_config'], $addon['basename']), $roster->locale->act['addon_error'], 'error'); } } else { $roster->set_message(sprintf($roster->locale->act['addon_disabled'], $addon['basename']), $roster->locale->act['addon_error'], 'error'); } // Pass all the css to roster_add_css() which is a placeholder in roster_header for more css style defines if ($addon['css_url'] != '') { roster_add_css($addon['css_url'], 'theme'); }
* * Main Roster configuration * * LICENSE: Licensed under the Creative Commons * "Attribution-NonCommercial-ShareAlike 2.5" license * * @copyright 2002-2008 WoWRoster.net * @license http://creativecommons.org/licenses/by-nc-sa/2.5 Creative Commons "Attribution-NonCommercial-ShareAlike 2.5" * @version SVN: $Id: roster_conf.php 1791 2008-06-15 16:59:24Z Zanix $ * @link http://www.wowroster.net * @since File available since Release 1.8.0 * @package WoWRoster * @subpackage RosterCP */ if (!defined('IN_ROSTER') || !defined('IN_ROSTER_ADMIN')) { exit('Detected invalid access to this file!'); } $roster->output['title'] .= $roster->locale->act['pagebar_rosterconf']; // ----[ Set the tablename and create the config class ]---- include ROSTER_LIB . 'config.lib.php'; $config = new roster_config($roster->db->table('config')); // ----[ Include special functions file ]------------------- include ROSTER_ADMIN . 'roster_config_functions.php'; // ----[ Get configuration data ]--------------------------- $config->getConfigData(); // ----[ Process data if available ]------------------------ $save_message = $config->processData($roster->config); // ----[ Build the page items using lib functions ]--------- $menu = $config->buildConfigMenu(); $config->buildConfigPage(); $body .= $config->form_start . $save_message . $config->formpages . $config->submit_button . $config->form_end . $config->nonformpages . $config->jscript;