baseline
[omp.pkp.sfu.ca.git] / pages / admin / index.php
blob34248ee5e1cb476d19745fcafb18a48a04cfec34
1 <?php
3 /**
4 * @defgroup pages_admin
5 */
7 /**
8 * @file pages/admin/index.php
10 * Copyright (c) 2003-2008 John Willinsky
11 * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
13 * @ingroup pages_admin
14 * @brief Handle requests for site administration functions.
18 // $Id: index.php,v 1.4 2009/07/03 20:31:45 mcrider Exp $
21 switch ($op) {
23 // Settings
25 case 'settings':
26 case 'saveSettings':
27 define('HANDLER_CLASS', 'AdminSettingsHandler');
28 import('pages.admin.AdminSettingsHandler');
29 break;
31 // Press Management
33 case 'presses':
34 case 'createPress':
35 case 'editPress':
36 case 'updatePress':
37 case 'deletePress':
38 case 'movePress':
39 import('pages.admin.AdminPressHandler');
40 define('HANDLER_CLASS', 'AdminPressHandler');
41 break;
43 // Languages
45 case 'languages':
46 case 'saveLanguageSettings':
47 case 'installLocale':
48 case 'uninstallLocale':
49 case 'reloadLocale':
50 case 'downloadLocale':
51 import('pages.admin.AdminLanguagesHandler');
52 define('HANDLER_CLASS', 'AdminLanguagesHandler');
53 break;
55 // Authentication sources
57 case 'auth':
58 case 'updateAuthSources':
59 case 'createAuthSource':
60 case 'editAuthSource':
61 case 'updateAuthSource':
62 case 'deleteAuthSource':
63 import('pages.admin.AuthSourcesHandler');
64 define('HANDLER_CLASS', 'AuthSourcesHandler');
65 break;
67 // Merge users
69 case 'mergeUsers':
70 import('pages.admin.AdminPeopleHandler');
71 define('HANDLER_CLASS', 'AdminPeopleHandler');
72 break;
74 // Administrative functions
76 case 'systemInfo':
77 case 'editSystemConfig':
78 case 'saveSystemConfig':
79 case 'phpInfo':
80 case 'expireSessions':
81 case 'clearTemplateCache':
82 case 'clearDataCache':
83 import('pages.admin.AdminFunctionsHandler');
84 define('HANDLER_CLASS', 'AdminFunctionsHandler');
85 break;
86 default:
87 define('HANDLER_CLASS', 'AdminHandler');
88 import('pages.admin.AdminHandler');
89 break;