Junior Spellweaver
- Joined
- Oct 22, 2008
- Messages
- 104
- Reaction score
- 0
Demo:
Cool Flash Intro:
Web Users Online Code: (Add this to your server Stats)
Hit Counter:
Mini Music Player: (Ipod, Ipod touch, etc..)
No Right Click:
Maplestory Cursor:
Blocking IPs to access your website:
Annoying Version? ;D
Vote Pop up: (You don't need any .js files)
CMS Login FIx:
CMS Map Fix:
CMS Expfix:
Credits to Me and some CMS Releasers
You must be registered to see links
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>
<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>
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: