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


PHP buckys_enqueue_javascript函数代码示例

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


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

示例1: buckys_encrypt_id

        $result[] = ["id" => $row['userID'], 'label' => $row['fullName'], 'value' => $row['fullName'], 'hash' => buckys_encrypt_id($row['userID'])];
    }
    echo json_encode($result);
    buckys_exit();
}
if (isset($_POST['action']) && $_POST['action'] == 'send-money') {
    if (!isset($_POST['receiverID']) || !isset($_POST['receiverIDHash']) || !isset($_POST['amount']) || !buckys_check_id_encrypted($_POST['receiverID'], $_POST['receiverIDHash'])) {
        buckys_redirect('/credits.php', MSG_INVALID_REQUEST, MSG_TYPE_ERROR);
    }
    $result = BuckysTransaction::sendCredits($_POST['receiverID'], $_POST['amount']);
    if ($result === true) {
        buckys_redirect('/credits.php', MSG_SENT_CREDITS_SUCCESSFULLY);
    } else {
        buckys_redirect('/credits.php', $result, MSG_TYPE_ERROR);
    }
    exit;
}
$page = isset($_GET['page']) ? $_GET['page'] : 1;
$totalCount = BuckysTransaction::getNumOfCreditActivities($userID);
//Init Pagination Class
$pagination = new Pagination($totalCount, BuckysTransaction::$COUNT_PER_PAGE, $page);
$page = $pagination->getCurrentPage();
$activities = BuckysTransaction::getCreditActivities($TNB_GLOBALS['user']['userID'], $page);
buckys_enqueue_stylesheet('account.css');
buckys_enqueue_stylesheet('credits.css');
buckys_enqueue_javascript('credits.js');
buckys_enqueue_javascript('payment.js');
$TNB_GLOBALS['content'] = 'credits';
$TNB_GLOBALS['title'] = "Credits - " . TNB_SITE_NAME;
$TNB_GLOBALS['payerID'] = $userID;
require DIR_FS_TEMPLATE . $TNB_GLOBALS['template'] . "/" . $TNB_GLOBALS['layout'] . ".php";
开发者ID:HAPwebsite,项目名称:Social-Network-Website,代码行数:31,代码来源:credits.php

示例2: dirname

<?php

require dirname(dirname(__FILE__)) . '/includes/bootstrap.php';
if (!buckys_check_user_acl(USER_ACL_REGISTERED)) {
    buckys_redirect('/forum', MSG_PERMISSION_DENIED, MSG_TYPE_ERROR);
}
if (isset($_POST['action'])) {
    if ($_POST['action'] == 'create-topic') {
        $result = BuckysForumTopic::createTopic($_POST);
        if ($result == 'publish' || $result == 'pending') {
            buckys_redirect("/forum", MSG_TOPIC_POSTED_SUCCESSFULLY . ($result == 'pending' ? ' ' . MSG_POST_IS_UNDER_PREVIEW : ''), MSG_TYPE_SUCCESS);
        } else {
            buckys_redirect("/forum/create_topic.php", $result, MSG_TYPE_ERROR);
        }
    }
}
$curCatID = isset($_GET['category']) ? $_GET['category'] : 0;
$categories = BuckysForumCategory::getAllCategories();
buckys_enqueue_stylesheet('editor/jquery.cleditor.css');
buckys_enqueue_stylesheet('uploadify.css');
buckys_enqueue_stylesheet('forum.css');
buckys_enqueue_javascript('jquery-migrate-1.2.0.js');
buckys_enqueue_javascript('uploadify/jquery.uploadify.js');
buckys_enqueue_javascript('editor/jquery.cleditor.js');
//buckys_enqueue_javascript('editor/jquery.cleditor.bbcode.js');
$view['action_type'] = 'create';
$BUCKYS_GLOBALS['headerType'] = 'forum';
$BUCKYS_GLOBALS['content'] = 'forum/create_topic';
$BUCKYS_GLOBALS['title'] = 'Create a New Topic - BuckysRoomForum';
require DIR_FS_TEMPLATE . $BUCKYS_GLOBALS['template'] . "/" . $BUCKYS_GLOBALS['layout'] . ".php";
开发者ID:kishoreks,项目名称:BuckysRoom,代码行数:30,代码来源:create_topic.php

