Jump to content
MakeWebGames

Djkanna

Members
  • Posts

    3,137
  • Joined

  • Last visited

  • Days Won

    35

Everything posted by Djkanna

  1. I agree but would of said it in nicer terms than Jordan xD Yeah work on a look and with any type of product.. 'Consistency is key'.
  2. Will do xD I didn't notice that..
  3. Don't use what I quoted it was mearly sarcasim ;)
  4. As stated above CrimGame can help with your security.. There is a few patched for known exploits around the Forum (search comes in handy) Do a Google search in the context of "PHP Security" should bring up a few tutorials, articles ect. You could also ask in the PHP-Games Chat for advice (Chat link in the menu) ;) Best of luck ;)
  5. Let me know how that works for you....
  6. Two things, One: Shouldn't be in the free plugins board. Two: Hire someone to do your security or learn yourself. Three(I know): Don't take what Decio does to heart he most likely has nothing better to do ;)
  7. I don't think mine is a stupid post :O
  8. <?php //Above opening a PHP tag.. require_once "globals.php"; // your requiring the file Globals.php if ($someVar['someValue'] != $someOtherValue) { // Curly Brace :D (if one variable in not equal to another variable. die("Gosh people use die it's yak.."); // Kill the page with a message } else { // Two curly braces 'else' meaning it equals to $someOtherValue echo 'WooP'; // echo success message } $h->endpage(); // I'll give you credit most people including me forget this.. // Below closing the PHP tag . ?> I didn't go into great detail I'm far too tired.. http://www.php.net and w3schools.com. Also try to learn HTML and Javascript first. :)
  9. 1). No idea.. 2). Some might. 3). If you're making it into a community driven mod then sure I'll help. 4). Why not just start one from scratch?
  10. It might have a purpose on say Halloween... Or April Fools Day.
  11. Djkanna

    HTML Test

    http://www.w3schools.com/html5/html5_reference.asp HTML5 tags :)
  12. Djkanna

    HTML Test

    You can use in HTML 5 there is also options like <mark></mark> ect
  13. Oh I didn't see that. Sorry
  14. include_once (dirname (__file__) .'/crons_file.php');
  15. <?php include (dirname (__file__) .'/globals.php'); if (isset ($_POST['user']) ) { $check = $db->query("SELECT `userid` FROM `users` WHERE ( `userid` = ".abs(@intval($_POST['user']))." ) "); if (!$db->num_rows ($check) ) { echo 'Error: User doesn\'t exist.'; $h->endpage(); exit; } if ($ir['money'] < 1000) { echo 'Invalid Command. You do not have enough money to use this. > [url="index.php"]Go Home[/url]'; $h->endpage(); exit; } else { $db->query ('UPDATE `users` SET `new_mail` = `new_mail` + '.abs(@intval($_POST['newmail'])).' WHERE( `userid` = '.abs(@intval($_POST['user'])).' )' ); $db->query ('UPDATE `users` SET `money` = `money` - 1000 WHERE ( `userid` = '.$userid.' )' ); echo 'Prank Done'; } } else { echo ' <h3>Mailpranking User<h3> This user will have a set number of new mail, this will cost you $1000</p> <form action="'.basename(__file__).'" method="post"> <span>User:</span> '.user_dropdown($c,"user",$_GET['userid']).' <span>Number:</span> <input type="text" name="newmail" /> <input type="submit" value="Prank \'em" /> </form> '; } $h->endpage(); ?> You also may want to check if the user exists aswell...
  16. I'm pretty sure you've gone flippin' crackers... Looks good 03Laceys :thumbsup:
  17. Works fine on it's own
  18. "Use google, There are a few around, Check the announcements board on here too, There was an offer off some sort" ^ Why type like that -.- noob xD
  19. <?php $connect = mysql_pconnect('localhost', 'username', 'pass') or trigger_error("<span style='color: red;'>Can't connect to the MySQL database. Please contact the webmaster.</span>"); mysql_select_db('DatabaseName', $connect) or trigger_error("<span style='color: red;'>Can't connect to the MySQL server. Please contact the webmaster.</span>"); ?> One config file.
  20. Well done. And no worries bud.
  21. Hi could you please list what you have in your item's table in your database please.. "Colum count doesn't match" - Means there is less or more tables in the database to what you're inserting via the script. Do you happen to have an item picture row in your items table?
  22. Just use a better engine not that Mc Codes is an engine. Simplez (Gotta love it compare the meerkat .com ) I watch way too many adverts -.-
  23. Yeah I believe Karlos made something like this :S I may be wrong but you should look into it ;)
  24. That's fair enough..
  25. Well I mean if you strip the tags of say username there is really no point in htmlspecialchars/htmlentities them on output now is there?
×
×
  • Create New...