Esempio n. 1
0
 /**
  * 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);
 }
 /**
  * Initialize Delete Hosting Service Page
  */
 function init()
 {
     parent::init();
     // Set URL Fields
     $this->setURLField("hservice", $this->get['hservice']->getID());
     // Store service DBO in session
     $this->session['hosting_dbo'] =& $this->get['hservice'];
 }
 /**
  * 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 Delete Product Page
  */
 function init()
 {
     parent::init();
     // Set URL Fields
     $this->setURLField("product", $this->get['product']->getID());
     // Store service DBO in session
     $this->session['product_dbo'] =& $this->get['product'];
 }
 /**
  * Initialize Delete Domain Service Page
  */
 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'];
 }
 /**
  * Initialize AddIPAddress Page
  */
 function init()
 {
     parent::init();
     // Set URL Fields
     $this->setURLField("server", $this->get['server']->getID());
     // Store Server DBO in session
     $this->session['server_dbo'] =& $this->get['server'];
 }
Esempio n. 7
0
 /**
  * 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 ViewLogMessage Page
  */
 function init()
 {
     parent::init();
     // Set URL Fields
     $this->setURLField("log", $this->get['log']->getID());
     // Store Account DBO in session
     $this->session['logdbo'] =& $this->get['log'];
     // Set this page's Nav Vars
     $this->setNavVar("id", $this->get['log']->getID());
 }
 /**
  * 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 Edit Product Page
  */
 function init()
 {
     parent::init();
     // Set URL Fields
     $this->setURLField("product", $this->get['product']->getID());
     // Store service DBO in session
     $this->session['product_dbo'] =& $this->get['product'];
     // Setup the pricing table
     $ptw = $this->forms['edit_product_pricing']->getField("prices")->getWidget();
     $ptw->setPrices($this->get['product']->getPricing());
 }
Esempio n. 11
0
 /**
  * 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 Delete Server Page
  */
 function init()
 {
     parent::init();
     // Set URL Fields
     $this->setURLField("server", $this->get['server']->getID());
     // Store Server DBO in session
     $this->session['server_dbo'] =& $this->get['server'];
     // Set this page's Nav Vars
     $this->setNavVar("id", $this->get['server']->getID());
     $this->setNavVar("hostname", $this->get['server']->getHostName());
 }
Esempio n. 13
0
 /**
  * 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 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");
 }
 /**
  * Initialize the Edit Hosting Service Page
  */
 public function init()
 {
     parent::init();
     // Set URL Fields
     $this->setURLField("hservice", $this->get['hservice']->getID());
     // Store service DBO in session
     $this->session['hosting_dbo'] =& $this->get['hservice'];
     $this->smarty->assign_by_ref("serviceDBO", $this->get['hservice']);
     // Setup the pricing table
     $ptw = $this->forms['edit_hosting_pricing']->getField("prices")->getWidget();
     $ptw->setPrices($this->get['hservice']->getPricing());
 }
 /**
  * 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) {
     }
 }
Esempio n. 17
0
 /**
  * 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());
 }
Esempio n. 18
0
 /**
  * Initialize Edit Server Page
  */
 function init()
 {
     parent::init();
     // Set URL Field
     $this->setURLField("server", $this->get['server']->getID());
     // Store Server DBO in session
     $this->session['server_dbo'] =& $this->get['server'];
     // Set this page's Nav Vars
     $this->setNavVar("id", $this->get['server']->getID());
     $this->setNavVar("hostname", $this->get['server']->getHostName());
     // Setup the module drop-down
     $widget = $this->forms['edit_server']->getField("cpmodule")->getWidget();
     $validator = $this->forms['edit_server']->getField("cpmodule")->getValidator();
     $widget->setType("controlpanel");
     $validator->setType("controlpanel");
 }
Esempio n. 19
0
 /**
  * Initialize Settings Page
  */
 public function init()
 {
     parent::init();
     $this->smarty->assign("company_name", $this->conf['company']['name']);
     $this->smarty->assign("company_email", $this->conf['company']['email']);
     $this->smarty->assign("company_notification_email", $this->conf['company']['notification_email']);
     $this->smarty->assign("confirmation_subject", $this->conf['order']['confirmation_subject']);
     $this->smarty->assign("confirmation_email", $this->conf['order']['confirmation_email']);
     $this->smarty->assign("notification_subject", $this->conf['order']['notification_subject']);
     $this->smarty->assign("notification_email", $this->conf['order']['notification_email']);
     $this->smarty->assign("welcome_subject", $this->conf['welcome_subject']);
     $this->smarty->assign("welcome_email", $this->conf['welcome_email']);
     $this->smarty->assign("nameservers_ns1", $this->conf['dns']['nameservers'][0]);
     $this->smarty->assign("nameservers_ns2", $this->conf['dns']['nameservers'][1]);
     $this->smarty->assign("nameservers_ns3", $this->conf['dns']['nameservers'][2]);
     $this->smarty->assign("nameservers_ns4", $this->conf['dns']['nameservers'][3]);
     $this->smarty->assign("invoice_text", $this->conf['invoice_text']);
     $this->smarty->assign("invoice_subject", $this->conf['invoice_subject']);
     $this->smarty->assign("currency", $this->conf['locale']['currency_symbol']);
     $this->smarty->assign("default_gateway", $this->conf['payment_gateway']['default_module']);
     $this->smarty->assign("order_title", $this->conf['order']['title']);
     $this->smarty->assign("order_accept_checks", $this->conf['order']['accept_checks'] ? "true" : "false");
     $this->smarty->assign("order_tos_required", $this->conf['order']['tos_required'] ? "true" : "false");
     $this->smarty->assign("order_tos_url", $this->conf['order']['tos_url']);
     $this->smarty->assign("managerTheme", $this->conf['themes']['manager']);
     $this->smarty->assign("orderTheme", $this->conf['themes']['order']);
     // This flag indicates if any payment_gateway modules are enabled
     $modules = $this->forms['settings_payment_gateway']->getField("default_module")->getWidget()->getData();
     $this->smarty->assign("gatewaysAreEnabled", !empty($modules));
     // Setup the theme select boxes
     $mtField = $this->forms['settings_themes']->getField("managertheme");
     $otField = $this->forms['settings_themes']->getField("ordertheme");
     $mtField->getWidget()->setType("manager");
     $otField->getWidget()->setType("order");
     $mtField->getValidator()->setType("manager");
     $otField->getValidator()->setType("order");
 }
 /**
  * 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();
 }