Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[RELEASE]Some useful Website Add-Ons

Status
Not open for further replies.
Junior Spellweaver
Joined
Oct 22, 2008
Messages
104
Reaction score
0
Demo:




Cool Flash Intro:
PHP:
http://forum.ragezone.com/f427/release-website-flash-intro-3-a-517565/

Web Users Online Code: (Add this to your server Stats)
PHP:
Web Users Online:
<script src=http://fastonlineusers.com/online.php?d=www.nerdzpwnms.tk> </script>

Hit Counter:
PHP:
http://www.free-website-hit-counters.com/

Mini Music Player: (Ipod, Ipod touch, etc..)
PHP:
http://www.myflashfetish.com/

No Right Click:
PHP:
<script language="Javascript">
<!--
function mouseTracker(e){
e = e || window.Event || window.event;
if (e && ((e.button == 3 || e.button == 2) || (e.which ==3 || e.which == 2))){
return false;
}
}

if (window.captureEvents){
window.captureEvents(Event.MOUSEDOWN);
window.onmousedown = mouseTracker;
}else{
document.onmousedown = mouseTracker;
}

function contextTracker(){
return false;
}
document.oncontextmenu = contextTracker;
-->
</script>

Maplestory Cursor:
PHP:
<style type="text/css">
body {
cursor: url(http://advimages.nexon.net/MapleStory/leafgear/image/cursor/hand_shadow.cur), auto;
}
A {
cursor: url(http://advimages.nexon.net/MapleStory/leafgear/image/cursor/hand_anim_shadow.ani), url(http://advimages.nexon.net/MapleStory/leafgear/image/cursor/hand1.cur), auto;
}
</style>

Blocking IPs to access your website:
PHP:
<script language="javascript">
if (ip = '<Put an IP Address Here>') { 
alert("You are blocked from this website");
{location.href="http://www.google.com"} } 
</SCRIPT>
Annoying Version? ;D
<script language="javascript">
if (ip = '<Put an IP Address Here>') {
alert("You are blocked from this website");
alert("You are blocked from this website");
alert("You are blocked from this website");
alert("You are blocked from this website");
alert("You are blocked from this website");
alert("You are blocked from this website");
alert("You are blocked from this website");
alert("You are blocked from this website");
alert("You are blocked from this website");
alert("You are blocked from this website");
alert("You are blocked from this website");
alert("You are blocked from this website");
alert("You are blocked from this website");
alert("You are blocked from this website");
alert("You are blocked from this website");
alert("You are blocked from this website");
{location.href="http://www.apoke.com"} }
</SCRIPT>

Vote Pop up: (You don't need any .js files)
PHP:
<script type="text/javascript">
var displaymode="always"

var enablefade="yes" //("yes" to enable fade in effect, "no" to disable)
var autohidebox=["no", 5] //Automatically hide box after x seconds? [yes/no, if_yes_hide_after_seconds]
var showonscroll="yes" //Should box remain visible even when user scrolls page? ("yes"/"no)
var IEfadelength=1 //fade in duration for IE, in seconds
var Mozfadedegree=0.2 //fade in degree for NS6+ (number between 0 and 1. Recommended max: 0.2)

if (parseInt(displaymode)!=NaN)
var random_num=Math.floor(Math.random()*displaymode)

function displayfadeinbox(){
var ie=document.all && !window.opera
var dom=document.getElementById
iebody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body
objref=(dom)? document.getElementById("fadeinbox") : document.all.fadeinbox
var scroll_top=(ie)? iebody.scrollTop : window.pageYOffset
var docwidth=(ie)? iebody.clientWidth : window.innerWidth
docheight=(ie)? iebody.clientHeight: window.innerHeight
var objwidth=objref.offsetWidth
objheight=objref.offsetHeight
objref.style.left=docwidth/2-objwidth/2+"px"
objref.style.top=scroll_top+docheight/2-objheight/2+"px"

if (showonscroll=="yes")
showonscrollvar=setInterval("staticfadebox()", 50)

if (enablefade=="yes" && objref.filters){
objref.filters[0].duration=IEfadelength
objref.filters[0].Apply()
objref.filters[0].Play()
}
objref.style.visibility="visible"
if (objref.style.MozOpacity){
if (enablefade=="yes")
mozfadevar=setInterval("mozfadefx()", 90)
else{
objref.style.MozOpacity=1
controlledhidebox()
}
}
else
controlledhidebox()
}

function mozfadefx(){
if (parseFloat(objref.style.MozOpacity)<1)
objref.style.MozOpacity=parseFloat(objref.style.MozOpacity)+Mozfadedegree
else{
clearInterval(mozfadevar)
controlledhidebox()
}
}

function staticfadebox(){
var ie=document.all && !window.opera
var scroll_top=(ie)? iebody.scrollTop : window.pageYOffset
objref.style.top=scroll_top+docheight/2-objheight/2+"px"
}

function hidefadebox(){
objref.style.visibility="hidden"
if (typeof showonscrollvar!="undefined")
clearInterval(showonscrollvar)
}

function controlledhidebox(){
if (autohidebox[0]=="yes"){
var delayvar=(enablefade=="yes" && objref.filters)? (autohidebox[1]+objref.filters[0].duration)*1000 : autohidebox[1]*1000
setTimeout("hidefadebox()", delayvar)
}
}

function initfunction(){
setTimeout("displayfadeinbox()", 100)
}

function get_cookie(Name) {
var search = Name + "="
var returnvalue = ""
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset)
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}


if (displaymode=="oncepersession" && get_cookie("fadedin")=="" || displaymode=="always" || parseInt(displaymode)!=NaN && random_num==0){
if (window.addEventListener)
window.addEventListener("load", initfunction, false)
else if (window.attachEvent)
window.attachEvent("onload", initfunction)
else if (document.getElementById)
window.onload=initfunction
document.cookie="fadedin=yes"
}


</script>

<style type="text/css">
#fadeinbox{
position:absolute;
width: 500px;
left: 0;
top: -400px;
border: 2px solid black;
background-color: lightyellow;
padding: 4px;
z-index: 100;
visibility:hidden;}</style>

<div id="fadeinbox" style="opacity: 1; left: 261.5px; top: 215.5px; visibility: visible;">
<a href="http://www.xtremetop100.com/in.php?site=1132257845" target="_blank"><img style="" name="footer" src="http://img372.imageshack.us/img372/6675/nerdzpwnmscopy1tc8.jpg" alt="Please vote for us every 12 hours!" border="0" height="120" width="500"></a><br>
<font size="2" face="Kristen ITC" color="blue">
<center>Please click the image above to vote for us at XtremeTop 100!  Every 12h =] </center>
<div style="" align="right"> <a href="#" onclick="hidefadebox();return false">Hide Box</a>
</div>


</div>
</body>
</html>


CMS Login FIx:
PHP:
<?php
mysql_select_db("odinms");

$self = $_SERVER['PHP_SELF'];

if(isset($_POST['logout']))
{
	$validlogin = 0;
	$usr = $_POST['user'];
	
	if($usr == "")
		die("<h1> You have to type something in.</h1>");

	$usr = mysql_real_escape_string($usr); // prevents SQL injection

	$result = mysql_query("SELECT name, password, loggedin FROM accounts");
	while($row = mysql_fetch_array($result))
	
		{ 
			$loggedin = $row[2];
			$loggedin = $row[1];
			$validlogin = 1;
			break;
		}
	
	
	if($validlogin == 0)
	{
		echo "<meta http-equiv='refresh' content='4;url=$self'>";
		die("<h1> This Account doesn't exist! </h1>");
	}
	else
	{
		if($loggedin > 0)
		{
			mysql_query("UPDATE accounts SET loggedin = 0 WHERE name = '$usr'");
			echo "<meta http-equiv='refresh' content='10;url=$Self'>";
			die("<h1>$usr has been logged out.</h1>");
			
		}
		else
		{
			echo "<meta http-equiv='refresh' content='4;url=$self'>";
			die("<h1>$usr! is already logged out.</h1>");
		}
	}	
}
else
{
	echo "<form method='post'>";
	echo "The Logout Script<p>
Use this script to unbug you when you have ID is already logged in.
<br> <h1>TYPE IN YOUR <U>ACCOUNT NAME</u>! NOT CHARACTER!</h1>
";
	echo "Account Name: </td><td><input type='text' name='user' id='user'></td></tr><br>";
	echo "<br><input type='submit' name='logout' id='logout' value='LOGOUT!'><p>";
	echo "</form>";
}
?>

