Jump to content
MakeWebGames

Wickidnezz

Members
  • Posts

    102
  • Joined

  • Last visited

Everything posted by Wickidnezz

  1. Re: [V2] Crystalbank Mod [V2]   look at this Magictallguy thinks hes so cool yet the version he secured doesnt even work right away oh lordy dude sit down and start suckin that thumb of urs instead of tryin to secure other peoples scripts and knock them the entire time my god people like you are the reason some newbies wont post on CE oh heres a error after taking messing with it abit to get to work Parse error: syntax error, unexpected T_STRING in /home/thugwar/public_html/crystalbank.php on line 118 look dude got that error after 10mins attemptin to make ur so called secured version to work i guess your not so great huh Magictallguy look at this folks he put it like so echo ("You ask to withdraw , ", number_format($gain), $s); echo ("the banking lady grudgingly hands it over. "); echo ("You now have %s crystal%s in the bank. ", number_format($ir['crystalbank']), $s); echo ("> Back"); which caused errors why you may ask well all the " ; he has in there are unneeded so it should of been echo (You ask to withdraw , , number_format($gain), $s) echo (the banking lady grudgingly hands it over. ); echo (You now have %s crystal%s in the bank. , number_format($ir['crystalbank']), $s) echo (> Back) heck i prolly could take the echos out aswell but eh i dont care he hasn't got a clue himself lol pog if ur referring to me not having a clue myself your 100% wrong so how bout you pack it in and sit there like a good boy i may be a newbie poster on here but that doesnt mean i am a newbie coder so eh shut ya faces
  2. Re: Help Header Problem   why not just post the exact problem eh i tryed to login your game and i keep getting a redirect for a adult website not sure that may be what u want fixed but eh honestly its always best to post what is exactly wrong
  3. Re: [mccode] Free Starter Pack err not competley theres still 1 minor problem you can claim more then 1 starter pack
  4. Re: [V2] Crystalbank Mod [V2]   look at this Magictallguy thinks hes so cool yet the version he secured doesnt even work right away oh lordy dude sit down and start suckin that thumb of urs instead of tryin to secure other peoples scripts and knock them the entire time my god people like you are the reason some newbies wont post on CE oh heres a error after taking messing with it abit to get to work Parse error: syntax error, unexpected T_STRING in /home/thugwar/public_html/crystalbank.php on line 118 look dude got that error after 10mins attemptin to make ur so called secured version to work i guess your not so great huh Magictallguy look at this folks he put it like so echo ("You ask to withdraw , ", number_format($gain), $s); echo ("the banking lady grudgingly hands it over. "); echo ("You now have %s crystal%s in the bank. ", number_format($ir['crystalbank']), $s); echo ("> Back"); which caused errors why you may ask well all the " ; he has in there are unneeded so it should of been echo (You ask to withdraw , , number_format($gain), $s) echo (the banking lady grudgingly hands it over. ); echo (You now have %s crystal%s in the bank. , number_format($ir['crystalbank']), $s) echo (> Back) heck i prolly could take the echos out aswell but eh i dont care
  5. Re: [other] New Login + New Register heres the register code couldnt fit in the first post   <?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!#$%&#038;'*+/=?^_`{|}~-][A-Za-z0-9!#$%&#038;'*+/=?^_`{|}~\.-]{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>{$set['game_name']}</title> <script type="text/javascript"> var xmlHttp // xmlHttp variable function GetXmlHttpObject(){ // This function we will use to call our xmlhttpobject. var objXMLHttp=null // Sets objXMLHttp to null as default. if (window.XMLHttpRequest){ // If we are using Netscape or any other browser than IE lets use xmlhttp. objXMLHttp=new XMLHttpRequest() // Creates a xmlhttp request. }else if (window.ActiveXObject){ // ElseIf we are using IE lets use Active X. objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP") // Creates a new Active X Object. } // End ElseIf. return objXMLHttp // Returns the xhttp object. } // Close Function function CheckPasswords(password){ // This is our fucntion that will check to see how strong the users password is. xmlHttp=GetXmlHttpObject() // Creates a new Xmlhttp object. if (xmlHttp==null){ // If it cannot create a new Xmlhttp object. alert ("Browser does not support HTTP Request") // Alert Them! return // Returns. } // End If. var url="check.php?password="+escape(password) // Url that we will use to check the password. xmlHttp.open("GET",url,true) // Opens the URL using GET xmlHttp.onreadystatechange = function () { // This is the most important piece of the puzzle, if onreadystatechange = equal to 4 than that means the request is done. if (xmlHttp.readyState == 4) { // If the onreadystatechange is equal to 4 lets show the response text. document.getElementById("passwordresult").innerHTML = xmlHttp.responseText; // Updates the div with the response text from check.php } // End If. }; // Close Function xmlHttp.send(null); // Sends NULL insted of sending data. } // Close Function. function CheckUsername(password){ // This is our fucntion that will check to see how strong the users password is. xmlHttp=GetXmlHttpObject() // Creates a new Xmlhttp object. if (xmlHttp==null){ // If it cannot create a new Xmlhttp object. alert ("Browser does not support HTTP Request") // Alert Them! return // Returns. } // End If. var url="checkun.php?password="+escape(password) // Url that we will use to check the password. xmlHttp.open("GET",url,true) // Opens the URL using GET xmlHttp.onreadystatechange = function () { // This is the most important piece of the puzzle, if onreadystatechange = equal to 4 than that means the request is done. if (xmlHttp.readyState == 4) { // If the onreadystatechange is equal to 4 lets show the response text. document.getElementById("usernameresult").innerHTML = xmlHttp.responseText; // Updates the div with the response text from check.php } // End If. }; // Close Function xmlHttp.send(null); // Sends NULL insted of sending data. } // Close Function. function CheckEmail(password){ // This is our fucntion that will check to see how strong the users password is. xmlHttp=GetXmlHttpObject() // Creates a new Xmlhttp object. if (xmlHttp==null){ // If it cannot create a new Xmlhttp object. alert ("Browser does not support HTTP Request") // Alert Them! return // Returns. } // End If. var url="checkem.php?password="+escape(password) // Url that we will use to check the password. xmlHttp.open("GET",url,true) // Opens the URL using GET xmlHttp.onreadystatechange = function () { // This is the most important piece of the puzzle, if onreadystatechange = equal to 4 than that means the request is done. if (xmlHttp.readyState == 4) { // If the onreadystatechange is equal to 4 lets show the response text. document.getElementById("emailresult").innerHTML = xmlHttp.responseText; // Updates the div with the response text from check.php } // End If. }; // Close Function xmlHttp.send(null); // Sends NULL insted of sending data. } // Close Function. function PasswordMatch() { pwt1=document.getElementById('pw1').value; pwt2=document.getElementById('pw2').value; if(pwt1 == pwt2) { document.getElementById('cpasswordresult').innerHTML="<font color='green'>OK</font>"; } else { document.getElementById('cpasswordresult').innerHTML="<font color='red'>Not Matching</font>"; } } </script> <style type="text/css"> body { background-color: #000000; font-size:12px; color: red; font-family:Verdana, Arial, Helvetica, sans-serif; } div#wrapper { width: 80%; background:silver; margin-top: 50px; margin-bottom: 50px; margin-left: auto; margin-right: auto; padding: 0px; border: thin solid #222222; } div#header { padding: 15px; margin: 0px; text-align: center; } div#nav { width: 30%; padding: 10px; margin-top: 1px; float: left; } div#main { margin-left: 30%; margin-top: 1px; padding: 20px; font-family: perpetua; } div#footer { padding: 15px; margin: 0px; border-top: thin solid #222222; background-image: url('footer.jpg'); font-size: 17px; } a:link,a:visited,a:active { color: black; } a:hover { color: darkblue; background-image: url('nav.jpg'); } a:focus { color: royalblue; background-image: url('navfocus.jpg'); } </style></head> <body> <center> <div id=wrapper> <div id=header> <center> <table border='1' width='100%' bordercolor='red' align='right'> <tr> <td> [img=title.jpg] </center> </td></tr></table><title>{$set['game_name']}</title> </center> <table border='1' width='75%' bordercolor='red' align='center'> <tbody><tr background="swirlbg.png"> <th width="20%">[url="http://www.yourgame.info/login.php"]Login[/url]</th> <th width="20%">[url="http://www.yourgame.info/register.php"]Register[/url]</th> <th width="20%">[url="http://www.yourgame.info/screenshots.php"]Screenshots[/url]</th> <th width="20%">[url="http://www.yourgame.info/rules.php"]Rules[/url]</th> <th width="20%">[url="http://www.yourgame.info/tos.php"]Terms Of Service[/url]</th> </tr> </tbody></table> 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 if($_POST['squestion'] != $_POST['csquestion']) { print "<h1>ERROR! The Questions Dont Match</h1> [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, squestion, 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']}'), '{$_POST['squestion']}', 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(); $message = "Welcome to the game, please vote to gain an extra $/70 and please enjoy your stay within the streets. Thanks (Admins) "; $db->query("INSERT INTO mail VALUES ('',0,1,$i,unix_timestamp(),'Welcome to {$set['game_name']}','{$message}')"); $db->query("UPDATE users SET new_mail=new_mail+1 WHERE userid=$i"); $db->query("INSERT INTO userstats VALUES($i, 0, 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 [b]2[/b] valuable crystals, Thank you for refering!",$c); $db->query("INSERT INTO referals VALUES('', {$_POST['ref']}, $i, unix_timestamp(),'{$r['lastip']}','$IP')"); } print "Thank you for signing up. [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 "</div><div id=nav>Rules And Regulations <textarea readonly=readonly cols=30 rows=10> 1) Players are only allowed to have one account, owning two or more accounts will result in all accounts being jailed, if you are on the same IP as another player, mail staff and let them know. 2) You are responsible for whatever happens on your account, don't give out your password to anyone. 3)Children play this game, so keep it PG-13. Mild swearing will be permitted, but F-bombing, sexual vulgarities or excessive swearing will result in some time in Fed until you clean up your act. 4) Profile images with nudity, profanity, or otherwise offensive images will be removed, and may result in jail time. 5) We understand that you play other games, but do not advertise them here. You get 1 warning, afterwards its Fed time. 6) Do not spam the staff's mailbox, if you have a problem, message one of us once. They will deal with your problem in a timely manner, but do not mail them repeatedly, or mail multiple staff members. 7) Do not harrass other players, use common sense on this one, if you don't know when your crossing the line from fantasy into harrassment, assume that you are harrassing the other player. This will not be tolerated and will result in a stiff punishment. 8) Scamming will not be tolerated in any manner. Any attempt to scam anyone will result in being jailed for a long long time. 9) If a member of staff is bothering you for any unfair or just plain, weird reason, mail user [1] 10) Common sense rules are not posted here, if you can't determine the difference between what is ok, and what is not, you should consider not interacting with other people until you do understand. 11) These rules are subject to change without notice, check them from time to time, as ignorance will not be accepted as an excuse. </textarea></div><div id=main>"; print "<form action=register.php method=post> Username: <input type=text name=username onkeyup='CheckUsername(this.value);'> [[url='#']?[/url]] Password: <input type=password id='pw1' name=password onkeyup='CheckPasswords(this.value);PasswordMatch();'> [[url='#']?[/url]] Confirm Password: <input type=password name=cpassword id='pw2' onkeyup='PasswordMatch();'> [[url='#']?[/url]] <tr> <td><div align='center'>Secret Question:</div></td> <td><div align='center'> <input type='text' name='squestion' /> [[url='#']?[/url]] </div></td> </tr> <tr> <td><div align='center'>Re-type Secret Question:</div></td> <td><div align='center'> <input type='text' name='csquestion' /> [[url='#']?[/url]] </div></td> </tr> Email: <input type=text name=email onkeyup='CheckEmail(this.value);'> [[url='#']?[/url]] Gender: <select name='gender' type='dropdown'> <option value='Male'>Male <option value='Female'>Female</select> [[url='#']?[/url]] Promo Code: <input type=text name=promo> [[url='#']?[/url]] <input type=submit value=Submit><input type=reset value=Reset> [b][url='login.php']Go Back[/url] [/b] </form> </div> </div> [b][url='login.php']Go Back[/url] [/b]"; } print <<<OUT </body> </html> OUT; ?>   all credits go to Sniko' they can be seen workin here www.theoutfit.info
  6. Re: [other] New Login + New Register this is the just a updated version of what Sniko` done all i did was added the banner code and put a table with four different links that you can add a image behind for the register you will need to add illusions Reset password + Secret question mod found here http://criminalexistence.com/ceforums/i ... ic=28389.0 well here goes backup ur login.php and then replace it with   <?php session_start(); include "config.php"; global $_CONFIG; define("MONO_ON", 1); $file = sprintf("class_db_%s.php", $_CONFIG['driver']); require(DIRNAME(__FILE__) . '/class/'.$file.''); $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']; } ?> <!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><? echo $set['game_name']; ?></title> <style> body { background-color: #000000; font-size:12px; color: red; font-family:Verdana, Arial, Helvetica, sans-serif; } div#wrapper { width: 80%; background:silver; margin-top: 50px; margin-bottom: 50px; margin-left: auto; margin-right: auto; padding: 0px; border: slim solid #222222; } div#header { padding: 15px; margin: 0px; text-align: center; } div#nav { width: 30%; padding: 10px; margin-top: 1px; float: left; } div#main { margin-left: 30%; margin-top: 1px; padding: 20px; font-family: perpetua; } div#footer { padding: 15px; margin: 0px; border-top: thin solid #222222; background-image: url('footer.jpg'); font-size: 17px; } a:link,a:visited,a:active { color: black; } a:hover { color: darkblue; background-image: url('nav.jpg'); } a:focus { color: royalblue; background-image: url('navfocus.jpg'); } </style> <script language="JavaScript"> <!-- 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> <script language="JavaScript"> var usr; var pw; var sv; function getme() { usr = document.login.username; pw = document.login.password; sv = document.login.save; if (GetCookie('player') != null) { usr.value = GetCookie('username') pw.value = GetCookie('password') if (GetCookie('save') == 'true') { sv[0].checked = true; } } } function saveme() { if (usr.value.length != 0 && pw.value.length != 0) { if (sv[0].checked) { expdate = new Date(); expdate.setTime(expdate.getTime()+(365 * 24 * 60 * 60 * 1000)); SetCookie('username', usr.value, expdate); SetCookie('password', pw.value, expdate); SetCookie('save', 'true', expdate); } if (sv[1].checked) { DeleteCookie('username'); DeleteCookie('password'); DeleteCookie('save'); } } else { alert('You must enter a username/password.'); return false; } } </script> </head> <body onload="getme();"> <div id=wrapper> <div id=header> <center> <table border='1' width='100%' bordercolor='red' align='right'> <tr> <td> [img=title.jpg] </center> </td></tr></table><title>{$set['game_name']}</title> </center> <table border='1' width='75%' bordercolor='red' align='center'> <tbody><tr background="swirlbg.png"> <th width="20%">[url="http://www.yourgame.info/login.php"]Login[/url]</th> <th width="20%">[url="http://www.yourgame.info/register.php"]Register[/url]</th> <th width="20%">[url="http://www.yourgame.info/screenshots.php"]Screenshots[/url]</th> <th width="20%">[url="http://www.yourgame.info/rules.php"]Rules[/url]</th> <th width="20%">[url="http://www.yourgame.info/tos.php"]Terms Of Service[/url]</th> </tr> </tbody></table> <? $IP = $_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>"); } $year=date('Y'); ?> <center><font color=red>yourgame Login</font></center> </div> <div id=nav> <center> <? echo nl2br($set['game_description']); ?> </center> </div> <div id=main> <center> <form action='authenticate.php' method='post' name='login' onsubmit='return saveme();'> Username: <input type='text' name='username'> Password: <input type='password' name='password'> Remember me on this computer? <input type='radio' value='ON' name='save'>Yes <input type='radio' name='save' value='OFF' checked>No <input type='submit' value='Enter'> </form> <font size=5>[url='register.php']Register[/url] </center> </div> <div id=footer> [i]<center>[url='resend.php']Forgot your password? Click here![/url]</font> </center>[/i]</div> </body> </html>   backup ur register.php and then replace it with
  7. Re: BANK cap V2 for future references you can do it this way change $_POST['deposit']=abs((int) $_POST['deposit']); to $_POST['deposit']=abs((BIGINT) $_POST['deposit']); and $_POST['withdraw']=abs((BIGINT) $_POST['withdraw']); to $_POST['withdraw']=abs((BIGINT) $_POST['withdraw']); or you can use $_POST['deposit']=abs((int) $_POST['deposit']); to $_POST['deposit']=abs((float) $_POST['deposit']); and $_POST['withdraw']=abs((BIGINT) $_POST['withdraw']); to $_POST['withdraw']=abs((float) $_POST['withdraw']); keep in mind your still going to need to adjust it in your phpmyadmin
  8. Re: [Mccodes V2]Login Register, TOs- New   eh dylan you can restrict the age of people that are allowed to signup so tech you can stop anyone who is 10years old from even signingup so eh but on the flipside for people who dont feel like verfiyin the age of users they may get in shit
  9. Re: Contact Staff Through Email Nope Its Still Bugged But Just Atip Take A Look At The Differences Of Each Of These Heres The One You Posted:   <?php include 'globals.php'; /* -- Mobz Productions -- -- A Product of Mobz Productions -- -- For contacting game -- -- Created by M0B2 -- -- Contact.php -- --Fixed by Eternal-- */ print "Staff Contact form: "; if($_POST['mes']!='') { $to="Your Email Here"; $subj = "Your Game Name Contact Form"; $mess =$_POST['mes']; $from = $_POST['email']; $headers ="From: $from"; mail($to,$subj,$mess,$headers); } print "Your message has been sent to $to You will get a reply as soon as posible. <a href='index.php>Back to game...</a>"; } else { print "You are contacting ".$set['game_name']." Via email. "; echo' <form action="contact.php" method="post"> <input name="email" type="hidden" value="'.$ir['email'].'"> <textarea cols=30 rows=15 name="mes"> </textarea> <input type="submit" value="Send!"></form>'; } $h->endpage(); ?>   Here It Is Fixed And 2 } Removed From Were Not Needed   <?php include 'globals.php'; /* -- Mobz Productions -- -- A Product of Mobz Productions -- -- For contacting game -- -- Created by M0B2 -- -- Contact.php -- --Fixed by Eternal-- */ print "Staff Contact form: "; if($_POST['mes']!='') { $to="Your Email Here"; $subj = "Your Game Name Contact Form"; $mess =$_POST['mes']; $from = $_POST['email']; $headers ="From: $from"; mail($to,$subj,$mess,$headers); } print "Your message has been sent to $to You will get a reply as soon as posible. <a href='index.php>Back to game...</a>"; print "You are contacting ".$set['game_name']." Via email. "; echo' <form action="contact.php" method="post"> <input name="email" type="hidden" value="'.$ir['email'].'"> <textarea cols=30 rows=15 name="mes"> </textarea> <input type="submit" value="Send!"></form>'; $h->endpage(); ?>   Should Be 100% Working Order As I Tested It To Make Sure It Was Working And Results It Worked Fine Problem Was else { Was Put Were Not Needed Just Like The 2 Extra } Which 1 Was Over Top Of else { Like So } else { The Other Was Over Top Of $h->endpage(); ?> Like So } $h->endpage(); ?> And That Is That As Illusions Asked External To Do On What He Claimed To Fix Which Wasnt Really Fixed I Have Gone Ahead And Told You Exactly Why It Wasnt Working Correctly
  10. Re: Contact Staff Through Email   sorry to say m8 the fixed bit is false:( Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/savage/public_html/contact.php on line 17
  11. Re: [V2]Updated Header[V2]   can you read or just stupid ? as i did reply to haunted dawg thinkin it was his edit when it aint plus i dont see why anyone got a error as it worked fine when i posted it
  12. Re: [V2]Updated Header[V2]   eh Miniman if u looked at wat i put at the top of the post u would see wat i done i guess u didnt so ill be nice and post it for u and the header is standard mccode coding with css in it with the bars moved across the top with a table around it with a red border and hunted dawg none of that header is your codes so shut ya mouth   lmao Crazy-T is a lowlife who has nothin better then to sit on a forum
  13. Re: [V2]Updated Header[V2]   You didnt answer the question Wickidnezz whats that for? lol unlike you Crazy-T i got a life i dont sit online to answer questions for idiotas
  14. Re: [V2]Updated Header[V2]   yer very well change the game name as this is strictly out of a game im doing   eh crazy-t i got better things to do then answer lame questions for idiotas as i do have a real life and not sit on a bloody forum waittin for some1 to post something so i can comment and try to make them seem dumb
  15. Re: [V2]Updated Header[V2] eh yaz why u post a header sayin this shud work when the 1 i posted works fine as ive done it in game
  16. Hey I Done Edited This V2 Header For My Game But Thought Id Share It With CE Please Note Were Ive Put "Put Your Copyright" And "Put Your Email" Should Be Replaced With Your Infomation +1 If You Like What Ive Done Or If You Use It Thankz And Enjoy   <?php class headers { function startheaders() { $key = substr($key = basename($_SERVER['PHP_SELF']), 0, strpos($key, ".")); $page = isset($table[$key]) ? $table[$key] : " "; global $ir, $set; echo <<<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> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>{$set['game_name']}</title> <link rel="shortcut icon" href="icon.png"> <style type="text/css"> <!-- body { margin: 0; padding: 0; background: #000000; font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; font-size: 13px; color: silver; } h1, h2, h3 { margin-top: 0; } a { text-decoration: none; color: red; } a:hover { color: blue; ---> </style></head> <body> <center> <table width="970" border="0" cellpadding="0" cellspacing="0" class="table2"> <tr> <td class="lgrad"></td> <td class="center"> EOF; } function userdata($ir,$lv,$fm,$cm,$dosessh=1) { global $db,$c,$userid, $set; $IP = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; $db->query("UPDATE users SET laston=unix_timestamp(),lastip='$IP' WHERE userid=$userid"); if(!$ir['email']) { global $domain; die ("<body>Your Account May Be Broken. Please Contact "Put Your Email" Stating Your Username And User ID."); } if($dosessh && ($_SESSION['attacking'] || $ir['attacking'])) { print "You Lost All Your EXP For Running From A Fight Like A Coward."; $db->query("UPDATE users SET exp=0,attacking=0 WHERE userid=$userid"); $_SESSION['attacking']=0; } $enperc=(int) ($ir['energy']/$ir['maxenergy']*100); $wiperc=(int) ($ir['will']/$ir['maxwill']*100); $experc=(int) ( $ir['exp']/$ir['exp_needed']*100); $brperc=(int) ($ir['brave']/$ir['maxbrave']*100); $hpperc=(int) ($ir['hp']/$ir['maxhp']*100); $enopp=100-$enperc; $wiopp=100-$wiperc; $exopp=100-$experc; $bropp=100-$brperc; $hpopp=100-$hpperc; $d=""; $stmr=""; $u=$ir['username']; if($ir['user_level'] > 1) { $stmr="[img=staffimage here]"; }; if($ir['donatordays']) { $u = "<font color=red>{$ir['username']}</font>";$d="[img=donator.gif]"; } $gn=""; global $staffpage; $bgcolor = ''; print <<<OUT <center> <table border='1' width='100%' bordercolor='red' align='right'> <tr> <td> [img=title.jpg] </center> </td></tr></table><title>{$set['game_name']}</title> </center> <table border='1.0' width='100%' bordercolor='red' align='right'> <th>[b]Energy:[/b] {$enperc}%</th> <th>[b]Will:[/b] {$wiperc}%</th> <th>[b]Brave:[/b] {$ir['brave']}/{$ir['maxbrave']}</th> <th>[b]Respect: {$experc}%</th> <th>[b]Health</font>[/b] {$hpperc}%</th> </tr> <td><img src=ZBar.png width=$enperc height=10><img src=ZBar2.png width=$enopp height=10></td> <td><img src=ZBar.png width=$wiperc height=10><img src=ZBar2.png width=$wiopp height=10></td> <td><img src=ZBar.png width=$brperc height=10><img src=ZBar2.png width=$bropp height=10></td> <td><img src=ZBar.png width=$experc height=10><img src=ZBar2.png width=$exopp height=10></td> <td><img src=ZBar.png width=$hpperc height=10><img src=ZBar2.png width=$hpopp height=10> </td> </tr> </table> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="20%" bgcolor="#$bgcolor" valign="top"> <fieldset> [b]Welcome to <font color='red'>Dark City</font> </fieldset> <fieldset> <font color=silver>[i]<pre> [b]Name:[/b] $gn{$u} [{$ir['userid']}] $d [b]Money:[/b] {$fm} [b]Level:[/b] {$ir['level']} [b]Crystals:[/b] {$ir['crystals']} [[url='logout.php']Quick Logout[/url]] </font>[/i]</pre></fieldset> OUT; if($ir['fedjail']) { $q=$db->query("SELECT * FROM fedjail WHERE fed_userid=$userid"); $r=$db->fetch_row($q); die("[b]<hr /><font color=red size=+1>You Have Been Dragged Off To {$set['game_name']} Federal Prision For {$r['fed_days']} Day(s).<hr /> Reason: {$r['fed_reason']}</font>[/b]</body></html>"); } if(file_exists('ipbans/'.$IP)) { die("[b]<font color=red size=+1><hr />Your IP Has Been Banned From {$set['game_name']}, There Is No Way Around This.<hr /></font>[/b]</body></html>"); } } function menuarea() { include "mainmenu.php"; global $ir,$c; $bgcolor = ''; print '</td><td width="2" class="linegrad" bgcolor="#'.$bgcolor.'"> </td><td width="80%" bgcolor="#'.$bgcolor.'" valign="top"> <center>'; if($ir['hospital']) { print "[b]<hr />You Are In The Hospital The Doctors Think You Should Rest Abit For {$ir['hospital']} Minutes.<hr /> "; } if($ir['jail']) { print "[b]<hr />You Have Been Arrested And Hauled Off To The Local Jail {$ir['jail']} Minutes.<hr /> "; } print " <fieldset> [url='donator.php'][b]<pre>[i]<blink>Become A Donator To {$set['game_name']} Now For Extreme Featurez And Benefits!!</blink></pre>[/i][/b][/url]"; print "[url='vote.php'][b]<pre>[i]<blink>Vote For {$set['game_name']}!!</blink></pre>[/i][/b]</fieldset>[/url] "; } function smenuarea() { include "smenu.php"; global $ir,$c; $bgcolor = ''; print '</td><td width="2" class="linegrad" bgcolor="#'.$bgcolor.'"> </td><td width="80%" bgcolor="#'.$bgcolor.'" valign="top"><center>'; } function endpage() { global $db; print <<<OUT </center> </td> </tr> </table></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> "Put Your Copyright" </body> </html> OUT; } } ?>
  17. Re: [mccode] Mining mod   since when is it a crime to save a picture its kinda your fault aswell for having right click enabled even tho having a no right click script doesn't help much but it helps abit so Z?v?? perhaps you might want to try securing your graphics and what not so people cant just go right click and save as and he could have very easily saved your login and register page or any page for that matter so maybe you might want to think bout that also if ppl go to save as in file on there browser they can sweep the entire contents of ur site off graphics and html content
  18. Re: [mccode v2] ADVANCED USERSONLINE MOD Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/savagec/public_html/usersonline.php:2) in /home/savagec/public_html/globals.php on line 2 hmm
  19. Re: New Login pg.   wireless router that belongs to my landlord as i run off his connection as its free to my rent and i aint stupid i know abit about computers as i have been brought up in a computer tech family and yer wireless connections when ur running off of some1 elses connection r junk no matter what speed and the provider he has is junk aswell so eh dont tell me stuff i dont please and thank you Not To Argue M8 But I Have A Worse Connection Then 56kbps Try 54.0mbps On Wireless And Flash Doesnt Bother It So Why You Think Itd Bother A Connection Speed Of 56kbps??? 54mbps is faster than 56kbps and just because you use a wireless router doesn't mean the speed you get from your isp is that great either most people have between 1-10mbps and than conert 1-10mbps into a easy to understand spead so in reality you have anywhere from 100kb/s to 1mb/s
  20. Re: [mccode V2] Very simple travel time mod.     err H1TM4N 15 if you made this why does it state it was made by $Bull$$ EYE$ seems to funny as your name isnt $Bull$$ EYE$   /*----------------------------------------------------- -- ChavsterV1 -- Made For Free Not For Resale By -- $Bull$$ EYE$ -----------------------------------------------------*/
  21. Re: [mccode] donator day market for v2 why a fuss the crystal market one worked so let it be he did a good job just the same so yall needa stop critising +1 Mateeee
  22. Re: Airplanes [V2]   that only means you got no life haha has nothin to do if people pay attention or not
  23. Re: [mccode v2] Simple Mine when you click a square is it pose to give you a white page
  24. Re: v2 Mine Mod   Looking through the code i cant see any where it requires anything other than power. it dont just have anything that requires anything about power it plain out dont work
  25. Re: v2 Mine Mod Um This Mod Has Already Been Posted By illusions Only Thing Is Its Labeled Differently If You Notice Its Just Labeled Differently So Im Afraid You Didnt Pull It From A Game Buddy Boi Link To Were Its Already Posted : http://criminalexistence.com/ceforums/i ... ic=27580.0
×
×
  • Create New...