set_overview('

'.$con_head[$lang].'

'.$con_notice[$lang].''); if ($_POST) { while (array_keys($_POST)) { $jid = base64_decode(str_replace("kezyt2s0", "+", key($_POST))); $val = array_shift($_POST); if ($val=="n") { $do_not_log_list .=$jid."\n"; } } if ($db->update_log_list($do_not_log_list) === true) { $html->status_message($con_saved[$lang]); } else { $html->alert_message($oper_fail[$lang]); } } // sorting options $get_sort = $_GET['sort']; $get_dir = $_GET['o']; // validate if (!ctype_digit($get_sort) AND !ctype_digit($get_dir)) { unset($get_sort); unset($get_dir); } if ($get_dir === "1") { $dir = "za"; $get_dir = "2"; } elseif($get_dir === "2"){ $dir = "az"; $get_dir = "1"; } else{ $dir = "az"; $get_dir = "2"; } if ($get_sort === "1") { $ejabberd_roster->sort_by_jid($dir); } elseif($get_sort === "2") { $ejabberd_roster->sort_by_nick($dir); } elseif($get_sort === "3") { $ejabberd_roster->sort_by_group($dir); } else{ $ejabberd_roster->sort_by_nick_group(); } $roster_con = $ejabberd_roster->get_roster(); if ($roster_con) { $db->get_log_list(); $do_notlog_list = $db->result; $html->set_body('
'); if ($get_sort) { $html->set_body(''); } $html->set_body(' '); while (array_keys($roster_con)) { $jid = key($roster_con); $roster_item = array_shift($roster_con); $nick = $roster_item[nick]; $grp = $roster_item[group]; $predefined = $enc->crypt_url("jid=$jid"); $prepared_jid=str_replace("+", "kezyt2s0", base64_encode($jid)); if ($col=="e0e9f7") { $col="e8eef7"; } else { $col="e0e9f7"; } if (in_array($jid,$do_notlog_list) === true) { $selected="selected"; } else { $selected=""; } if ($selected!="") { $col="b7b7b7"; } $html->set_body(' '); } $html->set_body('
'.$reset_sort[$lang].'
'.$con_tab2[$lang].' ↑↓ '.$con_tab3[$lang].' ↑↓ '.$con_tab6[$lang].' ↑↓ '.$show_chats[$lang].': '.$con_tab4[$lang].'
'.cut_nick(htmlspecialchars($nick)).' ('.htmlspecialchars($jid).') '.cut_nick(htmlspecialchars($grp)).' '.$show_chat_as_map[$lang].'| '.$show_chat_stream[$lang].'
'); } else { $html->status_message('

'.$no_contacts[$lang].'

'); } require_once("footer.php"); ?>