-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.php
42 lines (38 loc) · 1.03 KB
/
init.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php defined('SYSPATH') or die('No direct access allowed.');
/*
* KMS Constants
*/
define('KMS_DATABASE', 'kms');
define('KMS_VERSION', '0.2');
/*
* KMS Routes
*/
Route::set('kms-super-admin', 'kms-admin/super(/<action>(/<section>(/<id>(/<subid>))))')
->defaults(array(
'controller' => 'kms_superadmin',
'action' => 'index'
));
Route::set('kms-admin', 'kms-admin(/<action>(/<section>(/<id>(/<subid>))))', array('action' => '(?!sidebar|logout)[^/]*'))
->defaults(array(
'controller' => 'kms_admin',
'action' => 'login'
));
Route::set('kms-admin-modules', 'kms-admin(/<action>)', array('action' => '(?!logout).*'))
->defaults(array(
'controller' => 'kms_module',
));
Route::set('kms-action', 'kms-action(/<action>(/<id>))')
->defaults(array(
'controller' => 'kms_action',
));
Route::set('kms-asset', 'kms-asset(/<type>(/<file>))', array('file' => '.*'))
->defaults(array(
'controller' => 'kms_asset',
'action' => 'load'
));
/*
* KMS Startup
*/
if (!defined('SUPPRESS_REQUEST')) {
KMS::instance('site');
}