restore.php 359 B

12345678910111213141516
  1. <?php
  2. /*
  3. * Create a new backup file
  4. */
  5. elgg_load_library("backup_tool");
  6. $backup_file_name = get_input("file");
  7. if (backup_tool_restore_backup(array("file_name"=>$backup_file_name))){
  8. system_messages(elgg_echo("backup-tool:restore:success", array($filename)));
  9. }else{
  10. register_error(elgg_echo("backup-tool:restore:fail"));
  11. }
  12. forward(REFERRER);