<?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'>
# # -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(";
<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; ?>
<?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');