本文整理汇总了PHP中Am_Form_Setup::addPassword方法的典型用法代码示例。如果您正苦于以下问题:PHP Am_Form_Setup::addPassword方法的具体用法?PHP Am_Form_Setup::addPassword怎么用?PHP Am_Form_Setup::addPassword使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Am_Form_Setup
的用法示例。
在下文中一共展示了Am_Form_Setup::addPassword方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _initSetupForm
public function _initSetupForm(Am_Form_Setup $form)
{
$form->addText('pspid')->setLabel('Your affiliation name in ePDQ');
$form->addPassword('shain', array('class' => 'el-wide'))->setLabel("SHA IN Pass Phrase\n" . "can be found on page Configuration -> Technical Information -> Data and origin verification in your ePDQ account");
$form->addPassword('shaout', array('class' => 'el-wide'))->setLabel("SHA OUT Pass Phrase\n" . "can be found on page Configuration -> Technical Information -> Transaction Feedback in your ePDQ account");
$form->addAdvCheckbox('testing')->setLabel("Is it a Sandbox(Testing) Account?");
}
示例2: _initSetupForm
public function _initSetupForm(Am_Form_Setup $form)
{
$form->setTitle('Dalpay (Checkout)');
$form->addText('mer_id', array('size' => 20))->setLabel('Your Merchant ID#');
$form->addText('pageid')->setLabel('The order page sub-account');
$form->addPassword('password')->setLabel('Silent Post Password');
$form->addPassword('notify_password')->setLabel('Server Notification Password');
}
示例3: _initSetupForm
public function _initSetupForm(Am_Form_Setup $form)
{
$form->addText("api_key", array('class' => 'el-wide'))->setLabel('Merchant API Key');
$form->addPassword("api_secret", array('class' => 'el-wide'))->setLabel('Merchant API Secret');
$form->addAdvCheckbox("testing")->setLabel("Is it a Sandbox (Testing) Account?");
$form->addAdvCheckbox("dont_verify")->setLabel("Disable IPN verification\n" . "<b>Usually you DO NOT NEED to enable this option.</b>\n However, on some webhostings PHP scripts are not allowed to contact external\n web sites. It breaks functionality of the Xrefs payment integration plugin,\n and aMember Pro then is unable to contact Xrefs to verify that incoming\n IPN post is genuine. In this case, AS TEMPORARY SOLUTION, you can enable\n this option to don't contact Xrefs server for verification. However,\n in this case \"hackers\" can signup on your site without actual payment.\n So if you have enabled this option, contact your webhost and ask them to\n open outgoing connections to www.xfers.io port 80 ASAP, then disable\n this option to make your site secure again.");
}
示例4: _initSetupForm
protected function _initSetupForm(Am_Form_Setup $form)
{
$form->addText('login')->setLabel('API Login')->addRule('required');
$form->addPassword('passwd')->setLabel('API Password')->addRule('required');
$form->addText('pslid')->setLabel('PSLID (Service User)')->addRule('required');
$form->addText('sun')->setLabel('Service User Number (SUN)')->addRule('required');
$form->addText('lead_time')->setLabel('Lead time, days')->default = 12;
for ($i = 1; $i <= 28; $i++) {
$options[$i] = ___("%d-th day", $i);
}
$payment_day = $form->addMagicSelect('payment_day')->setLabel(___("Process Payment Day"))->loadOptions($options);
$payment_day->default = 8;
$payment_day->addRule('required');
$form->addText('legal_name', array('class' => 'el-wide'))->setLabel(___("Legal Name\n" . "Please enter the legal name of your organisation " . "which will be included in the Direct Debit Guarantee statement"))->addRule('required');
$form->addTextarea('legal_address', array('class' => 'el-wide', 'rows' => 5))->setLabel(___("Legal Address\n" . "Please enter the legal address of your organisation " . "which will be included in the Direct Debit Guarantee statement"))->addRule('required');
$form->addAdvCheckbox('auddis', array('id' => 'auddis'))->setLabel("Log AUDDIS reports as Tickets in helpdesk\n" . "helpdesk module should be enabled");
$form->addText('auddis_login', array('id' => 'auddis-login'))->setLabel('Username of user for AUDDIS reports');
$form->addScript()->setScript(<<<CUT
(function(){
\$('#auddis').change(function(){
\$('#auddis-login').closest('.row').toggle(this.checked);
}).change();
\$('#auddis-login').autocomplete({
minLength: 2,
source: window.rootUrl + "/admin-users/autocomplete/"
});
})()
CUT
);
}
示例5: _initSetupForm
public function _initSetupForm(Am_Form_Setup $form)
{
$form->addText("installation_id", array('size' => 15))->setLabel(array("Your Metacharge installation ID", "refer to Merchant Extranet: Account Management > Installations"))->addRule('required');
$form->addText("auth_username", array('size' => 15))->setLabel(array("Response HTTP Auth Username", "Metacharge PRN response authorisation username"))->addRule('required');
$form->addPassword("auth_password", array('size' => 15))->setLabel(array("Response HTTP Auth Password", "Metacharge PRN response authorisation password"))->addRule('required');
$form->addAdvCheckbox("testing")->setLabel("Test Mode Enabled");
}
示例6: _initSetupForm
public function _initSetupForm(Am_Form_Setup $form)
{
$form->addInteger('merchant_id', array('size' => 20))->setLabel('SWREG Account#');
$form->addText('product_id', array('size' => 20))->setLabel('SWREG Product#');
$form->addText('ip', array('size' => 10))->setLabel('SWREG Postback IP, default value is 64.37.103.135');
$form->addPassword('pass', array('size' => 10))->setLabel('SWREG API Password');
}
示例7: _initSetupForm
public function _initSetupForm(Am_Form_Setup $form)
{
$form->addText('account', array('size' => 20, 'maxlength' => 16))->setLabel("ClickBank Account Nickname\n" . "your ClickBank username")->addRule('required');
$form->addPassword('secret', array('size' => 20, 'maxlength' => 16))->setLabel("Secret Key\n" . "defined at clickbank.com -> login -> SETTINGS -> My Site -> Advanced Tools (edit)")->addRule('required');
$form->addText('clerk_key', array('size' => 50))->setLabel("ClickBank Clerk API Key\n" . "defined at clickbank.com -> login -> SETTINGS -> My Account -> Clerk API Keys (edit)")->addRule('required');
$form->addText('dev_key', array('size' => 50))->setLabel("Developer API Key\n" . "defined at clickbank.com -> login -> SETTINGS -> My Account -> Developer API Keys (edit)")->addRule('required');
}
示例8: array
function _initSetupForm(Am_Form_Setup $form)
{
$form->setTitle('Selectel');
$form->addText('access_key', array('size' => 40))->setLabel('Your account login')->addRule('required');
$form->addPassword('secret_key', array('size' => 40))->setLabel(array('Password for Cloud Storage', '(separate password then for Control Panel)'))->addRule('required');
$form->addText('expire', array('size' => 5))->setLabel('Video link life-time, min');
$form->setDefault('expire', 15);
if ($this->isConfigured()) {
try {
$containers = $this->getDi()->cacheFunction->call(array($this->getConnector(), 'getContainersList'), array(), array(), $this->cacheLifetime);
$containers = array('' => '== Please select public Container ==') + $containers;
} catch (Exception $e) {
$containers = array('' => 'Please create public container');
}
$form->addSelect('links_container', '', array('options' => array_combine($containers, $containers)))->setLabel(array('Container for links', 'aMember will create links in the following format: http://yourcloudstorageurl.com/CONTAINERNAME/uniquekey/filename.mp4'))->addRule('required');
}
$msg = <<<EOT
Make sure that you store all your files in private containers.
In order to provide an access to the files, create one free container, and specify it in plugin configuration.
aMember will create symlinks to the files and put these symilnks to that public container. Links are one-time and time-limited.
For example if you name your public container "download", end-user will see these links:
https://88901.selcdn.ru/download/9365d4a676845f607e46e19038305ba0/filename.mp4
EOT;
$form->addProlog(<<<CUT
<div class="info"><strong>{$msg}</strong></div>
CUT
);
}
示例9: _initSetupForm
public function _initSetupForm(Am_Form_Setup $form)
{
$form->addText('merchant')->setLabel('Merchant Name');
$form->addText('MerchantGUID')->setLabel('API Merchant ID');
$form->addPassword('MerchantPassword')->setLabel('API Merchant Password');
$form->addAdvCheckbox('testing')->setLabel("Is it a Sandbox(Testing) Account?");
}
示例10: _initSetupForm
protected function _initSetupForm(Am_Form_Setup $form)
{
$form->addText('PxPayUserId')->setLabel(array('Your PxPayUserId', ''))->addRule('required');
$form->addText('PxPayKey', array('size' => 65))->setLabel(array('Your PxPayKey', ''))->addRule('required');
$form->addText('PostUsername')->setLabel(array('Your PostUsername', ''))->addRule('required');
$form->addPassword('PostPassword')->setLabel(array('Your PostPassword', ''))->addRule('required');
$form->addAdvCheckbox('debugMode')->setLabel(array("Debug Mode Enable", "write all requests/responses to log"));
}
示例11: _initSetupForm
public function _initSetupForm(Am_Form_Setup $form)
{
$form->addText('login')->setLabel(array('Authorize.Net API Login ID', "The API login is different from your Authorize.net username\n" . "You can get at the same time as the Transaction Key"))->addRule('required');
$form->addText('tkey')->setLabel(array('Transaction Key', "The transaction key is generated by the system\n" . "and can be obtained from Merchant Interface.\n" . "To obtain the transaction key from the Merchant Interface:\n" . "1. Log into the Merchant Interface\n" . "2. Select Settings from the Main Menu\n" . "3. Click on Obtain Transaction Key in the Security section\n" . "4. Type in the answer to the secret question configured on setup\n" . "5. Click Submit"))->addRule('required');
$form->addPassword('secret')->setLabel(array('Secret Word', "From authorize.net MD5 Hash menu\n" . "You have to create secret word"))->addRule('required');
$form->addAdvCheckbox('testmode')->setLabel('Is Test Mode?');
$form->addAdvCheckbox('devmode')->setLabel(array('Is Developer Account?', 'Select it if you are using developer API Login ID'));
}
示例12: _initSetupForm
public function _initSetupForm(Am_Form_Setup $form)
{
$form->addInteger('merchant_id', array('size' => 20))->setLabel('Your Merchant ID#');
$form->addPassword('password')->setLabel(array('Postback Password', 'Should be the same as in your 1SC account'));
$form->addText('key', array('size' => 30))->setLabel(array('API Key', '1SC -> My Account -> API Settings -> Your Current Merchant API Key'));
$form->addAdvCheckbox('skip_amount_check')->setLabel(array('Skip Amount Check', 'Plugin will not check amount of incomming transaction. This option makes it possible to use coupons on 1SC'));
$form->addText('api_resend', array('size' => 60))->setLabel(array('Resend API Requests', 'Specify url of third-party script that should receive API notifications as well'));
}
示例13: _initSetupForm
public function _initSetupForm(Am_Form_Setup $form)
{
$form->addInteger('account_id', array('size' => 20))->setLabel(array('Hipay Account Id', '(number)'));
$form->addPassword('merchant_password', array('size' => 20))->setLabel(array('Merchant Password', '(set within your Hipay account)'));
$form->addInteger('site_id', array('size' => 20))->setLabel(array('Hipay Site Id', '(number)'));
$sel = $form->addSelect('order_category')->setLabel(array("The order/product category attached to the merchant site's category", "if there is no values - please enter Site Id and Save"));
$sel->loadOptions($this->getOrderCategories());
$form->addAdvCheckbox('testing')->setLabel('Test Mode');
}
示例14: _initSetupForm
public function _initSetupForm(Am_Form_Setup $form)
{
$form->addInteger('seller_id', array('size' => 20))->setLabel('2CO Account#');
$form->setDefault('secret', $this->getDi()->app->generateRandomString(10));
$form->addText('secret', array('size' => 30))->setLabel(array('2CO Secret Phrase', 'set it to the same value as configured in 2CO'));
$form->addText('api_username')->setLabel('2CO API Username');
$form->addPassword('api_password')->setLabel('2CO Password');
$form->addSelect('lang', array(), array('options' => array('en' => 'English', 'zh' => 'Chinese', 'da' => 'Danish', 'nl' => 'Dutch', 'fr' => 'French', 'gr' => 'German', 'el' => 'Greek', 'it' => 'Italian', 'jp' => 'Japanese', 'no' => 'Norwegian', 'pt' => 'Portuguese', 'sl' => 'Slovenian', 'es_ib' => 'Spanish (es_ib)', 'es_la' => 'Spanish (es_la)', 'sv' => 'Swedish')))->setLabel('2CO Interface language');
}
示例15: array
function _initSetupForm(Am_Form_Setup $form)
{
$el = $form->addPassword('api_key', array('size' => 40))->setLabel('MailChimp API Key' . "\n<a target='_blank' href=''></a>");
$el->addRule('required');
$el->addRule('regex', 'API Key must be in form xxxxxxxxxxxx-xxx', '/^[a-zA-Z0-9]+-[a-zA-Z0-9]{2,4}$/');
$form->addAdvCheckbox('disable_double_optin')->setLabel(array('Disable Double Opt-in', '<a href="http://kb.mailchimp.com/article/how-does-confirmed-optin-or-double-optin-work">http://kb.mailchimp.com/article/how-does-confirmed-optin-or-double-optin-work</a>'));
$form->addAdvCheckbox('send_welcome')->setLabel(array('Send Welcome Message', 'Should Mailchimp send Welcome Email after opt-in'));
$form->addAdvCheckbox('send_goodbye')->setLabel(array('Send Goodbye Message', ''));
$form->addAdvCheckbox('ecommerce_tracking')->setLabel(array('Enable Ecommerce360 tracking', 'Read more: <a href="http://kb.mailchimp.com/article/what-is-ecommerce360-and-how-does-it-work-with-mailchimp/">on mailchimp site</a>'));
}