'', 'name' => getlocal("notifications.locale.all"))); foreach ($all_locales as $id) { $locales_with_label[] = array('id' => $id, 'name' => getlocal_($id, "names")); } $page['locales'] = $locales_with_label; $lang = verifyparam("lang", "/^([\w-]{2,5})?$/", ""); if ($lang && !in_array($lang, $all_locales)) { $lang = ""; } # kind $kind = verifyparam("kind", "/^(mail|xmpp)?$/", ""); $page['allkinds'] = array('', 'mail', 'xmpp'); # fetch $conditions = array(); if ($kind) { $conditions[] = "vckind = '$kind'"; } if ($lang) { $conditions[] = "locale = '$lang'"; } $link = connect(); select_with_pagintation( "id, locale, vckind, vcto, unix_timestamp(dtmcreated) as created, vcsubject, tmessage, refoperator", "${mysqlprefix}chatnotification", $conditions, "order by created desc", "", $link); mysql_close($link); $page['formlang'] = $lang; $page['formkind'] = $kind; prepare_menu($operator); start_html_output(); require('../view/notifications.php'); exit; ?>