Пример #1
0
    if (!$time2_start and $time2_end) {
        $time2_start = $to_tble[$t + 1 - $t];
    }
}
$html->menu('<input type="submit" value="' . $search_box[$lang] . '"></form></td>');
if ($mac_user === true) {
    $html->menu('<td align="right"><a href="#"><img border="0" alt="Hello Mac user!" width="16" height="16" src="img/apple-logo.png" /></a></td>');
}
$html->menu('
		</tr>
		<tr style="background-image: url(img/bell-bak.png); height: 24;">
			<td colspan="11" width="100%" style="text-align: left; padding-left: 30px; color: white;">
				' . $menu_main . ' | ' . $menu_map . ' | ' . $menu_favorites . ' | ' . $menu_mylinks . ' | ' . $menu_search . ' | ' . $menu_contacts . ' | ' . $menu_logger . $menu_stats . ' | ' . $menu_trash . ' | <a class="mmenu" href="#" onClick="window.location.reload()">' . $refresh[$lang] . '</a>
			</td>
		</tr>
		</table>
		<p align="center"><b>' . $alert . '</b></p>
	');
// Get user roster.
$rpc_roster = $ejabberd_rpc->get_roster();
// creater roster object and rewrite it to portable multidimentional array
$ejabberd_roster = new roster();
foreach ($rpc_roster as $roster_record) {
    if ($roster_record[group] == "") {
        $roster_record[group] = $con_no_g[$lang];
    }
    // avoid contacts without nick
    if ($roster_record[nick] != "") {
        $ejabberd_roster->add_item($roster_record[jid], $roster_record[nick], $roster_record[group]);
    }
}