if(parent.opener.window.location.pathname.substr(-13) == "left_main.php")
parent.opener.window.location.reload();
ECHO;
}
if(isset($successmsg)) {
print '';
foreach($successmsg as $msg) {
print $msg . '
';
}
print '
';
}
if(isset($neutralmsg)) {
print '';
foreach($neutralmsg as $msg) {
print $msg . '
';
}
print '
';
}
if(isset($errormsg)) {
print '';
foreach($errormsg as $msg) {
print $msg . '
';
}
print '
';
}
useracl_html_printheader( _("User Permissions") );
useracl_html_print_all_sections_start();
foreach($boxes as $no=>$box) {
$mbox = $box['unformatted'];
if (isset($_GET['addacl'])) {
if($mbox != $selected_mbox) {
continue;
}
}
if( (isset($perm[$mbox]) && sizeof($perm[$mbox]) > 0 ) || isset($addacl)) {
$formname = "form_".str_replace(array('.','%', '-') , array('_','_','_'),
rawurlencode($mbox));
useracl_html_print_section_start( sprintf( _("Current Permissions for Folder: %s") ,
''.imap_utf7_decode_local($mbox).''));
print '';
useracl_html_print_section_end();
unset($formname);
}
}
if( ( isset($_GET['addacl']) && !isset($selected_mbox) ) ||
( !isset($_GET['addacl']) ) ){
useracl_html_print_section_start( _("Add New User Permission") );
print '';
useracl_html_print_section_end();
}
useracl_html_print_all_sections_end();
sq_change_text_domain('squirrelmail');
if ($compose_new_win == '1' && isset($_GET['addacl'])) {
echo ''."\n";
}
useracl_html_printfooter();