From 12cb092b751ad0074f6f740010a70d2dc4562edb Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Fri, 11 May 2012 04:37:41 +0200 Subject: [PATCH] Add suspend/unsuspend page --- frontend/locales/english.lng | 11 +++++++++++ frontend/module.admin.php | 11 +++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/frontend/locales/english.lng b/frontend/locales/english.lng index 03af202..c735b2e 100644 --- a/frontend/locales/english.lng +++ b/frontend/locales/english.lng @@ -32,6 +32,10 @@ title-admin-userlist; User overview title-admin-containerlist; Container overview title-admin-userinfo; User lookup title-admin-overview; Administrative overview +title-admin-vps-suspend; Suspend container +title-admin-vps-unsuspend; Unsuspend container +title-admin-vps-transfer; Transfer container ownership +title-admin-vps-terminate; Terminate container header-admin-user-containers; Containers owned by this user header-vps-admin; Administrative tasks @@ -39,6 +43,10 @@ header-vps-admin; Administrative tasks button-login; Login button-reinstall; Reinstall button-password; Set new root password +button-admin-vps-suspend; Suspend container +button-admin-vps-unsuspend; Unsuspend container +button-admin-vps-transfer; Transfer container +button-admin-vps-terminate; Terminate container notfound; The specified VPS was not found. footer; CPHP is a free and open source VPS control panel. Want to contribute? @@ -127,3 +135,6 @@ admin-overview-message; In the future, this page will hold a log of all mo vps-admin-suspend; Suspend / unsuspend vps-admin-transfer; Transfer vps-admin-terminate; Terminate + +vps-admin-suspend-text; Are you sure you wish to suspend this container? The owner will no longer be able to use it, until it is unsuspended! +vps-admin-unsuspend-text; Are you sure you wish to unsuspend this container? The owner will be able to use it again. diff --git a/frontend/module.admin.php b/frontend/module.admin.php index d9d24ed..9cfc983 100644 --- a/frontend/module.admin.php +++ b/frontend/module.admin.php @@ -28,10 +28,13 @@ try $router->routes = array( 0 => array( - '^/admin/?$' => "module.admin.overview.php", - '^/admin/users/?$' => "module.admin.users.php", - '^/admin/containers/?$' => "module.admin.containers.php", - '^/admin/user/([0-9]+)/?$' => "module.admin.user.php" + '^/admin/?$' => "module.admin.overview.php", + '^/admin/users/?$' => "module.admin.users.php", + '^/admin/containers/?$' => "module.admin.containers.php", + '^/admin/user/([0-9]+)/?$' => "module.admin.user.php", + '^/admin/container/([0-9]+)/suspend/?$' => "module.admin.container.suspend.php", + '^/admin/container/([0-9]+)/transfer/?$' => "module.admin.container.transfer.php", + '^/admin/container/([0-9]+)/terminate/?$' => "module.admin.container.terminate.php" ) );