• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP evo_version_compare函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: die

 * It is meant to be called by an include in the main.page.php template.
 * To display the archive directory, you should call a stub AND pass the right parameters
 * For example: /blogs/index.php?disp=help
 *
 * b2evolution - {@link http://b2evolution.net/}
 * Released under GNU GPL License - {@link http://b2evolution.net/about/gnu-gpl-license}
 * @copyright (c)2003-2016 by Francois Planque - {@link http://fplanque.com/}
 *
 * @package evoskins
 * @subpackage bootstrap_forums_skin
 */
if (!defined('EVO_MAIN_INIT')) {
    die('Please, do not access this page directly.');
}
global $app_version, $disp, $Blog, $Skin, $Settings;
if (evo_version_compare($app_version, '6.4') < 0) {
    // Older skins (versions 2.x and above) should work on newer b2evo versions, but newer skins may not work on older b2evo versions.
    die('This skin is designed for b2evolution 6.4 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.');
}
global $Skin;
// This is the main template; it may be used to display very different things.
// Do inits depending on current $disp:
skin_init($disp);
// -------------------------- HTML HEADER INCLUDED HERE --------------------------
skin_include('_html_header.inc.php');
// -------------------------------- END OF HEADER --------------------------------
// ---------------------------- SITE HEADER INCLUDED HERE ----------------------------
// If site headers are enabled, they will be included here:
siteskin_include('_site_body_header.inc.php');
// ------------------------------- END OF SITE HEADER --------------------------------
?>
开发者ID:b2evolution,项目名称:bootstrap_forums_skin,代码行数:31,代码来源:help.main.php


示例2: die

<?php

/**
 * This file is the template that displays an access denied for non-members
 *
 * For a quick explanation of b2evo 2.0 skins, please start here:
 * {@link http://b2evolution.net/man/skin-development-primer}
 *
 * @package evoskins
 * @subpackage evopress
 */
if (!defined('EVO_MAIN_INIT')) {
    die('Please, do not access this page directly.');
}
global $app_version, $disp;
if (evo_version_compare($app_version, '4.0.0-dev') < 0) {
    // Older 2.x skins work on newer 2.x b2evo versions, but newer 2.x skins may not work on older 2.x b2evo versions.
    die('This skin is designed for b2evolution 4.0.0 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.');
}
// This is the main template; it may be used to display very different things.
// Do inits depending on current $disp:
skin_init($disp);
// -------------------------- HTML HEADER INCLUDED HERE --------------------------
skin_include('_html_header.inc.php', array());
// -------------------------------- END OF HEADER --------------------------------
// ------------------------- BODY HEADER INCLUDED HERE --------------------------
skin_include('_body_header.inc.php');
// Note: You can customize the default BODY header by copying the generic
// /skins/_body_header.inc.php file into the current skin folder.
// ------------------------------- END OF HEADER --------------------------------
?>
开发者ID:b2evolution,项目名称:evopress_skin,代码行数:31,代码来源:access_denied.main.php


示例3: die

/**
 * This is the main/default page template.
 *
 * For a quick explanation of b2evo 2.0 skins, please start here:
 * {@link http://b2evolution.net/man/skin-development-primer}
 *
 * It is used to display the blog when no specific page template is available to handle the request.
 *
 * @package evoskins
 * @subpackage asevo
 */
if (!defined('EVO_MAIN_INIT')) {
    die('Please, do not access this page directly.');
}
if (evo_version_compare($app_version, '3.0') < 0) {
    // Older skins (versions 2.x and above) should work on newer b2evo versions, but newer skins may not work on older b2evo versions.
    die('This skin is designed for b2evolution 3.0 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.');
}
// This is the main template; it may be used to display very different things.
// Do inits depending on current $disp:
skin_init($disp);
// -------------------------- HTML HEADER INCLUDED HERE --------------------------
skin_include('_html_header.inc.php');
// -------------------------------- END OF HEADER --------------------------------
// ---------------------------- SITE HEADER INCLUDED HERE ----------------------------
// If site headers are enabled, they will be included here:
siteskin_include('_site_body_header.inc.php');
// ------------------------------- END OF SITE HEADER --------------------------------
?>
开发者ID:b2evolution,项目名称:asevo_skin,代码行数:29,代码来源:index.main.php


示例4: skin_include

	<?php 
if (evo_version_compare($app_version, '6.7') >= 0) {
    // We are running at least b2evo 6.7, so we can include this file:
    // ------------------ WORKFLOW PROPERTIES INCLUDED HERE ------------------
    skin_include('_item_workflow.inc.php');
    // ---------------------- END OF WORKFLOW PROPERTIES ---------------------
}
?>

	<?php 
if ($disp == 'single' || $disp == 'page') {
    ?>
		<div class="item_meta_comments">
			<?php 
    if (evo_version_compare($app_version, '6.7') >= 0) {
        // We are running at least b2evo 6.7, so we can include this file:
        // ------------------ META COMMENTS INCLUDED HERE ------------------
        skin_include('_item_meta_comments.inc.php', array('comment_start' => '<article class="evo_comment evo_comment__meta panel panel-default">', 'comment_end' => '</article>', 'comment_post_before' => '<h3 class="evo_comment_post_title">', 'comment_post_after' => '</h3>', 'comment_title_before' => '<div class="panel-heading"><h4 class="evo_comment_title panel-title">', 'comment_title_after' => '</h4></div><div class="panel-body">'));
        // ---------------------- END OF META COMMENTS ---------------------
    }
    ?>
		</div>
	<?php 
}
?>

	<?php 
locale_restore_previous();
// Restore previous locale (Blog locale)
?>
开发者ID:b2evolution,项目名称:business_skin,代码行数:30,代码来源:_item_block.inc.php


示例5: die

<?php

/**
 * This file is the template that displays an access denied for non-members
 *
 * For a quick explanation of b2evo 2.0 skins, please start here:
 * {@link http://b2evolution.net/man/skin-development-primer}
 *
 * @package evoskins
 * @subpackage basic
 */
if (!defined('EVO_MAIN_INIT')) {
    die('Please, do not access this page directly.');
}
global $app_version, $disp, $Blog, $Plugins, $Hit;
if (evo_version_compare($app_version, '2.4.1') < 0) {
    // Older 2.x skins work on newer 2.x b2evo versions, but newer 2.x skins may not work on older 2.x b2evo versions.
    die('This skin is designed for b2evolution 2.4.1 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.');
}
// This is the main template; it may be used to display very different things.
// Do inits depending on current $disp:
skin_init($disp);
// The following is temporary and should be moved to some SiteSkin class
siteskin_init();
// ----------------------------- HEADER BEGINS HERE ------------------------------
?>
<html>
<head>
	<?php 
skin_content_meta();
/* Charset for static pages */
开发者ID:b2evolution,项目名称:basic_skin,代码行数:31,代码来源:access_denied.main.php


示例6: usergroup_create

    /**
     * Create new group
     *
     * @param integer Template group ID
     * @param string Group name
     * @param string Group usage: 'primary', 'secondary'
     */
    function usergroup_create($template_group_ID, $group_name, $usage = 'primary')
    {
        global $app_version;
        $GroupCache =& get_Cache('GroupCache');
        if (empty($template_group_ID)) {
            $this->debug_log('No template Group ID provided!');
        } elseif (!($template_Group = $GroupCache->get_by_ID($template_group_ID, false))) {
            $this->debug_log('Template with Group ID #' . $template_group_ID . ' not found!');
        } else {
            // Take a copy of the Group to use as template:
            global $DB;
            $this->debug_log('Using Group <b>' . $template_Group->get('name') . '</b> (#' . $template_group_ID . ') as template.');
            // Create new group:
            $new_Group = new Group();
            // Get field values of the template group:
            $group_row = $DB->get_row('SELECT *
				 FROM T_groups
				WHERE grp_ID = ' . $DB->quote($template_group_ID), ARRAY_A);
            foreach ($group_row as $group_field_name => $group_field_value) {
                // Copy each value from template group to new:
                $new_Group->set(preg_replace('/^grp_/', '', $group_field_name), $group_field_value);
            }
            $new_Group->set('ID', 0);
            // unset ID (to allow inserting)
            $new_Group->set('name', $group_name);
            // set the wanted name
            if (evo_version_compare($app_version, '6.7.0-alpha') >= 0) {
                // The plugin is used on b2evo 6.7+
                $new_Group->set('usage', $usage);
            }
            // Get settings of the template group:
            $GroupSettings =& $new_Group->get_GroupSettings();
            $group_settings = $DB->get_results('SELECT gset_name AS name, gset_value AS value
				 FROM T_groups__groupsettings
				WHERE gset_grp_ID = ' . $DB->quote($template_group_ID));
            foreach ($group_settings as $group_setting) {
                // Copy each setting from template group to new:
                $GroupSettings->set($group_setting->name, $group_setting->value, $new_Group->ID);
            }
            // Insert new group:
            $new_Group->dbinsert();
            if (!empty($new_Group->ID)) {
                $this->debug_log('Created ' . $usage . ' Group #' . $new_Group->ID . ' <b>' . $new_Group->get('name') . '</b>');
                return $new_Group;
            }
        }
        $r = false;
        return $r;
    }
开发者ID:b2evolution,项目名称:ldap_plugin,代码行数:56,代码来源:_ldap.plugin.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP evolve_get_option函数代码示例发布时间:2022-05-15
下一篇:
PHP evo_get_ett_count函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap