2012-09-29 16:08:54 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Copyright (c) 2012 Bart Visscher <bartv@thisnet.nl>
|
|
|
|
* This file is licensed under the Affero General Public License version 3 or
|
|
|
|
* later.
|
|
|
|
* See the COPYING-README file.
|
|
|
|
*/
|
|
|
|
|
2014-03-25 21:59:42 +00:00
|
|
|
/** @var $this OCP\Route\IRouter */
|
2014-03-02 21:30:24 +00:00
|
|
|
|
2012-09-29 16:08:54 +00:00
|
|
|
// Settings pages
|
|
|
|
$this->create('settings_help', '/settings/help')
|
|
|
|
->actionInclude('settings/help.php');
|
|
|
|
$this->create('settings_personal', '/settings/personal')
|
|
|
|
->actionInclude('settings/personal.php');
|
|
|
|
$this->create('settings_settings', '/settings')
|
|
|
|
->actionInclude('settings/settings.php');
|
|
|
|
$this->create('settings_users', '/settings/users')
|
|
|
|
->actionInclude('settings/users.php');
|
|
|
|
$this->create('settings_apps', '/settings/apps')
|
|
|
|
->actionInclude('settings/apps.php');
|
|
|
|
$this->create('settings_admin', '/settings/admin')
|
|
|
|
->actionInclude('settings/admin.php');
|
|
|
|
// Settings ajax actions
|
|
|
|
// users
|
2012-10-05 07:41:27 +00:00
|
|
|
$this->create('settings_ajax_userlist', '/settings/ajax/userlist')
|
2012-09-29 16:08:54 +00:00
|
|
|
->actionInclude('settings/ajax/userlist.php');
|
|
|
|
$this->create('settings_ajax_createuser', '/settings/ajax/createuser.php')
|
2012-10-29 13:50:03 +00:00
|
|
|
->actionInclude('settings/ajax/createuser.php');
|
2012-09-29 16:08:54 +00:00
|
|
|
$this->create('settings_ajax_removeuser', '/settings/ajax/removeuser.php')
|
|
|
|
->actionInclude('settings/ajax/removeuser.php');
|
|
|
|
$this->create('settings_ajax_setquota', '/settings/ajax/setquota.php')
|
|
|
|
->actionInclude('settings/ajax/setquota.php');
|
|
|
|
$this->create('settings_ajax_creategroup', '/settings/ajax/creategroup.php')
|
2012-10-29 13:50:03 +00:00
|
|
|
->actionInclude('settings/ajax/creategroup.php');
|
2012-09-29 16:08:54 +00:00
|
|
|
$this->create('settings_ajax_togglegroups', '/settings/ajax/togglegroups.php')
|
|
|
|
->actionInclude('settings/ajax/togglegroups.php');
|
|
|
|
$this->create('settings_ajax_togglesubadmins', '/settings/ajax/togglesubadmins.php')
|
|
|
|
->actionInclude('settings/ajax/togglesubadmins.php');
|
|
|
|
$this->create('settings_ajax_removegroup', '/settings/ajax/removegroup.php')
|
|
|
|
->actionInclude('settings/ajax/removegroup.php');
|
2013-09-13 15:07:23 +00:00
|
|
|
$this->create('settings_users_changepassword', '/settings/users/changepassword')
|
2013-09-11 14:35:13 +00:00
|
|
|
->post()
|
|
|
|
->action('OC\Settings\ChangePassword\Controller', 'changeUserPassword');
|
2013-02-22 16:21:57 +00:00
|
|
|
$this->create('settings_ajax_changedisplayname', '/settings/ajax/changedisplayname.php')
|
2013-02-14 22:29:51 +00:00
|
|
|
->actionInclude('settings/ajax/changedisplayname.php');
|
2013-09-11 14:35:13 +00:00
|
|
|
// personal
|
2013-09-13 15:07:23 +00:00
|
|
|
$this->create('settings_personal_changepassword', '/settings/personal/changepassword')
|
2013-09-11 14:35:13 +00:00
|
|
|
->post()
|
|
|
|
->action('OC\Settings\ChangePassword\Controller', 'changePersonalPassword');
|
2012-09-29 16:08:54 +00:00
|
|
|
$this->create('settings_ajax_lostpassword', '/settings/ajax/lostpassword.php')
|
|
|
|
->actionInclude('settings/ajax/lostpassword.php');
|
|
|
|
$this->create('settings_ajax_setlanguage', '/settings/ajax/setlanguage.php')
|
|
|
|
->actionInclude('settings/ajax/setlanguage.php');
|
2013-06-10 12:02:35 +00:00
|
|
|
$this->create('settings_ajax_decryptall', '/settings/ajax/decryptall.php')
|
|
|
|
->actionInclude('settings/ajax/decryptall.php');
|
2012-09-29 16:08:54 +00:00
|
|
|
// apps
|
|
|
|
$this->create('settings_ajax_apps_ocs', '/settings/ajax/apps/ocs.php')
|
|
|
|
->actionInclude('settings/ajax/apps/ocs.php');
|
|
|
|
$this->create('settings_ajax_enableapp', '/settings/ajax/enableapp.php')
|
|
|
|
->actionInclude('settings/ajax/enableapp.php');
|
|
|
|
$this->create('settings_ajax_disableapp', '/settings/ajax/disableapp.php')
|
|
|
|
->actionInclude('settings/ajax/disableapp.php');
|
2013-01-21 19:40:23 +00:00
|
|
|
$this->create('settings_ajax_updateapp', '/settings/ajax/updateapp.php')
|
|
|
|
->actionInclude('settings/ajax/updateapp.php');
|
2012-10-28 17:52:18 +00:00
|
|
|
$this->create('settings_ajax_navigationdetect', '/settings/ajax/navigationdetect.php')
|
|
|
|
->actionInclude('settings/ajax/navigationdetect.php');
|
2013-01-21 21:18:42 +00:00
|
|
|
$this->create('apps_custom', '/settings/js/apps-custom.js')
|
|
|
|
->actionInclude('settings/js/apps-custom.php');
|
2012-09-29 16:08:54 +00:00
|
|
|
// admin
|
|
|
|
$this->create('settings_ajax_getlog', '/settings/ajax/getlog.php')
|
|
|
|
->actionInclude('settings/ajax/getlog.php');
|
|
|
|
$this->create('settings_ajax_setloglevel', '/settings/ajax/setloglevel.php')
|
|
|
|
->actionInclude('settings/ajax/setloglevel.php');
|
2014-02-12 16:21:41 +00:00
|
|
|
$this->create('settings_mail_settings', '/settings/admin/mailsettings')
|
|
|
|
->post()
|
|
|
|
->action('OC\Settings\Admin\Controller', 'setMailSettings');
|
2014-02-26 11:13:20 +00:00
|
|
|
$this->create('settings_admin_mail_test', '/settings/admin/mailtest')
|
|
|
|
->post()
|
|
|
|
->action('OC\Settings\Admin\Controller', 'sendTestMail');
|
2013-01-11 13:18:51 +00:00
|
|
|
$this->create('settings_ajax_setsecurity', '/settings/ajax/setsecurity.php')
|
|
|
|
->actionInclude('settings/ajax/setsecurity.php');
|