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


PHP plugins::load方法代码示例

本文整理汇总了PHP中plugins::load方法的典型用法代码示例。如果您正苦于以下问题:PHP plugins::load方法的具体用法?PHP plugins::load怎么用?PHP plugins::load使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在plugins的用法示例。


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

示例1: Anthony

		-[ Created by ©Nomsoft
		  `-[ Original core by Anthony (Aka. CraftedDev)

				-CraftedWeb Generation II-                  
			 __                           __ _   							   
		  /\ \ \___  _ __ ___  ___  ___  / _| |_ 							   
		 /  \/ / _ \| '_ ` _ \/ __|/ _ \| |_| __|							   
		/ /\  / (_) | | | | | \__ \ (_) |  _| |_ 							   
		\_\ \/ \___/|_| |_| |_|___/\___/|_|  \__|	- www.Nomsoftware.com -	   
                  The policy of Nomsoftware states: Releasing our software   
                  or any other files are protected. You cannot re-release    
                  anywhere unless you were given permission.                 
                  © Nomsoftware 'Nomsoft' 2011-2012. All rights reserved.  */
require 'includes/classes/template_parse.php';
connect::selectDB('webdb');
$getTemplate = mysql_query("SELECT path FROM template WHERE applied='1' ORDER BY id ASC LIMIT 1");
$row = mysql_fetch_assoc($getTemplate);
$template['path'] = $row['path'];
if (!file_exists("styles/" . $template['path'] . "/style.css") || !file_exists("styles/" . $template['path'] . "/template.html")) {
    buildError("<b>Template Error: </b>The active template does not exist or missing files.", NULL);
    exit_page();
}
?>
<link rel="stylesheet" href="styles/<?php 
echo $template['path'];
?>
/style.css" />
<link rel="stylesheet" href="styles/global/style.css" />
<?php 
plugins::load('styles');
开发者ID:nero08,项目名称:CraftedWeb,代码行数:30,代码来源:template_loader.php

示例2: function

    ?>
	<script type="text/javascript">
		$(document).ready(function() {
				var box_width_one = $(".box_one").width();
				$("#fb").attr('width', box_width_one);
		});
	</script>
<?php 
}
####SERVER STATUS######
if ($GLOBALS['serverStatus']['enable'] == true) {
    ?>
	<script type="text/javascript">
        $(document).ready(function() {
            $.post("includes/scripts/misc.php", { serverStatus: true },
               function(data) {
                   $("#server_status").html(data);
                   $(".srv_status_po").hover(function() {
                        $(".srv_status_text").fadeIn("fast");
                         }, function() {
                        $(".srv_status_text").fadeOut("fast");
                        });
          });
        });
    </script>
<?php 
}
plugins::load('javascript');
?>

开发者ID:Kheros,项目名称:CraftedWeb,代码行数:29,代码来源:javascript_loader.php

示例3: Copyright

/*
            _____           ____
           |   __|_____ _ _|    \ ___ _ _ ___
           |   __|     | | |  |  | -_| | |_ -|
           |_____|_|_|_|___|____/|___|\_/|___|
    Copyright (C) 2013 EmuDevs <http://www.emudevs.com/>
*/
connect::selectDB('webdb');
$pages = scandir('pages');
unset($pages[0], $pages[1]);
$page = mysql_real_escape_string($_GET['p']);
if (!isset($page)) {
    include 'pages/home.php';
} elseif (isset($_SESSION['loaded_plugins_pages']) && $GLOBALS['enablePlugins'] == true && !in_array($page . '.php', $pages)) {
    plugins::load('pages');
} elseif (in_array($page . '.php', $pages)) {
    $result = mysql_query("SELECT COUNT(filename) FROM disabled_pages WHERE filename='" . $page . "'");
    if (mysql_result($result, 0) == 0) {
        include 'pages/' . $page . '.php';
    } else {
        include 'pages/404.php';
    }
} else {
    $result = mysql_query("SELECT * FROM custom_pages WHERE filename='" . $page . "'");
    if (mysql_num_rows($result) > 0) {
        $check = mysql_query("SELECT COUNT(filename) FROM disabled_pages WHERE filename='" . $page . "'");
        if (mysql_result($check, 0) == 0) {
            $row = mysql_fetch_assoc($result);
            echo html_entity_decode($row['content']);
        }
开发者ID:Kheros,项目名称:CraftedWeb,代码行数:30,代码来源:content.php


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