</table></td> <?php $heading = array(); $contents = array(); switch ($_GET['action']) { case 'backup': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_NEW_BACKUP . '</b>'); $contents = array('form' => owpDrawForm('backup', $owpFilename['backup'], 'action=backupnow')); $contents[] = array('text' => TEXT_INFO_NEW_BACKUP); if ($messageStack->size > 0) { $contents[] = array('text' => '<br>' . owpRadioField('compress', 'no', true) . ' ' . TEXT_INFO_USE_NO_COMPRESSION); $contents[] = array('text' => '<br>' . owpRadioField('download', 'yes', true) . ' ' . TEXT_INFO_DOWNLOAD_ONLY . '*<br><br>*' . TEXT_INFO_BEST_THROUGH_HTTPS); } else { $contents[] = array('text' => '<br>' . owpRadioField('compress', 'gzip', true) . ' ' . TEXT_INFO_USE_GZIP); $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) . ' <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> <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);
echo GENDER; ?> </td> <td class="main"> <?php if ($is_read_only) { echo $account['admin_gender'] == 'm' ? MALE : FEMALE; } elseif ($error) { if ($entry_gender_error) { echo owpRadioField('gender', 'm', $male) . ' ' . MALE . ' ' . owpRadioField('gender', 'f', $female) . ' ' . FEMALE . ' ' . GENDER_ERROR; } else { echo $gender == 'm' ? MALE : FEMALE; echo owpDrawHiddenField('gender'); } } else { echo owpRadioField('gender', 'm', $male) . ' ' . MALE . ' ' . owpRadioField('gender', 'f', $female) . ' ' . FEMALE . ' ' . TEXT_FIELD_REQUIRED; } ?> </td> </tr> <tr> <td class="main"> <?php echo FIRST_NAME; ?> </td> <td class="main"> <?php if ($is_read_only) { echo $account['admin_firstname']; } elseif ($error) { if ($entry_firstname_error) {
echo owpDrawForm('user', $owpFilename['administrators'], 'page=' . $_GET['page'] . '&aID=' . $aInfo->admin_id . '&action=update', 'post'); ?> <td class="formAreaTitle"><?php echo CATEGORY_PERSONAL; ?> </td> </tr> <tr> <td class="formArea"><table border="0" cellspacing="2" cellpadding="2"> <tr> <td class="main"><?php echo GENDER; ?> </td> <td class="main"><?php echo owpRadioField('admin_gender', 'm', false, $aInfo->admin_gender) . ' ' . MALE . ' ' . owpRadioField('admin_gender', 'f', false, $aInfo->admin_gender) . ' ' . FEMALE; ?> </td> </tr> <tr> <td class="main"><?php echo FIRST_NAME; ?> </td> <td class="main"><?php echo owpInputField('admin_firstname', $aInfo->admin_firstname, 'maxlength="32"', true); ?> </td> </tr> <tr> <td class="main"><?php