[Web] HellyMS CMS - OtterDev

Could someone upload there fixed index.php?
Mine fails.
I keep getting the log in error.
 
In the ranking page the next and prev buttons don't show up for me this is what it looks like
Deagan ツ - [Web] HellyMS CMS - OtterDev - RaGEZONE Forums

Here's my script
Code:
<?php
if(basename($_SERVER["PHP_SELF"]) == "rankings.php"){ die(""); }
$jobs = array(
  1000 =>'Noblesse',
  1100 =>'Dawn Warrior',
  1110 =>'Dawn Warrior 2',
  1111 =>'Dawn Warrior 3',
  1112 =>'Dawn Warrior 4',
  1200 =>'Blaze Wizard',
  1210 =>'Blaze Wizard 2',
  1211 =>'Blaze Wizard 3',
  1212 =>'Blaze Wizard 4',
  1300 =>'Wind Archer',
  1310 =>'Wind Archer 2',
  1311 =>'Wind Archer 3',
  1312 =>'Wind Archer 4',
  1400 =>'Night Walker',
  1410 =>'Night Walker 2',
  1411 =>'Night Walker 3',
  1412 =>'Night Walker 4',
  1500 =>'Thunder Breaker',
  1510 =>'Thunder Breaker 2',
  1511 =>'Thunder Breaker 3',
  1512 =>'Thunder Breaker 4',
  2000 =>'Legend',
  2100 =>'Aran 2',
  2110 =>'Aran 3',
  2111 =>'Aran 4',
  900 =>'GameMaster',
  910 =>'Super GM',
  500 =>'Pirate',
  510 =>'Brawler',
  520 =>'Gunslinger',
  511 =>'Marauder',
  521 =>'Outlaw',
  512 =>'Buccaneer',
  522 =>'Corsair',
  0   =>'Beginner',
  100 =>'Warrior',
  110 =>'Fighter',
  120 =>'Page',
  130 =>'Spearman',
  111 =>'Crusader',
  121 =>'White Knight',
  131 =>'Dragon Knight',
  112 =>'Hero',
  122 =>'Paladin',
  132 =>'Dark Knight',
  200 =>'Magician',
  210 =>'Fire/Poison Wizard',
  220 =>'Ice/Lightning Wizard',
  230 =>'Cleric',
  211 =>'Fire/Poison Mage',
  221 =>'Ice/Lightning Mage',
  231 =>'Priest',
  212 =>'Fire/Poison Arch Mage',
  222 =>'Ice/Lightning Arch Mage',
  232 =>'Bishop',
  300 =>'Bowman',
  310 =>'Hunter',
  320 =>'Crossbowman',
  311 =>'Ranger',
  321 =>'Sniper',
  312 =>'Bow Master',
  322 =>'Crossbow Master',
  400 =>'Thief',
  410 =>'Assassin',
  420 =>'Bandit',
  411 =>'Hermit',
  421 =>'Chief Bandit',
  412 =>'Nights Lord',
  422 =>'Shadower'
);
if (isset($_GET['start'])) {
	if ($_GET['start'] >= 0 && $_GET['start'] <= 90) {
		$start = sql_injectionproof($_GET['start']);
	} else {
		die("Input not allowed.");
	}
} else {
	$start = 0;
}
?>
<div class="title3">RANKINGS</div>
<p>
<table border="1" bordercolor="#b0b0b0" cellspacing ="0" cellpadding="0" align="center" style="border-collapse: collapse; text-align: center;">
	<tr>
		<td class="rankings" style="width: 60px;">Rank</td>
		<td class="rankings" style="width: 120px;">Name</td>
		<td class="rankings" style="width: 70px;">Level</td>
		<td class="rankings" style="width: 170px;">Statistics</td>
		
	</tr>
