routes.php 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php
  2. /**
  3. * Copyright (c) 2012 Bart Visscher <bartv@thisnet.nl>
  4. * This file is licensed under the Affero General Public License version 3 or
  5. * later.
  6. * See the COPYING-README file.
  7. */
  8. // Settings pages
  9. $this->create('settings_help', '/settings/help')
  10. ->actionInclude('settings/help.php');
  11. $this->create('settings_personal', '/settings/personal')
  12. ->actionInclude('settings/personal.php');
  13. $this->create('settings_settings', '/settings')
  14. ->actionInclude('settings/settings.php');
  15. $this->create('settings_users', '/settings/users')
  16. ->actionInclude('settings/users.php');
  17. $this->create('settings_apps', '/settings/apps')
  18. ->actionInclude('settings/apps.php');
  19. $this->create('settings_admin', '/settings/admin')
  20. ->actionInclude('settings/admin.php');
  21. // Settings ajax actions
  22. // users
  23. $this->create('settings_ajax_userlist', '/settings/ajax/userlist')
  24. ->actionInclude('settings/ajax/userlist.php');
  25. $this->create('settings_ajax_createuser', '/settings/ajax/createuser.php')
  26. ->actionInclude('settings/ajax/createuser.php');
  27. $this->create('settings_ajax_removeuser', '/settings/ajax/removeuser.php')
  28. ->actionInclude('settings/ajax/removeuser.php');
  29. $this->create('settings_ajax_setquota', '/settings/ajax/setquota.php')
  30. ->actionInclude('settings/ajax/setquota.php');
  31. $this->create('settings_ajax_creategroup', '/settings/ajax/creategroup.php')
  32. ->actionInclude('settings/ajax/creategroup.php');
  33. $this->create('settings_ajax_togglegroups', '/settings/ajax/togglegroups.php')
  34. ->actionInclude('settings/ajax/togglegroups.php');
  35. $this->create('settings_ajax_togglesubadmins', '/settings/ajax/togglesubadmins.php')
  36. ->actionInclude('settings/ajax/togglesubadmins.php');
  37. $this->create('settings_ajax_removegroup', '/settings/ajax/removegroup.php')
  38. ->actionInclude('settings/ajax/removegroup.php');
  39. $this->create('settings_users_changepassword', '/settings/users/changepassword')
  40. ->post()
  41. ->action('OC\Settings\ChangePassword\Controller', 'changeUserPassword');
  42. $this->create('settings_ajax_changedisplayname', '/settings/ajax/changedisplayname.php')
  43. ->actionInclude('settings/ajax/changedisplayname.php');
  44. // personal
  45. $this->create('settings_personal_changepassword', '/settings/personal/changepassword')
  46. ->post()
  47. ->action('OC\Settings\ChangePassword\Controller', 'changePersonalPassword');
  48. $this->create('settings_ajax_lostpassword', '/settings/ajax/lostpassword.php')
  49. ->actionInclude('settings/ajax/lostpassword.php');
  50. $this->create('settings_ajax_setlanguage', '/settings/ajax/setlanguage.php')
  51. ->actionInclude('settings/ajax/setlanguage.php');
  52. $this->create('settings_ajax_decryptall', '/settings/ajax/decryptall.php')
  53. ->actionInclude('settings/ajax/decryptall.php');
  54. // apps
  55. $this->create('settings_ajax_apps_ocs', '/settings/ajax/apps/ocs.php')
  56. ->actionInclude('settings/ajax/apps/ocs.php');
  57. $this->create('settings_ajax_enableapp', '/settings/ajax/enableapp.php')
  58. ->actionInclude('settings/ajax/enableapp.php');
  59. $this->create('settings_ajax_disableapp', '/settings/ajax/disableapp.php')
  60. ->actionInclude('settings/ajax/disableapp.php');
  61. $this->create('settings_ajax_updateapp', '/settings/ajax/updateapp.php')
  62. ->actionInclude('settings/ajax/updateapp.php');
  63. $this->create('settings_ajax_navigationdetect', '/settings/ajax/navigationdetect.php')
  64. ->actionInclude('settings/ajax/navigationdetect.php');
  65. $this->create('apps_custom', '/settings/js/apps-custom.js')
  66. ->actionInclude('settings/js/apps-custom.php');
  67. // admin
  68. $this->create('settings_ajax_getlog', '/settings/ajax/getlog.php')
  69. ->actionInclude('settings/ajax/getlog.php');
  70. $this->create('settings_ajax_setloglevel', '/settings/ajax/setloglevel.php')
  71. ->actionInclude('settings/ajax/setloglevel.php');
  72. $this->create('settings_ajax_setsecurity', '/settings/ajax/setsecurity.php')
  73. ->actionInclude('settings/ajax/setsecurity.php');
  74. $this->create('isadmin', '/settings/js/isadmin.js')
  75. ->actionInclude('settings/js/isadmin.php');