|
|
@ -57,102 +57,118 @@ try
|
|
|
|
'^/account/?$' => "module.account.php",
|
|
|
|
'^/account/?$' => "module.account.php",
|
|
|
|
'^/login/?$' => "module.login.php",
|
|
|
|
'^/login/?$' => "module.login.php",
|
|
|
|
'^/logout/?$' => "module.logout.php",
|
|
|
|
'^/logout/?$' => "module.logout.php",
|
|
|
|
|
|
|
|
/* Frontpage/overview */
|
|
|
|
'^/([0-9]+)/?$' => array(
|
|
|
|
'^/([0-9]+)/?$' => array(
|
|
|
|
'target' => "module.vps.overview.php",
|
|
|
|
'target' => "module.vps.overview.php",
|
|
|
|
'authenticator' => "authenticator.vps.php",
|
|
|
|
'authenticator' => "authenticator.vps.php",
|
|
|
|
'auth_error' => "error.access.php",
|
|
|
|
'auth_error' => "error.access.php",
|
|
|
|
'_menu' => "vps"
|
|
|
|
'_menu' => "vps"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
/* VPS - Start */
|
|
|
|
'^/([0-9]+)/(start)/?$' => array(
|
|
|
|
'^/([0-9]+)/(start)/?$' => array(
|
|
|
|
'target' => "module.vps.overview.php",
|
|
|
|
'target' => "module.vps.overview.php",
|
|
|
|
'authenticator' => "authenticator.vps.php",
|
|
|
|
'authenticator' => "authenticator.vps.php",
|
|
|
|
'auth_error' => "error.access.php",
|
|
|
|
'auth_error' => "error.access.php",
|
|
|
|
'_menu' => "vps"
|
|
|
|
'_menu' => "vps"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
/* VPS - Stop */
|
|
|
|
'^/([0-9]+)/(stop)/?$' => array(
|
|
|
|
'^/([0-9]+)/(stop)/?$' => array(
|
|
|
|
'target' => "module.vps.overview.php",
|
|
|
|
'target' => "module.vps.overview.php",
|
|
|
|
'authenticator' => "authenticator.vps.php",
|
|
|
|
'authenticator' => "authenticator.vps.php",
|
|
|
|
'auth_error' => "error.access.php",
|
|
|
|
'auth_error' => "error.access.php",
|
|
|
|
'_menu' => "vps"
|
|
|
|
'_menu' => "vps"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
/* VPS - Restart */
|
|
|
|
'^/([0-9]+)/(restart)/?$' => array(
|
|
|
|
'^/([0-9]+)/(restart)/?$' => array(
|
|
|
|
'target' => "module.vps.overview.php",
|
|
|
|
'target' => "module.vps.overview.php",
|
|
|
|
'authenticator' => "authenticator.vps.php",
|
|
|
|
'authenticator' => "authenticator.vps.php",
|
|
|
|
'auth_error' => "error.access.php",
|
|
|
|
'auth_error' => "error.access.php",
|
|
|
|
'_menu' => "vps"
|
|
|
|
'_menu' => "vps"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
/* VPS - Reinstall */
|
|
|
|
'^/([0-9]+)/reinstall/?$' => array(
|
|
|
|
'^/([0-9]+)/reinstall/?$' => array(
|
|
|
|
'target' => "module.vps.reinstall.php",
|
|
|
|
'target' => "module.vps.reinstall.php",
|
|
|
|
'authenticator' => "authenticator.vps.php",
|
|
|
|
'authenticator' => "authenticator.vps.php",
|
|
|
|
'auth_error' => "error.access.php",
|
|
|
|
'auth_error' => "error.access.php",
|
|
|
|
'_menu' => "vps"
|
|
|
|
'_menu' => "vps"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
/* VPS - Change password */
|
|
|
|
'^/([0-9]+)/password/?$' => array(
|
|
|
|
'^/([0-9]+)/password/?$' => array(
|
|
|
|
'target' => "module.vps.password.php",
|
|
|
|
'target' => "module.vps.password.php",
|
|
|
|
'authenticator' => "authenticator.vps.php",
|
|
|
|
'authenticator' => "authenticator.vps.php",
|
|
|
|
'auth_error' => "error.access.php",
|
|
|
|
'auth_error' => "error.access.php",
|
|
|
|
'_menu' => "vps"
|
|
|
|
'_menu' => "vps"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
/* VPS - Console */
|
|
|
|
'^/([0-9]+)/console/?$' => array(
|
|
|
|
'^/([0-9]+)/console/?$' => array(
|
|
|
|
'target' => "module.vps.console.php",
|
|
|
|
'target' => "module.vps.console.php",
|
|
|
|
'authenticator' => "authenticator.vps.php",
|
|
|
|
'authenticator' => "authenticator.vps.php",
|
|
|
|
'auth_error' => "error.access.php",
|
|
|
|
'auth_error' => "error.access.php",
|
|
|
|
'_menu' => "vps"
|
|
|
|
'_menu' => "vps"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
/* Admin - Overview */
|
|
|
|
'^/admin/?$' => array(
|
|
|
|
'^/admin/?$' => array(
|
|
|
|
'target' => "module.admin.overview.php",
|
|
|
|
'target' => "module.admin.overview.php",
|
|
|
|
'authenticator' => "authenticator.admin.php",
|
|
|
|
'authenticator' => "authenticator.admin.php",
|
|
|
|
'auth_error' => "error.access.php",
|
|
|
|
'auth_error' => "error.access.php",
|
|
|
|
'_menu' => "admin"
|
|
|
|
'_menu' => "admin"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
/* Admin - Users - Overview */
|
|
|
|
'^/admin/users/?$' => array(
|
|
|
|
'^/admin/users/?$' => array(
|
|
|
|
'target' => "module.admin.users.php",
|
|
|
|
'target' => "module.admin.users.php",
|
|
|
|
'authenticator' => "authenticator.admin.php",
|
|
|
|
'authenticator' => "authenticator.admin.php",
|
|
|
|
'auth_error' => "error.access.php",
|
|
|
|
'auth_error' => "error.access.php",
|
|
|
|
'_menu' => "admin"
|
|
|
|
'_menu' => "admin"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
'^/admin/containers/?$' => array(
|
|
|
|
/* Admin - Users - Lookup */
|
|
|
|
'target' => "module.admin.containers.php",
|
|
|
|
|
|
|
|
'authenticator' => "authenticator.admin.php",
|
|
|
|
|
|
|
|
'auth_error' => "error.access.php",
|
|
|
|
|
|
|
|
'_menu' => "admin"
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
'^/admin/user/([0-9]+)/?$' => array(
|
|
|
|
'^/admin/user/([0-9]+)/?$' => array(
|
|
|
|
'target' => "module.admin.user.php",
|
|
|
|
'target' => "module.admin.user.php",
|
|
|
|
'authenticator' => "authenticator.admin.php",
|
|
|
|
'authenticator' => "authenticator.admin.php",
|
|
|
|
'auth_error' => "error.access.php",
|
|
|
|
'auth_error' => "error.access.php",
|
|
|
|
'_menu' => "admin"
|
|
|
|
'_menu' => "admin"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
'^/admin/nodes/?$' => array(
|
|
|
|
/* Admin - Containers - Overview */
|
|
|
|
'target' => "module.admin.nodes.php",
|
|
|
|
'^/admin/containers/?$' => array(
|
|
|
|
'authenticator' => "authenticator.admin.php",
|
|
|
|
'target' => "module.admin.containers.php",
|
|
|
|
'auth_error' => "error.access.php",
|
|
|
|
|
|
|
|
'_menu' => "admin"
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
'^/admin/node/([0-9]+)/?$' => array(
|
|
|
|
|
|
|
|
'target' => "module.admin.node.php",
|
|
|
|
|
|
|
|
'authenticator' => "authenticator.admin.php",
|
|
|
|
'authenticator' => "authenticator.admin.php",
|
|
|
|
'auth_error' => "error.access.php",
|
|
|
|
'auth_error' => "error.access.php",
|
|
|
|
'_menu' => "admin"
|
|
|
|
'_menu' => "admin"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
/* Admin - Containers - Suspend */
|
|
|
|
'^/admin/container/([0-9]+)/suspend/?$' => array(
|
|
|
|
'^/admin/container/([0-9]+)/suspend/?$' => array(
|
|
|
|
'target' => "module.admin.container.suspend.php",
|
|
|
|
'target' => "module.admin.container.suspend.php",
|
|
|
|
'authenticator' => "authenticator.admin.php",
|
|
|
|
'authenticator' => "authenticator.admin.php",
|
|
|
|
'auth_error' => "error.access.php",
|
|
|
|
'auth_error' => "error.access.php",
|
|
|
|
'_menu' => "admin"
|
|
|
|
'_menu' => "admin"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
/* Admin - Containers - Transfer */
|
|
|
|
'^/admin/container/([0-9]+)/transfer/?$' => array(
|
|
|
|
'^/admin/container/([0-9]+)/transfer/?$' => array(
|
|
|
|
'target' => "module.admin.container.transfer.php",
|
|
|
|
'target' => "module.admin.container.transfer.php",
|
|
|
|
'authenticator' => "authenticator.admin.php",
|
|
|
|
'authenticator' => "authenticator.admin.php",
|
|
|
|
'auth_error' => "error.access.php",
|
|
|
|
'auth_error' => "error.access.php",
|
|
|
|
'_menu' => "admin"
|
|
|
|
'_menu' => "admin"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
/* Admin - Containers - Terminate */
|
|
|
|
'^/admin/container/([0-9]+)/terminate/?$' => array(
|
|
|
|
'^/admin/container/([0-9]+)/terminate/?$' => array(
|
|
|
|
'target' => "module.admin.container.terminate.php",
|
|
|
|
'target' => "module.admin.container.terminate.php",
|
|
|
|
'authenticator' => "authenticator.admin.php",
|
|
|
|
'authenticator' => "authenticator.admin.php",
|
|
|
|
'auth_error' => "error.access.php",
|
|
|
|
'auth_error' => "error.access.php",
|
|
|
|
'_menu' => "admin"
|
|
|
|
'_menu' => "admin"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
/* Admin - Nodes - Overview */
|
|
|
|
|
|
|
|
'^/admin/nodes/?$' => array(
|
|
|
|
|
|
|
|
'target' => "module.admin.nodes.php",
|
|
|
|
|
|
|
|
'authenticator' => "authenticator.admin.php",
|
|
|
|
|
|
|
|
'auth_error' => "error.access.php",
|
|
|
|
|
|
|
|
'_menu' => "admin"
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
/* Admin - Nodes - Lookup */
|
|
|
|
|
|
|
|
'^/admin/node/([0-9]+)/?$' => array(
|
|
|
|
|
|
|
|
'target' => "module.admin.node.php",
|
|
|
|
|
|
|
|
'authenticator' => "authenticator.admin.php",
|
|
|
|
|
|
|
|
'auth_error' => "error.access.php",
|
|
|
|
|
|
|
|
'_menu' => "admin"
|
|
|
|
|
|
|
|
),
|
|
|
|
'^/test/?$' => "module.test.php"
|
|
|
|
'^/test/?$' => "module.test.php"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
);
|
|
|
|
);
|
|
|
|