/**
  * Action
  *
  * Actions handled by this page:
  *   new_user_action (form)
  *   new_user (form)
  *   new_user_confirm (form)
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "new_user_action":
             if (isset($this->session['new_user_action']['add'])) {
                 $this->gotoPage("config_new_user");
             } elseif (isset($this->session['new_user_action']['view'])) {
                 $this->gotoPage("config_users");
             }
             break;
         case "new_user":
             // Client submited a new_user form - process it
             $this->process_new_user();
             break;
         case "new_user_confirm":
             if (isset($this->session['new_user_confirm']['continue'])) {
                 // Go ahead
                 $this->add_user();
             } else {
                 // Go back
                 $this->setTemplate("default");
             }
             break;
         default:
             // No matching action, refer to base class
             parent::action($action_name);
     }
 }
 /**
  * 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);
     }
 }
 /**
  * Action
  *
  * Actions handled by this page:
  *   edit_user (form)
  *   edit_user_pass (form)
  *   edit_user_action (form)
  *   delete (form)
  *   delete_user_confirm (form)
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "edit_user":
             // Update user information
             $this->update_user();
             break;
         case "edit_user_pass":
             // Update user's password
             $this->update_password();
             break;
         case "edit_user_action":
         case "delete":
             // Confirm this user's removal
             $this->confirm_delete_user();
             break;
         case "delete_user_confirm":
             if (isset($this->post['continue'])) {
                 // Delete the user
                 $this->delete_user();
             } else {
                 // Go back
                 $this->goback();
             }
             break;
         default:
             // No matching action, refer to base class
             parent::action($action_name);
     }
 }
 /**
  * Action
  *
  * Actions handled by this page:
  *   edit_domain_service (form)
  *
  * @param string $action_name Action
  */
 public function action($action_name)
 {
     switch ($action_name) {
         case "edit_domain_service":
             if (isset($this->post['save'])) {
                 // Save changes
                 $this->update_domain_service();
             } elseif (isset($this->post['cancel'])) {
                 // Cancel (return to view page)
                 $this->goback();
             }
             break;
         case "edit_domain_pricing":
             if (isset($this->post['delete'])) {
                 $this->deletePrice();
             }
             break;
         case "edit_domain_add_price":
             if (isset($this->post['add'])) {
                 $this->addPrice();
             }
             break;
         default:
             // No matching action, refer to base class
             parent::action($action_name);
     }
 }
 function action($action_name)
 {
     switch ($action_name) {
         case "new_module":
             $this->add_module();
             break;
         default:
             parent::action($action_name);
     }
 }
 /**
  * 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:
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "asianpay_config":
             if (isset($this->post['save'])) {
                 $this->save();
             }
             break;
         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);
     }
 }
 /**
  * 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:
  *   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:
  *
  * @param string $action_name Action
  */
 public function action($action_name)
 {
     switch ($action_name) {
         case "cp_server_config":
             if (isset($this->post['cancel'])) {
                 $this->goback();
             } elseif (isset($this->post['save'])) {
                 $this->save();
             }
             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_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:
  *   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);
     }
 }
 /**
  * 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_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:
  *   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);
     }
 }
 /**
  * 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);
     }
 }
 /**
  * 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);
     }
 }