示例3: dirname

<?php

require dirname(dirname(__FILE__)) . '/includes/bootstrap.php';
if (!($userID = buckys_is_logged_in())) {
    buckys_redirect('/index.php', MSG_NOT_LOGGED_IN_USER, MSG_TYPE_ERROR);
}
buckys_enqueue_stylesheet('trade.css');
buckys_enqueue_javascript('trade.js');
$BUCKYS_GLOBALS['content'] = 'trade/offer_received';
$BUCKYS_GLOBALS['headerType'] = 'trade';
$paramCurrentPage = get_secure_integer($_REQUEST['page']);
$paramTargetID = get_secure_integer($_REQUEST['targetID']);
$view = array();
//Get offer_received info
$tradeOfferIns = new BuckysTradeOffer();
$view['offers'] = $tradeOfferIns->getOfferReceived($userID, $paramTargetID);
$view['offers'] = buckys_trade_pagination($view['offers'], '/trade/offer_received.php', $paramCurrentPage, TRADE_ROWS_PER_PAGE);
$BUCKYS_GLOBALS['title'] = 'Offer Received - BuckysRoomTrade';
//Mark the activity (offer received) as read
$tradeNotificationIns = new BuckysTradeNotification();
$tradeNotificationIns->markAsRead($userID, BuckysTradeNotification::ACTION_TYPE_OFFER_RECEIVED);
$tradeOfferIns->markAsRead($userID, BuckysTradeOffer::STATUS_OFFER_ACTIVE);
require DIR_FS_TEMPLATE . $BUCKYS_GLOBALS['template'] . "/" . $BUCKYS_GLOBALS['layout'] . ".php";
开发者ID:kishoreks,项目名称:BuckysRoom,代码行数:23,代码来源:offer_received.php

示例4: dirname

<?php

require dirname(dirname(__FILE__)) . '/includes/bootstrap.php';
buckys_enqueue_stylesheet('shop.css');
buckys_enqueue_javascript('shop.js');
$TNB_GLOBALS['content'] = 'shop/index';
$TNB_GLOBALS['headerType'] = 'shop';
//Get Top Users
$shopProductIns = new BuckysShopProduct();
$catIns = new BuckysShopCategory();
$view = [];
$view['recent_products'] = $shopProductIns->getRecentProducts(10);
$view['categories'] = $catIns->getCategoryList(0);
$TNB_GLOBALS['title'] = 'BuckysRoomShop - Buy and Sell Items with Bitcoin';
require DIR_FS_TEMPLATE . $TNB_GLOBALS['template'] . "/" . $TNB_GLOBALS['layout'] . ".php";
开发者ID:HAPwebsite,项目名称:Social-Network-Website,代码行数:15,代码来源:index.php

示例5: isset

