예제 #1
0
 /**
  * Action
  *
  * Actions handled by this page:
  *   new_account (form)
  *   new_account_confirm (form)
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "new_account":
             // If Continue is pressed, or form is submitted by pressing enter
             if (isset($this->post['cancel'])) {
                 // Canceled
                 $this->gotoPage("accounts_browse");
             } else {
                 // Process new account form
                 $this->process_new_account();
             }
             break;
         case "new_account_confirm":
             if (isset($this->post['continue'])) {
                 // Go ahead
                 $this->add_account();
             } 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:
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "transfer_domain":
             if (isset($this->post['continue'])) {
                 $this->verifyTransferEligible();
             }
             break;
         case "transfer_domain_service":
             if (isset($this->post['continue'])) {
                 $this->confirm();
             } elseif (isset($this->post['cancel'])) {
                 $this->cancel();
             }
             break;
         case "transfer_domain_confirm":
             if (isset($this->post['continue'])) {
                 $this->executeTransfer();
             } elseif (isset($this->post['cancel'])) {
                 $this->cancel();
             }
         default:
             // No matching action - refer to base class
             parent::action($action_name);
     }
 }
예제 #3
0
 /**
  * Action
  *
  * Actions handled by this page:
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "customer_information":
             if (isset($this->post['back'])) {
                 $this->gotoPage("cart");
             } elseif (isset($this->post['continue'])) {
                 $this->process();
             } elseif (isset($this->post['startover'])) {
                 $this->newOrder();
             }
             break;
         case "repeat_customer":
             if (isset($this->post['back'])) {
                 $this->gotoPage("cart");
             } elseif (isset($this->post['continue'])) {
                 $this->process();
             } elseif (isset($this->post['startover'])) {
                 $this->newOrder();
             }
             break;
         default:
             // No matching action, refer to base class
             parent::action($action_name);
     }
 }
 /**
  * Action
  *
  * Actions handled by this page:
  *   register_domain (form)
  *   register_domain_service (form)
  *   register_domain_customer_select (form)
  *   register_domain_customer_new (form)
  *   register_domain_confirm (form)
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "register_domain":
             if (isset($this->post['continue'])) {
                 $this->checkAvailability();
             } elseif (isset($this->post['tld'])) {
                 $this->updatePrices($this->post['tld']);
             }
             break;
         case "register_domain_service":
             if (isset($this->post['continue'])) {
                 // Proceed to confirm the domain registration
                 $this->confirm();
             } elseif (isset($this->post['cancel'])) {
                 $this->cancel();
             }
             break;
         case "register_domain_confirm":
             if (isset($this->post['continue'])) {
                 // Execute registration
                 $this->executeRegistration();
             } 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:
  *   assign_hosting (form)
  *
  * @param string $action_name Action
  */
 public function action($action_name)
 {
     switch ($action_name) {
         case "edit_hosting_purchase_action":
             if (isset($this->post['createaccount'])) {
                 $this->createAccount();
             } elseif (isset($this->post['suspendaccount'])) {
                 $this->suspendAccount();
             } elseif (isset($this->post['unsuspendaccount'])) {
                 $this->unsuspendAccount();
             } elseif (isset($this->post['killaccount'])) {
                 $this->killAccount();
             }
             break;
         case "edit_hosting_purchase":
             if (isset($this->post['save'])) {
                 $this->save();
             } 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:
  *   browse_accounts_action (form)
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         default:
             // No matching action, refer to base class
             parent::action($action_name);
     }
 }
