当前位置: 首页>>代码示例>>PHP>>正文


PHP add_config_field函数代码示例

本文整理汇总了PHP中add_config_field函数的典型用法代码示例。如果您正苦于以下问题:PHP add_config_field函数的具体用法?PHP add_config_field怎么用?PHP add_config_field使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了add_config_field函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: aff_config

function aff_config()
{
    global $config;
    config_set_notebook_comment('Affiliates', 'affiliate program configuration');
    add_config_field('aff.payout_methods', 'Accepted Payout methods', 'multi_select', "affiliate can choose a method for payout comissions.<br />\n    If nothing will be selected, comissions will not be included to automated<br />\n    payout report.\n    ", "Affiliates", '', '', '', array('store_type' => 1, 'options' => aff_get_payout_methods()));
    add_config_field('aff.aff_commission', 'Affiliate commission for first payment', 'integer', "affiliate comissions for first payment, ex.: 1.5 or 2.5%", "Affiliates", '', '', '');
    add_config_field('aff.aff_commission_rec', 'Affiliate commission for the following payments', 'integer', "affiliate comissions for the following payments, ex.: 1.5 or 2.5%", "Affiliates", '', '', '');
    add_config_field('aff.aff_commission2', '2 Tier - Affiliate commission for the first payment', 'integer', 'affiliate comissions for referrer of the affiliate, can be set to<br />
                 percentage of commission received by immediate affiliate only, ex.: 1.5 or 15%<br />
                 in first case 2 tier affiliate will get USD 1.5 for each sale,<br />
                 in second case 2 tier affiliate will receive 15% of all related<br />
                 affiliate commissions', "Affiliates", '', '', '');
    add_config_field('aff.aff_commission_rec2', '2 Tier - Affiliate commission for the following payments', 'integer', 'affiliate comissions for referrer of the affiliate, can be set to<br />
                 percentage of commission received by immediate affiliate only, ex.: 1.5 or 15%<br />
                 in first case 2 tier affiliate will get USD 1.5 for each sale,<br />
                 in second case 2 tier affiliate will receive 15% of all related<br />
                 affiliate commissions', "Affiliates", '', '', '');
    add_config_field('aff.cookie_lifetime', 'Affiliate cookie lifetime', 'integer', "how long (in days) store cookies about referrer.<br />\n    So if customer will return to the site later, comission will be<br />\n    paid to referring affiliate.\n    ", "Affiliates", '', '', '', array('default' => 365));
    add_config_field('aff.only_first', 'Pay only first commission', 'checkbox', "affiliate will get commision only for first purchase.<br />\n    In case of recurring payments, only one (first) commission will<br />\n    be generated.\n    ", "Affiliates", '', '', '', array('store_type' => 1));
    add_config_field('aff.do_not_pay_for_free_subscriptions', 'Do not give commision for free subscriptions', 'select', "sale commission will not be credited to affiliate account<br />\n    if user subscribed to free subscription. Of course, it only affects<br />\n    'fixed' affiliate commissions.\n    ", "Affiliates", '', '', '', array('store_type' => 1, 'options' => array('' => 'Give Commission even for free subscriptions', 1 => 'Do not give commissions for free subscriptions')));
    add_config_field('aff.signup_type', 'Affiliates Signup Type', 'select', "affiliate will get commision only for first purchase.<br />\n    In case of recurring payments, only one (first) commission will<br />\n    be generated.\n    ", "Affiliates", '', '', '', array('store_type' => 1, 'options' => array('' => 'Default - user have to click link to become affiliate', 1 => 'All new members automatically become affiliates', 2 => 'Only admin can enable user as an affiliate')));
    add_config_field('aff.mail_sale_admin', 'E-Mail commission to admin', 'checkbox', "when new sale commission credited to affiliate account<br />\n    send an e-mail message to admin\n    ", "Affiliates", '', 'email_checkbox_get', '', array('store_type' => 1));
    add_config_field('aff.mail_sale_user', 'E-Mail commission to customer', 'checkbox', "when new sale commission credited to affiliate account<br />\n    send an e-mail message to affiliate\n    ", "Affiliates", '', 'email_checkbox_get', '', array('store_type' => 1));
    add_config_field('aff.mail_signup_user', 'Send Signup E-Mail to Affiliate', 'checkbox', "send email when affiliate will signup\n    ", "Affiliates", '', 'email_checkbox_get', '', array('store_type' => 1));
}
开发者ID:subashemphasize,项目名称:test_site,代码行数:25,代码来源:aff.inc.php

示例2: die

<?php

if (!defined('INCLUDED_AMEMBER_CONFIG')) {
    die("Direct access to this location is not allowed");
}
$notebook_page = 'PHP Include';
config_set_notebook_comment($notebook_page, 'paypal plugin configuration');
if (file_exists($rm = dirname(__FILE__) . "/readme.txt")) {
    config_set_readme($notebook_page, $rm);
}
add_config_field('protect.php_include.redirect', 'Redirect after logout', 'text', "enter full URL, starting from http://<br />\n    keep empty for redirect to site homepage", $notebook_page);
add_config_field('protect.php_include.remember_login', 'Remember Login', 'select', "allow remember login/password in cookies", $notebook_page, '', '', '', array('options' => array(0 => 'No', 1 => 'Yes')));
add_config_field('protect.php_include.remember_auto', 'Always remember', 'select', "if set to Yes, don't ask customer - always remember", $notebook_page, '', '', '', array('options' => array(0 => 'No', 1 => 'Yes')));
add_config_field('protect.php_include.remember_period', 'Remember period', 'integer', "cookie will be stored for ... days", $notebook_page, 'validate_integer', '', '', array('default' => 60));
开发者ID:subashemphasize,项目名称:test_site,代码行数:14,代码来源:config.inc.php

示例3: die

if (!defined('INCLUDED_AMEMBER_CONFIG')) {
    die("Direct access to this location is not allowed");
}
/*
*
*     Author: Alex Scott
*      Email: alex@cgi-central.net
*        Web: http://www.cgi-central.net
*    Details: securepay payment plugin config
*    FileName $RCSfile$
*    Release: 3.1.8PRO ($Revision: 1785 $)
*
* Please direct bug reports,suggestions or feedback to the cgi-central forums.
* http://www.cgi-central.net/forum/
*
* aMember PRO is a commercial software. Any distribution is strictly prohibited.
*/
global $config;
require_once $config['root_dir'] . "/plugins/payment/cc_core/cc_core.inc.php";
include_once dirname(__FILE__) . "/securepay.php";
$notebook_page = "SecurePay";
config_set_notebook_comment($notebook_page, $notebook_page . ' configuration');
if (file_exists($rm = dirname(__FILE__) . "/readme.txt")) {
    config_set_readme($notebook_page, $rm);
}
add_config_field('payment.securepay.host', 'SecurePay Host', 'text', "Your SecurePay host (e.g. https://www.securepay.com/secure1/index.asp).", $notebook_page, '');
add_config_field('payment.securepay.timeout', 'SecurePay Timeout', 'text', "Custom timeout value in seconds, default 120 seconds.", $notebook_page, '');
add_config_field('payment.securepay.merchant_id', 'SecurePay Default Merchant Identifier', 'text', "Your default SecurePay Merchant Identifier (usually a number, e.g. 123456).", $notebook_page, '');
add_config_field('payment.securepay.debug', 'Test Mode Enabled', 'select', "Set to No after you complete testing.", $notebook_page, '', '', '', array('options' => array(0 => 'No', 1 => 'Yes')));
add_config_field('payment.securepay.avsreq', 'AVS Check', 'select', "Use AVS system check (The AVS system used by SecurePay.Com supports the United States)", $notebook_page, '', '', '', array('options' => array(0 => 'Do not use AVS Check', 1 => 'Full AVS (both street address and zip code)', 2 => 'AVS only, Full AVS but do not authorize the Credit Card', 3 => 'Credit Card Authorization and Zip Code AVS Only', 4 => 'AVS with Zip Code only, do not authorize the Credit Card')));
cc_core_add_config_items('securepay', $notebook_page);
开发者ID:subashemphasize,项目名称:test_site,代码行数:31,代码来源:config.inc.php

示例4: config_set_notebook_comment

*    Details: google checkout payment plugin config
*    FileName $RCSfile$
*    Release: 3.2.3PRO ($Revision: 5000 $)
*
* Please direct bug reports,suggestions or feedback to the cgi-central forums.
* http://www.cgi-central.net/forum/
*
* aMember PRO is a commercial software. Any distribution is strictly prohibited.
*/
global $config;
$notebook_page = "Google Checkout";
config_set_notebook_comment($notebook_page, $notebook_page . ' configuration');
if (file_exists($rm = dirname(__FILE__) . "/readme.txt")) {
    config_set_readme($notebook_page, $rm);
}
$features = array('title' => '', 'description' => '');
$pl =& instantiate_plugin('payment', 'google_checkout');
if (is_object($pl)) {
    $features = $pl->get_plugin_features();
}
add_config_field('payment.google_checkout.merchant_id', 'Google Checkout Default Merchant Identifier', 'text', "Your default Google Checkout Merchant Identifier (usually a number, e.g. 123456).", $notebook_page, '');
add_config_field('payment.google_checkout.merchant_key', 'Google Checkout Default Merchant Key', 'text', "Your default Google Checkout Merchant Key.", $notebook_page, '');
add_config_field('payment.google_checkout.currency', 'Currency', 'text', "Your default Google Checkout Currency.<br />Technical limitations of the current service: USD (US dollars) is the only valid currency.", $notebook_page, '', '', '', array('default' => 'USD'));
add_config_field('payment.google_checkout.sandbox', 'Sandbox testing', 'select', "Set to No after you complete testing.", $notebook_page, '', '', '', array('options' => array(0 => 'No', 1 => 'Yes')));
add_config_field('payment.google_checkout.debug', 'Test Mode Enabled', 'select', 'will log all IPN postback messages to aMember CP -> Error/Debug Log', $notebook_page, '', '', '', array('options' => array(0 => 'No', 1 => 'Yes')));
add_config_field('payment.google_checkout.allow_create', 'Allow create new accounts', 'select', 'aMember will create member (if not exists) when &lt;new-order-notification&gt; received', $notebook_page, '', '', '', array('options' => array(0 => 'No', 1 => 'Yes')));
add_config_field("payment.google_checkout.title", "Payment system title", 'text', "to be displayed on signup.php and member.php pages", $notebook_page, '', '', '', array('default' => $features['title']));
add_config_field("payment.google_checkout.description", "Payment system description", 'text', "to be displayed on signup page", $notebook_page, '', '', '', array('default' => $features['description']));
add_config_field("payment.google_checkout.reattempt", 'Reattempt on Failure', 'text', "Enter list of days to reattempt failed credit card charge, for example: 3,8<br />\n <br />\n The reattempting failed payments option allows you to reattempt failed<br />\n payments before cancelling the subscription. Scheduled payments may fail<br />    \n due to several reasons, including insufficient funds. Payments will be<br />\n reattempted 3 days after the failure date. If it fails again, we will try once<br />\n more 5 days later (it is for sample above: 3,8). Failure on this last attempt<br />\n leads to cancellation of the subscription.<br />\n <br />\n NOTE: this time user will have FREE access to your site. If it is not acceptable<br />\n for your site, please don't enable this feature", $notebook_page, '', '', '', array('options' => array('' => 'No', 1 => 'Yes')));
add_config_field('payment.google_checkout.resend_postback', 'Resend Postback', 'textarea', "all IPN posts will be resent to specified URL,<br />\n     you may need it for third-party affiliate script, for example<br />\n     DON'T ENTER URL OF aMember Google checkout script HERE!<br />\n     KEEP IT BLANK IF YOU DON'T UNDERSTAND WHAT IT MEANS", $notebook_page, '', '', '', array('default' => "", 'cols' => 40));
开发者ID:subashemphasize,项目名称:test_site,代码行数:30,代码来源:config.inc.php


注:本文中的add_config_field函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。