action_handler.php 625 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * Action handler.
  4. *
  5. * This file dispatches actions. It is called via a URL rewrite in .htaccess
  6. * from http://site/action/. Anything after 'action/' is considered the action
  7. * and will be passed to {@link action()}.
  8. *
  9. * @warning This sets the input named 'action' to the current action. When calling
  10. * an action, get_input('action') will always return the action name.
  11. *
  12. * @package Elgg.Core
  13. * @subpackage Actions
  14. */
  15. require_once(dirname(dirname(__FILE__)) . "/start.php");
  16. register_error("Update your .htaccess file to remove the action handler");
  17. $action = get_input("action");
  18. action($action);