| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('vm'); |
| | |
| | | |
| | | class page_action extends tform_actions { |
| | | |
| | | function onAfterDelete() { |
| | | global $app, $conf; |
| | | |
| | | //* Release all IP addresses which are assigned to this VM |
| | | $app->db->query("UPDATE openvz_ip SET vm_id = 0 WHERE vm_id = '".$this->id."'"); |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |