'._("Click here to go back").'.', $color);
exit;
}
if (substr($old, strlen($old) - strlen($delimiter)) == $delimiter) {
$isfolder = TRUE;
$old = substr($old, 0, strlen($old) - 1);
} else {
$isfolder = FALSE;
}
$old = imap_utf7_decode_local($old);
if (strpos($old, $delimiter)) {
$old_name = substr($old, strrpos($old, $delimiter)+1, strlen($old));
$old_parent = substr($old, 0, strrpos($old, $delimiter));
} else {
$old_name = $old;
$old_parent = '';
}
displayPageHeader($color, 'None');
echo '
' .
html_tag( 'table', '', 'center', '', 'width="95%" border="0"' ) .
html_tag( 'tr',
html_tag( 'td', '' . _("Rename a folder") . '', 'center', $color[0] )
) .
html_tag( 'tr' ) .
html_tag( 'td', '', 'center', $color[4] ) .
addForm('folders_rename_do.php').
_("New name:").
'
' . htmlspecialchars($old_parent) . ' ' . htmlspecialchars($delimiter) . '' .
addInput('new_name', $old_name, 25) . '
' . "\n";
if ( $isfolder ) {
echo addHidden('isfolder', 'true');
}
echo addHidden('orig', $old).
addHidden('old_name', $old_name).
'\n".
'
';
?>