} else { $endtime = time(); } if ($mode == "web") { echo $out . "\n"; echo "<div class=\"bold\">" . F_DURATION . ": " . number_format($endtime - $starttime, 3) . " " . F_SECONDS . "</div>\n"; echo "<br>"; } elseif ($mode == "shell") { echo $out; echo F_DURATION . ": " . number_format($endtime - $starttime, 3) . " " . F_SECONDS; } elseif ($mode == "incl") { if ($PMBP_SYS_VAR['scheduled_debug']) { echo $out; echo F_DURATION . ": " . number_format($endtime - $starttime, 3) . " " . F_SECONDS; } } } // show the form for selecting a db to backup if ($mode == "web") { echo "<form action=\"backup.php\" method=\"post\" name=\"backup\">\n<div>\n"; PMBP_print_export_form(); echo "\n<input type=\"submit\" value=\"" . EX_EXPORT . "\" class=\"button\">\n</div>\n</form>\n"; } // update file list (deletes new generated files if $CONS[del_numer]=0) PMBP_get_backup_files(); // print html if web mode if ($mode == "web") { PMBP_print_footer(); } elseif ($mode == "incl") { return TRUE; }
echo "<select name=\"path\">\n"; //echo " <option value=\"/\" selected>./</option>\n"; if (isset($dirs1)) { foreach ($dirs1 as $value) { if ($PMBP_SYS_VAR['EXS_scheduled_dir'] == $search_path1 . $value) { echo "<option value=\"" . $search_path1 . $value . "\" selected>" . $search_path1 . $value . "</option>\n"; } else { echo "<option value=\"" . $search_path1 . $value . "\">" . $search_path1 . $value . "</option>\n"; } } } if (isset($dirs2)) { echo "<option value=\"\">----------------------------</option>\n"; foreach ($dirs2 as $value) { if ($PMBP_SYS_VAR['EXS_scheduled_dir'] == $search_path1 . $value) { echo "<option value=\"" . $search_path2 . $value . "\" selected>" . $search_path2 . $value . "</option>\n"; } else { echo "<option value=\"" . $search_path2 . $value . "\">" . $search_path2 . $value . "</option>\n"; } } } echo "</select>\n<br><br>"; // include the export form (known from the export page) and submitt the file list if (isset($dirs1)) { PMBP_print_export_form($dirs1, TRUE); } else { PMBP_print_export_form(FALSE, TRUE); } echo "\n<input type=\"submit\" value=\"" . EXS_SHOW . "\" class=\"button\">\n</div>\n</form>"; } PMBP_print_footer();