CMS Map Fix:
PHP:
<p>Stuck in a map because you were warped wrong by an NPC or something? Enter your username, pass and char name here and it will automatically move your character to Henesys by default.</p>
<?php
// process the script only if the form has been submitted
if (array_key_exists('reset', $_POST)) {
// start the session
$username = trim($_POST['username']);
$password = trim($_POST['password']);
$character = trim($_POST['character']);
$mapID = '100000000';
$username = mysql_real_escape_string($username);

$sql = "SELECT * FROM accounts WHERE name = '$username'";
$result = mysql_query($sql);
$row = mysql_fetch_assoc($result);

if (hash('sha512', $password.$row['salt']) == $row['password']) {
$update = "UPDATE characters SET map = 100000000 WHERE name='$character'";
$result = mysql_query($update) or die(mysql_error());
if ($result) {
$message[] = "Your spawning map for $character has been reset to Henesys You're no longer stuck! Go play!";
}
else {
$message[] = "There was a problem resetting your map for $character";
}
}
// if no match, destroy the session and prepare error message
else {
$message[] = 'Invalid username or password. Please try again.';
}
}
?>
<?php
if (isset($message)) {
echo '<b>';
foreach ($message as $item) {
echo "$item";
}
echo '</b><br>';
}
?>
<form id="form1" name="form1" method="post" action=""><br>
Username : <br>
<input id="username" type="text" name="username" maxlength="12"><br><br>
Password :<br>
<input id="password" type="password" name="password" maxlength="20" /><br><br>Character :<br>
<input id="character" type="character" name="character" maxlength="20" /><br><br>
<input id="reset" name="reset" type="submit" value="Reset Map" /><br>
</form>

CMS Expfix:
PHP:
<?php
$self = $_SERVER['PHP_SELF'];

if(isset($_POST['fame']))
{
	$validlogin = 0;
	$usr = $_POST['user'];
	
	if($usr == "")
		die("Required field was left blank.");

	$usr = mysql_real_escape_string($usr); // prevents SQL injection

	$result = mysql_query("SELECT exp FROM characters WHERE name = '$usr' AND exp < 0");
	while($row = mysql_fetch_array($result))
	
		{ 
			$loggedin = $result;
			$validlogin = 1;
			break;
		}
	
	
	if($validlogin == 0)
	{
		echo "<meta http-equiv='refresh' content='4;url=$self'>";
		die("This character doesn't exist or it has more than 1 exp!");
	}
	else
	{
		if($loggedin)
		{
			mysql_query("UPDATE characters SET exp = 1 WHERE name = '$usr'");
			echo "<meta http-equiv='refresh' content='10;url=$Self'>";
			die("$usr now has 0 exp.");
			
		}
		else
		{
			echo "<meta http-equiv='refresh' content='4;url=$self'>";
			die("$usr has more than 1 exp!");
		}
	}	
}
else
{
	echo "<form method='post'>";
	echo "<span class = title2>Negative Exp Fix</span><br><br>";
	echo "Character: <br><input type='text' name='user' id='user'></td>";
	echo "<br><br><input type='submit' name='fame' id='submit' value='Submit'><p>";
	echo "</form>";
	echo "Log off your account before using this script.<br>Only resets experience to 1 if your character has negative exprience.";
}
?>



Credits to Me and some CMS Releasers
 
Last edited:
Legendary Battlemage
Joined
Aug 1, 2008
Messages
635
Reaction score
4
<embed src=UrMusic.mp3 autostart="true" loop="true" hidden="true">
<style type="text/css">

Put ur music in ur www folder and choose the name of the music...
 
Junior Spellweaver
Joined
Oct 22, 2008
Messages
104
Reaction score
0
<embed src=UrMusic.mp3 autostart="true" loop="true" hidden="true">
<style type="text/css">

Put ur music in ur www folder and choose the name of the music...

is better >.>
 
Newbie Spellweaver
Joined
Oct 19, 2008
Messages
19
Reaction score
0
Nice Release! Thank you very much for Web Users Online Code
I needed that
 
