public static function GetTestConfigurationForm() { $CF = new DataForm(); $CF->AppendField(new DataFormField("SSLCertPath", FORM_FIELD_TYPE::TEXT, "Path to SSL certificate", 1)); $CF->AppendField(new DataFormField("SSLCertPass", FORM_FIELD_TYPE::TEXT, "SSL private key password", 1)); return $CF; }
/** * Must return a DataForm object that will be used to draw a configuration form for this module. * @return DataForm object */ public static function GetConfigurationForm() { $Form = new DataForm(); $Form->AppendField(new DataFormField("ServerHost", FORM_FIELD_TYPE::TEXT, "API hostname", 1)); $Form->AppendField(new DataFormField("Login", FORM_FIELD_TYPE::TEXT, "Reseller Login", 1)); $Form->AppendField(new DataFormField("Password", FORM_FIELD_TYPE::TEXT, "Reseller Password", 1)); return $Form; }
public function GetTestConfigurationForm() { $Conf = new DataForm(); $Conf->AppendField(new DataFormField("Email", FORM_FIELD_TYPE::TEXT, "SRSPlus partner e-mail", 1)); $Conf->AppendField(new DataFormField("Login", FORM_FIELD_TYPE::TEXT, "SRSPlus partner ID", 1)); $Conf->AppendField(new DataFormField("Host", FORM_FIELD_TYPE::TEXT, "SRSPlus host", 1, null, 'testsrs.srsplus.com')); $Conf->AppendField(new DataFormField("GPGPass", FORM_FIELD_TYPE::TEXT, "GPG password", 1)); return $Conf; }
/** * Must return a DataForm object that will be used to draw a configuration form for this module. * @return DataForm object */ public function GetConfigurationForm() { $ConfigurationForm = new DataForm(); $ConfigurationForm->AppendField( new DataFormField("business", FORM_FIELD_TYPE::TEXT, "Business E-mail")); $ConfigurationForm->AppendField( new DataFormField("receiver", FORM_FIELD_TYPE::TEXT, "Receiver E-mail")); $ConfigurationForm->AppendField( new DataFormField("isdemo", FORM_FIELD_TYPE::CHECKBOX , "Test mode", 1)); return $ConfigurationForm; }
/** * Must return a DataForm object that will be used to draw a configuration form for this module. * @return DataForm object */ public static function GetConfigurationForm() { $ConfigurationForm = new DataForm(); $ConfigurationForm->AppendField(new DataFormField("ServerHost", FORM_FIELD_TYPE::TEXT, "EPP Host", 1)); $ConfigurationForm->AppendField(new DataFormField("Login", FORM_FIELD_TYPE::TEXT, "EPP Login", 1)); $ConfigurationForm->AppendField(new DataFormField("Password", FORM_FIELD_TYPE::TEXT, "EPP Password", 1)); $ConfigurationForm->AppendField(new DataFormField("ServerPort", FORM_FIELD_TYPE::TEXT, "EPP port", 1)); return $ConfigurationForm; }
/** * You must construct and return DataForm object. * @return DataForm Form template object */ public function GetPaymentForm() { $ConfigurationForm = new DataForm(); $ConfigurationForm->AppendField( new DataFormField("ccn", FORM_FIELD_TYPE::TEXT, "Credit Card Number", 1)); $ConfigurationForm->AppendField( new DataFormField("ctype", FORM_FIELD_TYPE::SELECT, "Credit Card Type", 1, array('VISA' => 'VISA', 'American Express' => 'American Express (AMEX)', 'Euroline' => 'Euroline', 'MasterCard' => 'MasterCard'))); $ConfigurationForm->AppendField( new DataFormField("Expdate", FORM_FIELD_TYPE::DATE , "Credit Card Expiration", 1)); $ConfigurationForm->AppendField( new DataFormField("cvv", FORM_FIELD_TYPE::TEXT , "Credit Card CVV Number", 1)); return $ConfigurationForm; }
public static function GetConfigurationForm() { $ConfigurationForm = new DataForm(); $ConfigurationForm->AppendField(new DataFormField("Login", FORM_FIELD_TYPE::TEXT, "Login", 1)); $ConfigurationForm->AppendField(new DataFormField("Password", FORM_FIELD_TYPE::TEXT, "Password", 1)); $ConfigurationForm->AppendField(new DataFormField("APIUrl", FORM_FIELD_TYPE::TEXT, "API url", 1)); $ConfigurationForm->AppendField(new DataFormField("Timeout", FORM_FIELD_TYPE::TEXT, "Timeout", 1)); $ConfigurationForm->AppendField(new DataFormField("PromotionCodes", FORM_FIELD_TYPE::TEXTAREA, "Promotion codes", 0, array(), null, null, "You may have a promotion code for several TLD registrations.<br>Enter TLD and it's promotion code separated by space (one pair per line).<br>\n\t\t\t<br><b>Example:</b><br>\n\t\t\t<pre>info infopromo711\ntel telpromoX65</pre>")); return $ConfigurationForm; }
/** * Must return a DataForm object that will be used to draw a configuration form for this module. * @return DataForm object */ public static function GetConfigurationForm() { $ConfigForm = new DataForm(); $ConfigForm->AppendField(new DataFormField("ServerHost", FORM_FIELD_TYPE::TEXT, "EPP Host", 1)); $ConfigForm->AppendField(new DataFormField("Login", FORM_FIELD_TYPE::TEXT, "EPP Login", 1)); $ConfigForm->AppendField(new DataFormField("Password", FORM_FIELD_TYPE::TEXT, "EPP Password", 1)); $ConfigForm->AppendField(new DataFormField("ServerPort", FORM_FIELD_TYPE::TEXT, "Server port", 1)); $ConfigForm->AppendField(new DataFormField("NotificationEmailAddress", FORM_FIELD_TYPE::TEXT, "Notification email address", 0, null, null, null, "Used for IDN registrations during sunrise period February 1st 2010 — March 31st 2010")); return $ConfigForm; }
public static function GetConfigurationForm() { $Config = new DataForm(); $Config->AppendField(new DataFormField("Login", FORM_FIELD_TYPE::TEXT, "Login", 1)); $Config->AppendField(new DataFormField("Password", FORM_FIELD_TYPE::TEXT, "Password", 1)); $Config->AppendField(new DataFormField("ServerHost", FORM_FIELD_TYPE::TEXT, "Server host", 1)); $Config->AppendField(new DataFormField("ServerPort", FORM_FIELD_TYPE::TEXT, "Server port", 1)); $Config->AppendField(new DataFormField("BillingContactCLID", FORM_FIELD_TYPE::TEXT, "Billing contact CLID", 1, null, null, null, "Create it in EURid registrar panel")); return $Config; }
/** * @return DataForm */ public function GetTestConfigurationForm () { $CF = new DataForm(); $CF->AppendField(new DataFormField("ServerHost", FORM_FIELD_TYPE::TEXT , "Server host", 1)); $CF->AppendField(new DataFormField("ServerPort", FORM_FIELD_TYPE::TEXT , "Server port", 1)); $CF->AppendField(new DataFormField("Login", FORM_FIELD_TYPE::TEXT, "Login", 1)); $CF->AppendField(new DataFormField("Password", FORM_FIELD_TYPE::TEXT, "Password", 1)); $CF->AppendField(new DataFormField("NewPassword", FORM_FIELD_TYPE::TEXT, "New password", 1)); return $CF; }
public static function GetConfigurationForm() { $ConfigurationForm = new DataForm(); $ConfigurationForm->SetInlineHelp("You must set <b>viaPoll</b> = <b>Yes</b> under <i>Registrar > Update registrar details</i> in your SIDN registrar panel"); $ConfigurationForm->AppendField(new DataFormField("Login", FORM_FIELD_TYPE::TEXT, "Login", 1)); $ConfigurationForm->AppendField(new DataFormField("Password", FORM_FIELD_TYPE::TEXT, "Passsword", 1)); $ConfigurationForm->AppendField(new DataFormField("ServerHost", FORM_FIELD_TYPE::TEXT, "Server host", 1)); $ConfigurationForm->AppendField(new DataFormField("ServerPort", FORM_FIELD_TYPE::TEXT, "Server port", 1)); $ConfigurationForm->AppendField(new DataFormField("RegistrarCLID", FORM_FIELD_TYPE::TEXT, "Registrar EPP clID", 1)); return $ConfigurationForm; }
/** * You must construct and return DataForm object. * @return DataForm Form template object */ public function GetConfigurationForm() { $Form = new DataForm(); $Form->SetInlineHelp(sprintf("You must configure your Webmoney account before you can use this module. <br>" . "Log in to Merchant WebMoney Transfer and open configuration screen.<br>" . "• Set <b>Result URL</b> to <b>%s</b><br>" . "• Set <b>Success URL</b> to <b>%s</b><br>" . "• Set <b>Fail URL</b> to <b>%s</b><br>" . "• Set <b>Checksum method</b> to <b>MD5</b><br>" . "• Make sure that <b>Secret key</b> in the form below matches the corresponding field in your Merhant configuration form.", CONFIG::$SITE_URL . "/ipn.php", CONFIG::$SITE_URL . "/payment_success.php", CONFIG::$SITE_URL . "/payment_failed.php")); $Form->AppendField(new DataFormField('Purse', FORM_FIELD_TYPE::TEXT, 'Purse ID', true)); $Form->AppendField(new DataFormField('SecretKey', FORM_FIELD_TYPE::TEXT, 'Secret key', true)); // TODO: in future versions //$Form->AppendField(new DataFormField('ChecksumAlgo', FORM_FIELD_TYPE::SELECT, 'Checksum algorithm', true, array('MD5' => 'MD5', 'WM' => 'SIGN'))); //$Form->AppendField(new DataFormField('WMCertPath', FORM_FIELD_TYPE::TEXT, 'WebMoney certificate path', true)); $Form->AppendField(new DataFormField('TestPaymentSuccess', FORM_FIELD_TYPE::CHECKBOX, 'Test payment success')); return $Form; }
/** * Must return a DataForm object that will be used to draw a configuration form for this module. * @return DataForm object */ public function GetConfigurationForm() { $ConfigurationForm = new DataForm(); $ConfigurationForm->SetInlineHelp(sprintf("You must configure your Setcom account before you can use this module. <br>Log in to SetCom, go to <b>Profile->Selling Preferences->Website Payment Preferences</b>, enable 'Auto-Redirect' and set 'Redirect URL' to <b>%s</b>", CONFIG::$SITE_URL."/ipn.php")); $ConfigurationForm->AppendField( new DataFormField("MerchantIdentifier", FORM_FIELD_TYPE::TEXT, "Merchant Identifier", 1)); $ConfigurationForm->AppendField( new DataFormField("CurrencyAlphaCode", FORM_FIELD_TYPE::TEXT, "Currency", 1, null, null, null, "Available values is: USD, EUR, GBP, ZAR")); $ConfigurationForm->AppendField( new DataFormField("Username", FORM_FIELD_TYPE::TEXT , "Username", 1)); $ConfigurationForm->AppendField( new DataFormField("Password", FORM_FIELD_TYPE::TEXT , "Password", 1)); return $ConfigurationForm; }
public static function GetConfigurationForm() { $ConfigurationForm = new DataForm(); $ConfigurationForm->SetInlineHelp(""); $ConfigurationForm->AppendField(new DataFormField("IsEnabled", FORM_FIELD_TYPE::CHECKBOX, "Enabled")); $ReflectionInterface = new ReflectionClass("IEventObserver"); $events = $ReflectionInterface->getMethods(); $ConfigurationForm->AppendField(new DataFormField("", FORM_FIELD_TYPE::SEPARATOR, "Request URL on following events")); foreach ($events as $event) { $name = substr($event->getName(), 2); $ConfigurationForm->AppendField(new DataFormField("{$event->getName()}NotifyURL", FORM_FIELD_TYPE::TEXT, "{$name} URL", false, array(), null, null, EVENT_TYPE::GetEventDescription($name))); } return $ConfigurationForm; }
/** * You must construct and return DataForm object. * @return DataForm Form template object */ public function GetPaymentForm() { $ConfigurationForm = new DataForm(); $ConfigurationForm->AppendField( new DataFormField("Currency", FORM_FIELD_TYPE::SELECT, "Card type", 1, array('01' => 'PRC debit card', '02' => 'International credit card (Visa/MasterCard)'))); $ConfigurationForm->AppendField( new DataFormField("Lang", FORM_FIELD_TYPE::SELECT, "Language", 1, array(1 => "Simplified Chinese (GB)", 2 => "English", 3 => "Traditional Chinese (Big-5)", 4 => "Japanese(JP)" ) )); return $ConfigurationForm; }
public static function GetConfigurationForm() { $ConfigurationForm = new DataForm(); $ConfigurationForm->AppendField(new DataFormField("ServerHost", FORM_FIELD_TYPE::TEXT, "EPP Host", 1)); $ConfigurationForm->AppendField(new DataFormField("Login", FORM_FIELD_TYPE::TEXT, "EPP Login", 1)); $ConfigurationForm->AppendField(new DataFormField("Password", FORM_FIELD_TYPE::TEXT, "EPP Password", 1)); $ConfigurationForm->AppendField(new DataFormField("ClientPrefix", FORM_FIELD_TYPE::TEXT, "Client prefix", 1, "3-digits number")); $ConfigurationForm->AppendField(new DataFormField("UseSSLCert", FORM_FIELD_TYPE::CHECKBOX, "Use SSL Certificate", 1, "Only for OT&E registry. Must be disabled in production.")); $ConfigurationForm->AppendField(new DataFormField("SSLpwd", FORM_FIELD_TYPE::TEXT, "SSL Certificate password", 1, "Default is <b>devepp</b>")); $ConfigurationForm->AppendField(new DataFormField("CLID", FORM_FIELD_TYPE::TEXT, "Registrar clID", 1)); $ConfigurationForm->AppendField(new DataFormField("SSLCertPath", FORM_FIELD_TYPE::TEXT, "Path to SSL certificate", 1)); return $ConfigurationForm; }
public static function GetConfigurationForm() { $ConfigurationForm = new DataForm(); $ConfigurationForm->SetInlineHelp(""); $methods = get_class_methods(__CLASS__); foreach ($methods as $method) { if ($method != '__construct' && $method != 'GetConfigurationForm') { $ConfigurationForm->AppendField(new DataFormField("{$method}URL", FORM_FIELD_TYPE::TEXT, "{$method} URL")); } } return $ConfigurationForm; }
public static function GetConfigurationForm() { $ConfigurationForm = new DataForm(); $ConfigurationForm->AppendField(new DataFormField("CLID", FORM_FIELD_TYPE::TEXT, "Registrar clID", 1)); $ConfigurationForm->AppendField(new DataFormField("Login", FORM_FIELD_TYPE::TEXT, "Login", 1)); $ConfigurationForm->AppendField(new DataFormField("Password", FORM_FIELD_TYPE::TEXT, "Passsword", 1)); $ConfigurationForm->AppendField(new DataFormField("ServerHost", FORM_FIELD_TYPE::TEXT, "Server host", 1)); $ConfigurationForm->AppendField(new DataFormField("ServerPort", FORM_FIELD_TYPE::TEXT, "Server port", 1)); $ConfigurationForm->AppendField(new DataFormField("SSLCertPath", FORM_FIELD_TYPE::TEXT, "Path to SSL certificate", 1)); $ConfigurationForm->AppendField(new DataFormField("SSLCertPwd", FORM_FIELD_TYPE::TEXT, "SSL certificate password", 1)); return $ConfigurationForm; }
public static function GetConfigurationForm() { $ConfigurationForm = new DataForm(); $ConfigurationForm->AppendField(new DataFormField("Login", FORM_FIELD_TYPE::TEXT, "Login", 1)); $ConfigurationForm->AppendField(new DataFormField("Password", FORM_FIELD_TYPE::TEXT, "Passsword", 1)); $ConfigurationForm->AppendField(new DataFormField("ServerHost", FORM_FIELD_TYPE::TEXT, "Server host", 1)); $ConfigurationForm->AppendField(new DataFormField("ServerPort", FORM_FIELD_TYPE::TEXT, "Server port", 1)); $ConfigurationForm->AppendField(new DataFormField("ClientPrefix", FORM_FIELD_TYPE::TEXT, "Client prefix", 1)); $ConfigurationForm->AppendField(new DataFormField("RegistrarCLID", FORM_FIELD_TYPE::TEXT, "Registrar clID", 1)); return $ConfigurationForm; }
public static function GetConfigurationForm() { $Config = new DataForm(); $Config->AppendField( new DataFormField("Login", FORM_FIELD_TYPE::TEXT, "Login", 1)); $Config->AppendField( new DataFormField("Password", FORM_FIELD_TYPE::TEXT, "Password", 1)); $Config->AppendField( new DataFormField("ServerHost", FORM_FIELD_TYPE::TEXT , "Server host", 1)); $Config->AppendField( new DataFormField("ServerPort", FORM_FIELD_TYPE::TEXT , "Server port", 1)); $Config->AppendField( new DataFormField("SSLCertPath", FORM_FIELD_TYPE::TEXT , "Path to SSL certificate", 1)); $Config->AppendField( new DataFormField("SSLCertPass", FORM_FIELD_TYPE::TEXT , "SSL private key password", 1)); return $Config; }
public function OnDomainCreated (Domain $Domain) { if ($this->once_run) { return; } $this->once_run = true; //// // 3. CREATE 2 child name servers of newly created domain // try { $ns1 = new NameserverHost('ns1.' . $Domain->GetHostName(), gethostbyname('hostdad.com')); $ns2 = new NameserverHost('ns2.' . $Domain->GetHostName(), gethostbyname('hostdad.com')); $this->Registry->CreateNameserverHost($ns1); $this->Registry->CreateNameserverHost($ns2); $this->TestCase->assertTrue(true, 'Create nameservers'); } catch (Exception $e) { return $this->TestCase->fail('Create nameservers. Error: ' . $e->getMessage()); } //// // 4. UPDATE Domain to attach child name servers to domain // try { $nslist = $Domain->GetNameserverChangelist(); $nslist->Add($ns1); $nslist->Add($ns2); $this->Registry->UpdateDomainNameservers($Domain, $nslist); $this->TestCase->assertTrue( count($Domain->GetNameserverList()) == 4, 'Attach nameservers to domain' ); } catch (Exception $e) { return $this->TestCase->fail('Attach nameservers to domain. Error: ' . $e->getMessage()); } //// // Create tech contact // try { $Tech = $this->Registry->NewContactInstance(CONTACT_TYPE::TECH); $Tech->SetFieldList($this->contact_fields); $this->Registry->CreateContact($Tech); $this->TestCase->assertTrue(true, 'Create another contact'); } catch (Exception $e) { return $this->TestCase->fail('Create another contact. Error: ' . $e->getMessage()); } //// // Update domain contact try { $this->Registry->UpdateDomainContact($Domain, CONTACT_TYPE::TECH, null, $Tech); $this->TestCase->assertTrue(true, 'Attach contact to domain'); } catch (Exception $e) { return $this->TestCase->fail('Attach contact to domain. Error: ' . $e->getMessage()); } //// // 6. Perform an INFO command on the domain to verify update // try { $RDomain = $this->Registry->NewDomainInstance(); $RDomain->Name = $Domain->Name; $RDomain = $this->Registry->GetRemoteDomain($RDomain); $this->TestCase->assertTrue( $RDomain->Name == $Domain->Name && date('Ymd', $RDomain->CreateDate) == date('Ymd', $Domain->CreateDate) && date('Ymd', $RDomain->ExpireDate) == date('Ymd', $Domain->ExpireDate) && count($RDomain->GetNameserverList()) == count($Domain->GetNameserverList()) && $RDomain->GetContact(CONTACT_TYPE::TECH)->CLID == $Tech->CLID, 'Get remote domain' ); } catch (Exception $e) { return $this->TestCase->fail('Get remote domain. Error: ' . $e->getMessage()); } //// // 10. UPDATE one of the name server’s IP Address // try { $ns1->IPAddr = gethostbyname('ns.hostdad.com'); $Resp = $this->Registry->GetModule()->UpdateNameserverHost($ns1); $this->TestCase->assertTrue($Resp->Result, 'Update domain nameserver'); } catch (Exception $e) { return $this->TestCase->fail('Update domain nameserver. Error: ' . $e->getMessage()); } //// // 12. Renew Domain for 2 years // /* try { $this->Registry->RenewDomain($Domain, $extra=array('period' => 2)); $this->TestCase->assertFalse(true, 'Domain renewal. Exception expected'); } catch (Exception $e) { $this->TestCase->assertTrue($e->getMessage() == 'A domain can not be renewed earlier that 365 days from its expiration', 'Domain renewal'); } */ // secondary registry $DataForm = new DataForm(); $DataForm->AppendField( new DataFormField("ServerHost", FORM_FIELD_TYPE::TEXT, null, null, null, null, 'https://devepp.ics.forth.gr:700/epp/proxy')); $DataForm->AppendField( new DataFormField("Login", FORM_FIELD_TYPE::TEXT, null, null, null, null, 'digitalbox1')); $DataForm->AppendField( new DataFormField("Password", FORM_FIELD_TYPE::TEXT , null, null, null, null, 'agrigo')); $DataForm->AppendField( new DataFormField("ClientPrefix", FORM_FIELD_TYPE::TEXT, null, null, null, null, '371')); $DataForm->AppendField( new DataFormField("UseSSLCert", FORM_FIELD_TYPE::CHECKBOX, null, null, null, null, '1')); $DataForm->AppendField( new DataFormField("SSLpwd", FORM_FIELD_TYPE::TEXT, null, null, null, null, 'devepp')); $DataForm->AppendField( new DataFormField("CLID", FORM_FIELD_TYPE::TEXT, null, null, null, null, 'digitalbox1')); $DataForm->AppendField( new DataFormField("SSLCertPath", FORM_FIELD_TYPE::TEXT, null, null, null, null, '/home/marat/webdev/epp-drs/branches/dev/app/modules/registries/EPPGR/ssl/cert.pem')); $Module = new EPPGRRegistryModule(); $Module->InitializeModule('gr', $DataForm); $Registry2 = new Registry($Module); try { $ok = $Registry2->TransferRequest($Domain, array('pw' => $Domain->AuthCode)); $this->TestCase->assertTrue($ok, 'Request domain transfer from another session'); } catch (Exception $e) { $this->TestCase->fail('Request domain transfer from another session. Error: ' . $e->getMessage()); } //// // 17. Approve the Transfer using your OT&E1 account // try { $ok = $this->Registry->TransferApprove($Domain); $this->TestCase->assertTrue($ok, 'Approve transfer'); } catch (Exception $e) { return $this->TestCase->fail('Approve transfer. Error: ' . $e->getMessage()); } //// // 19. Initiate the Transfer again using your OT&E1 account // try { $ok = $this->Registry->TransferRequest($Domain, array('pw' => $Domain->AuthCode)); $this->TestCase->assertTrue($ok, 'Initiate transfer account 1'); } catch (Exception $e) { return $this->TestCase->fail('Initiate tranfer account 1. Error: ' . $e->getMessage()); } //// // 21. Reject the Transfer using your OT&E2 account // try { $ok = $Registry2->TransferReject($Domain); $this->TestCase->assertTrue($ok, 'Reject transfer account 2'); } catch (Exception $e) { return $this->TestCase->fail('Reject transfer account 2. Error: ' . $e->getMessage()); } //// // Remove domain nameservers try { $ns_list = $Domain->GetNameserverList(); $Changes = $Domain->GetNameserverChangelist(); foreach ($ns_list as $NS) { $Changes->Remove($NS); } $Registry2->UpdateDomainNameservers($Domain, $Changes); $this->TestCase->assertTrue(count($Domain->GetNameserverList()) == 0, 'Remove nameservers from domain'); } catch (Exception $e) { return $this->TestCase->fail('Remove nameservers from domain. Error: ' . $e->getMessage()); } //// // Delete nameservers try { $Registry2->DeleteNameserverHost($ns1); $Registry2->DeleteNameserverHost($ns2); $this->TestCase->assertTrue(true, 'Delete nameservers'); } catch (Exception $e) { return $this->TestCase->fail('Delete nameservers. Error: ' . $e->getMessage()); } //// // Delete domain try { $Registry2->DeleteDomain($Domain); $this->TestCase->assertTrue(true, 'Delete domain'); } catch (Exception $e) { return $this->TestCase->fail('Delete domain. Error: ' . $e->getMessage()); } //// /// Delete contact try { $Registry2->DeleteContact($Tech); $Registry2->DeleteContact($Domain->GetContact(CONTACT_TYPE::REGISTRANT)); $this->TestCase->assertTrue(true, 'Delete contact'); } catch (Exception $e) { return $this->TestCase->fail('Delete contact. Error: ' . $e->getMessage()); } }
public function GetTestConfigurationForm() { $CF = new DataForm(); $CF->AppendField(new DataFormField("ServerHost", FORM_FIELD_TYPE::TEXT, "Server host", 1)); $CF->AppendField(new DataFormField("ServerPort", FORM_FIELD_TYPE::TEXT, "Server port", 1)); $CF->AppendField(new DataFormField("SSLCertPath", FORM_FIELD_TYPE::TEXT, "Path to SSL certificate", 1)); $CF->AppendField(new DataFormField("SSLCertPass", FORM_FIELD_TYPE::TEXT, "SSL private key password", 1)); $CF->AppendField(new DataFormField("Login_1", FORM_FIELD_TYPE::TEXT, "Login 1", 1, null, null, null, 'Your OT&E1 account')); $CF->AppendField(new DataFormField("Password_1", FORM_FIELD_TYPE::TEXT, "Passsword 1", 1)); $CF->AppendField(new DataFormField("Login_2", FORM_FIELD_TYPE::TEXT, "Login 2", 1, null, null, null, 'Your OT&E2 account')); $CF->AppendField(new DataFormField("Password_2", FORM_FIELD_TYPE::TEXT, "Passsword 2", 1)); return $CF; }
public function GetTestConfigurationForm () { $CF = new DataForm(); $CF->AppendField(new DataFormField("ServerHost", FORM_FIELD_TYPE::TEXT , "Server host", 1)); $CF->AppendField(new DataFormField("ServerPort", FORM_FIELD_TYPE::TEXT , "Server port", 1)); $CF->AppendField(new DataFormField("Login", FORM_FIELD_TYPE::TEXT, "Login", 1, null, null, null, 'Your OT&E1 account')); $CF->AppendField(new DataFormField("Password", FORM_FIELD_TYPE::TEXT, "Password", 1)); $CF->AppendField(new DataFormField("Login2", FORM_FIELD_TYPE::TEXT, "Login 2", 1, null, null, null, 'Your OT&E2 account')); $CF->AppendField(new DataFormField("Password2", FORM_FIELD_TYPE::TEXT, "Password 2", 1)); $CF->AppendField(new DataFormField("RealEmail", FORM_FIELD_TYPE::TEXT, "Real email address", 1)); $CF->AppendField(new DataFormField( "Domain1", FORM_FIELD_TYPE::TEXT, "Test domain 1", 1, array(), null, 'epp-drs-test-' . rand(1000, 9999) . '.no' )); $CF->AppendField(new DataFormField( "Domain2", FORM_FIELD_TYPE::TEXT, "Test domain 2", 1, array(), null, 'epp-drs-test-' . rand(1000, 9999) . '.no' )); $CF->AppendField(new DataFormField("NS1", FORM_FIELD_TYPE::TEXT, "Nameserver 1", 1)); $CF->AppendField(new DataFormField("NS2", FORM_FIELD_TYPE::TEXT, "Nameserver 2", 1)); return $CF; }