@@ -32,8 +32,6 @@ public function configs(){
3232 'Default Location ' => ['Type ' => 'dropdown ' , 'Options ' => $ this ->getZoneLocation ()],
3333 'Plan ' => ['Type ' => 'dropdown ' , 'Options ' => $ this ->getVmplans ()],
3434 'Template ' => ['Type ' => 'dropdown ' , 'Options ' => $ this ->getTemplateIds ()],
35- //'Backup' => ['Type' => 'dropdown', 'Options' => $this->getBackups()],
36- //'Networking' => ['Type' => 'dropdown', 'Options' => $this->getNetworking()],
3735 ];
3836 }
3937
@@ -84,16 +82,6 @@ private function createBackupFields($groupId, $backup){
8482 }
8583 }
8684
87- private function createIPFields ($ groupId , $ ips ){
88- $ optionId = Capsule::table ('tblproductconfigoptions ' )->where ('gid ' , $ groupId )->where ('optionname ' , 'ipaddress|IP Address ' )->first ()->id ;
89- if (!$ optionId ){
90- $ optionId = Capsule::table ('tblproductconfigoptions ' )->insertGetId (['gid ' => $ groupId , 'optionname ' => 'ipaddress|IP Address ' , 'optiontype ' => 1 ]);
91- foreach ($ ips as $ id => $ val ) {
92- Capsule::table ('tblproductconfigoptionssub ' )->updateOrInsert (['optionname ' => $ id .'| ' .$ val ], ['configid ' => $ optionId ]);
93- }
94- }
95- }
96-
9785 private function createRAMFields ($ groupId , $ currencyId , $ currencyCode ){
9886 $ mems = array ();
9987 for ($ i = 4 ; $ i <= 64 ; $ i += 1 ) {
0 commit comments