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


PHP account::loadDP方法代码示例

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


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

示例1: elseif

<?php 
$service = "revive";
if ($GLOBALS['service'][$service]['price'] == 0) {
    echo '<span class="attention">Revive is free of charge.</span>';
} else {
    ?>
<span class="attention">Revive costs 
<?php 
    echo $GLOBALS['service'][$service]['price'] . ' ' . website::convertCurrency($GLOBALS['service'][$service]['currency']);
    ?>
</span>
<?php 
    if ($GLOBALS['service'][$service]['currency'] == "vp") {
        echo "<span class='currency'>Vote Points: " . account::loadVP($_SESSION['cw_user']) . "</span>";
    } elseif ($GLOBALS['service'][$service]['currency'] == "dp") {
        echo "<span class='currency'>" . $GLOBALS['donation']['coins_name'] . ": " . account::loadDP($_SESSION['cw_user']) . "</span>";
    }
}
account::isNotLoggedIn();
connect::selectDB('webdb');
$num = 0;
$result = mysql_query('SELECT char_db,name FROM realms ORDER BY id ASC');
while ($row = mysql_fetch_assoc($result)) {
    $acct_id = account::getAccountID($_SESSION['cw_user']);
    $realm = $row['name'];
    $char_db = $row['char_db'];
    connect::selectDB($char_db);
    $result = mysql_query('SELECT name,guid,gender,class,race,level,online FROM characters WHERE account=' . $acct_id);
    while ($row = mysql_fetch_assoc($result)) {
        ?>
<div class='charBox'>
开发者ID:Kheros,项目名称:CraftedWeb,代码行数:31,代码来源:revive.php

示例2: item

#
#				-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.
?>
<div class='box_two_title'>Shopping Cart</div>
<?php 
echo '<span class="currency">Vote Points: ' . account::loadVP($_SESSION['cw_user']) . '<br/>
' . $GLOBALS['donation']['coins_name'] . ': ' . account::loadDP($_SESSION['cw_user']) . '
</span>';
if (isset($_GET['return']) && $_GET['return'] == "true") {
    echo "<span class='accept'>The item(s) was sent to the selected character!</span>";
} elseif (isset($_GET['return']) && $_GET['return'] != "true") {
    echo "<span class='alert'>" . $_GET['return'] . "</span>";
}
account::isNotLoggedIn();
connect::selectDB('webdb');
$counter = 0;
$totalDP = 0;
$totalVP = 0;
if (isset($_SESSION['donateCart']) && !empty($_SESSION['donateCart'])) {
    $counter = 1;
    echo '<h3>Donation Shop</h3>';
    $sql = "SELECT * FROM shopitems WHERE entry IN(";
开发者ID:nero08,项目名称:CraftedWeb,代码行数:31,代码来源:cart.php

示例3:

        <div id='cartArrow'>
        <img src='styles/default/images/arrow.png' border='none'/></div>
</div>

<?php 
if ($GLOBALS[$shopVar . 'Shop']['enableShop'] == FALSE) {
    echo "<span class='attention'><b>Attention! </b>The shop is currently closed. Please check back later.</span>";
} else {
    ?>

<span class='currency'><?php 
    echo $shopCurrency;
    ?>
: 
<?php 
    echo account::loadDP($_SESSION['cw_user']);
    ?>
</span>
<?php 
    if (!isset($_GET['search'])) {
        $inputValue = "Search for an item...";
    } else {
        $inputValue = $_GET['search_value'];
    }
    if ($GLOBALS[$shopVar . 'Shop']['shopType'] == 1) {
        //Search enabled.
        ?>
<center>
        <form action="?p=<?php 
        echo $shopPage;
        ?>
开发者ID:Kheros,项目名称:CraftedWeb,代码行数:31,代码来源:donateshop.php

示例4: Copyright

<?php

/*
            _____           ____
           |   __|_____ _ _|    \ ___ _ _ ___
           |   __|     | | |  |  | -_| | |_ -|
           |_____|_|_|_|___|____/|___|\_/|___|
    Copyright (C) 2013 EmuDevs <http://www.emudevs.com/>
*/
require '../ext_scripts_class_loader.php';
if (isset($_POST['element']) && $_POST['element'] == 'vote') {
    echo 'Vote Points: ' . account::loadVP($_POST['account']);
} elseif (isset($_POST['element']) && $_POST['element'] == 'donate') {
    echo $GLOBALS['donation']['coins_name'] . ': ' . account::loadDP($_POST['account']);
}
#################
if (isset($_POST['action']) && $_POST['action'] == 'removeComment') {
    connect::selectDB('webdb');
    mysql_query("DELETE FROM news_comments WHERE id='" . (int) $_POST['id'] . "'");
}
#################
if (isset($_POST['action']) && $_POST['action'] == 'getComment') {
    connect::selectDB('webdb');
    $result = mysql_query("SELECT `text` FROM news_comments WHERE id='" . (int) $_POST['id'] . "'");
    $row = mysql_fetch_assoc($result);
    echo $row['text'];
}
#################
if (isset($_POST['action']) && $_POST['action'] == 'editComment') {
    $content = mysql_real_escape_string(trim(htmlentities($_POST['content'])));
    connect::selectDB('webdb');
开发者ID:Kheros,项目名称:CraftedWeb,代码行数:31,代码来源:misc.php


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