예제 #7
0
 /**
  * Action
  *
  * Actions handled by this page:
  *   login (form)
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "login":
             $this->login();
             break;
         default:
             // No matching action, refer to base class
             parent::action($action_name);
     }
 }
예제 #8
0
 /**
  * Action
  *
  * Actions handled by this page:
  *  none
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "search_all_accounts":
             $this->searchTable("active_accounts", "accounts", $this->post);
             break;
         default:
             // No matching action, refer to base class
             parent::action($action_name);
     }
 }
예제 #9
0
 /**
  * Action
  *
  * Actions handled by this page:
  *   logout
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "logout":
             // Logout
             log_notice("Logout", "User: "******" logged out");
             session_destroy();
             $this->gotoPage("home");
             break;
         default:
             // No matching action, refer to base class
             parent::action($action_name);
     }
 }
 /**
  * Action
  *
  * Actions handled by this page:
  *   billing_payment (form)
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "billing_payment":
             if (isset($this->post['continue'])) {
                 // Add Payment
                 $this->add_payment();
             }
             break;
         default:
             // No matching action, refer to base class
             parent::action($action_name);
     }
 }
예제 #11
0
 /**
  * Action
  *
  * Actions handled by this page:
  *   browse_accounts_action (form)
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "execute_order":
             if (isset($this->session['execute_order']['cancel'])) {
                 $this->cancel();
             } elseif (isset($this->session['execute_order']['continue'])) {
                 $this->execute();
             }
             break;
         default:
             // No matching action, refer to base class
             parent::action($action_name);
     }
 }
 /**
  * Action
  *
  * Actions handled by this page:
  *   generate_invoices (form)
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "generate_invoices":
             if (isset($this->post['continue'])) {
                 // Generate Invoice Batch
                 $this->generate_invoices();
             }
             break;
         default:
             // No matching action, refer to base class
             parent::action($action_name);
             break;
     }
 }
예제 #13
0
 /**
  * Handles actions for this Page
  *
  * Actions handled by this Page:
  *   email_invoice (Form)
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "welcome_email":
             if (isset($this->session['welcome_email']['continue'])) {
                 $this->send_email();
             } elseif (isset($this->session['welcome_email']['cancel'])) {
                 $this->cancel();
             }
             break;
         default:
             // No matching action, refer to base class
             parent::action($action_name);
     }
 }
예제 #14
0
 /**
  * Action
  *
  * Actions handled by this page:
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "pso_checkout":
             if (isset($this->post['back'])) {
                 $this->gotoPage("review");
             } elseif (isset($this->post['startover'])) {
                 $this->newOrder();
             }
             break;
         default:
             // No matching action - refer to base class
             parent::action($action_name);
     }
 }
 /**
  * Action
  *
  * Actions handled by this page:
  *   none
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "outstanding_invoices_action":
             // Create a new invoice
             $this->gotoPage("accounts_add_invoice");
             break;
         case "search_outstanding_invoices":
             $this->searchTable("outstanding_invoices", "invoices", $this->post);
             break;
         default:
             // No matching action, refer to base class
             parent::action($action_name);
     }
 }
 /**
  * Action
  *
  * Actions handled by this page:
  *   login (form)
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "login":
             if (isset($this->post['login'])) {
                 $this->login();
             } elseif (isset($this->post['back'])) {
                 $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 "edit_product_purchase":
             if (isset($this->post['save'])) {
                 $this->save();
             } 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 "purchasehosting":
             if (isset($this->post['continue'])) {
                 $this->process();
             } elseif (isset($this->post['cancel'])) {
                 $this->goback();
             }
             break;
         default:
             parent::action($action_name);
             break;
     }
 }
예제 #19
0
 /**
  * Handles actions for this Page
  *
  * Actions handled by this Page:
  *   email_invoice (Form)
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "email_invoice":
             if (isset($this->post['continue'])) {
                 $this->send_invoice();
             } elseif (isset($this->post['cancel'])) {
                 $this->cancel();
             }
             break;
         default:
             // No matching action, refer to base class
             parent::action($action_name);
     }
 }
예제 #20
0
 /**
  * Action
  *
  * Actions handled by this page:
  *  remove_ip
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "ippool":
             if (isset($this->post['remove'])) {
                 $this->deleteIP();
             }
             break;
         case "search_ips":
             $this->searchTable("ippool", "ipaddresses", $this->post);
             break;
         default:
             // No matching action, refer to base class
             parent::action($action_name);
     }
 }
예제 #21
0
 /**
  * Action
  *
  * Actions handled by this page:
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "servers_action":
             if (isset($this->post['add'])) {
                 $this->gotoPage("services_add_server");
             }
             break;
         case "search_servers":
             $this->searchTable("servers", "servers", $this->post);
             break;
         default:
             // No matching action, refer to base class
             parent::action($action_name);
     }
 }
 /**
  * Actions
  *
  * Actions handled by this page:
  *   none
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "search_expired_domains":
             $this->searchTable("expired_domains", "domains", $this->post);
             break;
         case "expired_domains":
             if (isset($this->post['remove'])) {
                 $this->removeDomains();
             }
             break;
         default:
             // No matching action, refer to base class
             parent::action($action_name);
     }
 }
예제 #23
0
 /**
  * Action
  *
  * Actions handled by this page:
  *
  * @param string $action_name Action
  */
 public function action($action_name)
 {
     switch ($action_name) {
         case "whoispurchase":
             if ($this->post['option'] == "hosting") {
                 $page = "purchasehosting";
             } elseif ($this->post['option'] == "nohosting") {
                 $page = "purchasedomain";
             }
             $this->gotoPage($page, null, sprintf("domain=%s&tld=%s", $this->get['domain'], $this->get['tld']->getTLD()));
             break;
         default:
             parent::action($action_name);
             break;
     }
 }