$paramPageID = isset($_GET['pid']) ? intval($_GET['pid']) : null;
$pageData = $pageIns->getPageByID($paramPageID);
//If the parameter is null, goto homepage
if (!buckys_not_null($pageData)) {
    buckys_redirect('/index.php');
}
$page = isset($_GET['page']) && is_numeric($_GET['page']) ? $_GET['page'] : 1;
$totalCount = $pageFollowerIns->getNumberOfFollowers($pageData['pageID']);
$pagination = new Pagination($totalCount, BuckysPageFollower::COUNT_PER_PAGE, $page);
$page = $pagination->getCurrentPage();
//Get Friends
$view['followers'] = $pageFollowerIns->getFollowers($pageData['pageID'], $page, BuckysPageFollower::COUNT_PER_PAGE);
$view['pageData'] = $pageData;
buckys_enqueue_stylesheet('profile.css');
buckys_enqueue_stylesheet('friends.css');
buckys_enqueue_stylesheet('account.css');
buckys_enqueue_stylesheet('stream.css');
buckys_enqueue_stylesheet('posting.css');
buckys_enqueue_stylesheet('uploadify.css');
buckys_enqueue_stylesheet('jquery.Jcrop.css');
buckys_enqueue_stylesheet('page.css');
buckys_enqueue_javascript('uploadify/jquery.uploadify.js');
buckys_enqueue_javascript('jquery.Jcrop.js');
buckys_enqueue_javascript('jquery.color.js');
buckys_enqueue_javascript('posts.js');
buckys_enqueue_javascript('add_post.js');
buckys_enqueue_javascript('page.js');
$BUCKYS_GLOBALS['content'] = 'followers';
$BUCKYS_GLOBALS['title'] = trim($pageData['title']) . "'s Followers - BuckysRoom";
//if logged user can see all resources of the current user
require DIR_FS_TEMPLATE . $BUCKYS_GLOBALS['template'] . "/" . $BUCKYS_GLOBALS['layout'] . ".php";
开发者ID:kishoreks,项目名称:BuckysRoom,代码行数:31,代码来源:followers.php

示例6: buckys_redirect

    }
    if (!$toAddress) {
        buckys_redirect("/wallet.php", MSG_ENTER_BITCOINS_ADDRESS_OF_RECIPIENT, MSG_TYPE_ERROR);
    }
    if (!$amount || $amount <= 0) {
        buckys_redirect("/wallet.php", MSG_INVALID_BITCOIN_AMOUNT, MSG_TYPE_ERROR);
    }
    if (!$is_error) {
        $bitcoinClass->sendBitcoin($userID, $toAddress, $amount);
    }
    buckys_redirect("/wallet.php");
}
$page = isset($_GET['page']) ? $_GET['page'] : 1;
list($totalCount, $bitcoinBalance, $transactions) = $bitcoinClass->getTransactions($userID, $page, $bitcoinClass->COUNT_PER_PAGE);
if (!$bitcoinBalance) {
    $bitcoinBalance = 0;
}
//Init Pagination Class
$pagination = new Pagination($totalCount, $bitcoinClass->COUNT_PER_PAGE, $page);
$page = $pagination->getCurrentPage();
//Getting Balance
//$bitcoinBalance = $bitcoinClass->getWalletBalance($bitcoinInfo['bitcoin_guid'], buckys_decrypt($bitcoinInfo['bitcoin_password']));
buckys_enqueue_stylesheet('account.css');
buckys_enqueue_stylesheet('credits.css');
buckys_enqueue_javascript('wallet.js');
$TNB_GLOBALS['content'] = 'wallet';
$TNB_GLOBALS['title'] = "Wallet - " . TNB_SITE_NAME;
$TNB_GLOBALS['payerID'] = $userID;
$TNB_GLOBALS['meta'] = '<meta http-equiv="Pragma" content="no-cache">
                           <meta http-equiv="Cache-Control" content="no-cache">';
require DIR_FS_TEMPLATE . $TNB_GLOBALS['template'] . "/" . $TNB_GLOBALS['layout'] . ".php";
开发者ID:HAPwebsite,项目名称:Social-Network-Website,代码行数:31,代码来源:wallet.php