<?php
$i = $start;
$sql = mysql_query("SELECT characters.name , characters.job , characters.level, accounts.loggedin FROM characters, accounts WHERE characters.accountid=accounts.id and characters.gm = 0 and accounts.banned = 0 ORDER BY characters.level DESC LIMIT ".sql_injectionproof($start).", 10");
while ($outcome = mysql_fetch_array($sql)) {
?>
	<tr style="height: 40px; font-size: 13px;">
		<td style="background: #<?php if ($outcome['loggedin'] > 0) { echo "d9ffdd"; } else { echo "ffe0e0"; }?>;"><?php echo ++$i;?></td>
		<td><?php echo $outcome['name'];?></td>
		<td><?php echo $outcome['level'];?></td>
		<td>Job: <?php echo $jobs[$outcome['job']];?></td>
           </tr>
<?php }
if ($start >= 0 && $start <= 80) {
	$nextstart = $start + 10;
	if ($start >= 10) {
		$prevstart = $start - 10;
	} else {
		$prevstart = 0;
	}
} else if ($start > 80 && $start <= 90) {
	$prevstart = $start - 10;
	$nextstart = 90;
} else {
	die("Hacks.");
}
	?>
</table><br />
<div id="nextprevbox">
<a href="?page=rankings&start=<?php echo sql_injectionproof($prevstart);?>"><div id="rankprev"></div></a>l<a href="?page=rankings&start=<?php echo sql_injectionproof($nextstart);?>"><div id="ranknext"></div></a>
</div>
</p><br />
 
Could someone upload there fixed index.php?
Mine fails.
I keep getting the log in error.

You guys should seriously consider that something that you can't get to work doesn't have to be broken. Next to that it's not just in index.php.
The sql_injection thing happends when you didn't include the sqlinfo.php, I added comments and extra includes. Anyhow, I think you need the sqlinfo in index.php so you NEED to remove the // since it wouldn't have a connection to the database and sqlinfo in general when you log in.

In the ranking page the next and prev buttons don't show up for me this is what it looks like
Code:
<div id="[COLOR="Red"]nextprevbox[/COLOR]">
<a href="?page=rankings&start=<?php echo sql_injectionproof($prevstart);?>"><div id="[COLOR="red"]rankprev[/COLOR]"></div></a>l<a href="?page=rankings&start=<?php echo sql_injectionproof($nextstart);?>"><div id="[COLOR="red"]ranknext[/COLOR]"></div></a>
</div>

You are HIGH LIKELY, or actually, you are, missing the divs for the next previous buttons, they are incredibly easy and I will refuse to give support for a freaking IMAGE not working. Seriously now?

some one made the sql file ?

You don't need one to get this site running, you just need the site to be adjusted to the server's database. (queries in regaction, voteaction, panel and rankings)
:blushing:
 
Last edited:
Okay, so I did that now I get this error?
Parse error: syntax error, unexpected T_IF in C:\wamp\www\index.php on line 4
 
Now i got the login error:
Deagan ツ - [Web] HellyMS CMS - OtterDev - RaGEZONE Forums

And the Rankings Error:
Deagan ツ - [Web] HellyMS CMS - OtterDev - RaGEZONE Forums


---------- Post added at 10:47 AM ---------- Previous post was at 10:43 AM ----------

Hey that because the CMS is bugged.
Thats not because it is bugged its because your server doesnt fit with that cms
 
Now i got the login error:
Deagan ツ - [Web] HellyMS CMS - OtterDev - RaGEZONE Forums

And the Rankings Error:
Deagan ツ - [Web] HellyMS CMS - OtterDev - RaGEZONE Forums


---------- Post added at 10:47 AM ---------- Previous post was at 10:43 AM ----------

Hey that because the CMS is bugged.

No, it's because you have no clue on how to set it up OR read the previous pages where people asked the same question alot.

Thats not because it is bugged its because your server doesnt fit with that cms

Actually it is the site lacking an include there...
 
Whenever I enter the voting details it always says Your Account does not exist. Why? I'm using HellyMS's repack itself, so I was assuming I wouldn't really have to do anything besides edit the sqlinfo.
 
Back