case 'process': $processed = processAddon(); break; case 'default_page': processPage(); break; case 'access': processAccess(); break; default: break; } // This is here to refresh the addon list $roster->get_addon_data(); $l_default_page = explode('|', $roster->locale->act['admin']['default_page']); $roster->tpl->assign_vars(array('S_ADDON_LIST' => false, 'L_DEFAULT_PAGE' => $l_default_page[0], 'L_DEFAULT_PAGE_HELP' => makeOverlib($l_default_page[1], $l_default_page[0], '', 0, '', ',WRAP'), 'S_DEFAULT_SELECT' => pageNames(array('name' => 'default_page')))); $addons = getAddonList(); if (!empty($addons)) { $roster->tpl->assign_vars(array('S_ADDON_LIST' => true, 'L_TIP_STATUS_ACTIVE' => makeOverlib($roster->locale->act['installer_turn_off'], $roster->locale->act['installer_activated']), 'L_TIP_STATUS_INACTIVE' => makeOverlib($roster->locale->act['installer_turn_on'], $roster->locale->act['installer_deactivated']), 'L_TIP_INSTALL_OLD' => makeOverlib($roster->locale->act['installer_replace_files'], $roster->locale->act['installer_overwrite']), 'L_TIP_INSTALL' => makeOverlib($roster->locale->act['installer_click_uninstall'], $roster->locale->act['installer_installed']), 'L_TIP_UNINSTALL' => makeOverlib($roster->locale->act['installer_click_install'], $roster->locale->act['installer_not_installed']))); foreach ($addons as $addon) { if (!empty($addon['icon'])) { if (strpos($addon['icon'], '.') !== false) { $addon['icon'] = ROSTER_PATH . 'addons/' . $addon['basename'] . '/images/' . $addon['icon']; } else { $addon['icon'] = $roster->config['interface_url'] . 'Interface/Icons/' . $addon['icon'] . '.' . $roster->config['img_suffix']; } } else { $addon['icon'] = $roster->config['interface_url'] . 'Interface/Icons/inv_misc_questionmark.' . $roster->config['img_suffix']; } $roster->tpl->assign_block_vars('addon_list', array('ROW_CLASS' => $roster->switch_row_class(), 'ID' => isset($addon['id']) ? $addon['id'] : '', 'ICON' => $addon['icon'], 'FULLNAME' => $addon['fullname'], 'BASENAME' => $addon['basename'], 'VERSION' => $addon['version'], 'OLD_VERSION' => isset($addon['oldversion']) ? $addon['oldversion'] : '', 'DESCRIPTION' => $addon['description'], 'DEPENDENCY' => $addon['dependency'], 'AUTHOR' => $addon['author'], 'ACTIVE' => isset($addon['active']) ? $addon['active'] : '', 'INSTALL' => $addon['install'], 'L_TIP_UPGRADE' => isset($addon['active']) ? makeOverlib(sprintf($roster->locale->act['installer_click_upgrade'], $addon['oldversion'], $addon['version']), $roster->locale->act['installer_upgrade_avail']) : '', 'ACCESS' => isset($addon['access']) ? $roster->auth->rosterAccess(array('name' => 'access', 'value' => $addon['access'])) : false)); }
case 'process': $processed = processAddon(); break; case 'default_page': processPage(); break; case 'access': processAccess(); break; default: break; } // This is here to refresh the addon list $roster->get_addon_data(); $l_default_page = explode('|', $roster->locale->act['admin']['default_page']); $roster->tpl->assign_vars(array('S_ADDON_LIST' => false, 'L_DEFAULT_PAGE' => $l_default_page[0], 'L_DEFAULT_PAGE_HELP' => makeOverlib($l_default_page[1], $l_default_page[0], '', 0, '', ',WRAP'), 'L_ACCESS_LEVEL' => $roster->locale->act['access_level'], 'S_DEFAULT_SELECT' => pageNames())); $addons = getAddonList(); if (!empty($addons)) { $roster->tpl->assign_vars(array('S_ADDON_LIST' => true, 'L_ICON' => $roster->locale->act['installer_icon'], 'L_ADDONINFO' => $roster->locale->act['installer_addoninfo'], 'L_STATUS' => $roster->locale->act['installer_status'], 'L_INSTALLATION' => $roster->locale->act['installer_installation'], 'L_AUTHOR' => $roster->locale->act['installer_author'], 'L_MANAGE_ADDONS' => $roster->locale->act['pagebar_addoninst'], 'L_TIP_STATUS_ACTIVE' => makeOverlib($roster->locale->act['installer_turn_off'], $roster->locale->act['installer_activated']), 'L_TIP_STATUS_INACTIVE' => makeOverlib($roster->locale->act['installer_turn_on'], $roster->locale->act['installer_deactivated']), 'L_TIP_INSTALL_OLD' => makeOverlib($roster->locale->act['installer_replace_files'], $roster->locale->act['installer_overwrite']), 'L_TIP_INSTALL' => makeOverlib($roster->locale->act['installer_click_uninstall'], $roster->locale->act['installer_installed']), 'L_TIP_UNINSTALL' => makeOverlib($roster->locale->act['installer_click_install'], $roster->locale->act['installer_not_installed']))); foreach ($addons as $addon) { if (!empty($addon['icon'])) { if (strpos($addon['icon'], '.') !== false) { $addon['icon'] = ROSTER_PATH . 'addons/' . $addon['basename'] . '/images/' . $addon['icon']; } else { $addon['icon'] = $roster->config['interface_url'] . 'Interface/Icons/' . $addon['icon'] . '.' . $roster->config['img_suffix']; } } else { $addon['icon'] = $roster->config['interface_url'] . 'Interface/Icons/inv_misc_questionmark.' . $roster->config['img_suffix']; } $roster->tpl->assign_block_vars('addon_list', array('ROW_CLASS' => $roster->switch_row_class(), 'ID' => isset($addon['id']) ? $addon['id'] : '', 'ICON' => $addon['icon'], 'FULLNAME' => $addon['fullname'], 'BASENAME' => $addon['basename'], 'VERSION' => $addon['version'], 'OLD_VERSION' => isset($addon['oldversion']) ? $addon['oldversion'] : '', 'DESCRIPTION' => $addon['description'], 'AUTHOR' => $addon['author'], 'ACTIVE' => isset($addon['active']) ? $addon['active'] : '', 'INSTALL' => $addon['install'], 'L_TIP_UPGRADE' => isset($addon['active']) ? makeOverlib(sprintf($roster->locale->act['installer_click_upgrade'], $addon['oldversion'], $addon['version']), $roster->locale->act['installer_upgrade_avail']) : '', 'ACCESS' => isset($addon['access']) ? $roster->auth->rosterAccess(array('name' => 'access', 'value' => $addon['access'])) : false)); }