Well as you know I released Cype Reborn Ranking yesterday today im going to let you in in some more stuff
Front page Reborn Ranking:
Main-Rank.php
PHP Code:
<?php
/*
Copyright (C) 2009 Murad <Murawd>
Josh L. <Josho192837>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
echo "
<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td width='100'>
<a href='?cype=main&page=ranking'>
<img src='".$styledir."/images/bbs_ranking_title.gif' alt='Ranking' border='0' />
</a>
</td>
<td align='right'>
<a href='?cype=main&page=ranking'>Total</a> |
<a href='?cype=main&page=ranking&order=fame&job='>Fame</a> |
<a href='?cype=main&page=ranking&order=wins&job='>FoJ</a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td />
</tr>
<tr>
<td style='background-color:#b8b8b8' height='3' />
</tr>
<tr>
<td height='4' />
</tr>";
$gc = mysql_query("SELECT * FROM `characters` WHERE `gm`='0' ORDER BY `reborns` DESC,`exp`") or die(mysql_error());
echo "
<tr>
<td>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td rowspan=\"2\">
<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">";
$p = 0;
while($player = mysql_fetch_array($gc) and $p <=4){
$char = $player['accountid'];
$ban1 = mysql_query("SELECT banned FROM accounts WHERE id = $char");
$ban = mysql_fetch_array($ban1);
if ($ban["banned"] == 1){
}else{
$p++;
if($player["job"] == "121"){
$job = "White Knight";
}elseif($player["job"] == "000"){
$job = "Beginner";
}elseif($player["job"] == "100"){
$job = "Swordsman";
}elseif($player["job"] == "110"){
$job = "Fighter";
}elseif($player["job"] == "120"){
$job = "Page";
}elseif($player["job"] == "130"){
$job = "Spearman";
}elseif($player["job"] == "111"){
$job = "Crusader";
}elseif($player["job"] == "121"){
$job = "White Knight";
}elseif($player["job"] == "131"){
$job = "Dragon Knight";
}elseif($player["job"] == "112"){
$job = "Hero";
}elseif($player["job"] == "122"){
$job = "Paladin";
}elseif($player["job"] == "132"){
$job = "Dark Knight";
}elseif($player["job"] == "200"){
$job = "Magician";
}elseif($player["job"] == "210"){
$job = "F/P Wizard";
}elseif($player["job"] == "220"){
$job = "I/L Wizard";
}elseif($player["job"] == "230"){
$job = "Cleric";
}elseif($player["job"] == "211"){
$job = "F/P Mage";
}elseif($player["job"] == "221"){
$job = "I/L Mage";
}elseif($player["job"] == "231"){
$job = "Priest";
}elseif($player["job"] == "212"){
$job = "F/P Arch Mage";
}elseif($player["job"] == "222"){
$job = "I/L Arch Mage";
}elseif($player["job"] == "232"){
$job = "Bishop";
}elseif($player["job"] == "300"){
$job = "Bowman";
}elseif($player["job"] == "310"){
$job = "Hunter";
}elseif($player["job"] == "320"){
$job = "Crossbowman";
}elseif($player["job"] == "311"){
$job = "Ranger";
}elseif($player["job"] == "321"){
$job = "Sniper";
}elseif($player["job"] == "312"){
$job = "Bow Master";
}elseif($player["job"] == "322"){
$job = "Crossbow Master";
}elseif($player["job"] == "400"){
$job = "Rogue";
}elseif($player["job"] == "410"){
$job = "Assassin";
}elseif($player["job"] == "420"){
$job = "Bandit";
}elseif($player["job"] == "411"){
$job = "Hermit";
}elseif($player["job"] == "421"){
$job = "Chief Bandit";
}elseif($player["job"] == "412"){
$job = "Night Lord";
}elseif($player["job"] == "422"){
$job = "Shadower";
}elseif($player["job"] == "500"){
$job = "Pirate";
}elseif($player["job"] == "510"){
$job = "Brawler";
}elseif($player["job"] == "520"){
$job = "Gunslinger";
}elseif($player["job"] == "511"){
$job = "Marauder";
}elseif($player["job"] == "521"){
$job = "Outlaw";
}elseif($player["job"] == "512"){
$job = "Buccaneer";
}elseif($player["job"] == "522"){
$job = "Corsair";
}elseif($player["job"] == "900"){
$job = "GM";
}elseif($player["job"] == "910"){
$job = "SuperGM";
}
if ($p == 1){
echo "
<tr>
<td valign=\"top\" rowspan=\"6\">
<img src=\"GD/?n=".$player['name']."\" border=\"0\" name=\"top5\" alt='".$player['name']."' />
</td>
</tr>";
}
echo "
<script type=\"text/javascript\">
var image = new Image();
image.src = \"GD/?n=".$player['name']."\";
</script>
<tr onmouseover=\"roll('top5', 'GD/?n=".$player['name']."'); this.style.backgroundColor='';\" onmouseout=\"this.style.backgroundColor=''\">
<td class=\"toprank\">
<img src=\"".$styledir."/images/bbs_ranking_no0".$p.".gif\" width=\"14\" height=\"15\" alt='#".$p."' />
</td>
<td>
<a href=\"#".$player['name']."\">".$player['name']."</a>
</td>
<td>
".$player['reborns']."
</td>
<td align=\"center\">
".$job."
</td>
</tr>";
}
}
echo "
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>";
?>
Banned Users and Guil List easier access
Most people may not even know about this great feature of Cype MSCMS
Main.php
PHP Code:
<?php
/*
Copyright (C) 2009 Murad <Murawd>
Josh L. <Josho192837>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
if(isset($_GET['page'])){
$main = $_GET['page'];
}else{
$main = "";
}
if($getcype == "main"){
if($main == ""){
if($vcheck == 1){
echo '
<script type=\'text/javascript\'>
var voteImage = new Asset.image(\''.$vbanner.'\');
var voteLinks = [\''.$vote.'\'];
</script>
<script type="text/javascript"src="http://ads.adbrite.com/mb/text_group.php?sid=1116742&br=1&dk=776569676874206c6f73735f305f325f776562">
</script>
<script type="text/javascript" src="js/vote-popup.js"></script>';
}
echo '
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" width="287">';
include ("sources/public/main-news.php");
echo '
</td>
<td valign="top" width="11" />
<td valign="top" width="284">';
include ("sources/public/main-events.php");
echo '
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="15" />
</tr>
<tr>
<td align="center">
<a href="'.$mblink.'">
<img src="'.$mbanner.'" alt="Banner" />
</a>
</td>
</tr>
<tr>
<td height="15" />
</tr>
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" width="279">';
include ("sources/public/main-rank.php");
echo '
</td>
<td width="12" />
<td valign="top" width="284">';
include ("sources/public/main-gm.php");
echo'
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="15" />
</tr>
<tr>
<td>
<table style="table-layout: fixed;" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" width="276">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>';
include ("sources/public/main-blog.php");
echo '
</td>
</tr>
</table>
</td>
<td width="11" />
<td />
</tr>
</table>
</td>
</tr>
</table>';
}elseif($main == "banned"){
include('sources/public/banned.php');
}elseif($main == "download"){
include('sources/public/download.php');
}elseif($main == "download_error"){
include('sources/public/downloadsorry.php');
}elseif($main == "events"){
include('sources/public/events.php');
}elseif($main == "gmblog"){
include('sources/public/gmblog.php');
}elseif($main == "guildlist"){
include('sources/public/guildlist.php');
}elseif($main == "members"){
include('sources/public/members.php');
}elseif($main == "news"){
include('sources/public/news.php');
}elseif($main == "events"){
include('sources/public/events.php');
}elseif($main == "ranking"){
include('sources/public/ranking.php');
}elseif($main == "register"){
include('sources/public/register.php');
}elseif($main == "tos"){
include('sources/public/tos.php');
}
}else{
header("Location: ?cype=main");
}
?>
header.php in styles/<yourstyle>
PHP Code:
<?php
/*
Copyright (C) 2009 Murad <Murawd>
Josh L. <Josho192837>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="content-language" content="en" />
<title><?php echo $sitetitle.$pb; ?></title>
<meta name="author" content="cypedev.com" />
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link href="<?php echo $styledir ?>/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/custom.js"></script>
<script type="text/javascript" src="js/vote.js"></script>
</head>
<body>
<div id="container">
<div class='logostrip'>
<a href="?cype=main">
<img class='spacer' src='styles/cype/images/spacer.png' alt='' />
</a>
</div>
<?php include('sources/public/scroller.php'); ?>
<br />
<div id="innerbody">
<div id="leftMenu">
<?php include("sources/public/leftmenu.php"); ?>
</div>
<div id="contentArea">
<!-- Nav Bar -->
<div id="navBar">
<div class="leftNav"><a href="?cype=main">Home</a></div>
<!-- Right Links (Order is Inverted) -->
<?php
if(isset($_SESSION['admin'])){
echo "
<div class='rightNav'><a href='?cype=admin'>Admin</a></div>";
}
if(isset($_SESSION['gm'])){
echo "
<div class='rightNav'><a href='?cype=gmcp'>GM</a></div>";
}
if(isset($_SESSION['id'])){
echo "
<div class='rightNav'><a href='?cype=ucp'>cPanel</a></div>";
}
else{
echo "
<div class='rightNav'><a href='?cype=main&page=register'>Register</a></div>";
}
?>
<div class='rightNav'><a href="?cype=main&page=download">Downloads</a></div>
<div class='rightNav'><a href="?cype=main&page=ranking">Rankings</a></div>
<div class='rightNav'><a href="?cype=main&page=events">Events</a></div>
<div class='rightNav'><a href="?cype=main&page=news">News</a></div>
<div class='rightNav'><a href='<?php echo $forumurl ?>'>Community</a></div>
<div class='rightNav'><a href="?cype=main&page=guildlist">Guilds</a></div>
<div class='rightNav'><a href="?cype=main&page=banned">Ban</a></div>
</div>
<br />
More info in rightmenu.php
PHP Code:
<?php
/*
Copyright (C) 2009 Murad <Murawd>
Josh L. <Josho192837>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
echo "
<table border=\"0\" width=\"155\">
<tr valign='top'>
<td>
<div class=\"regtext\">
<h3>".$servername." Game Info</h3>
</div>
</td>
</tr>
<tr>
<td>
<table border=\"0\" class=\"menutext\" width=\"100%\" cellspacing=\"0\">
<tr>
<td class='menutext'>
<b>Server:</b>
</td>
<td class='menutext' />
</tr>
<tr>
<td>";
$accounts = mysql_query("SELECT * FROM accounts");
$saccounts = mysql_num_rows($accounts);
$characters = mysql_query("SELECT * FROM characters");
$scharacters = mysql_num_rows($characters);
$guilds = mysql_query("SELECT * FROM guilds");
$sguilds = mysql_num_rows($guilds);
$alliance = mysql_query("SELECT * FROM alliance");
$salliance = mysql_num_rows($alliance);
$banned = mysql_query("SELECT * FROM accounts where banned = 1");
$sbanned = mysql_num_rows($banned);
$gm = mysql_query("SELECT * FROM characters where gm = 3");
$sgm = mysql_num_rows($gm);
$donator = mysql_query("SELECT * FROM characters where gm = 2");
$sdonator = mysql_num_rows($donator);
$admin = mysql_query("SELECT * FROM characters where gm = 4");
$sadmin = mysql_num_rows($admin);
$online = mysql_query("SELECT * FROM accounts where loggedin = 2");
$sonline = mysql_num_rows($online);
echo "
Players Online
</td>
<td align='center'>
<b>".$sonline."</b>
</td>
</tr>
<tr>
<td>
Accounts
</td>
<td align='center'>
<b>".$saccounts."</b>
</td>
</tr>
<tr>
<td>
Characters
</td>
<td align='center'>
<b>".$scharacters."</b>
</td>
</tr>
<tr>
<td>
Guilds
</td>
<td align='center'>
<b>".$sguilds."</b>
</td>
</tr>
<tr>
<td>
Alliances
</td>
<td align='center'>
<b>".$salliance."</b>
</td>
</tr>
<tr>
<td>
GMs
</td>
<td align='center'>
<b>".$sgm."</b>
</td>
</tr>
<tr>
<td>
Donators
</td>
<td align='center'>
<b>".$sdonator."</b>
</td>
</tr>
<tr>
<td>
Admins
</td>
<td align='center'>
<b>".$sadmin."</b>
</td>
</tr>
<tr>
<td>
Banned
</td>
<td align='center'>
<b>".$sbanned."</b>
</td>
</tr>";
include("sources/misc/statusbar.php");
echo "
</table>
<br />
<table border=\"0\" class=\"menutext\" width=\"100%\" cellspacing=\"0\">
<tr>
<td class='menutext'>
<b>Information:</b>
</td>
<td class='menutext' align='center'>
<a href='?cype=main&page=download'>v.".$version."</a>
</td>
</tr>
<tr>
<td>
Experience Rate
</td>
<td align='center'>
".$exprate."
</td>
</tr>
<tr>
<td>
Meso Rate
</td>
<td align='center'>
".$mesorate."
</td>
</tr>
<tr>
<td>
Drop Rate
</td>
<td align='center'>
".$droprate."
</td>
</tr>
</table>
</td>
</tr>
</table>";
?>
http://www.revdevforum.tk - Dev Forum
http://revmaple.tk - Live Demo also join
DONT FORGET TO SAY THANKS