Jump to content
MakeWebGames

rjddev

Members
  • Posts

    43
  • Joined

  • Last visited

Personal Information

  • Interests
    Programming
  • Website
    http://www.rjd-development.com

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

rjddev's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. rjddev

    Torn Menu PSD

    http://jsfiddle.net/SsNTd/ Images included here as attachment, couldn't find the font on google web fonts, so i've used Oswald as font for the menu head. [ATTACH=CONFIG]1169[/ATTACH][ATTACH=CONFIG]1170[/ATTACH][ATTACH=CONFIG]1171[/ATTACH]
  2. Lol @ the fail.
  3. Looking forward to see the end result ;)
  4. Thank you for the help, I have now removed the (int) from $amount and done it like this.   if(isset($_POST['deposit']) != "") { $amount = mysql_real_escape_string($_POST['damount']); $notallowed = array('$', '-', '_', '+', '=', '<', '>', ','); $amount = str_replace($notallowed, "", $amount); if(!preg_match('#^[0-9]+$#', $amount)) { $message = "Please enter a valid amount."; } else if($amount < 1) { $message = "Please enter a valid amount."; } else if($amount <= $player->money) { $message = "You have deposited " . prettynum($amount); $newbank = $amount + $player->bank; $newmoney = $player->money - $amount; $result = mysql_query("UPDATE `grpgusers` SET `bank` = '$newbank', `money` = '$newmoney' WHERE `id` = '".$player->id."'"); } } if(isset($_POST['withdraw']) != "") { $amount = mysql_real_escape_string($_POST['wamount']); $notallowed = array('$', '-', '_', '+', '=', '<', '>', ','); $amount = str_replace($notallowed, "", $amount); if(!preg_match('#^[0-9]+$#', $amount)) { $message = "Please enter a valid amount."; } else if($amount > $player->bank) { $message = "You do not have that much money in your bank"; } else if($amount < 1) { $message = "Please enter a valid amount."; } else if($amount <= $player->bank && $amount > 0) { $newbank = $player->bank - $amount; $newmoney = $player->money + $amount; $result = mysql_query("UPDATE `grpgusers` SET `bank` = '$newbank', `money` = '$newmoney' WHERE `id` = '".$player->id."'"); $message = "You have withdrawn " . prettynum($amount); } } if(isset($message)) { echo Message($message); }   This seems to be secure and working correct. Thank you :)
  5. I'm facing a small problem when I withdraw/deposit money. For example, I have $98,007,285,155 money in my bank or on hand, I want to deposit/withdraw it in one time, but it deposits/withdraws only $2,147,483,647 max. I have both columns on bigint(250). Is there another type I should use in the database for this so players are able to deposit/withdraw their cash in one click?
  6. I'm currently giving Panther Skeleton engine a try, (That Sniko made) but then in PDO instead of mysqli. It is very easy to make own modules/templates, and the code is understandable. Panther Skeleton engine can be found here.
  7. rjddev

    An update

    Just a small heads up, The layout looks nice on 100% zoom, but when you zoom out using ctrl - the right content goes to the left.
  8. rjddev

    Layout opinion

    Looks very awesome ;)
  9. url up....
  10. Decided to check it out for a bit, here are 2 screenies. [ATTACH=CONFIG]1114[/ATTACH][ATTACH=CONFIG]1115[/ATTACH]
  11. rjddev

    Games List

    Game URL: http://dev.mafiaxtreme.com Game Owner RJD Development Game is still undergoing development, but more shall be available soon.
  12. And for those working withouth htaccess   <?php // Example 'dirty' url: http://www.site.com/index.php?page=page&subpage=subpage&id=id // Example 'clean' url: http://www.site.com/index.php/page/subpage/id/ $page = "index.php"; if ( $url = stristr($_SERVER['REQUEST_URI'], 'index.php') ) { // $url == 'index.php/page/subpageid if( $url[strlen($url)-1] == '/') { // Check if the URL ends with a '/' $url[strlen($url)-1] = ''; } $url_segments = explode('/', $url); // $url_segments[0] == 'index.php'; if( isset($url_segments[1]) && $url_segments[1] != '' ) { // If the page in the url is entered, gets $_GET['page'] the value $_GET['page'] = $url_segments[1]; if( isset($url_segments[2]) && $url_segments[2] != ''){ //If the subpage in the url is entered, gets $_GET['subpage'] the value $_GET['subpage'] = $url_segments[2]; if( isset($url_segments[3]) && $url_segments[3] != '') { //if the subpage in the url is entered gets $_GET['subpage'] the value $_GET['subpage'] = $url_segments[3]; } } } } else { $_GET['page'] = $page; } ?>
  13. rjddev

    New Login ~ MNG

    [ATTACH=CONFIG]1064[/ATTACH] Select server section almost looks the same, only a few colours changed. I remember Mafia-Warfare had it like that as well, Sorry fella, everyone can change a few colours and claim it was made by them.
  14. I do have Email Verification, but then a lil bit different. When a user signs up, They will be sent an email with a link to verify their email, however they could still login if the email hasn't been verified yet, they will just have limited acces, and once they verify their email they will have full acces to the game.
  15. You say your team build engines/mods/websites, but didn't even bother to make your own website? Get a free website at Webs.com Doubt this guy is real.
×
×
  • Create New...