
modernmafia
Members-
Posts
188 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by modernmafia
-
dont have one i need a quote ( what you think its worth of your time )
-
Hello i have a online game based in the gangster legends engine, i have some erros within the site that need fixing such as online page the forum has a slight error ( you have to activate your account before posting) but it lets you post if your not verified which shouldnt happen small error on my chance page but with posting the max bets and sending of it to others users. so basically what im looking for is someone to tidy up the codes and correct my erros ( noob mistakes) it shouldnt take much as over 60 % is working fine, im really looking for some thats good at programming and kind of knows the gangster legends engine i pay via paypal ( has to be a verified account due to scams ) can you help ?? if so message me on this topic or private inbox me with your examples thanks kingdly Sean
-
still need help
-
yeah sent to private mail
-
i will pay for the improvement i have made the game the way i know even though i dont have much experiance im looking for some one that has experiance to spot my noob errors payment will be discusses when i get pm
-
hello i need help to improve my site things that need doing the online page wont update when users log out need a new index and logout and general tidy up of the codes demo can be provided
-
well i used 0.85 but its heavily updated
-
well ill accept any help really
-
i need help with my game it uses the base codes of gangster legends base files but its adapted just need some one to test and just help make it more secure
-
basically wayofthemafia files :)
-
register.php doesn't send data to MySQL.
modernmafia replied to havemybabies's topic in Gangster Legends
ill help you fix it -
plintu i also has the same problem with updating the max bet so i replaced it with $maxbet=mysql_real_escape_string(strip_tags($_POST['maxbet']));
-
also where i should use code tags
-
explain please
-
<?php require("safe.php"); // Gaining User Information: $login=mysql_fetch_assoc(mysql_query("SELECT name,money,id,location FROM login WHERE name='".$name."'"))or die(mysql_error()); // Gaining Casino Information: $casino=mysql_fetch_assoc(mysql_query("SELECT * FROM casino_owner WHERE state='".$login['location']."' AND casino='1'"))or die(mysql_error()); if(isset($_GET['reset'])){ $reset=strip_tags(addslashes(htmlspecialchars($_GET['reset']))); if($reset == "yes"){ $result = mysql_query("UPDATE casino_owner SET profit='0' WHERE state='".mysql_real_escape_string($location)."'") or die(mysql_error()); echo 'Profit Reset!<br><br>'; }} // Check if owner is human: if($casino['owner'] == '0'){ if($_POST['pickup']){ if($money < 5000000){ echo "You don't have enough money to purchase this Casino."; }else{ mysql_query("UPDATE casino_owner SET owner='".$name."' WHERE state='".$casino['state']."' AND casino='1'")or die(mysql_error()); // remove cash $costs = $money - 5000000; $result = mysql_query("UPDATE login SET money='".mysql_real_escape_string($costs)."' WHERE name='".$name."'") or die(mysql_error()); 'You now own the casino!'; } } echo '<center><form action="home.php?pageid=768" method="POST"> <table width="250" border="1" align="center" cellspacing="1" class="table"> <tr> <td colspan="2" align="center" bgcolor="#133337" class="style2">Purchase Chance</td> </tr> <tr> <td width="75" bgcolor="#414141" class="style1">Price:</td> <td width="175" bgcolor="#414141" class="style1">$5,000,000</td> </tr> <tr> <td colspan="2" bgcolor="#414141" class="style1"><table width="100" border="0" align="right" cellspacing="0"> <tr> <td align="center"><input name="pickup" type="submit" class="button" id="Pickup" value="Purchase" /></td> </tr> </table></td> </tr> </table> </form></center>'; }else{ // Casino Owner Information $owner=mysql_fetch_assoc(mysql_query("SELECT name,money,id FROM login WHERE name='".$casino['owner']."'"))or die(mysql_error()); // Starting the Game: if($_POST['roll_1'] OR $_POST['roll_2']){ $result=rand(1,2); $amount=($_POST['amount']); if($login['money'] <$amount){ echo 'You don\'t have enough money.'; }elseif($amount < 100){ echo 'The minimum bet is $100.'; }elseif(empty($amount)){ echo 'Please fill in a bet.'; }elseif($amount > $casino['max']){ echo 'Your bet exceeds the casino\'s maxbet.'; }else{ if($_POST['roll_1']){ $chose='Heads'; $false='Tails'; }else{ $chose='Tails'; $false='Heads'; } switch($result){ case 1: if($owner['money'] < $amount){ echo 'The coin rolled '.$chose.'. You won but the owner went broke. You won the casino!.'; mysql_query("UPDATE casino_owner SET owner='".$name."' WHERE state='".$casino['state']."' AND casino='1'")or die(mysql_error()); }else{ echo 'The coin rolled '.$chose.'. You won <b>$'.number_format($amount*2).'</b>.'; $winnings = $amount * 0.90; mysql_query("UPDATE login SET money=money+$winnings WHERE id='".$login['id']."'")or die(mysql_error()); mysql_query("UPDATE login SET money=money-$amount WHERE id='".$owner['id']."'")or die(mysql_error()); mysql_query("UPDATE casino_owner SET profit=profit-$amount WHERE state='".$casino['state']."' AND casino='1'")or die(mysql_error()); } break; case 2: echo 'The coin rolled '.$false.'. You lost $'.number_format($amount).'.'; $winnings = $amount * 0.90; mysql_query("UPDATE login SET money=money-$amount WHERE id='".$login['id']."'")or die(mysql_error()); mysql_query("UPDATE login SET money=money+$winnings WHERE id='".$owner['id']."'")or die(mysql_error()); mysql_query("UPDATE casino_owner SET profit=profit+$winnings WHERE state='".$casino['state']."' AND casino='1'")or die(mysql_error()); break; default: echo 'Invalid Action.'; break; }}} if($_POST['update']){ if($login['name'] != $casino['owner']){ echo 'Access Denied'; }else{ $maxbet=secure($_POST['maxbet']); if($maxbet < 100){ echo 'Minimum maxbet is $100'; }else{ mysql_query("UPDATE casino_owner SET max=$maxbet WHERE state='".$casino['state']."' AND casino='1'")or die(mysql_error()); echo 'Maxbet updated'; }}} if($_POST['update2']){ if($login['name'] != $casino['owner']){ echo 'Access Denied.'; }else{ $sql = "SELECT name,sitestate FROM login WHERE name='".mysql_real_escape_string($_POST['owner'])."'"; $query = mysql_query($sql) or die(mysql_error()); $row = mysql_fetch_object($query); $owner_new = htmlspecialchars($row->name); $check_newowner=mysql_query("SELECT name,sitestate FROM login WHERE name='".$owner_new."'")or die(mysql_error()); $count_newowner=mysql_num_rows($check_newowner); if($count_newowner != 0){ $fetch_newowner=mysql_fetch_assoc($check_newowner); } if($count_newowner == 0){ echo 'No such player.'; }elseif($fetch_newowner['sitestate'] == 2){ echo 'This player is dead'; }else{ mysql_query("UPDATE casino_owner SET owner='".$owner_new."',max='100' WHERE state='".$casino['state']."' AND casino='1'")or die(mysql_error()); echo 'You sent your casino to <b>'.$owner_new.'</b>'; $casino['owner']=$owner_new; }}} // Showing the Betting Screen: if($login['name'] != $casino['owner']){ echo ' <form action="home.php?pageid=768" method="POST"> <table width="275" border="1" align="center" cellspacing="1" bordercolor="#000000" bgcolor="#FFFFFF" class="table"> <tr> <td colspan="4" align="center" bgcolor="#133337" class="style2"><label>Chance</label></td> </tr> <tr> <td align="center" class="style1">Bet:</td> <td align="center" class="style1"><input type="text" name="amount" class="entryfield" value="'.$_POST[amount].'"; " style="width: 70%;"></td> </tr> <tr> <td width="100%" colspan="2" align="center" class="style1"> <input name="roll_1" type="submit" class="button" value="Heads" style="width: 33%;"> <input name="roll_2" type="submit" class="button" value="Tails" style="width: 33%;"> </td> </tr> </table><BR> <center>This casino is owned by <a href=\home.php?pageid=900&studentname='. $casino['owner'] .'><b>'.$casino['owner'].'</b></a>.<BR> '; if (($casino['max']) >= 99999999999){ echo "This casino has no betting limit.</center>"; }else{ echo 'The maximum bet is limited to $<b>'.number_format($casino['max']).'</b>.</center>'; } echo ' </form> <center>The local authorities charge 10% tax on all winnings.</center> '; }else{ // Show Owner Interface: echo ' <form action="home.php?pageid=768" method="POST"> <table width="400" border="0" align="center" cellpadding="0" cellspacing="1" class="table"> <tr> <td colspan="2" align="left" class="info_row" style="background:url(/images/chance.jpg) #222222 no-repeat right bottom; height:120px;"></td> </tr> </table><br> <table width="400" border="0" align="center" cellpadding="0" cellspacing="1" class="table"> <tr> <td colspan="2" align="center" bgcolor="#133337" class="style2"><label>'; echo $loc." Chance Management"; echo'</label></td> </tr> <tr> <td align="left" class="style1">Profit:</td> <td align="left" class="style1">$'.number_format($casino['profit']).' <a href="home.php?pageid=768&reset=yes"><i>(Reset)</i></a></td> </tr> <tr> <td width="100" align="left" class="style1">Maximum Bet:</td> <td width="250" align="center" class="style1">';?> <input name="maxbet" type="text" class="entryfield" id="max_bet" style='width: 98%;' onkeyup="fancyWriting(this);" onfocus="if(this.value=='<? if (( $casino['max'] ) >= 99999999999){ echo "Unlimited."; }else{ echo '$'.number_format( $casino['max'] ).''; } ?>'){this.value=''}" onblur="if(this.value==''){this.value='<? if (( $casino['max'] ) >= 99999999999){ echo "Unlimited."; }else{ echo '$'.number_format( $casino['max'] ).''; } ?>'}" value="<? if (( $casino['max'] ) >= 99999999999){ echo "Unlimited."; }else{ echo '$'.number_format( $casino['max'] ).''; } ?>" maxlength="20" /></td> </tr> <? echo' <tr> <td align="center" colspan="2" class="style1"> <input name="update" type="submit" class="button" value="Update" style="width: 30%;"> </td> </tr> <tr> <td align="left" class="style1">New Owner:</td> <td align="left" class="style1"> <input type="text" name="owner" class="entryfield" style="width: 98%;"></td> </tr> <tr> <td align="center" colspan="2" class="style1"> <input name="update2" type="submit" class="button" value="Transfer" style="width: 30%;"> </td> </tr> </table></form> '; } } // If owner is human ?>
-
when i change it to $amount=($_POST['amount']); it works
-
when i changed it to what you said somerandombastard i bet the max bet which is 1,000 and click it and then it says The minimum bet is $100.
-
yeah it is numeric vaule
-
would this work $amount=($_POST['amount']);
-
This is the line ( 87 with error on it ) $amount=secure($_POST['amount']); any suggestion what i can replace it with also when betting on the chance casio i get Fatal error: Call to undefined function secure() in /home/modernmaa/public_html/chance.php on line 87
-
i found this works php -q /home/serverpath/script/file.php*
-
so basically if i had a bulletcron that updated bullets in fctorys i would have to run a cron for bf.php too ??
-
Currently being working on my site with these base codes i have come to a hurdle though i need to add cron jobs im using cpanel accelerated 2 and i have no idea how to add cron job / easiest way this is where the site is located/cron folder mysitename.com/cronlock/cronnamehere.php
-
i recently bought a site and it has cron jobs but when on my control panel it asks me to put ina command for the cron and i have no idea what to do