當前位置: 首頁>>代碼示例>>PHP>>正文


PHP kernel::load_module方法代碼示例

本文整理匯總了PHP中kernel::load_module方法的典型用法代碼示例。如果您正苦於以下問題:PHP kernel::load_module方法的具體用法?PHP kernel::load_module怎麽用?PHP kernel::load_module使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在kernel的用法示例。


在下文中一共展示了kernel::load_module方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: kernel

<?php

ob_start();
//Błędy :
// v#1 - nie przesłano żadnych danych wejśiowych
//Loading core of application
require_once "_core/kernel.php";
$kernel = new kernel();
//Loading settings of application
$kernel->load_module("manager");
$kernel->load_module("users");
//Loading main theme
$img = $kernel->manager;
$user = $kernel->users;
//Loading functions of user
$user->sessionTools();
if (isset($_GET['get'])) {
    if (is_numeric($_GET['get'])) {
        $_GET['get'] = mysql_real_escape_string($_GET['get']);
        $query = mysql_query("SELECT COUNT(*),SUM(vote) FROM `tentego_img_vote` WHERE `object_id`=" . $_GET['get']);
        $query_s = mysql_fetch_array($query);
        if ($query_s['COUNT(*)'] > 0) {
            echo ceil($query_s['SUM(vote)'] / $query_s['COUNT(*)'] * 100);
        } else {
            echo "?";
        }
    }
} else {
    if (!$user->verifyLogin()) {
        echo 'Musisz być zalogowany, żeby oddać głos.';
    } else {
開發者ID:roxio,項目名稱:TenTego2,代碼行數:31,代碼來源:vote.php

示例2: kernel

<?php

ob_start();
//Loading core of application
require_once "_core/kernel.php";
$kernel = new kernel();
//Loading settings of application
$kernel->load_module("settings");
require_once "_core/rewrite.php";
$kernel->load_module("manager");
$kernel->load_module("ads");
$kernel->load_module("users");
$kernel->load_module("inbox");
//Loading main theme
$page = $kernel->settings;
$theme = $page->load('theme');
$img = $kernel->manager;
$ads = $kernel->ads;
$user = $kernel->users;
$inbox = $kernel->inbox;
$allowed = 'page,theme,img,ads,user,inbox,rewrite';
//Loading functions of user
$user->sessionTools();
if (!$user->verifyLogin()) {
    header('Location: ' . $rewrite->login);
    exit;
}
//Favorites api
if (isset($_GET['do'])) {
    ob_end_clean();
    function check($id)
開發者ID:roxio,項目名稱:TenTego2,代碼行數:31,代碼來源:favorites.php

示例3: kernel

<?php

ob_start();
//Loading core of application
require_once "_core/kernel.php";
$kernel = new kernel();
//Loading settings of application
$kernel->load_module("settings");
$kernel->load_module("users");
//Loading main theme
$page = $kernel->settings;
$theme = $page->load('theme');
$user = $kernel->users;
$allowed = 'page,theme,user';
if ($user->userInfo('rank') < 3) {
    header('Location: index.php');
}
//Including content of theme
$kernel->load_content("_themes/" . $theme . "/banned.php", $allowed);
ob_end_flush();
開發者ID:roxio,項目名稱:TenTego2,代碼行數:20,代碼來源:banned.php


注:本文中的kernel::load_module方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。