/**
  * Action
  *
  * Actions handled by this page:
  *   edit_product (form)
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "edit_product":
             if (isset($this->post['save'])) {
                 // Save changes
                 $this->update_product();
             } elseif (isset($this->post['cancel'])) {
                 // Cancel
                 $this->goback();
             }
             break;
         case "edit_product_pricing":
             if (isset($this->post['delete'])) {
                 $this->deletePrice();
             }
         case "edit_product_add_price":
             if (isset($this->post['add'])) {
                 $this->addPrice();
             }
             break;
         default:
             // No matching action, refer to base class
             parent::action($action_name);
     }
 }
 /**
  * Initialize Page
  */
 public function init()
 {
     parent::init();
     // Supply the module to the template
     $this->CPModule = ModuleRegistry::getModuleRegistry()->getModule("cpanel");
     $this->smarty->assign_by_ref("CPModule", $this->CPModule);
 }
 /**
  * Action
  *
  * Actions handled by this page:
  *   edit_hosting (form)
  *
  * @param string $action_name Action
  */
 public function action($action_name)
 {
     switch ($action_name) {
         case "edit_hosting":
             if (isset($this->post['save'])) {
                 // Save changes
                 $this->update_hosting_service();
                 $this->goback();
             } elseif (isset($this->post['cancel'])) {
                 // Cancel (return to view page)
                 $this->goback();
             }
             break;
         case "edit_hosting_pricing":
             if (isset($this->post['delete'])) {
                 $this->deletePrice();
             }
         case "edit_hosting_add_price":
             if (isset($this->post['add'])) {
                 $this->addPrice();
             }
             break;
         default:
             // No matching action, refer to base class
             parent::action($action_name);
     }
 }
 /**
  * Initialize the Page
  */
 public function init()
 {
     parent::init();
     // Setup the theme preference field
     $tpField = $this->forms['new_user']->getField("theme");
     $tpField->getWidget()->setType("manager");
     $tpField->getValidator()->setType("manager");
 }
 /**
  * Initialize Page
  */
 public function init()
 {
     parent::init();
     // Populate the form
     $module = ModuleRegistry::getModuleRegistry()->getModule("enom");
     $this->smarty->assign("enomusername", $module->getUsername());
     $this->smarty->assign("enompassword", $module->getPassword());
     $this->smarty->assign("apirul", $module->getAPIURL());
 }
 /**
  * Initialize the Page
  */
 function init()
 {
     parent::init();
     $registry = ModuleRegistry::getModuleRegistry();
     $this->asianpayModule = $registry->getModule("Asianpay");
     $this->smarty->assign("accountid", $this->asianpayModule->getAccountid());
     $this->smarty->assign("receiverid", $this->asianpayModule->getReceiverid());
     $this->smarty->assign("secretcode", $this->asianpayModule->getSecretcode());
     $this->smarty->assign("receiveremail", $this->asianpayModule->getReceiveremail());
 }
 /**
  * Initialize the Page
  */
 function init()
 {
     parent::init();
     // Load the form values with Module settings
     $registry = ModuleRegistry::getModuleRegistry();
     $this->ppModule = $registry->getModule('paypalwps');
     $this->smarty->assign("account", $this->ppModule->getAccount());
     $this->smarty->assign("cartURL", $this->ppModule->getCartURL());
     $this->smarty->assign("idToken", $this->ppModule->getIdToken());
     $this->smarty->assign("currency", $this->ppModule->getCurrencyCode());
 }
 /**
  * Initialize the Page
  */
 function init()
 {
     parent::init();
     // Load the form values with Module settings
     $registry = ModuleRegistry::getModuleRegistry();
     $this->aaimModule = $registry->getModule("authorizeaim");
     $this->smarty->assign("delimiter", $this->aaimModule->getDelimiter());
     $this->smarty->assign("loginid", $this->aaimModule->getLoginID());
     $this->smarty->assign("transactionkey", $this->aaimModule->getTransactionKey());
     $this->smarty->assign("transactionurl", $this->aaimModule->getURL());
 }
 /**
  * Initialize Edit User Page
  */
 function init()
 {
     parent::init();
     // Set URL Fields
     $this->setURLField("user", $this->get['user']->getUsername());
     // Store user DBO in session so it can be displayed in the edit form
     $this->session['edit_user_dbo'] =& $this->get['user'];
     // Setup the theme preference field
     $tpField = $this->forms['edit_user']->getField("theme");
     $tpField->getWidget()->setType("manager");
     $tpField->getValidator()->setType("manager");
 }
 /**
  * Action
  *
  * Actions handled by this page:
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "view_log_message":
             if (isset($this->session['view_log_message']['back'])) {
                 $this->goback();
             }
         default:
             // No matching action, refer to base class
             parent::action($action_name);
     }
 }
 /**
  * Action
  *
  * Actions handled by this page:
  *   edit_server (form)
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "edit_server":
             if (isset($this->post['save'])) {
                 $this->save();
             } elseif (isset($this->post['cancel'])) {
                 $this->goback();
             }
         default:
             // No matching action, refer to base class
             parent::action($action_name);
     }
 }
 /**
  * Initialize Page
  */
 public function init()
 {
     parent::init();
     // Populate the form
     $this->smarty->assign("hostname", $this->get['server']->getHostName());
     // Set URL fields
     $this->setURLField("server", $this->get['server']->getID());
     try {
         $CSDBO = load_CPanelServerDBO($this->get['server']->getID());
         $this->smarty->assign("WHMUsername", $CSDBO->getUsername());
         $this->smarty->assign("accessHash", $CSDBO->getAccessHash());
     } catch (DBNoRowsFoundException $e) {
     }
 }
 /**
  * Action
  *
  * Actions handled by this page:
  *   delete_domain_service (form)
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "delete_domain_service":
             if (isset($this->post['delete'])) {
                 $this->delete_domain_service();
             } elseif (isset($this->post['cancel'])) {
                 $this->cancel();
             }
             break;
         default:
             // No matching action, refer to base class
             parent::action($action_name);
     }
 }
 /**
  * Action
  *
  * Actions handled by this page:
  *   delete_server (form)
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "delete_server":
             if (isset($this->post['delete'])) {
                 $this->deleteServer();
             } else {
                 $this->goback();
             }
             break;
         default:
             // No matching action, refer to base class
             parent::action($action_name);
     }
 }
 /**
  * Action
  *
  * Actions handled by this page:
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "add_server":
             if (isset($this->post['continue'])) {
                 $this->add_server();
             } elseif (isset($this->post['cancel'])) {
                 $this->goback();
             }
             break;
         default:
             // No matching action, refer to base class
             parent::action($action_name);
     }
 }
 /**
  * Action
  *
  * Actions handled by this page:
  *   delete_product (form)
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "delete_product":
             if (isset($this->post['delete'])) {
                 $this->delete_product();
             } elseif (isset($this->post['cancel'])) {
                 $this->goback();
             }
             break;
         default:
             // No matching action, refer to base class
             parent::action($action_name);
     }
 }
 /**
  * Action
  *
  * Actions handled by this page:
  *   new_tax_rule (form)
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "new_tax_rule":
             if (isset($this->post['continue'])) {
                 $this->addTaxRule();
                 $this->cancel();
             } else {
                 $this->cancel();
             }
             break;
         default:
             // No matching action, refer to base class
             parent::action($action_name);
     }
 }
 /**
  * Initialize the Page
  */
 function init()
 {
     parent::init();
     // Load the form values with Module settings
     $registry = ModuleRegistry::getModuleRegistry();
     $this->rcModule = $registry->getModule('resellerclub');
     $this->smarty->assign("rcusername", $this->rcModule->getUsername());
     $this->smarty->assign("password", $this->rcModule->getPassword());
     $this->smarty->assign("resellerid", $this->rcModule->getResellerID());
     $this->smarty->assign("parentid", $this->rcModule->getParentID());
     $this->smarty->assign("role", $this->rcModule->getRole());
     $this->smarty->assign("langpref", $this->rcModule->getLangPref());
     $this->smarty->assign("serviceurl", $this->rcModule->getServiceURL());
     $this->smarty->assign("debug", $this->rcModule->getDebug());
     $this->smarty->assign("defaultcustomerpassword", $this->rcModule->getDefaultCustomerPassword());
 }
 /**
  * Action
  *
  * Actions handled by this page:
  *   new_hosting (form)
  *   new_hosting_confirm (form)
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "new_hosting":
             if (isset($this->session['new_hosting']['cancel'])) {
                 // Canceled
                 $this->goback();
             }
             // Process new hosting service form
             $this->add_hosting();
             break;
         default:
             // No matching action - refer to base class
             parent::action($action_name);
     }
 }
 /**
  * Action
  *
  * Actions handled by this page:
  *   users_action (form)
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "users_action":
             if (isset($this->post['add'])) {
                 $this->gotoPage("config_new_user");
             }
             break;
         case "search_users":
             $this->searchTable("users", "users", $this->post);
             break;
         default:
             // No matching action, refer to base class
             parent::action($action_name);
     }
 }
 /**
  * Action
  *
  * Actions handled by this page:
  *   new_domain_service (form)
  *   new_domain_service_confirm (form)
  *
  * @param string $action_name Action
  */
 public function action($action_name)
 {
     switch ($action_name) {
         case "new_domain_service":
             if (isset($this->post['continue'])) {
                 // Process new hosting service form
                 $this->add_domain_service();
             } elseif (isset($this->post['cancel'])) {
                 // Canceled
                 $this->goback();
             }
             break;
         default:
             // No matching action - refer to base class
             parent::action($action_name);
     }
 }
Example #22
0
 /**
  * Action
  *
  * Actions handled by this page:
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "modules":
             if (isset($this->post['update'])) {
                 $this->updateModules();
             }
             break;
         case "modules_action":
             if (isset($this->post['add'])) {
                 $this->gotoPage("config_new_module");
             }
             break;
         default:
             // No matching action, refer to base class
             parent::action($action_name);
     }
 }
 /**
  * Action
  *
  * Actions handled by this page:
  *  add_ip_address (form)
  *  add_ip_confirm (form)
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "add_ip_address":
             if (isset($this->post['continue'])) {
                 // Confirm step
                 $this->confirm();
             } else {
                 $this->goback();
             }
             break;
         case "add_ip_confirm":
             if (isset($this->post['continue'])) {
                 // Add IP addresses
                 $this->add_ip_addresses();
             } else {
                 $this->goback();
             }
             break;
         default:
             // No matching action, refer to base class
             parent::action($action_name);
     }
 }
 /**
  * Initialize the Edit Domain Serivce Page
  */
 public function init()
 {
     parent::init();
     // Set URL Fields
     $this->setURLField("dservice", $this->get['dservice']->getTLD());
     // Store service DBO in session
     $this->session['domain_service_dbo'] =& $this->get['dservice'];
     // Setup the pricing table
     $ptw = $this->forms['edit_domain_pricing']->getField("prices")->getWidget();
     $ptw->setPrices($this->get['dservice']->getPricing());
 }
 /**
  * Initialize the Page
  */
 public function init()
 {
     parent::init();
 }
 /**
  * Action
  *
  * Actions handled by this page:
  *   general
  *   dns
  *   billing
  *   locale
  *   order
  *   settings_company (form)
  *   settings_welcome (form)
  *   settings_nameservers (form)
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "settings_general":
             $this->updateGeneral();
             break;
         case "settings_themes":
             $this->updateThemes();
             break;
         case "settings_nameservers":
             $this->update_nameservers();
             break;
         case "settings_invoice":
             $this->update_invoice();
             break;
         case "settings_locale":
             $this->update_locale();
             break;
         case "settings_payment_gateway":
             $this->update_payment_gateway();
             break;
         case "settings_order_interface":
             $this->updateOrderInterface();
             break;
         default:
             // No matching action, refer to base class
             parent::action($action_name);
     }
 }