예제 #24
0
 /**
  * Action
  *
  * Actions handled by this page:
  *   view_product_action (form)
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "view_product_action":
             if (isset($this->post['edit'])) {
                 // Edit this Domain Service
                 $this->gotoPage("services_edit_product", null, "product=" . $this->get['product']->getID());
             } elseif (isset($this->post['delete'])) {
                 // Delete this Product
                 $this->gotoPage("services_delete_product", null, "product=" . $this->get['product']->getID());
             }
             break;
         default:
             // No matching action, refer to base class
             parent::action($action_name);
     }
 }
예제 #25
0
 /**
  * Action
  *
  * Actions handled by this page:
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "creditcard":
             if (isset($this->post['authorize'])) {
                 $this->processCard();
             } elseif (isset($this->post['back'])) {
                 $this->back();
             } elseif (isset($this->post['startover'])) {
                 $this->newOrder();
             }
             break;
         default:
             // No matching action, refer to base class
             parent::action($action_name);
     }
 }
예제 #26
0
 /**
  * Action
  *
  * Actions handled by this page:
  *   new_payment
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "new_payment":
             if (isset($this->post['cancel'])) {
                 // Cancel
                 $this->goback();
             } elseif (isset($this->post['continue'])) {
                 // Add Payment
                 $this->add_payment();
             }
             break;
         default:
             // No matching action, refer to base class
             parent::action($action_name);
     }
 }
 /**
  * Action
  *
  * Actions handled by this page:
  *   delete_account (form)
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "delete_account":
             if (isset($this->session['delete_account']['delete'])) {
                 // Delete
                 $this->delete_account();
             } elseif (isset($this->session['delete_account']['cancel'])) {
                 // Cancel
                 $this->goback();
             }
             break;
         default:
             // No matching action, refer to base class
             parent::action($action_name);
     }
 }
 /**
  * Action
  *
  * Actions handled by this page:
  *  browse_accounts_action (form)
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "inactive_accounts_action":
             if (isset($this->session['inactive_accounts_action']['add'])) {
                 // Goto new account page
                 $this->gotoPage("accounts_new_account");
             }
             break;
         case "search_inactive_accounts":
             $this->searchTable("inactive_accounts", "accounts", $this->post);
             break;
         default:
             // No matching action, refer to base class
             parent::action($action_name);
     }
 }
예제 #29
0
 /**
  * Action
  *
  * Actions handled by this page:
  *   browse_accounts_action (form)
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "order":
             if (isset($this->post['execute'])) {
                 $this->execute();
             } elseif (isset($this->post['save'])) {
                 $this->save();
             } elseif (isset($this->post['delete'])) {
                 $this->delete();
             }
             break;
         default:
             // No matching action, refer to base class
             parent::action($action_name);
     }
 }
 /**
  * Action
  *
  * Actions handled by this page:
  *   view_hosting_action (form)
  *
  * @param string $action_name Action
  */
 function action($action_name)
 {
     switch ($action_name) {
         case "view_hosting_action":
             if (isset($this->post['edit'])) {
                 // Edit this Hosting Service
                 $this->gotoPage("services_edit_hosting", null, "hservice=" . $this->get['hservice']->getID());
             } elseif (isset($this->post['delete'])) {
                 // Delete this Hosting Service
                 $this->gotoPage("services_delete_hosting", null, "hservice=" . $this->get['hservice']->getID());
             }
             break;
         default:
             // No matching action, refer to base class
             parent::action($action_name);
     }
 }