break; case 'delete': group_delete(); $groupname = getTitleByIdgroup($idgroup); $cms_log->info('user', 'group_delete', array('idgroup' => $idgroup, 'name' => $groupname)); fire_event('group_delete', array('idgroup' => $idgroup, 'name' => $groupname, 'author' => $auth->auth['uid'])); //Wird eine gruppe gel�scht, wird eventuell noch eine aufgeklappte Spracheinstellung angezeigt - redirect um das zu verhindern header('HTTP/1.1 302 Moved Temporarily'); header('Location:' . $sess->urlRaw("main.php?area=group&order={$order}&ascdesc={$ascdesc}")); exit; break; case 'activate_lang': $return = group_visible_lang(); $eventname = $return == true ? 'group_activate_lang' : 'group_deactivate_lang'; $groupname = getTitleByIdgroup($idgroup); $langname = getLangByIdlang($idlang); $cms_log->info('group', $eventname, array('idgroup' => $idgroup, 'idlang' => $idlang, 'groupname' => $groupname, 'langname' => $langname)); fire_event($eventname, array('idgroup' => $idgroup, 'groupname' => $groupname, 'idlang' => $idlang, 'langname' => langname, 'author' => $auth->auth['uid'])); break; } include 'inc/inc.header.php'; $row_bgcolor['project'] = '#f7fbff'; $row_bgcolor['project_active'] = '#dfeeff'; $row_bgcolor['project_lang'] = '#ffffff'; // Allgemeine Einstellungen initialisieren if (empty($ascdesc)) { $order = 'name'; $ascdesc = 'ASC'; } $base_url = $sess->url('main.php?area=%s&order=%s&ascdesc=%s'); // Templatedatei laden
//collapse ist idclient $perm->check(21, 'clientlangs', $idlang); $clientname = getClientNameByIdclient($collapse); $langname = getLangByIdlang($lid); $errno = lang_delete_language($collapse, $lid); $errlog = $errno ? $errno : 0; //Log if ($errlog == 0) { $cms_log->info('user', 'clients_delete_lang', array('idclient' => $collapse, 'clientname' => $clientname, 'idlang' => $lid, 'name' => $langname)); } // Event fire_event('clients_delete_lang', array('idclient' => $collapse, 'clientname' => $clientname, 'idlang' => $lid, 'name' => $langname, 'author' => $auth->auth['uid'], 'errno' => $errlog)); break; case 'makestartlang': $clientname = getClientNameByIdclient((int) $_REQUEST['cid']); $langname = getLangByIdlang((int) $_REQUEST['lid']); $errno = lang_make_start_lang((int) $_REQUEST['cid'], (int) $_REQUEST['lid']); $errlog = $errno ? $errno : 0; //Log if ($errlog == 0) { $cms_log->info('user', 'clients_make_start_lang', array('idclient' => (int) $_REQUEST['cid'], 'clientname' => $clientname, 'idlang' => (int) $_REQUEST['lid'], 'name' => $langname)); } // Event fire_event('clients_make_start_lang', array('idclient' => (int) $_REQUEST['cid'], 'clientname' => $clientname, 'idlang' => (int) $_REQUEST['lid'], 'name' => $langname, 'author' => $auth->auth['uid'], 'errno' => $errlog)); break; } /****************************************************************************** 3. Eventuelle Dateien zur Darstellung includieren ******************************************************************************/ /****************************************************************************** 4. Bildschirmausgabe aufbereiten und ausgeben