opendd.php 415 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Elgg OpenDD import action.
  4. *
  5. * This action accepts data to import (in OpenDD format) and performs and import. It accepts
  6. * data as $data.
  7. *
  8. * @package Elgg
  9. * @subpackage Core
  10. * @deprecated 1.9
  11. */
  12. $data = get_input('data', '', false);
  13. $return = import($data);
  14. if ($return) {
  15. system_message(elgg_echo('importsuccess'));
  16. } else {
  17. register_error(elgg_echo('importfail'));
  18. }
  19. forward(REFERER);