$contents[] = array('text' => owpRadioField('compress', 'zip') . ' ' . TEXT_INFO_USE_ZIP);
         $contents[] = array('text' => owpRadioField('compress', 'no') . ' ' . TEXT_INFO_USE_NO_COMPRESSION);
         $contents[] = array('text' => '<br>' . owpCheckboxField('download', 'yes') . ' ' . TEXT_INFO_DOWNLOAD_ONLY . '*<br><br>*' . TEXT_INFO_BEST_THROUGH_HTTPS);
     }
     $contents[] = array('align' => 'center', 'text' => '<br>' . owpImageSubmit('button_backup.gif', IMAGE_BACKUP) . '&nbsp;<a href="' . owpLink($owpFilename['backup']) . '">' . owpImageButton('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'restore':
     $heading[] = array('text' => '<b>' . $buInfo->date . '</b>');
     $contents[] = array('text' => owpBreakString(sprintf(TEXT_INFO_RESTORE, OWP_BACKUP_PATH . ($buInfo->compression != TEXT_NO_EXTENSION ? substr($buInfo->file, 0, strrpos($buInfo->file, '.')) : $buInfo->file), $buInfo->compression != TEXT_NO_EXTENSION ? TEXT_INFO_UNPACK : ''), 35, ' '));
     $contents[] = array('align' => 'center', 'text' => '<br><a href="' . owpLink($owpFilename['backup'], 'file=' . $buInfo->file . '&action=restorenow') . '">' . owpImageButton('button_restore.gif', IMAGE_RESTORE) . '</a>&nbsp;<a href="' . owpLink($owpFilename['backup'], 'file=' . $buInfo->file) . '">' . owpImageButton('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'restorelocal':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_RESTORE_LOCAL . '</b>');
     $contents = array('form' => owpDrawForm('restore', $owpFilename['backup'], 'action=restorelocalnow', 'post', 'enctype="multipart/form-data"'));
     $contents[] = array('text' => TEXT_INFO_RESTORE_LOCAL . '<br><br>' . TEXT_INFO_BEST_THROUGH_HTTPS);
     $contents[] = array('text' => '<br>' . owpFileField('sql_file'));
     $contents[] = array('text' => TEXT_INFO_RESTORE_LOCAL_RAW_FILE);
     $contents[] = array('align' => 'center', 'text' => '<br>' . owpImageSubmit('button_restore.gif', IMAGE_restore) . '&nbsp;<a href="' . owpLink($owpFilename['backup']) . '">' . owpImageButton('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'delete':
     $heading[] = array('text' => '<b>' . $buInfo->date . '</b>');
     $contents = array('form' => owpDrawForm('delete', $owpFilename['backup'], 'file=' . $buInfo->file . '&action=deleteconfirm'));
     $contents[] = array('text' => TEXT_DELETE_INTRO);
     $contents[] = array('text' => '<br><b>' . $buInfo->file . '</b>');
     $contents[] = array('align' => 'center', 'text' => '<br>' . owpImageSubmit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . owpLink($owpFilename['backup'], 'file=' . $buInfo->file) . '">' . owpImageButton('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 default:
     if (is_object($buInfo)) {
         $heading[] = array('text' => '<b>' . $buInfo->date . '</b>');
         $contents[] = array('align' => 'center', 'text' => '<a href="' . owpLink($owpFilename['backup'], 'file=' . $buInfo->file . '&action=restore') . '">' . owpImageButton('button_restore.gif', IMAGE_RESTORE) . '</a> <a href="' . owpLink($owpFilename['backup'], 'file=' . $buInfo->file . '&action=delete') . '">' . owpImageButton('button_delete.gif', IMAGE_DELETE) . '</a>');
         $contents[] = array('text' => '<br>' . TEXT_INFO_DATE . ' ' . $buInfo->date);
     $contents[] = array('text' => '<br><b>' . $fInfo->name . '</b>');
     $contents[] = array('align' => 'center', 'text' => '<br>' . owpImageSubmit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . owpLink($owpFilename['file_manager'], 'info=' . urlencode($fInfo->name)) . '">' . owpImageButton('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'new_folder':
     $heading[] = array('text' => '<b>' . TEXT_NEW_FOLDER . '</b>');
     $contents = array('form' => owpDrawForm('folder', $owpFilename['file_manager'], 'action=insert'));
     $contents[] = array('text' => TEXT_NEW_FOLDER_INTRO);
     $contents[] = array('text' => '<br>' . TEXT_NEW_FOLDER_NAME . '<br>' . owpInputField('folder_name'));
     $contents[] = array('align' => 'center', 'text' => '<br>' . ($directory_writeable ? owpImageSubmit('button_save.gif', IMAGE_SAVE) : '') . ' <a href="' . owpLink($owpFilename['file_manager'], 'info=' . urlencode($_GET['info'])) . '">' . owpImageButton('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'upload':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_UPLOAD . '</b>');
     $contents = array('form' => owpDrawForm('file', $owpFilename['file_manager'], 'action=processuploads', 'post', 'enctype="multipart/form-data"'));
     $contents[] = array('text' => TEXT_UPLOAD_INTRO);
     for ($i = 1; $i < 6; $i++) {
         $file_upload .= owpFileField('file_' . $i) . '<br>';
     }
     $contents[] = array('text' => '<br>' . $file_upload);
     $contents[] = array('align' => 'center', 'text' => '<br>' . ($directory_writeable ? owpImageSubmit('button_upload.gif', IMAGE_UPLOAD) : '') . ' <a href="' . owpLink($owpFilename['file_manager'], 'info=' . urlencode($_GET['info'])) . '">' . owpImageButton('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 default:
     if (is_object($fInfo)) {
         $heading[] = array('text' => '<b>' . $fInfo->name . '</b>');
         if (!$fInfo->is_dir) {
             $contents[] = array('align' => 'center', 'text' => '<a href="' . owpLink($owpFilename['file_manager'], 'info=' . urlencode($fInfo->name) . '&action=edit') . '">' . owpImageButton('button_edit.gif', IMAGE_EDIT) . '</a>');
         }
         $contents[] = array('text' => '<br>' . TEXT_FILE_NAME . ' <b>' . $fInfo->name . '</b>');
         if (!$fInfo->is_dir) {
             $contents[] = array('text' => '<br>' . TEXT_FILE_SIZE . ' <b>' . $fInfo->size . '</b>');
         }
         $contents[] = array('text' => '<br>' . TEXT_LAST_MODIFIED . ' ' . $fInfo->last_modified);