本文整理汇总了PHP中config_set_notebook_comment函数的典型用法代码示例。如果您正苦于以下问题:PHP config_set_notebook_comment函数的具体用法?PHP config_set_notebook_comment怎么用?PHP config_set_notebook_comment使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了config_set_notebook_comment函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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));
}
示例2: die
<?php
if (!defined('INCLUDED_AMEMBER_CONFIG')) {
die("Direct access to this location is not allowed");
}
$notebook_page = 'GoEmerchant';
config_set_notebook_comment($notebook_page, 'GoEmerchant configuration');
if (file_exists($rm = dirname(__FILE__) . "/readme.txt")) {
config_set_readme($notebook_page, $rm);
}
add_config_field('payment.goemerchant.merchant_id', 'GoEmerchant ID', 'text', "your GoEmerchant Username", $notebook_page, '');
add_config_field('payment.goemerchant.merchant_pass', 'GoEmerchant password', 'password_c', "your GoEmerchant Password", $notebook_page, '');
/*
add_config_field('payment.goemerchant.testmode', 'Test Mode Enabled', 'select',
"Set to No after you complete testing.", $notebook_page, '','','',
array('options' => array(0 => 'No', 1 => 'Yes'))
);
*/
add_config_field('payment.goemerchant.title', 'Payment Method Title', 'text', "displayed on signup page and on renewal page", $notebook_page, '', '', '', array('default' => 'GoEmerchant'));
add_config_field('payment.goemerchant.description', 'Payment Method Description', 'text', "displayed on signup page", $notebook_page, '', '', '', array('default' => 'Credit Card Payment'));
示例3: die
<?php
if (!defined('INCLUDED_AMEMBER_CONFIG')) {
die("Direct access to this location is not allowed");
}
$notebook_page = 'mod_auth_mysql';
config_set_notebook_comment($notebook_page, 'mod_auth_mysql Integration');
if (file_exists($rm = dirname(__FILE__) . "/readme.txt")) {
config_set_readme($notebook_page, $rm);
}
add_config_field('protect.mod_auth_mysql.db', 'mod_auth_mysql Db and Tablename', function_exists('amDb') ? 'dbprefix' : 'text', "database name (if other database) plus mod_auth_mysql table<br />\n name, like <i>mod_auth_mysql.users</i><br />\n here <i>mod_auth_mysql</i> is database, and tables with users named as <i>users</i><br />\n Please backup your table FIRST! aMember will manage it exclusively and<br />\n if user is not present in aMember database, it will be removed from<br />\n mod_auth_mysql table.\n ", $notebook_page, 'validate_mod_auth_mysql_db');
function validate_mod_auth_mysql_db($field, $vars)
{
global $db;
$v = $vars[$field['name']];
$v = $db->escape($v);
mysql_query("SELECT username,passwd,groups FROM {$v} LIMIT 1");
if (mysql_errno()) {
return "{$field['title']} - incorrect value. Error: " . mysql_error();
}
}