MyPortal.php 717 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php namespace evilportal;
  2. /* Code modified by Frieren Auto Refactor */
  3. class MyPortal extends Portal
  4. {
  5. public function handleAuthorization()
  6. {
  7. // handle form input or other extra things there
  8. // Call parent to handle basic authorization first
  9. parent::handleAuthorization();
  10. }
  11. /**
  12. * Override this to do something when the client is successfully authorized.
  13. * By default it just notifies the Web UI.
  14. */
  15. public function onSuccess()
  16. {
  17. // Calls default success message
  18. parent::onSuccess();
  19. }
  20. /**
  21. * If an error occurs then do something here.
  22. * Override to provide your own functionality.
  23. */
  24. public function showError()
  25. {
  26. // Calls default error message
  27. parent::showError();
  28. }
  29. }