示例7: header

}
if (isset($_GET['reply'])) {
    $replyTo = BuckysMessage::getMessage($_GET['reply']);
}
if (isset($_POST['action'])) {
    //Check the user id is same with the current logged user id
    if ($_POST['userID'] != $userID) {
        echo 'Invalid Request!';
        exit;
    }
    //Save Address
    if ($_POST['action'] == 'compose_message') {
        //Show Results
        header('Content-type: application/xml');
        if (!BuckysMessage::composeMessage($_POST)) {
            render_result_xml(['status' => 'error', 'message' => buckys_get_messages()]);
        } else {
            render_result_xml(['status' => 'success', 'message' => buckys_get_messages()]);
        }
        exit;
    }
}
buckys_enqueue_stylesheet('jquery-ui/jquery-ui.css');
buckys_enqueue_stylesheet('account.css');
buckys_enqueue_stylesheet('info.css');
buckys_enqueue_stylesheet('messages.css');
buckys_enqueue_javascript('jquery-ui.min.js');
buckys_enqueue_javascript('messages.js');
$TNB_GLOBALS['content'] = 'messages_compose';
$TNB_GLOBALS['title'] = "Compose Message - " . TNB_SITE_NAME;
require DIR_FS_TEMPLATE . $TNB_GLOBALS['template'] . "/" . $TNB_GLOBALS['layout'] . ".php";
开发者ID:HAPwebsite,项目名称:Social-Network-Website,代码行数:31,代码来源:messages_compose.php

示例8: buckys_redirect

        buckys_redirect('/reported.php?type=' . $reportType, MSG_REPORTED_OBJECT_REMOVED);
    } else {
        if ($_REQUEST['action'] == 'approve-objects') {
            BuckysReport::approveObjects($_REQUEST['reportID'], $reportType, $moderatorType);
            buckys_redirect('/reported.php?type=' . $reportType, MSG_REPORTED_OBJECT_APPROVED);
        } else {
            if ($_REQUEST['action'] == 'ban-users') {
                BuckysReport::banUsers($_REQUEST['reportID'], $reportType, $moderatorType);
                buckys_redirect('/reported.php?type=' . $reportType, MSG_BAN_USERS);
            }
        }
    }
    exit;
}
$page = isset($_GET['page']) ? $_GET['page'] : 1;
$totalCount = BuckysReport::getReportedObjectCount($reportType);
//Init Pagination Class
$pagination = new Pagination($totalCount, BuckysReport::$COUNT_PER_PAGE, $page);
$page = $pagination->getCurrentPage();
$objects = BuckysReport::getReportedObject($reportType, $page, BuckysReport::$COUNT_PER_PAGE);
buckys_enqueue_stylesheet('account.css');
buckys_enqueue_stylesheet('moderator.css');
buckys_enqueue_stylesheet('moderator.css');
buckys_enqueue_stylesheet('prettify.css');
buckys_enqueue_javascript('prettyprint/run_prettify.js?skin=default&amp;');
buckys_enqueue_javascript('reported.js');
$BUCKYS_GLOBALS['content'] = 'reported';
//Reported Object Type Label
$reportLabel = array('post' => array('Post', 'Posts'), 'comment' => array('Comment', 'Comments'), 'message' => array('Message', 'Messages'), 'topic' => array('Topic', 'Topics'), 'reply' => array('Reply', 'Replies'));
$BUCKYS_GLOBALS['title'] = "Manage Reported " . $reportLabel[$reportType][1] . " - BuckysRoom";
require DIR_FS_TEMPLATE . $BUCKYS_GLOBALS['template'] . "/" . $BUCKYS_GLOBALS['layout'] . ".php";
开发者ID:kishoreks,项目名称:BuckysRoom,代码行数:31,代码来源:reported.php

示例9: ceil

