Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 03/28/2015 in all areas

  1. It's dead simple, just a copy of unsuspend/suspend but with a dif api function and the plan as an argument. public function changeServicePackage($package_from, $package_to, $service, $parent_package=null, $parent_service=null) { if (($row = $this->getModuleRow())) { $api = $this->getApi($row->meta->user_id, $row->meta->key, $row->meta->host, $row->meta->port); $api->loadCommand("solusvm_vserver"); $service_fields = $this->serviceFieldsToObject($service->fields); // Attempt to change the virtual server plan try { // Load up the Virtual Server API $vserver_api = new SolusvmVserver($api); $params = array('vserverid' => $service_fields->solusvm_vserver_id, 'plan' => $package_to->meta->plan); // Change the Virtual Server Plan $this->log($row->meta->host . "|vserver-change", serialize($params), "input", true); $response = $this->parseResponse($vserver_api->change($params), $row); } catch (Exception $e) { // Internal Error $this->Input->setErrors(array('api' => array('internal' => Language::_("Solusvm.!error.api.internal", true)))); return; } } return null; }
    1 point
  2. Just use robots.txt and block from google and other bots.you can use this links and generate your robots.txt http://tools.seobook.com/robots-txt/generator/
    1 point
  3. serge

    Logicboxes Domains

    same line as you ;-)
    1 point
  4. PauloV

    Logicboxes Domains

    Great finding. This is a BIG problem, I have tested and can confirm this issue (latest Blesta 3.4.3), this cannot, ever, never, happen on Domains On Domains people only have to have the option to Change "Terms" and not "Change Package" I consider this as a BUG, because its not the intended way for Domains to Work. I Will open a BUG post for this to be resolved
    1 point
  5. Michael

    Logicboxes Domains

    I've never thought about that myself, but you can do groups and edit a file if you can find where the upgrade and downgrade button is and do it per product. We do this for alerts. <?php $checkproducts = $this->Html->ifSet($package->name); if($checkproducts == 'Product Name'){ ?> Stuff when this package is shown <?php }else{ ?> Stuff when it's not <?php } ?>
    1 point
×
×
  • Create New...