2012-09-29 20:08:54 +04: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-10-03 17:14:22 +04:00
|
|
|
namespace OC\Settings;
|
|
|
|
|
|
|
|
$application = new Application();
|
|
|
|
$application->registerRoutes($this, array('routes' =>array(
|
|
|
|
array('name' => 'MailSettings#setMailSettings', 'url' => '/settings/admin/mailsettings', 'verb' => 'POST'),
|
|
|
|
array('name' => 'MailSettings#storeCredentials', 'url' => '/settings/admin/mailsettings/credentials', 'verb' => 'POST'),
|
|
|
|
array('name' => 'MailSettings#sendTestMail', 'url' => '/settings/admin/mailtest', 'verb' => 'POST'),
|
2014-10-15 23:59:16 +04:00
|
|
|
array('name' => 'AppSettings#listCategories', 'url' => '/settings/apps/categories', 'verb' => 'GET'),
|
|
|
|
array('name' => 'AppSettings#listApps', 'url' => '/settings/apps/list', 'verb' => 'GET')
|
2014-10-03 17:14:22 +04:00
|
|
|
)));
|
|
|
|
|
|
|
|
/** @var $this \OCP\Route\IRouter */
|
2014-03-03 01:30:24 +04:00
|
|
|
|
2012-09-29 20:08:54 +04: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 11:41:27 +04:00
|
|
|
$this->create('settings_ajax_userlist', '/settings/ajax/userlist')
|
2012-09-29 20:08:54 +04:00
|
|
|
->actionInclude('settings/ajax/userlist.php');
|
2014-04-15 02:13:23 +04:00
|
|
|
$this->create('settings_ajax_grouplist', '/settings/ajax/grouplist')
|
|
|
|
->actionInclude('settings/ajax/grouplist.php');
|
2014-08-29 19:27:23 +04:00
|
|
|
$this->create('settings_ajax_everyonecount', '/settings/ajax/geteveryonecount')
|
|
|
|
->actionInclude('settings/ajax/geteveryonecount.php');
|
2012-09-29 20:08:54 +04:00
|
|
|
$this->create('settings_ajax_createuser', '/settings/ajax/createuser.php')
|
2012-10-29 17:50:03 +04:00
|
|
|
->actionInclude('settings/ajax/createuser.php');
|
2012-09-29 20:08:54 +04: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 17:50:03 +04:00
|
|
|
->actionInclude('settings/ajax/creategroup.php');
|
2012-09-29 20:08:54 +04: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 19:07:23 +04:00
|
|
|
$this->create('settings_users_changepassword', '/settings/users/changepassword')
|
2013-09-11 18:35:13 +04:00
|
|
|
->post()
|
|
|
|
->action('OC\Settings\ChangePassword\Controller', 'changeUserPassword');
|
2013-02-22 20:21:57 +04:00
|
|
|
$this->create('settings_ajax_changedisplayname', '/settings/ajax/changedisplayname.php')
|
2013-02-15 02:29:51 +04:00
|
|
|
->actionInclude('settings/ajax/changedisplayname.php');
|
2014-02-18 20:29:45 +04:00
|
|
|
$this->create('settings_ajax_changegorupname', '/settings/ajax/changegroupname.php')
|
|
|
|
->actionInclude('settings/ajax/changegroupname.php');
|
2013-09-11 18:35:13 +04:00
|
|
|
// personal
|
2013-09-13 19:07:23 +04:00
|
|
|
$this->create('settings_personal_changepassword', '/settings/personal/changepassword')
|
2013-09-11 18:35:13 +04:00
|
|
|
->post()
|
|
|
|
->action('OC\Settings\ChangePassword\Controller', 'changePersonalPassword');
|
2012-09-29 20:08:54 +04: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 16:02:35 +04:00
|
|
|
$this->create('settings_ajax_decryptall', '/settings/ajax/decryptall.php')
|
|
|
|
->actionInclude('settings/ajax/decryptall.php');
|
2014-04-29 17:00:57 +04:00
|
|
|
$this->create('settings_ajax_restorekeys', '/settings/ajax/restorekeys.php')
|
|
|
|
->actionInclude('settings/ajax/restorekeys.php');
|
|
|
|
$this->create('settings_ajax_deletekeys', '/settings/ajax/deletekeys.php')
|
|
|
|
->actionInclude('settings/ajax/deletekeys.php');
|
2014-08-21 16:15:43 +04:00
|
|
|
$this->create('settings_cert_post', '/settings/ajax/addRootCertificate')
|
2014-08-15 19:18:46 +04:00
|
|
|
->actionInclude('settings/ajax/addRootCertificate.php');
|
2014-08-21 16:15:43 +04:00
|
|
|
$this->create('settings_cert_remove', '/settings/ajax/removeRootCertificate')
|
2014-08-15 19:18:46 +04:00
|
|
|
->actionInclude('settings/ajax/removeRootCertificate.php');
|
2012-09-29 20:08:54 +04:00
|
|
|
// apps
|
|
|
|
$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 23:40:23 +04:00
|
|
|
$this->create('settings_ajax_updateapp', '/settings/ajax/updateapp.php')
|
|
|
|
->actionInclude('settings/ajax/updateapp.php');
|
2014-05-31 19:50:39 +04:00
|
|
|
$this->create('settings_ajax_uninstallapp', '/settings/ajax/uninstallapp.php')
|
|
|
|
->actionInclude('settings/ajax/uninstallapp.php');
|
2012-10-28 21:52:18 +04:00
|
|
|
$this->create('settings_ajax_navigationdetect', '/settings/ajax/navigationdetect.php')
|
|
|
|
->actionInclude('settings/ajax/navigationdetect.php');
|
2012-09-29 20:08:54 +04: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');
|
2013-01-11 17:18:51 +04:00
|
|
|
$this->create('settings_ajax_setsecurity', '/settings/ajax/setsecurity.php')
|
|
|
|
->actionInclude('settings/ajax/setsecurity.php');
|
2014-05-13 17:22:18 +04:00
|
|
|
$this->create('settings_ajax_excludegroups', '/settings/ajax/excludegroups.php')
|
|
|
|
->actionInclude('settings/ajax/excludegroups.php');
|
2014-02-03 15:48:17 +04:00
|
|
|
$this->create('settings_ajax_checksetup', '/settings/ajax/checksetup')
|
|
|
|
->actionInclude('settings/ajax/checksetup.php');
|