if ($remindTimeString == '') {
    $remindTimeString = ceil($timeOffset / 60);
    if ($remindTimeString > 1) {
        $remindTimeString .= ' minutes';
    } else {
        $remindTimeString .= ' minute';
    }
}
if ($remindTimeString == '') {
    $remindTimeString = $timeOffset;
    if ($remindTimeString > 1) {
        $remindTimeString .= ' seconds';
    } else {
        $remindTimeString .= ' second';
    }
}
$page = isset($_GET['page']) ? $_GET['page'] : 1;
$totalCount = BuckysModerator::getCandidatesCount($moderatorType);
//Getting Current Moderator
$currentModerator = BuckysModerator::getModerator($moderatorType);
//Init Pagination Class
$pagination = new Pagination($totalCount, BuckysModerator::$CANDIDATES_PER_PAGE, $page);
$page = $pagination->getCurrentPage();
$candidates = BuckysModerator::getCandidates($moderatorType, $page);
buckys_enqueue_stylesheet('account.css');
buckys_enqueue_stylesheet('moderator.css');
buckys_enqueue_javascript('moderator.js');
$BUCKYS_GLOBALS['content'] = 'moderator';
$BUCKYS_GLOBALS['title'] = "Moderator - BuckysRoom";
//if logged user can see all resources of the current user
require DIR_FS_TEMPLATE . $BUCKYS_GLOBALS['template'] . "/" . $BUCKYS_GLOBALS['layout'] . ".php";
开发者ID:kishoreks,项目名称:BuckysRoom,代码行数:31,代码来源:moderator.php

示例10: dirname

require dirname(__FILE__) . '/includes/bootstrap.php';
//Getting Current User ID
$userID = buckys_is_logged_in();
//If the parameter is null, goto homepage
if ($userID) {
    buckys_redirect('/account.php');
}
$token = isset($_REQUEST['token']) ? $_REQUEST['token'] : '';
if (!$token) {
    buckys_redirect('/index.php', MSG_INVALID_REQUEST, MSG_TYPE_ERROR);
}
if (!($userID = BuckysUsersToken::checkTokenValidity($token, 'password'))) {
    buckys_redirect('/register.php?forgotpwd=1', MSG_USER_TOKEN_LINK_NOT_CORRECT, MSG_TYPE_ERROR);
}
if (isset($_POST['action']) && $_POST['action'] == 'reset-password') {
    if (!$_POST['password'] || !$_POST['password']) {
        buckys_add_message(MSG_EMPTY_PASSWORD, MSG_TYPE_ERROR);
    } else {
        if ($_POST['password'] != $_POST['password']) {
            buckys_add_message(MSG_NOT_MATCH_PASSWORD, MSG_TYPE_ERROR);
        } else {
            $pwd = buckys_encrypt_password($_POST['password']);
            BuckysUser::updateUserFields($userID, ['password' => $pwd]);
            buckys_redirect('/index.php', MSG_PASSWORD_UPDATED);
        }
    }
}
buckys_enqueue_stylesheet('register.css');
buckys_enqueue_javascript('register.js');
$TNB_GLOBALS['content'] = 'reset_password';
require DIR_FS_TEMPLATE . $TNB_GLOBALS['template'] . "/" . $TNB_GLOBALS['layout'] . ".php";
开发者ID:HAPwebsite,项目名称:Social-Network-Website,代码行数:31,代码来源:reset_password.php

示例11: dirname

<?php

