error_reporting(E_ALL); } // Check for running Ice with Murmur try { ServerInterface::getInstance(); } catch (Ice_UnknownLocalException $ex) { MessageManager::addError(tr('error_noIce')); MessageManager::echoAll(); exit; } if (isset($_GET['ajax'])) { require_once MUMPHPI_MAINDIR . '/ajax/' . MUMPHPI_SECTION . '.ajax.php'; if (is_callable('Ajax_' . MUMPHPI_SECTION . '::' . $_GET['ajax'])) { eval('Ajax_' . MUMPHPI_SECTION . '::' . $_GET['ajax'] . '();'); } MessageManager::echoAll(); exit; } $serverId = isset($_GET['serverId']) ? intval($_GET['serverId']) : 1; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title><?php echo SettingsManager::getInstance()->getSiteTitle(); ?> </title> <meta name="description" content="<?php echo SettingsManager::getInstance()->getSiteDescription();
public static function db_adminGroup_perms_edit() { if (!PermissionManager::getInstance()->serverCanEditAdmins()) { return; } // TODO: [security] perms should only hold the correct keys and boolean vals $group = DBManager::getInstance()->updateAdminGroupPermissions(intval($_POST['gid']), $_POST['perms']); MessageManager::echoAll(); }