예제 #1
0
<?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
0
파일: vote.php 프로젝트: Kheros/CraftedWeb
<?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
0
파일: cart.php 프로젝트: nero08/CraftedWeb
#		  `-[ 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
0
<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
0
파일: misc.php 프로젝트: Kheros/CraftedWeb
<?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');