require dirname(dirname(__FILE__)) . '/includes/bootstrap.php';
if (!($userID = buckys_is_logged_in())) {
    buckys_redirect('/index.php', MSG_NOT_LOGGED_IN_USER, MSG_TYPE_ERROR);
}
buckys_enqueue_stylesheet('uploadify.css');
buckys_enqueue_stylesheet('jquery.Jcrop.css');
buckys_enqueue_stylesheet('trade.css');
buckys_enqueue_javascript('uploadify/jquery.uploadify.js');
buckys_enqueue_javascript('jquery.Jcrop.js');
buckys_enqueue_javascript('jquery.color.js');
buckys_enqueue_javascript('trade.js');
buckys_enqueue_javascript('trade-edit.js');
$BUCKYS_GLOBALS['content'] = 'trade/additem';
$BUCKYS_GLOBALS['headerType'] = 'trade';
$view = array();
$tradeCatIns = new BuckysTradeCategory();
$countryIns = new BuckysCountry();
$tradeItemIns = new BuckysTradeItem();
$tradeUserIns = new BuckysTradeUser();
$view['category_list'] = $tradeCatIns->getCategoryList(0);
$view['country_list'] = $countryIns->getCountryList();
$view['action_name'] = 'editTradeItem';
$paramItemID = get_secure_integer($_REQUEST['id']);
$paramType = get_secure_string($_REQUEST['type']);
$view['item'] = null;
switch ($paramType) {
    case 'relist':
        $view['no_credits'] = false;
        if (!$tradeUserIns->hasCredits($userID)) {
开发者ID:kishoreks,项目名称:BuckysRoom,代码行数:31,代码来源:edititem.php

示例12: buckys_redirect

    if ($_REQUEST['action'] == 'unban') {
        BuckysBanUser::unbanUsers($_REQUEST['bannedID']);
        buckys_redirect('/banned_users.php', MSG_UNBAN_USERS);
    } else {
        if ($_REQUEST['action'] == 'delete') {
            BuckysBanUser::deleteUsers($_REQUEST['bannedID']);
            buckys_redirect('/banned_users.php', MSG_DELETE_USERS);
        } else {
            if ($_REQUEST['action'] == 'deletebyid') {
                if (!isset($_REQUEST['userID']) || !BuckysUser::checkUserID($_REQUEST['userID'], false)) {
                    buckys_redirect('/index.php', MSG_INVALID_REQUEST, MSG_TYPE_ERROR);
                }
                BuckysUser::deleteUserAccount($_REQUEST['userID']);
                buckys_redirect('/index.php', MSG_DELETE_USERS);
            }
        }
    }
    exit;
}
$page = isset($_GET['page']) ? $_GET['page'] : 1;
$totalCount = BuckysBanUser::getBannedUsersCount();
//Init Pagination Class
$pagination = new Pagination($totalCount, BuckysBanUser::$COUNT_PER_PAGE, $page);
$page = $pagination->getCurrentPage();
$users = BuckysBanUser::getBannedUsers($page, BuckysBanUser::$COUNT_PER_PAGE);
buckys_enqueue_stylesheet('account.css');
buckys_enqueue_stylesheet('moderator.css');
buckys_enqueue_javascript('banned_users.js');
$BUCKYS_GLOBALS['content'] = 'banned_users';
$BUCKYS_GLOBALS['title'] = "Manage Banned Users - BuckysRoom";
require DIR_FS_TEMPLATE . $BUCKYS_GLOBALS['template'] . "/" . $BUCKYS_GLOBALS['layout'] . ".php";
开发者ID:kishoreks,项目名称:BuckysRoom,代码行数:31,代码来源:banned_users.php

示例13: dirname

<?php

require dirname(__FILE__) . '/includes/bootstrap.php';
//Getting Current User ID
if (!($userID = buckys_is_logged_in())) {
    buckys_redirect('/index.php', MSG_NOT_LOGGED_IN_USER, MSG_TYPE_ERROR);
}
if (isset($_POST['action']) && $_POST['action'] == 'create-photo') {
    //Add Photo
    if ($newID = BuckysPost::savePhoto($userID, $_POST)) {
        buckys_redirect('/photo_edit.php?photoID=' . $newID);
    } else {
        buckys_redirect('/photo_add.php');
    }
}
//Getting UserData from Id
$userData = BuckysUser::getUserData($userID);
//Getting User Albums
$albums = BuckysAlbum::getAlbumsByUserId($userID);
buckys_enqueue_stylesheet('account.css');
buckys_enqueue_stylesheet('posting.css');
buckys_enqueue_stylesheet('uploadify.css');
buckys_enqueue_stylesheet('jquery.Jcrop.css');
buckys_enqueue_javascript('uploadify/jquery.uploadify.js');
buckys_enqueue_javascript('jquery.Jcrop.js');
buckys_enqueue_javascript('jquery.color.js');
buckys_enqueue_javascript('add_photo.js');
$BUCKYS_GLOBALS['content'] = 'photo_add';
$BUCKYS_GLOBALS['title'] = "Add Photo - BuckysRoom";
require DIR_FS_TEMPLATE . $BUCKYS_GLOBALS['template'] . "/" . $BUCKYS_GLOBALS['layout'] . ".php";
开发者ID:kishoreks,项目名称:BuckysRoom,代码行数:30,代码来源:photo_add.php

示例14: Database_Mysqli

}
require_once DIR_FS_INCLUDES . "messages.php";
require_once DIR_FS_INCLUDES . "tables.php";
$db = new Database_Mysqli(DATABASE_HOST, DATABASE_USERNAME, DATABASE_PASSWORD, DATABASE_NAME);
require_once DIR_FS_FUNCTIONS . "session.php";
require_once DIR_FS_FUNCTIONS . "general.php";
require_once DIR_FS_FUNCTIONS . "view.php";
//Session Start
buckys_session_start();
//Init Global Values
buckys_enqueue_javascript('jquery-1.9.0.js', false, false);
buckys_enqueue_javascript('site.js');
buckys_enqueue_stylesheet('main.css');
$BUCKYS_GLOBALS['template'] = DEFAULT_THEME;
$BUCKYS_GLOBALS['layout'] = 'layout';
$BUCKYS_GLOBALS['headerType'] = 'default';
//Define User Acl Constants
BuckysUserAcl::defineAclConstants();
//Set User Data into Global Variable
if (!($userID = buckys_is_logged_in())) {
    $BUCKYS_GLOBALS['user'] = array('userID' => 0, 'user_type' => 'Public', 'aclLevel' => 0, 'aclName' => 'Public');
} else {
    $BUCKYS_GLOBALS['user'] = BuckysUser::getUserBasicInfo($userID);
}
if (buckys_is_logged_in()) {
    buckys_enqueue_stylesheet('footer.css');
    buckys_enqueue_stylesheet('jquery-ui/jquery-ui.css');
    buckys_enqueue_javascript('jquery-ui.min.js');
    buckys_enqueue_javascript('jquery.contextMenu.js');
    buckys_enqueue_javascript('private_messenger.js');
}
开发者ID:kishoreks,项目名称:BuckysRoom,代码行数:31,代码来源:bootstrap.php

