<?php /* _____ ____ | __|_____ _ _| \ ___ _ _ ___ | __| | | | | | -_| | |_ -| |_____|_|_|_|___|____/|___|\_/|___| Copyright (C) 2013 EmuDevs <http://www.emudevs.com/> */ $server->selectDB('webdb'); $page = new page(); $page->validatePageAccess('Pages'); if ($page->validateSubPage() == TRUE) { $page->outputSubPage(); } else { ?> <div class="box_right_title">Pages</div> <?php if (!isset($_GET['action'])) { ?> <table class="center"> <tr> <th>Name</th><th>File name</th><th>Actions</th> </tr> <?php $result = mysql_query("SELECT * FROM custom_pages ORDER BY id ASC"); while ($row = mysql_fetch_assoc($result)) { $check = mysql_query("SELECT COUNT(filename) FROM disabled_pages WHERE filename='" . $row['filename'] . "'");
-[ Created by ©Nomsoft `-[ 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. */ $server->selectDB('webdb'); $page = new page(); $page->validatePageAccess('Donations'); if ($page->validateSubPage() == TRUE) { $page->outputSubPage(); } else { $donationsTotal = mysql_query("SELECT mc_gross FROM payments_log"); $donationsTotalAmount = 0; while ($row = mysql_fetch_assoc($donationsTotal)) { $donationsTotalAmount = $donationsTotalAmount + $row['mc_gross']; } $donationsThisMonth = mysql_query("SELECT mc_gross FROM payments_log WHERE paymentdate LIKE '%" . date('Y-md') . "%'"); $donationsThisMonthAmount = 0; while ($row = mysql_fetch_assoc($donationsThisMonth)) { $donationsThisMonthAmount = $donationsThisMonthAmount + $row['mc_gross']; } $q = mysql_query("SELECT mc_gross,userid FROM payments_log ORDER BY paymentdate DESC LIMIT 1"); $row = mysql_fetch_assoc($q);
<?php /* _____ ____ | __|_____ _ _| \ ___ _ _ ___ | __| | | | | | -_| | |_ -| |_____|_|_|_|___|____/|___|\_/|___| Copyright (C) 2013 EmuDevs <http://www.emudevs.com/> */ $server->selectDB('webdb'); $page = new page(); $page->validatePageAccess('Logs'); if ($page->validateSubPage() == TRUE) { $page->outputSubPage(); } else { ?> <div class='box_right_title'>Hey! You shouldn't be here!</div> <pre>The script might have redirected you wrong. Or... did you try to HACK!? Anyways, good luck.</pre> <a href="?p=logs&s=voteshop" class="content_hider">Vote Shop logs</a> <a href="?p=logs&s=donateshop" class="content_hider">Donation Shop logs</a> <?php }
<?php /* _____ ____ | __|_____ _ _| \ ___ _ _ ___ | __| | | | | | -_| | |_ -| |_____|_|_|_|___|____/|___|\_/|___| Copyright (C) 2013 EmuDevs <http://www.emudevs.com/> */ $page = new page(); $page->validatePageAccess('Shop'); if ($page->validateSubPage() == TRUE) { $page->outputSubPage(); } else { $server->selectDB('webdb'); $inShop = mysql_query("SELECT COUNT(*) FROM shopitems"); $purchToday = mysql_query("SELECT COUNT(*) FROM shoplog WHERE date LIKE '%" . date('Y-m-d') . "%'"); $getAvg = mysql_query("SELECT AVG(*) AS priceAvg FROM shopitems"); $totalPurch = mysql_query("SELECT COUNT(*) FROM shoplog"); //Note: The round() function will return 0 if no value is set :) ?> <div class="box_right_title">Shop Overview</div> <table style="width: 100%;"> <tr> <td><span class='blue_text'>Items in shop</span></td><td><?php echo round(mysql_result($inShop, 0)); ?> </td> </tr> <tr> <td><span class='blue_text'>Purchases today</span></td><td><?php
-[ Created by ©Nomsoft `-[ 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. */ $server->selectDB('webdb'); $page = new page(); $page->validatePageAccess('Realms'); if ($page->validateSubPage() == TRUE) { $page->outputSubPage(); } else { ?> <div class='box_right_title'>New Realm</div> <?php if (isset($_POST['add_realm'])) { $server->addRealm($_POST['realm_id'], $_POST['realm_name'], $_POST['realm_desc'], $_POST['realm_host'], $_POST['realm_port'], $_POST['realm_chardb'], $_POST['realm_sendtype'], $_POST['realm_rank_username'], $_POST['realm_rank_password'], $_POST['realm_ra_port'], $_POST['realm_soap_port'], $_POST['realm_a_host'], $_POST['realm_a_user'], $_POST['realm_a_pass']); } ?> <form action="?p=realms" method="post" style="line-height: 15px;"> <b>General Realm Information</b><hr/> Realm ID: <br/> <input type="text" name="realm_id" placeholder="Default: 1"/> <br/>
`-[ 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. */ $server = new server(); $account = new account(); $page = new page(); $page->validatePageAccess('Tools->Account Access'); ?> <div class="box_right_title">Account Access</div> All GM accounts are listed below. <br/> <table> <tr> <th>ID</th> <th>Username</th> <th>Rank</th> <th>Realms</th> <th>Status</th> <th>Last Login</th> <th>Actions</th> </tr> <?php
-[ Created by ©Nomsoft `-[ 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. */ $server->selectDB('webdb'); $page = new page(); $page->validatePageAccess('Interface'); if ($page->validateSubPage() == TRUE) { $page->outputSubPage(); } else { ?> <div class="box_right_title">Template</div> Here you can choose which template that should be active on your website. This is also where you install new themes for your website.<br/><br/> <h3>Choose Template</h3> <select id="choose_template"> <?php $result = mysql_query("SELECT * FROM template ORDER BY id ASC"); while ($row = mysql_fetch_assoc($result)) { if ($row['applied'] == 1) { echo "<option selected='selected' value='" . $row['id'] . "'>[Active] "; } else {
<?php /* _____ ____ | __|_____ _ _| \ ___ _ _ ___ | __| | | | | | -_| | |_ -| |_____|_|_|_|___|____/|___|\_/|___| Copyright (C) 2013 EmuDevs <http://www.emudevs.com/> */ $server->selectDB('webdb'); $page = new page(); $page->validatePageAccess('Services'); if ($page->validateSubPage() == TRUE) { $page->outputSubPage(); } else { echo '<h2>Forbidden!</h2>Or actually... there\'s nothing here!'; }
<?php /* _____ ____ | __|_____ _ _| \ ___ _ _ ___ | __| | | | | | -_| | |_ -| |_____|_|_|_|___|____/|___|\_/|___| Copyright (C) 2013 EmuDevs <http://www.emudevs.com/> */ $server->selectDB('webdb'); $page = new page(); $page->validatePageAccess('Users'); if ($page->validateSubPage() == TRUE) { $page->outputSubPage(); } else { $server->selectDB('logondb'); $usersTotal = mysql_query("SELECT COUNT(*) FROM account"); $usersToday = mysql_query("SELECT COUNT(*) FROM account WHERE joindate LIKE '%" . date("Y-m-d") . "%'"); $usersMonth = mysql_query("SELECT COUNT(*) FROM account WHERE joindate LIKE '%" . date("Y-m") . "%'"); $usersOnline = mysql_query("SELECT COUNT(*) FROM account WHERE online=1"); $usersActive = mysql_query("SELECT COUNT(*) FROM account WHERE last_login LIKE '%" . date("Y-m") . "%'"); $usersActiveToday = mysql_query("SELECT COUNT(*) FROM account WHERE last_login LIKE '%" . date("Y-m-d") . "%'"); ?> <div class="box_right_title">Users Overview</div> <table style="width: 100%;"> <tr> <td><span class='blue_text'>Total users</span></td><td><?php echo round(mysql_result($usersTotal, 0)); ?> </td> <td><span class='blue_text'>New users today</span></td><td><?php
<?php /* _____ ____ | __|_____ _ _| \ ___ _ _ ___ | __| | | | | | -_| | |_ -| |_____|_|_|_|___|____/|___|\_/|___| Copyright (C) 2013 EmuDevs <http://www.emudevs.com/> */ $server = new server(); $account = new account(); $page = new page(); $page->validatePageAccess('Tools->Tickets'); ?> <div class="box_right_title">Tickets</div> <?php if (!isset($_GET['guid'])) { ?> <table class="center"> <tr> <td><input type="checkbox" id="tickets_offline">View offline tickets</td> <td> <select id="tickets_realm"> <?php $server->selectDB('webdb'); $result = mysql_query("SELECT char_db,name,description FROM realms"); if (mysql_num_rows($result) == 0) { echo '<option value="NULL">No realms found.</option>'; } else { echo '<option value="NULL">--Select a realm--</option>'; while ($row = mysql_fetch_assoc($result)) {
-[ Created by ©Nomsoft `-[ 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. */ $server->selectDB('webdb'); $page = new page(); $page->validatePageAccess('News'); if ($page->validateSubPage() == TRUE) { $page->outputSubPage(); } else { ?> <div class="box_right_title">News » Post news</div> <div id="news_status"></div> <input type="text" value="Title..." id="news_title"/> <br/> <input type="text" value="Author..." id="news_author"/> <br/> <input type="text" value="Image URL..." id="news_image"/> <br/> <textarea cols="72" rows="7" id="wysiwyg">Content...</textarea> <input type="submit" value="Post" onclick="postNews()"/> <input type="submit" value="Preview" onclick="previewNews()" disabled="disabled"/> <?php } ?>