'', '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 $link = connect(); $conditions = array(); if ($kind) { $conditions[] = "vckind = '" . mysql_real_escape_string($kind, $link) . "'"; } if ($lang) { $conditions[] = "locale = '" . mysql_real_escape_string($lang, $link) . "'"; } 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; ?>