0) {
$d1 = strtolower(substr(EGW_APP_INC,0,3));
if($d1 == 'htt' || $d1 == 'ftp' ) {
echo 'Failed attempt to break in via an old Security Hole!
'."\n";
$GLOBALS['egw']->common->egw_exit();
}
unset($d1);
$tmp_app_inc = $GLOBALS['egw']->common->get_inc_dir('felamimail');
$GLOBALS['egw']->translation->add_app('felamimail');
$title = lang('felamimail');
$portalbox =& CreateObject('phpgwapi.listbox',
Array(
'title' => $title,
'primary' => $GLOBALS['egw_info']['theme']['navbar_bg'],
'secondary' => $GLOBALS['egw_info']['theme']['navbar_bg'],
'tertiary' => $GLOBALS['egw_info']['theme']['navbar_bg'],
'width' => '100%',
'outerborderwidth' => '0',
'header_background_image' => $GLOBALS['egw']->common->image('phpgwapi/templates/phpgw_website','bg_filler.gif')
)
);
$app_id = $GLOBALS['egw']->applications->name2id('felamimail');
$var = Array(
'up' => Array('url' => '/set_box.php', 'app' => $app_id),
'down' => Array('url' => '/set_box.php', 'app' => $app_id),
'close' => Array('url' => '/set_box.php', 'app' => $app_id),
'question' => Array('url' => '/set_box.php', 'app' => $app_id),
'edit' => Array('url' => '/set_box.php', 'app' => $app_id)
);
while(list($key,$value) = each($var)) {
$portalbox->set_controls($key,$value);
}
$portalbox->data = Array();
if($data) {
$portalbox->data = $data;
}
$this->displayCharset = translation::charset();
$profileID = 0;
if (isset($GLOBALS['egw_info']['user']['preferences']['felamimail']['ActiveProfileID']))
$profileID = (int)$GLOBALS['egw_info']['user']['preferences']['felamimail']['ActiveProfileID'];
$this->bofelamimail = felamimail_bo::getInstance(true, $profileID);
if(!$this->bofelamimail->openConnection()) {
$extra_data = lang("can't connect to INBOX!!");
} else {
// it may be cheaper to fetch the folderstatus per folder which is to be displayed, as for all folders
$folderList = $this->bofelamimail->getFolderObjects(true, false);
#_debug_array($folderList);
$extra_data = '
'.lang('foldername').' | '.lang('total').' | '.lang('unseen').' |
$value->displayName | $messages | $newMessages |