本文整理汇总了PHP中account::loadVP方法的典型用法代码示例。如果您正苦于以下问题:PHP account::loadVP方法的具体用法?PHP account::loadVP怎么用?PHP account::loadVP使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类account
的用法示例。
在下文中一共展示了account::loadVP方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: floor
<?php
echo $GLOBALS['website_title'];
?>
now lets you convert your Vote Points into <?php
echo $GLOBALS['donation']['coins_name'];
?>
!<br/>
Every <?php
echo $divide;
?>
th Vote Point will give you 1 donation coin, simple! <br/>
You currently have <b><?php
echo account::loadVP($_SESSION['cw_user']);
?>
</b> Vote Points which would give you <b><?php
echo floor(account::loadVP($_SESSION['cw_user']) / $divide);
?>
</b> <?php
echo $GLOBALS['donation']['coins_name'];
?>
.
<hr/>
<form action="?p=convert" method="post">
<table>
<tr>
<td>
Vote Points:
</td>
<td>
示例2: Copyright
<?php
/*
_____ ____
| __|_____ _ _| \ ___ _ _ ___
| __| | | | | | -_| | |_ -|
|_____|_|_|_|___|____/|___|\_/|___|
Copyright (C) 2013 EmuDevs <http://www.emudevs.com/>
*/
account::isNotLoggedIn();
?>
<div class='box_two_title'>Vote</div>
<h4 class="yellow_text">Vote Points: <?php
echo account::loadVP($_SESSION['cw_user']);
?>
</h4>
<?php
website::loadVotingLinks();
示例3: Anthony
# `-[ 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.
?>
<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>';
示例4: elseif
<div class='box_two_title'>Character Reviver</div>
Choose the character you wish to revive. The character will be revived with 1 health.<hr/>
<?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)) {
示例5: 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');