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


PHP config_set_readme函数代码示例

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


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

示例1: die

<?php

if (!defined('INCLUDED_AMEMBER_CONFIG')) {
    die("Direct access to this location is not allowed");
}
$notebook_page = 'TripleDeal';
config_set_notebook_comment($notebook_page, 'TripleDeal plugin configuration');
if (file_exists($rm = dirname(__FILE__) . "/readme.txt")) {
    config_set_readme($notebook_page, $rm);
}
add_config_field('payment.tripledeal.merchant_name', 'Your TripleDeal Merchant Name', 'text', "your TripleDeal merchant name", $notebook_page, '');
add_config_field('payment.tripledeal.merchant_password', 'Your TripleDeal Merchant Password', 'password_c', "your TripleDeal merchant password", $notebook_page, '');
add_config_field('payment.tripledeal.profile', 'Your TripleDeal Profile', 'text', "your TripleDeal profile", $notebook_page, '', '', '', array('default' => 'OnlyCreditCards'));
add_config_field('payment.tripledeal.debugmode', 'Debug Mode Enabled', 'select', "Set to No after you complete testing.", $notebook_page, '', '', '', array('options' => array(0 => 'No', 1 => 'Yes')));
add_config_field('payment.tripledeal.title', 'Payment Method Title', 'text', "displayed on signup page and on renewal page", $notebook_page, '', '', '', array('default' => 'TripleDeal'));
add_config_field('payment.tripledeal.description', 'Payment Method Description', 'text', "displayed on signup page", $notebook_page, '', '', '', array('default' => 'Credit Card Payment'));
开发者ID:subashemphasize,项目名称:test_site,代码行数:16,代码来源:config.inc.php

示例2: shop_config

}
if ($config['use_shop']) {
    shop_config();
}
/********************************** LANGUAGES ***********************************/
$page = "Languages";
config_set_notebook_comment($page, 'configure multi-language user interface');
if ($_REQUEST['notebook'] == $page) {
    add_config_field('lang.list', 'Available Languages', 'multi_checkbox', 'choose which languages are available<br />
        for customers choice', $page, '', '', '', array('options' => languages_get_options(), 'store_type' => 1, size => '5em'));
    add_config_field('lang.default', 'Default Language', 'select', 'will be used by default until customer<br />
        makes another choice. Make sure it is also<br />
        selected in the list above', $page, '', '', '', array('options' => languages_get_options(), 'default' => 'en:English'));
    add_config_field('lang.display_choice', 'Display Language Choice', 'checkbox', 'allow customer to choose another language<br />
        from signup, login and other pages', $page, '', '', '', array());
    config_set_readme($page, $config['root_dir'] . '/language/readme.txt');
}
/*############################## FUNCTIONS #########################################*/
function validate_license($field, $vars)
{
    if (function_exists('is_trial') && is_trial()) {
        return;
    }
    global $config;
    $v = $vars[$field['name']];
    if (!strlen($v)) {
        $errors[] = "Please enter license code";
    }
    $domains = array();
    foreach (preg_split('|===== ENF OF LICENSE =====[\\r\\n\\s]*|m', $v, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE) as $v) {
        $v .= "===== ENF OF LICENSE =====";
开发者ID:subashemphasize,项目名称:test_site,代码行数:31,代码来源:config.inc.php


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