• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

xCMS

Status
Not open for further replies.
Tell me in wich file xD U.u\
edit: Think i found it xD

or not:p

../bin/search.php line 8?

Code:
echo "<script src=\"../ajax/javascript_search.js\"></script>\n";

When using that doesnt work:O
 
Last edited:
I downloaded newest version but aew. try it: Oceanic CMS

Edit: and why are u using ->".$path."/bin/char_

and not just ../bin/char_ just an idea xD
 
I downloaded newest version but aew. try it: Oceanic CMS

My fault, im to tierd :thumbup:
Open bin/search.php

Line that look like this:
PHP:
echo "<script src=\"../ajax/javascript_search.js\"></script>\n";

change to
PHP:
echo "<script src=\"ajax/javascript_search.js\"></script>\n";

Open ajax/javascript_search.js and change
HTML:
var url="../ajax/ajax_search.php";

to
HTML:
var url="ajax/ajax_search.php";
 
Last edited:
Mine is working already:p But now you need to make so the suggestions are better displayed. Test on my site with GOD you see the result.

Ideas:
groupid that can be searched/viewed in highscores
The suggestion names under eachother maby
when creating a new char an do something wrong, make the error apear at the top insteed of bottum.
 
Mine is working already:p But now you need to make so the suggestions are better displayed. Test on my site with GOD you see the result.

Ideas:
groupid that can be searched/viewed in highscores
The suggestion names under eachother maby
when creating a new char an do something wrong, make the error apear at the top insteed of bottum.

Thank you, will use those ideas :D
Edit:
Did you like Ajax function?
 
yeah btw another function for conig.php: names to filter from search/highscores. like Tutor, Account Manager, CM
 
or make the suggestions like this:
open up ajax_search.php
line 28

change
Code:
$hint=$hint." ".$a[$i];

to

Code:
$hint=$hint.", ".$a[$i];
 
Last edited:
I got hacked on my server because I was using AFS-CMS, if I change to this, will I regret it? Is this totally secure?
 
I got hacked on my server because I was using AFS-CMS, if I change to this, will I regret it? Is this totally secure?

It shall be, escaped all post, made verification. And working on a capatcha system atm

It is secure. Oceanic come on msn maybe I got some nice features for you:p
Ok, but im moving to my new house with my girlfreind so i come as much as i can
 
afs-cms is fucked, it says its impossible to get hacked through but it aint.
 
