Loading README 0 → 100644 +90 −0 Original line number Diff line number Diff line # ISPCONFIG Module hosted ## Code repositery [GIT Server](https://git.csti.ch) [CSTI SA ](https://www.csti.ch) ## Contacts * [Facebook Company Page](https://www.facebook.com/CSTI.SA.CH) * [LinkedIn Company Page](https://www.linkedin.com/company/csti-sa) * [Twitter Company Page](https://www.twitter.com/CSTI_SA) ## Application details This application is an Add-ons for ISPConfig used for VPS management (Vmware) There is 2 level of security : * Admin * Users ## Requirements * ISPConfig 3.0.5 * mysql database (it's also a requirement for ISPConfig) * Vmware SDK ## Contribute You can create an account on our git server. ## License Copyright (c) 2013, CSTI SA All rights reserved. You are free to ditribute this module, but all changes without our consent is prohibited. Please also note that any update will erase all files. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. RELEASE NOTES : ============== Version 2.4.2 : Latest supported version in production. Manage your VPS : - Start - Shutdown - Restart - Hard Reboot (unplug the power) Display : - Power Status - VPS Status - Last Boot Time - Installed Memory - Commsumed Memory - Installed CPU - Consummed CPU - Disk Space (Total, available, usage) - Disk Partition details - Operating System Type - Operating System Details - Events logs for VPS - Events logs for this module (traking action) Admin Function - Snapshot Init (make a snapshot before go live a VPS) - Remove All Snpashots Admin Display - vCenter Server - GUID - CPU details information (consummed, max used) - Type - Runing Task - Configuration Date - Last Service Update date - Linked to Client - All Events - All Snapshots - All Template - Setup , configuration and update config.php 0 → 100644 +36 −0 Original line number Diff line number Diff line <?php require_once('../../lib/config.inc.php'); require_once('../../lib/app.inc.php'); require_once('../hosted/lib/class.csti.php'); /****************************************** * Begin Form configuration ******************************************/ $list_def_file = "list/config.list.php"; /****************************************** * End Form configuration ******************************************/ //* Check permissions for module $app->auth->check_module_permissions('hosted'); $app->uses('listform_actions'); class list_action extends listform_actions { } $list = new list_action; $list->SQLExtWhere = 'id=1'; $list->onLoad(); // $app->listform_actions->onLoad(); ?> No newline at end of file config_edit.php 0 → 100644 +49 −0 Original line number Diff line number Diff line <?php $tform_def_file = "form/config.tform.php"; require_once('../../lib/config.inc.php'); require_once('../../lib/app.inc.php'); require_once('../hosted/lib/class.csti.php'); //* Check permissions for module $app->auth->check_module_permissions('hosted'); // Loading classes $app->uses('tpl,tform,tform_actions'); $app->load('tform_actions'); //* load language file $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'.lng'; include($lng_file); class page_action extends tform_actions { function onShowNew() { global $app, $conf, $wb; $app->tpl->setVar($wb); parent::onShowNew(); } function onShowEnd() { global $app, $conf, $wb; $app->tpl->setVar($wb); parent::onShowEnd(); } function onSubmit() { global $app, $conf, $wb; $app->tpl->setVar($wb); parent::onSubmit(); } } $page = new page_action; $page->onLoad(); ?> No newline at end of file events_list.php 0 → 100644 +44 −0 Original line number Diff line number Diff line <?php require_once('../../lib/config.inc.php'); require_once('../../lib/app.inc.php'); require_once('../hosted/lib/class.csti.php'); /****************************************** * Begin Form configuration ******************************************/ $list_def_file = "list/events.list.php"; /****************************************** * End Form configuration ******************************************/ //* Check permissions for module $app->auth->check_module_permissions('hosted'); $app->uses('listform_actions'); class list_action extends listform_actions { } $list = new list_action; if (isset($_REQUEST['vmid'])) { $_SESSION["s"]["user"]["vmid"] =$_REQUEST['vmid']; } else { if ($_SESSION["s"]["user"]["typ"]=='admin'){ unset($_SESSION["s"]["user"]["vmid"]); } } if (isset($_SESSION["s"]["user"]["vmid"])){ $SQLExtWhere = 'vmname=(select vmname from hosted where vmid="'.$_SESSION["s"]["user"]["vmid"].'")'; $list->SQLExtWhere= $SQLExtWhere; } $list->SQLOrderBy = 'ORDER BY start_time desc'; $list->onLoad(); ?> No newline at end of file form/config.tform.php 0 → 100644 +62 −0 Original line number Diff line number Diff line <?php $form["title"] = "Config"; $form["description"] = ""; $form["name"] = "Config"; $form["action"] = "config_edit.php"; $form["db_table"] = "hosted_Setup"; $form["db_table_idx"] = "id"; $form["db_history"] = "yes"; $form["tab_default"] = "details"; $form["list_default"] = "config.php"; $form["auth"] = 'yes'; // yes / no $form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user //$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user $form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete $form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete $form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete $form["tabs"]['details'] = array ( 'title' => "Config VMware", 'width' => 100, 'template' => "templates/config_edit.htm", 'fields' => array ( 'username' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '50' ), 'password' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '50' ), 'server' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '55' ), 'loglevel' => array ( 'datatype' => 'INTEGER', 'formtype' => 'SELECT', 'default' => '', 'value' => array ( 0 =>'0',1 =>'1', 2 => '2', 3 => '3' , 4 =>'4', 5 =>'5'), 'width' => '30', 'maxlength' => '10' ), ) ); ?> No newline at end of file Loading
README 0 → 100644 +90 −0 Original line number Diff line number Diff line # ISPCONFIG Module hosted ## Code repositery [GIT Server](https://git.csti.ch) [CSTI SA ](https://www.csti.ch) ## Contacts * [Facebook Company Page](https://www.facebook.com/CSTI.SA.CH) * [LinkedIn Company Page](https://www.linkedin.com/company/csti-sa) * [Twitter Company Page](https://www.twitter.com/CSTI_SA) ## Application details This application is an Add-ons for ISPConfig used for VPS management (Vmware) There is 2 level of security : * Admin * Users ## Requirements * ISPConfig 3.0.5 * mysql database (it's also a requirement for ISPConfig) * Vmware SDK ## Contribute You can create an account on our git server. ## License Copyright (c) 2013, CSTI SA All rights reserved. You are free to ditribute this module, but all changes without our consent is prohibited. Please also note that any update will erase all files. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. RELEASE NOTES : ============== Version 2.4.2 : Latest supported version in production. Manage your VPS : - Start - Shutdown - Restart - Hard Reboot (unplug the power) Display : - Power Status - VPS Status - Last Boot Time - Installed Memory - Commsumed Memory - Installed CPU - Consummed CPU - Disk Space (Total, available, usage) - Disk Partition details - Operating System Type - Operating System Details - Events logs for VPS - Events logs for this module (traking action) Admin Function - Snapshot Init (make a snapshot before go live a VPS) - Remove All Snpashots Admin Display - vCenter Server - GUID - CPU details information (consummed, max used) - Type - Runing Task - Configuration Date - Last Service Update date - Linked to Client - All Events - All Snapshots - All Template - Setup , configuration and update
config.php 0 → 100644 +36 −0 Original line number Diff line number Diff line <?php require_once('../../lib/config.inc.php'); require_once('../../lib/app.inc.php'); require_once('../hosted/lib/class.csti.php'); /****************************************** * Begin Form configuration ******************************************/ $list_def_file = "list/config.list.php"; /****************************************** * End Form configuration ******************************************/ //* Check permissions for module $app->auth->check_module_permissions('hosted'); $app->uses('listform_actions'); class list_action extends listform_actions { } $list = new list_action; $list->SQLExtWhere = 'id=1'; $list->onLoad(); // $app->listform_actions->onLoad(); ?> No newline at end of file
config_edit.php 0 → 100644 +49 −0 Original line number Diff line number Diff line <?php $tform_def_file = "form/config.tform.php"; require_once('../../lib/config.inc.php'); require_once('../../lib/app.inc.php'); require_once('../hosted/lib/class.csti.php'); //* Check permissions for module $app->auth->check_module_permissions('hosted'); // Loading classes $app->uses('tpl,tform,tform_actions'); $app->load('tform_actions'); //* load language file $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'.lng'; include($lng_file); class page_action extends tform_actions { function onShowNew() { global $app, $conf, $wb; $app->tpl->setVar($wb); parent::onShowNew(); } function onShowEnd() { global $app, $conf, $wb; $app->tpl->setVar($wb); parent::onShowEnd(); } function onSubmit() { global $app, $conf, $wb; $app->tpl->setVar($wb); parent::onSubmit(); } } $page = new page_action; $page->onLoad(); ?> No newline at end of file
events_list.php 0 → 100644 +44 −0 Original line number Diff line number Diff line <?php require_once('../../lib/config.inc.php'); require_once('../../lib/app.inc.php'); require_once('../hosted/lib/class.csti.php'); /****************************************** * Begin Form configuration ******************************************/ $list_def_file = "list/events.list.php"; /****************************************** * End Form configuration ******************************************/ //* Check permissions for module $app->auth->check_module_permissions('hosted'); $app->uses('listform_actions'); class list_action extends listform_actions { } $list = new list_action; if (isset($_REQUEST['vmid'])) { $_SESSION["s"]["user"]["vmid"] =$_REQUEST['vmid']; } else { if ($_SESSION["s"]["user"]["typ"]=='admin'){ unset($_SESSION["s"]["user"]["vmid"]); } } if (isset($_SESSION["s"]["user"]["vmid"])){ $SQLExtWhere = 'vmname=(select vmname from hosted where vmid="'.$_SESSION["s"]["user"]["vmid"].'")'; $list->SQLExtWhere= $SQLExtWhere; } $list->SQLOrderBy = 'ORDER BY start_time desc'; $list->onLoad(); ?> No newline at end of file
form/config.tform.php 0 → 100644 +62 −0 Original line number Diff line number Diff line <?php $form["title"] = "Config"; $form["description"] = ""; $form["name"] = "Config"; $form["action"] = "config_edit.php"; $form["db_table"] = "hosted_Setup"; $form["db_table_idx"] = "id"; $form["db_history"] = "yes"; $form["tab_default"] = "details"; $form["list_default"] = "config.php"; $form["auth"] = 'yes'; // yes / no $form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user //$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user $form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete $form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete $form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete $form["tabs"]['details'] = array ( 'title' => "Config VMware", 'width' => 100, 'template' => "templates/config_edit.htm", 'fields' => array ( 'username' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '50' ), 'password' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '50' ), 'server' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '55' ), 'loglevel' => array ( 'datatype' => 'INTEGER', 'formtype' => 'SELECT', 'default' => '', 'value' => array ( 0 =>'0',1 =>'1', 2 => '2', 3 => '3' , 4 =>'4', 5 =>'5'), 'width' => '30', 'maxlength' => '10' ), ) ); ?> No newline at end of file