示例15: buckys_is_logged_in

            $userID = buckys_is_logged_in();
            $replyID = isset($_GET['replyID']) ? get_secure_integer($_GET['replyID']) : null;
            $replyData = $forumReplyIns->getReplyByID($replyID);
            if ($replyData && $replyData['creatorID'] == $userID && $replyData['topicID'] == $topicID) {
                //then you can edit this one
                $view['replyData'] = $replyData;
                $view['action_type'] = 'edit';
                $view['replyID'] = $replyID;
            } else {
                //permission error
                buckys_redirect('/forum', MSG_PERMISSION_DENIED, MSG_TYPE_ERROR);
            }
        }
    }
}
if (!isset($replyData) || !$replyData) {
    buckys_redirect("/forum", MSG_INVALID_REQUEST, MSG_TYPE_ERROR);
}
$topicData = BuckysForumTopic::getTopic($replyData['replyID']);
$category = BuckysForumCategory::getCategory($topicData['categoryID']);
$categories = BuckysForumCategory::getAllCategories();
buckys_enqueue_stylesheet('sceditor/themes/default.css');
buckys_enqueue_stylesheet('forum.css');
buckys_enqueue_stylesheet('publisher.css');
buckys_enqueue_stylesheet('uploadify.css');
buckys_enqueue_javascript('sceditor/jquery.sceditor.bbcode.js');
buckys_enqueue_javascript('uploadify/jquery.uploadify.js');
$TNB_GLOBALS['headerType'] = 'forum';
$TNB_GLOBALS['content'] = 'forum/post_reply';
$TNB_GLOBALS['title'] = 'Post Reply - thenewboston Forum';
require DIR_FS_TEMPLATE . $TNB_GLOBALS['template'] . "/" . $TNB_GLOBALS['layout'] . ".php";
开发者ID:HAPwebsite,项目名称:Social-Network-Website,代码行数:31,代码来源:post_reply.php


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