57.cache.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php return '/**
  2. * Login
  3. *
  4. * Copyright 2010 by Jason Coward <jason@modx.com> and Shaun McCormick
  5. * <shaun@modx.com>
  6. *
  7. * Login is free software; you can redistribute it and/or modify it
  8. * under the terms of the GNU General Public License as published by the Free
  9. * Software Foundation; either version 2 of the License, or (at your option) any
  10. * later version.
  11. *
  12. * Login is distributed in the hope that it will be useful, but WITHOUT ANY
  13. * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  14. * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License along with
  17. * Login; if not, write to the Free Software Foundation, Inc., 59 Temple
  18. * Place, Suite 330, Boston, MA 02111-1307 USA
  19. *
  20. * @package login
  21. */
  22. /**
  23. * MODx Login Snippet
  24. *
  25. * This snippet handles login POSTs, sending the user back to where they came from or to a specific
  26. * location if specified in the POST.
  27. *
  28. * @package login
  29. *
  30. * @property textfield actionKey The REQUEST variable containing the action to take.
  31. * @property textfield loginKey The actionKey for login.
  32. * @property textfield logoutKey The actionKey for logout.
  33. * @property boolean loginViaEmail Enable login via username or email address (either one!) [default: false]
  34. * @property list tplType The type of template to expect for the views:
  35. * modChunk - name of chunk to use
  36. * file - full path to file to use as tpl
  37. * embedded - the tpl is embedded in the page content
  38. * inline - the tpl is inline content provided directly
  39. * @property textfield loginTpl The template for the login view (content based on tplType)
  40. * @property textfield logoutTpl The template for the logout view (content based on tplType)
  41. * @property textfield errTpl The template for any errors that occur when processing an view
  42. * @property list errTplType The type of template to expect for the error messages:
  43. * modChunk - name of chunk to use
  44. * file - full path to file to use as tpl
  45. * inline - the tpl is inline content provided directly
  46. * @property integer logoutResourceId An explicit resource id to redirect users to on logout
  47. * @property string loginMsg The string to use for the login action. Defaults to
  48. * the lexicon string "login".
  49. * @property string logoutMsg The string to use for the logout action. Defaults
  50. * to the lexicon string "login.logout"
  51. */
  52. require_once $modx->getOption(\'login.core_path\',null,$modx->getOption(\'core_path\').\'components/login/\').\'model/login/login.class.php\';
  53. $login = new Login($modx,$scriptProperties);
  54. if (!is_object($login) || !($login instanceof Login)) return \'\';
  55. $controller = $login->loadController(\'Login\');
  56. $output = $controller->run($scriptProperties);
  57. return $output;
  58. return;
  59. ';