Master Summoner
Loyal Member
Joined
Sep 25, 2008
Messages
501
Reaction score
0
nice .. whats nexon ip ? im going to block it .. is it 63.251.217.130
 
Newbie Spellweaver
Joined
Dec 27, 2008
Messages
39
Reaction score
0
Nice Release XD

-Loots Web user online code & ip blocking system thingy- o_o
 
Master Summoner
Loyal Member
Joined
Sep 25, 2008
Messages
501
Reaction score
0
63.251.217.133

I think o.o

ohh ok but then like its always
Bad Request (Invalid Hostname)

IP Whois Information for 63.251.217.133
Internap Network Services Corporation NETBLK-PNAP-11-99 (NET-63-251-0-0-1)
63.251.0.0 - 63.251.255.255
Nexon America Inc. INAP-LAX-WIZETCORP-10121 (NET-63-251-217-0-1)
63.251.217.0 - 63.251.217.255

# ARIN WHOIS database, last updated 2008-12-27 19:10
# Enter ? for additional hints on searching ARIN's WHOIS database.

anyways does anyone know if like the people going around c&d people are frm the company or like they do it at home.?


ontopic:is there a ay to block ip from lets say 11.11.11.11 - 11.11.11.20 with out like typeing 1 ip then separate with a comma ?
 
Mother effin' clouds
Loyal Member
Joined
Apr 13, 2008
Messages
1,534
Reaction score
448
Nice addons ;) The IP Banning can be bypassed by turning JS off :O
And you got it from i presume?
The MapleStory cursor aint really browser friendly but useful anyways (and released before)

Vote Pop up: (You don't need any java scripts)
How is that not needing Javascripts if the code truly started off with...
<script type="text/javascript">

Good job compiling them to one thread ;)
 
Experienced Elementalist
Joined
Sep 2, 2008
Messages
271
Reaction score
4
heres all of nexons ips
63.251.217.130
63.251.217.131
NS.NEXON.NET: 63.251.217.186
NS.MAPLEGLOBAL.COM: 63.251.217.186
SCANIA: 63.251.217.10
BERA: 63.251.217.20
BROA: 63.251.217.30
WINDIA: 63.251.217.40
KHAINI: 63.251.217.50
BELLOCAN: 63.251.217.60
MARDIA: 63.251.217.70
KRADIA: 63.251.217.80
DEMETHOS: 63.251.217.90
 
Newbie Spellweaver
Joined
Dec 21, 2008
Messages
5
Reaction score
0
~~Nice Release~~
But I Kinda Not understand a few Of The Code

Anyone Can Help Please PM ME
Thanks
 
Newbie Spellweaver
Joined
Dec 27, 2008
Messages
39
Reaction score
0
Annoying Version? ;D
<script language="javascript">
if (ip = '<Put an IP Address Here>') {
alert("You are blocked from this website");
alert("You are blocked from this website");
alert("You are blocked from this website");
alert("You are blocked from this website");
alert("You are blocked from this website");
alert("You are blocked from this website");
alert("You are blocked from this website");
alert("You are blocked from this website");
alert("You are blocked from this website");
alert("You are blocked from this website");
alert("You are blocked from this website");
alert("You are blocked from this website");
alert("You are blocked from this website");
alert("You are blocked from this website");
alert("You are blocked from this website");
alert("You are blocked from this website");
{location.href="http://www.apoke.com"} }
</SCRIPT>

LOL. I hate =_=.. Rick roll

Btw. thx for the script. I tested it and it works
 
Master Summoner
Loyal Member
Joined
Sep 25, 2008
Messages
501
Reaction score
0
heres all of nexons ips
63.251.217.130
63.251.217.131
NS.NEXON.NET: 63.251.217.186
NS.MAPLEGLOBAL.COM: 63.251.217.186
SCANIA: 63.251.217.10
BERA: 63.251.217.20
BROA: 63.251.217.30
WINDIA: 63.251.217.40
KHAINI: 63.251.217.50
BELLOCAN: 63.251.217.60
MARDIA: 63.251.217.70
KRADIA: 63.251.217.80
DEMETHOS: 63.251.217.90

thanks o i should block from NS.NEXON.NET: 63.251.217.186 ?
 
Status
Not open for further replies.
Back
Top