I think I fixed it:
/bin/highscores.php
Code:
<?
		echo "<center>\n";
		echo "<a href=\"?page=Highscore\" style=\"text-decoration:none;\"> Level </a>\n";
		echo "<a href=\"?page=Highscore&skill=Fist\" style=\"text-decoration:none;\"> Fist </a>\n";
		echo "<a href=\"?page=Highscore&skill=Club\" style=\"text-decoration:none;\"> Club </a>\n";
		echo "<a href=\"?page=Highscore&skill=Sword\" style=\"text-decoration:none;\"> Sword </a>\n";
		echo "<a href=\"?page=Highscore&skill=Axe\" style=\"text-decoration:none;\"> Axe </a>\n";
		echo "<a href=\"?page=Highscore&skill=Distance\" style=\"text-decoration:none;\"> Distance </a>\n";
		echo "<a href=\"?page=Highscore&skill=Fishing\" style=\"text-decoration:none;\"> Fishing </a>\n";
		echo "</center>\n";
		echo "<table border=\"0\" style=\"width:100%;\">\n";
		echo "<tr>\n";
		echo "<td style=\"width: 10%;\">Pos: </td>\n";
		echo "<td style=\"width: 50%;\">Name: </td>\n";
		echo "<td style=\"width: 40%;\">Value: </td>\n";
		echo "</tr>\n";
			switch($_GET["skill"]){
				
				default:
				$player_highscore = mysql_query("SELECT * FROM `players` ORDER BY `level` DESC LIMIT 0,1000") or die(mysql_error());
					$loop = 1;
					while($data = mysql_fetch_array( $player_highscore)){
						if($loop <= $max_highscore){
							echo "<tr>\n";
							echo "<td>".$loop."</td>\n";
							echo "<td><a href=\"?page=Search&name=".preg_replace("/".chr(32)."/", "_", $data['name'])."\">".$data['name']."</a></td>\n";
							echo "<td>".$data['level']."</td>\n";
							echo "</tr>\n";
							$loop++;
						}
					}	
				break;
				
				case Fist:
				$player_highscore = mysql_query("SELECT * FROM `player_skills` WHERE skillid='0' ORDER BY `value` DESC LIMIT 0,1000") or die(mysql_error());
				$loop = 1;
				while($data = mysql_fetch_array($player_highscore)){
							echo "<tr>\n";
							echo "<td>".$loop."</td>\n";
							$name = $data['player_id'];
							$player_name = mysql_query("SELECT * FROM `players` WHERE id='$name'") or die(mysql_error());
							$data_name = mysql_fetch_array($player_name);
							echo "<td><a href=\"?page=Search&name=".preg_replace("/".chr(32)."/", "_", $data_name['name'])."\">".$data_name['name']."</a></td>\n";
							echo "<td>".$data['value']."</td>\n";
							echo "</tr>\n";
							$loop++;
				}
				break;
				
				case Club:
				$player_highscore = mysql_query("SELECT * FROM `player_skills` WHERE skillid='1' ORDER BY `value` DESC LIMIT 0,1000") or die(mysql_error());
				$loop = 1;
				while($data = mysql_fetch_array($player_highscore)){
							echo "<tr>\n";
							echo "<td>".$loop."</td>\n";
							$name = $data['player_id'];
							$player_name = mysql_query("SELECT * FROM `players` WHERE id='$name'") or die(mysql_error());
							$data_name = mysql_fetch_array($player_name);
							echo "<td><a href=\"?page=Search&name=".preg_replace("/".chr(32)."/", "_", $data_name['name'])."\">".$data_name['name']."</a></td>\n";
							echo "<td>".$data['value']."</td>\n";
							echo "</tr>\n";
							$loop++;
				}
				break;

				case Sword:
				$player_highscore = mysql_query("SELECT * FROM `player_skills` WHERE skillid='2' ORDER BY `value` DESC LIMIT 0,1000") or die(mysql_error());
				$loop = 1;
				while($data = mysql_fetch_array($player_highscore)){
							echo "<tr>\n";
							echo "<td>".$loop."</td>\n";
							$name = $data['player_id'];
							$player_name = mysql_query("SELECT * FROM `players` WHERE id='$name'") or die(mysql_error());
							$data_name = mysql_fetch_array($player_name);
							echo "<td><a href=\"?page=Search&name=".preg_replace("/".chr(32)."/", "_", $data_name['name'])."\">".$data_name['name']."</a></td>\n";
							echo "<td>".$data['value']."</td>\n";
							echo "</tr>\n";
							$loop++;
				}
				break;

				case Axe:
				$player_highscore = mysql_query("SELECT * FROM `player_skills` WHERE skillid='3' ORDER BY `value` DESC LIMIT 0,1000") or die(mysql_error());
				$loop = 1;
				while($data = mysql_fetch_array($player_highscore)){
							echo "<tr>\n";
							echo "<td>".$loop."</td>\n";
							$name = $data['player_id'];
							$player_name = mysql_query("SELECT * FROM `players` WHERE id='$name'") or die(mysql_error());
							$data_name = mysql_fetch_array($player_name);
							echo "<td><a href=\"?page=Search&name=".preg_replace("/".chr(32)."/", "_", $data_name['name'])."\">".$data_name['name']."</a></td>\n";
							echo "<td>".$data['value']."</td>\n";
							echo "</tr>\n";
							$loop++;
				}
				break;

				case Distance:
				$player_highscore = mysql_query("SELECT * FROM `player_skills` WHERE skillid='4' ORDER BY `value` DESC LIMIT 0,1000") or die(mysql_error());
				$loop = 1;
				while($data = mysql_fetch_array($player_highscore)){
							echo "<tr>\n";
							echo "<td>".$loop."</td>\n";
							$name = $data['player_id'];
							$player_name = mysql_query("SELECT * FROM `players` WHERE id='$name'") or die(mysql_error());
							$data_name = mysql_fetch_array($player_name);
							echo "<td><a href=\"?page=Search&name=".preg_replace("/".chr(32)."/", "_", $data_name['name'])."\">".$data_name['name']."</a></td>\n";
							echo "<td>".$data['value']."</td>\n";
							echo "</tr>\n";
							$loop++;
				}
				break;

				case Fishing:
				$player_highscore = mysql_query("SELECT * FROM `player_skills` WHERE skillid='5' ORDER BY `value` DESC LIMIT 0,1000") or die(mysql_error());
				$loop = 1;
				while($data = mysql_fetch_array($player_highscore)){
							echo "<tr>\n";
							echo "<td>".$loop."</td>\n";
							$name = $data['player_id'];
							$player_name = mysql_query("SELECT * FROM `players` WHERE id='$name'") or die(mysql_error());
							$data_name = mysql_fetch_array($player_name);
							echo "<td><a href=\"?page=Search&name=".preg_replace("/".chr(32)."/", "_", $data_name['name'])."\">".$data_name['name']."</a></td>\n";
							echo "<td>".$data['value']."</td>\n";
							echo "</tr>\n";
							$loop++;
				}
				break;
			}
		
		echo "</table>\n";
		
?>
 
Status
Not open for further replies.
Back
Top