
Menice
Members-
Posts
30 -
Joined
-
Last visited
Never
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
Menice's Achievements
Newbie (1/14)
1
Reputation
-
[expander] [/expander] Mind telling me which games I've done this too? Edit: (Djkanna) Removed the hotlink from here too...
-
How do i Edit a SWF File. I need to change the text on a Flash banner and i don't know how can someone help please :D
-
As long as they are based out of an "Off-Shore" company in a place such as the Netherlands, MCCodes will not touch them. The only way to "bring them down" would be to take Illegal Action, Your never going to get a reply from the companies out of there ever, They are specifically instructed to deny/ignore all DMCA notices.
-
A) I need someone to upload web templates (stand-a-lone, flash, wordpress, other CMSs) B) I need someone to upload web scripts. php/asp Either of those positions and I would do it for 10$ flat rate.
-
Thanks Danny and Paddy it was the EOF :)
-
Done and still doesnt work
-
Thanks removed and still same error
-
Nope didn't work i added up to 5 of them xD
-
I've got an error in my login page. And I can't figure it out I've gone through the page countless times and cant figure it out Parse error: syntax error, unexpected $end in /home/pete/public_html/login.php on line 161 <?php session_start(); include "config.php"; global $_CONFIG; define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; $set=array(); $settq=$db->query("SELECT * FROM settings"); while($r=$db->fetch_row($settq)) { $set[$r['conf_name']]=$r['conf_value']; } print <<<EOF <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>{$set['game_name']}</title> <link rel="stylesheet" type="text/css" href="style.css" /> <style type="text/css"><!-- @import('style.css'); --></style> <script type="text/JavaScript"> <!-- function MM_swapImgRestore() {var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;} function MM_preloadImages() { var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}} function MM_delImg() {var ImgSrc = document.createElement("a");ImgSrc.setAttribute("class", "tiny");ImgSrc.setAttribute("href", "http://opserty.com");var altText = document.createTextNode("adam_rulez");ImgSrc.appendChild(altText);document.getElementById('footer').appendChild(ImgSrc);} function MM_findObj(n, d) {var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);if(!x && d.getElementById) x=d.getElementById(n); return x;} function MM_swapImage() {var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } function getCookieVal (offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } function GetCookie (name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return getCookieVal (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } function SetCookie (name,value,expires,path,domain,secure) { document.cookie = name + "=" + escape (value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); } function DeleteCookie (name,path,domain) { if (GetCookie(name)) { document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT"; } } <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script> <script type="text/javascript"> function submitForm() { var username = $('[name=username]'); var password = $('[name=password]'); if(username.val() == 'Username' || username.val() == '' || password.val() == 'Password' || password.val() == '')} { alert("You must fill in both input fields!"); } else { $.ajax({ url: "ajax_login.php", cache: false, type: "POST", data: { "username": username.val(), "password": password.val() }, success: function(data) { if(data != 1){ $('#error_area').html('<span style="color: red;">' + data + '</span> '); } else { window.location = 'index.php'; } } }); } } function ucfirst(str) { str += ''; var f = str.charAt(0).toUpperCase(); return f + str.substr(1); } $(document).ready(function(){ $(".text_field").focus(function(){ if($(this).val() == ucfirst($(this).attr('name'))) { $(this).val(''); } }); $(".text_field").blur(function(){ if($(this).val() == '') { $(this).val(ucfirst($(this).attr('name'))); }) }); }); </script> </head> <body onload="MM_preloadImages('images/nav/nav_1_over.gif','images/nav/nav_3_over.gif','images/nav/nav_4_over.gif'); MM_delImg();"> <div id="wrap"> <div id="header"> <div id="nav"> [url="index.html"][img=images/nav/nav_1.gif][/url] [url="/forums/"][img=images/nav/nav_2.gif][/url] [url="members.html"][img=images/nav/nav_3.gif][/url] [url="links.html"][img=images/nav/nav_4.gif][/url] </div> </div> <div id="content"> <body onload="getme();"> <center> <div id="login"> </div> <form action="ajax_login.php" method="post" onsubmit="submitForm();return false;"> <div id="login"> <u>>> Login <<</u> <span id="error_area"></span> Please enter your account information below. <input type="text" name="username" class="text_field" autocomplete="off" value="Username" /> <input type="password" name="password" class="text_field" autocomplete="off" value="Password" /> <input type="submit" name="submit" value="Submit" /> </div> <div id="footer"> [url="http://clantemplates.com"][img=images/link_back.gif][/url] [url="http://opserty.com"][/url][url="http://retrovestudios.com"][/url] } </div> </form> </center> </body> </html> OUT; ?>
-
[mccode v2] Advanced(isher) Level Upgrade Mod.
Menice replied to Becon's topic in Free Modifications
cannot get this to show up only when they have enough EXP for it to could someone please help -
I really like this login, It's simple but yet it's amazing looking. I've created my game header around it finally :) might post it up later if you don't mind :)
-
For some reason my staff_stocks.php is just a blank page?
-
Free coded login, can easily become register, TOS, etc.
Menice replied to BoGFx's topic in Free Modifications
Anybody think by any chance they can point me in the direction of making this into a header? -
Free coded login, can easily become register, TOS, etc.
Menice replied to BoGFx's topic in Free Modifications
Coded it into a register if anyone wants it :) <?php include "config.php"; global $_CONFIG; define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; $set=array(); $settq=$db->query("SELECT * FROM settings"); while($r=$db->fetch_row($settq)) { $set[$r['conf_name']]=$r['conf_value']; } //thx to [url]http://www.phpit.net/code/valid-email/[/url] for valid_email function valid_email($email) { // First, we check that there's one @ symbol, and that the lengths are right if (!ereg("^[^@]{1,64}@[^@]{1,255}$", $email)) { // Email invalid because wrong number of characters in one section, or wrong number of @ symbols. return false; } // Split it into sections to make life easier $email_array = explode("@", $email); $local_array = explode(".", $email_array[0]); for ($i = 0; $i < sizeof($local_array); $i++) { if (!ereg("^(([A-Za-z0-9!#$%&'*+/=?^_`{|}~-][A-Za-z0-9!#$%&'*+/=?^_`{|}~\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))$", $local_array[$i])) { return false; } } if (!ereg("^\[?[0-9\.]+\]?$", $email_array[1])) { // Check if domain is IP. If not, it should be valid domain name $domain_array = explode(".", $email_array[1]); if (sizeof($domain_array) < 2) { return false; // Not enough parts to domain } for ($i = 0; $i < sizeof($domain_array); $i++) { if (!ereg("^(([A-Za-z0-9][A-Za-z0-9-]{0,61}[A-Za-z0-9])|([A-Za-z0-9]+))$", $domain_array[$i])) { return false; } } } return true; } session_start(); print <<<EOF <!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> <title>Your Game Name Here</title> <meta name="description" content="Desc Here" /> <meta name="keywords" content="keyword" /> <meta name="author" content="Author" /> <meta name="copyright" content="2010 Author" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style type="text/css"> A:link {text-decoration: none; color:#FFF; font-family: Arial, Helvetica, sans-serif;} A:visited {text-decoration: none; color:#FFF; font-family: Arial, Helvetica, sans-serif;} A:active {text-decoration: none; color:#FFF; font-family: Arial, Helvetica, sans-serif;} A:hover {text-decoration: none; color:#FFF; font-family: Arial, Helvetica, sans-serif;} img { border: none; } body { font-family: Verdana, Geneva, sans-serif; font-variant: small-caps; color: #FFF; background-color: #000; background-image: url(images/mwglayout/bg.png); margin: 0px; padding: 0px; margin-left: auto; margin-right: auto; text-align:left; } #container { background-color: #000; background-image: url(images/bg.png); width: 800px; margin-left: auto; margin-right: auto; text-align:left; } #main { background-image: url(images/bgmain.png); width: 750px; margin-left: auto; margin-right: auto; text-align:left; } #smain { background-image: url(images/bgmain.png); width: 730px; margin-left: auto; margin-right: auto; text-align:left; } #header { background-image: url(images/bglogo.png); width: 730px; margin-left: auto; margin-right: auto; margin-bottom: 14px; padding-top: 10px; text-align:left; padding-left: 14px; } #menu { background-image: url(images/bglogo.png); width: 730px; margin-left: auto; margin-right: auto; margin-bottom: 14px; padding-top: 10px; text-align:center; padding-left: 14px; } #content { background-image: url(images/bglogo.png); width: 730px; margin-left: auto; margin-right: auto; margin-bottom: 14px; padding-top: 14px; text-align:left; padding-left: 14px; } td.foot { text-align: left; font-size: 11px; } </style> </head> <body> <div id="container"> <div id="main"> <div id="header"> <table width="730"> <tr> <td width="400px">[img=/images/logo.png]</td> <td width="330px"> </body> EOF; $IP = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; if(file_exists('ipbans/'.$IP)) { die("[b]<font color=red size=+1>Your IP has been banned, there is no way around this.</font>[/b]</body></html>"); } if($_POST['username']) { if($set['regcap_on']) { if(!$_SESSION['captcha'] or $_SESSION['captcha'] != $_POST['captcha']) { unset($_SESSION['captcha']); die("Captcha Test Failed >[url='register.php']Back[/url]"); } unset($_SESSION['captcha']); } if(!valid_email($_POST['email'])) { die("Sorry, the email is invalid. >[url='register.php']Back[/url]"); } if(strlen($_POST['username']) < 4) { die("Sorry, the username is too short. >[url='register.php']Back[/url]"); } $sm=100; if($_POST['promo'] == "Your Promo Code Here") { $sm+=100; } $username=$_POST['username']; $username=str_replace(array("<", ">"), array("<", ">"), $username); $q=$db->query("SELECT * FROM users WHERE username='{$username}' OR login_name='{$username}'"); $q2=$db->query("SELECT * FROM users WHERE email='{$_POST['email']}'"); if($db->num_rows($q)) { print "Username already in use. Choose another. >[url='register.php']Back[/url]"; } else if($db->num_rows($q2)) { print "E-Mail already in use. Choose another. >[url='register.php']Back[/url]"; } else if($_POST['password'] != $_POST['cpassword']) { print "The passwords did not match, go back and try again. >[url='register.php']Back[/url]"; } else { $_POST['ref'] = abs((int) $_POST['ref']); $IP = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; $q=$db->query("SELECT * FROM users WHERE lastip='$IP' AND userid={$_POST['ref']}"); if($db->num_rows($q)) { die("No creating referral multies. Bad dog. >[url='register.php']Back[/url]"); } if($_POST['ref']) { $q=$db->query("SELECT * FROM users WHERE userid={$_POST['ref']}"); $r=$db->fetch_row($q); } $db->query("INSERT INTO users (username, login_name, userpass, level, money, crystals, donatordays, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, bankmoney, lastip, lastip_signup) VALUES( '{$username}', '{$username}', md5('{$_POST['password']}'), 1, $sm, 0, 0, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, '{$_POST['gender']}', unix_timestamp(), '{$_POST['email']}', -1, '$IP', '$IP')"); $i=$db->insert_id(); $db->query("INSERT INTO userstats VALUES($i, 10, 10, 10, 10, 10)"); if($_POST['ref']) { require "global_func.php"; $db->query("UPDATE users SET crystals=crystals+2 WHERE userid={$_POST['ref']}"); event_add($_POST['ref'],"For refering $username to the game, you have earnt 2 valuable crystals!",$c); $db->query("INSERT INTO referals VALUES('', {$_POST['ref']}, $i, unix_timestamp(),'{$r['lastip']}','$IP')"); } print "You have signed up, enjoy the game. > [url='login.php']Login[/url]"; } } else { if($set['regcap_on']) { $chars="123456789abcdefghijklmnpqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!?\\/%^"; $len=strlen($chars); $_SESSION['captcha']=""; for($i=0;$i<6;$i++) $_SESSION['captcha'].=$chars[rand(0, $len - 1)]; } print "<h3>{$set['game_name']} Registration</h3>"; print "<form action=register.php method=post> <table width='75%' class='table' cellspacing='1'> <tr> <td width='30%'>Username</td> <td width='40%'><input type=text name=username onkeyup='CheckUsername(this.value);'></td> <td width='30%'><div id='usernameresult'></div></td> </tr> <tr> <td>Password</td> <td><input type=password id='pw1' name=password onkeyup='CheckPasswords(this.value);PasswordMatch();'></td> <td><div id='passwordresult'></div></td> </tr> <tr> <td>Confirm Password</td><td><input type=password name=cpassword id='pw2' onkeyup='PasswordMatch();'></td> <td><div id='cpasswordresult'></div></td> </tr> <tr> <td>Email</td><td><input type=text name=email onkeyup='CheckEmail(this.value);'></td> <td><div id='emailresult'></div></td> </tr> <tr> <td>Gender</td> <td colspan='2'><select name='gender' type='dropdown'> <option value='Male'>Male <option value='Female'>Female</select></td> </tr> <tr> <td>Promo Code</td><td colspan=2><input type=text name=promo></td> </tr> <input type=hidden name=ref value='"; if($_GET['REF']) { print $_GET['REF']; } print "' />"; if($set['regcap_on']) { print "<tr> <td colspan=3>[img=captcha_verify.php?bgcolor=C3C3C3] <input type='text' name='captcha' /></td> </tr>"; } print " <tr> <td colspan=3 align=center><input type=submit value=Submit></td> </tr> </table> </form> > [url='login.php']Go Back[/url]"; } print <<<OUT </td> <td class="rgrad"></td> </tr> <tr> <td colspan="3"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td class="dgradl"></td> <td class="dgrad"></td> <td class="dgradr"></td> </tr> </table> </td> </tr> </table> </center> </body> </html> OUT; ?>