%3\$s
%4\$s
EOF;
SDV($ActionMenuFmt, $f);
$options = (in_array($action, array_keys($opt))) ? '' : "";
foreach($opt as $a=>$label) {
if($a=='#' || $a == '') continue;
if($a == "logout" && @$GLOBALS["AuthPw"] == "") continue;
if($label{0}=='?') {
if(! CondAuth($pagename, $a)) continue;
$label = substr($label, 1);
}
$selected = ($a==$action)? ' selected="selected"' : '';
$options .= "";
}
return "<:block,1>" . Keep( sprintf(FmtPageName($ActionMenuFmt, $pagename), $options, $actmnu_num, @$opt[''][0], @$opt[''][1]) );
}