Jump to content
MakeWebGames

Jake

Members
  • Posts

    106
  • Joined

  • Last visited

    Never

Everything posted by Jake

  1. Re: Table Returns single result Thanks very much :D
  2. Re: Table Returns single result   $w=mysql_query("SELECT * FROM Wars", $c); $war=mysql_fetch_array($w); $wan=mysql_num_rows($w); if($wan==0) { print "<center>There Are Currently No Wars, Sire. [url='javascript: history.go(-1)']Back[/url]"; } else {   Then i have the table shown above.
  3. print "[url='javascript: history.go(-1)']Here Are all the current wars. Now, what else do you wish to discuss?[/url] "; print "[b]Attacker [b]Defender [b]Length {$war['Name1']} {$war['Name2']} {$war['DaysOld']} Days   I know its messy and stuff, but still... Why is this only printing one result? There should be 3 results.
  4. Re: Awesome 1st step to email validation. Surely an easier and much quicker way to do this is to send an email to the user with a link/code?
  5. On a new game engine i am developing, i want HTML to be enabled within a profile signature (easy enough), but will this not lead to easy SQL injection attacks? How can i prevent against this? Or is it not a problem?
  6. Jake

    Web Templates

    Hello, i was wondering if any of you know any websites that would develop a free web template for me, if i present a PSD of what i want it to look like. Or, if any of you could guide me through how to doing it, like through PMs or something, if you would do it for free it would be great, otherwise set me a price to make this web template, or how much for you to help me to do it. www.the-liberation.com/Layout_idea.jpg
  7. I am using DBS (MC) Code Lite, with all additional features coded by myself, if you wish to see, go to: www.the-liberation.com. Over the past 2 months we have had terrible issues with hacking...Well I think anyway. The problem is i don't know how the 2 people that are doing this are getting into the server/or even what they're doing. The First thing i noticed was millions of dollars on their accounts, then about 3 Billion Dollars worth of items etc... so i presumed SQL Injection, i have made my site secure against this now, but the problems still go on...So i checked files for the 0.4E935343 problem, and there it was, on the page where Gang Leaders Give money to members, there was this error. So i cleared this up, but still there were things annoying me: These Hackers were level 20, without attacking anyone, or training or committing any crimes. Other players have also noted that they're levels went up and that the house they were in changed. Now i have a sophisticated database system and there is no way they could tell what the table names/field names were for all of these aspects...which leads me to believe it Must be hacking. So do any of you know of any issues in the code that caused this, or are they gaining access to my server? Is there any open ports or things like that? I don't know how to test for these, so any information would be very valuable.... What are basic Security Mesuares i should take...
  8. Re: Making A template   No it wasn't intended for a game.
  9. Re: Free Advertising Thanks anyway, this was an old thread.
  10. Re: Making A template Ok thanks for the help. just to practice i downloaded some free templates, and it seems that each page has all of that crap about the layout at the top, and then you have to have that at the top of a page for it to look like that. But ... Could i put it all into a header file, and then just require this at the start of each page?
  11. Re: Making A template So i need to learn HTML/CSS For this.
  12. Re: Making A template Yeah its a relatively simple template. So i've downloaded a free one just to test with. So obviously i edit the PSD file to have the company info on it? And then what i just upload it, and the pages fit in as they are supposed to. What i wouldn't understand how to do is make it fit everyones browser size, and have links within it? Where can i learn the HTML required to do this?
  13. I have never used a template or even though about using one before until i decided to do some work outside of MC Codes. I am just making a general website and i was wondering if someone could help me develop the template for it. Just to clarify i don't know what information you need. The content down the side of the page changes with each page, the content at the top stays the same throughout the web page being viewed and the main content goes into the middle. The main troubles i thought of (why i couldn't do it myself) Were the links as images/buttons. The adaptable size to a users browser etc.. And the fact that i don't have a clue how to implement it with my site. Here is the .JPG image of what i want it to look like. http://img58.imageshack.us/my.php?image=layoutxg8.jpg If someone could make it into a template (don't know how easy it is or anything) then i would appreciate it. Or if someone could tell me how to implement ones i download from other sites. Or even better if someone could guide me through making that into a template (if its not too much hassle?) Please get back to me.
  14. Re: [mccode] How to Setup PayPal Instant Payment Notification - Free! Sorry for requesting this one script, i just though someone could help to make this script accessible to all.
  15. Re: THIS OR THAT? Hard Taco Guys Or Girls?
  16. I've been browsing through my webstats and found that bots are searching for the page robots.txt in order to scan my site. I was on other sites like google/paypal, and say that they have robots.txt pages and i was wondering what mine should consist of, have any of you got this file that i could upload to my site.
  17. Re: A way to protect against sql injection So can anyone post their Anti SQL code that they use, instead of just bragging about it. I have never even thought about it until recently my game began suffering from these types of attacks, and i cannot protect against it, as i cannot find a code that will prevent against it.
  18. Players are able to buy as many items as they wish, with or without the money. I can't see the problem. I am using the original Item Buy that came with DBS Lite. Are there any known bugs with this?
  19. Re: Game Completely Hacked/SQL Injection? BUMB!
  20. Could someone please come and have a look at my game. It is being completely hacked or SQL injection i am not sure. Everyone is receiving millions of Items and Trillions of Dollars. Some say they are not given an event (so it must be SQL injection) But others are saying they are receiving events as normal, so its probably that the forms aren't secure. Could someone please add me on msn: [email protected] or email me there. I need urgent help! Thank you in advance.
  21. Re: Browser Differences FF seems more lenient with coding errors. Such as if you miss the odd chevron (>) or an apostrophe ('). Firefox still interprets the code the same, whereas Internet Explorer will not.
  22. There is an urgent problem with my sendcash.php file for Lite. I have been running the game for about 5 months now, and never had any trouble like this before, but now people are able to send as much cash as they want (well it appears it). I though it could be the old 1.3483E999999999 Trick, but its not. Here is my sendcash.php file. Please can you check over it, and see what needs to be added/taken away. Obviously i shall be adding a function that only people 5+ days can send money.   <?php /* MCCodes Lite sendcash.php Rev 1.0.0 Copyright (C) 2006 Dabomstew This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); $_GET['ID'] = abs((int) $_GET['ID']); $_POST['money'] = make_bigint($_POST['money']); if($ir['jail'] or $ir['hospital']) { die("This page cannot be accessed while in jail or hospital."); } if(!((int)$_GET['ID'])) { print "Invalid User ID"; } else if($_GET['ID'] == $userid) { print "Haha, what does sending money to yourself do anyway?"; } else { if((int) $_POST['money']) { if($_POST['money'] > $ir['money']) { print "Die j00 abuser."; } else { mysql_query("UPDATE users SET money=money-{$_POST['money']} WHERE userid=$userid",$c); mysql_query("UPDATE users SET money=money+{$_POST['money']} WHERE userid={$_GET['ID']}",$c); print "You sent \${$_POST['money']} to ID {$_GET['ID']}."; event_add($_GET['ID'],"You received \${$_POST['money']} from {$ir['username']}.",$c); $it=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid={$_GET['ID']}",$c) or die(mysql_error()); $er=mysql_fetch_array($it); mysql_query("INSERT INTO cashxferlogs VALUES ('', $userid, {$_GET['ID']}, {$_POST['money']}, unix_timestamp(), '{$ir['lastip']}', '{$er['lastip']}','')",$c); } } else { print " Sending Money You are sending money to ID: [b]{$_GET['ID']}[/b]. Amnt: "; print "Latest 5 Transfers </pre> <table width="75%" border="2">Time User From User To Amount </table> <span style="color:#FF0000;font-weight:800;">MULTI</span>"; } else { $m=""; }<br>print "" . date("F j, Y, g:i:s a",$r['cxTIME']) . "{$r['sender']} [{$r['cxFROM']}] {$r['sent']} [{$r['cxTO']}] \${$r['cxAMOUNT']} ";<br>}<br>print "";<br>}<br>}<br>$h->endpage();<br   URGENT HELP REQUIRED
  23. Re: How to Setup PayPal Instant Payment Notification - Free! This isn't working for me .. I edited all the files, but had to change the syntax in the link (button) but posted ( " to ') because that was in HTML.. Can anyone post up their donator.php from V1, I'm using Lite and it isn't working.
  24. Re: Reset ?|?|?|? ... Go into the Database ....Check(Tick) all the tables you want to empty (Users/Stats/Events/Mail/Logs etc..), then in the drop down box .. click empty...
  25. Re: How to Setup PayPal Instant Payment Notification - Free! Does the donator Pack credit instantly?
×
×
  • Create New...