Jump to content
MakeWebGames

HauntedDawg

Members
  • Posts

    476
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by HauntedDawg

  1. Ok, Scoping through your script. I see a couple issues. No one wants to need to include all of this each time you create a new php page:   <?php session_start(); /** * SynitiCity Copyright 2013 * Made by Hedge * Page: register.php * Version: 1.0 * Date: 28 May 2013 Updated: n/a */ require_once __DIR__ . '/header_public.php'; include_once ('../configs/conn.php'); include_once ('../includes/classes.php');   While the include & session start can go in one file, and include that one file which does it all for you. It is a good practice that you made commenting at the top of the script. The way you are showing an error, is slightly wrong, although it can be done like that, it's not what you would like to achieve. I'll put it like this.. I leave my name blank this script runs:   if ($username === "") { //errors if username is empty $error = "You did not enter a username."; }   Presumably, Id now see "You did not enter a username." message, but that's not the case if i made my password longer than 21 characters. The reason being is that you keep overwriting your $error variable each time a new error message must occur. You could do this:   $error .= 'Error message here';   But you would need line breaks per line to break it up for you, or alternatively we want to create an array as such:   $error = array(); if ($username === "") { //errors if username is empty $error[] = "You did not enter a username."; }   When we want to display that, we will implode it, with a line break as such:   echo implode('<br />', $error);   There are many other points where you can improve. I would suggest looking into how to actually use Mysqli to its full potential, as you clearly don't use it:   $mysqli->query("INSERT INTO `users` (`loginname`, `username`, `password`, `email`, `ip`, `class`) VALUES ('$username', '$username', '$password', '$email', '$ip', '$class')");   Becomes   $insert = $mysqli->prepare("INSERT INTO `users` (`loginname`, `username`, `password`, `email`, `ip`, `class`) VALUES (?, ?, ?, ?, ?, ?)"); $insert->bind_param('ssssss', $username, $username, $password, $email, $ip, $class); $insert->execute(); $insert->close();   Which essentially, becomes a lot more secure.
  2. You do realize that by saying to change the mysql_query to $db->query (insert something else here), doesn't mean it will be alright. As far as I'm aware, $db is a wrapper for mysql, where you could allow the use of mysqli, MCCode's does not use its full potential, rendering it useless.
  3. lol, sorry but there are no bugs. And then, at the top of your topic, you state: "hello again this is my stock market mod" last but not least, you forgot the cron you idiot.
  4. There are still many successful running mccode games today, but many here has not pointed out the fact that mccodes is not reliable without a bunch of coding. So yes, if you want something reliable, mccodes + a good programmer will reach your goal easily. If you have a low budget, i think you can generally forget about mccodes. However, if you have a budget of $2,500, then we can possibly speak of taking your mccodes game to the next level of how you want it. But overall, developers here are expensive and cheap. I have done many mccodes secures and rewrites and my prices been following: Just securing the known exploits: $250 Securing & Rewriting: $750 Securing, Rewriting, Re structuring, Adding on, Developing further, improving: Generally could run into $2,500 easily. So lets set this to $1,300 for the rewrite, secure & restructure.
  5. Sorry to say this to you, but then you have no good sense for advertising. For deadlyhustle.com awhile back, we were paying weekly $50 for 3k signups a day, 1k of those 3k stayed atleast active. Its the incentive you offer when advertising, where to advertise is also a big thing. Offer your advertised people a promo, it will attract them more.
  6. There are many things to consider here, why they are not registering. Do you have Google Analytics setup on your page? The reason I asked is, you can get better information regarding the user's visiting your website, such as, perhaps they got advertised on the wrong place and another language website is trying to access it, and if they don't understand English, they will leave. Also, maybe they are mobile user's, and they can't view your website on their mobile, so there you need a mobile version. But, what if your intro page to the website just lacks detail? Post a url, and maybe get some comments from other users.
  7. Please put your code in [.code]CODE HERE[/.code] tags please (remove the .).   <?php $housequery=1; include_once "globals.php"; $TotalEXP = abs(@intval($ir['exp']/$ir['exp_needed']*100)); $BankMoney = ($ir['bankmoney'] == '-1') ? 'No Account!' : number_format($ir['bankmoney']); if ( !$ir['married'] ) { $marital="<font color='red'>No</font>"; } else { $k=$db->query("SELECT username FROM users WHERE userid={$ir['married']}", $c); $marital="<a href='viewuser.php?u={$ir['married']}' style='color:green;'>".mysql_result($k,0,0)."</a> "; $marital.="[<a href='marriage.php'>Manage</a>]"; $mair=$db->query("SELECT u.*, h.* FROM users u LEFT JOIN houses h ON h.hWILL=u.maxwill WHERE userid={$ir['married']}",$c); $ms=mysql_fetch_array($mair); } echo '<table width="55%" border="0" cellspacing="1" cellpadding="3" style="text-align:center;" class="table"> <tr> <th colspan="3">General Info</th> </tr> <tr> <td width="50%"><b>Name:</b> '.stripslashes($ir['username']).'</td> <td width="50%"><b>Level:</b> '.number_format($ir['level']).'</td> </tr> <tr style="text-align:center;"> <td><b>EXP:</b> '.number_format($TotalEXP).'%</td> <td><b>HP:</b> '.number_format($ir['hp']).'/'.number_format($ir['maxhp']).'</td> </tr> <tr> <td><b>Money:</b> '.number_format($ir['money']).'</td> <td><b>Crystals:</b> '.number_format($ir['crystals']).'</td> </tr> <tr> <td><b>Crimes Passed:</b> '.number_format($ir['crimes']).'</td> <td><b>Total Busts:</b> '.number_format($ir['busts']).'</td> </tr> <tr> <td><b>Days Old:</b> '.number_format($ir['daysold']).'</td> <td><b>Married:</b> '.stripslashes($marital).'</td> </tr> <tr> <td><b>Bank Account:</b> '.$BankMoney.'</td> <td><b>Property:</b> '.stripslashes($ir['hNAME']).'</td> </tr> </table> <br /> '; $ts=$ir['strength']+$ir['agility']+$ir['guard']+$ir['labour']+$ir['IQ']; $ir['strank']=get_rank($ir['strength'],'strength'); $ir['agirank']=get_rank($ir['agility'],'agility'); $ir['guarank']=get_rank($ir['guard'],'guard'); $ir['labrank']=get_rank($ir['labour'],'labour'); $ir['IQrank']=get_rank($ir['IQ'],'IQ'); $tsrank=get_rank($ts,'strength+agility+guard+labou r+IQ'); $ir['strength']=number_format($ir['strength']); $ir['agility']=number_format($ir['agility']); $ir['guard']=number_format($ir['guard']); $ir['labour']=number_format($ir['labour']); $ir['IQ']=number_format($ir['IQ']); $ts=number_format($ts); echo' <table width="55%" border="0" cellspacing="1" cellpadding="3" class="table" style="text-align:center;"> <tr> <th colspan="3">Stats Info</th> </tr> <tr> <th width="33%">Stat</th> <th width="33%">Amount</th> <th width="34%">Rank</th> </tr> <tr> <td>Strength</td> <td>'.number_format($ir['strength']).'</td> <td>Rank: '.get_rank(str_replace(',', '', $ir['strength']), 'strength').'</td> </tr> <tr> <td>Agility</td> <td>'.number_format($ir['agility']).'</td> <td>Rank: '.$ir['agirank'] = get_rank(str_replace(',', '', $ir['agility']), 'agility').'</td> </tr> <tr> <td>Guard</td> <td>'.number_format($ir['guard']).'</td> <td>Rank: '.$ir['guarank'] = get_rank(str_replace(',', '', $ir['guard']), 'guard').'</td> </tr> <tr> <td>Labour</td> <td>'.number_format($ir['labour']).'</td> <td>Rank: '.$ir['labrank'] = get_rank(str_replace(',', '', $ir['labour']), 'labour').'</td> </tr> <tr> <td>IQ</td> <td>'.number_format($ir['IQ']).'</td> <td>Rank: '.$ir['IQrank'] = get_rank(str_replace(',', '', $ir['IQ']), 'IQ').'</td> </tr> </table> <br> <br>'; $_POST['pn_update'] = ( isset($_POST['pn_update']) )?strip_tags($db->escape($_POST['pn_update'])):''; if ( !empty($_POST['pn_update']) ) { if ( strlen($_POST['pn_update']) > 500 ) { echo '<hr><span style="font-weight:bold;">You may only enter 500 or less characters here.</span>'; } else { $db->query("UPDATE users SET user_notepad='{$_POST['pn_update']}' WHERE userid=$userid"); $ir['user_notepad']=stripslashes($_POST['pn_update']); echo '<hr><span style="font-weight:bold;">Personal Notepad Updated!</span>'; } } echo "Your Personal Notepad:<form action='index.php' method='post'> <textarea rows='10' cols='50' name='pn_update'>".htmlspecialchars($ir['user_notepad'])."</textarea><br /> <input type='submit' value='Update Notes' /></form>"; $h->endpage(); ?>   Your issue was that you were parsing/passing comma's thru to the get_rank function, and obviously, the get rank function does not type cast it back into a full digit. But then again, looking back on the code, this is just plain horrible.   $ts=$ir['strength']+$ir['agility']+$ir['guard']+$ir['labour']+$ir['IQ']; $ir['strank']=get_rank($ir['strength'],'strength'); $ir['agirank']=get_rank($ir['agility'],'agility'); $ir['guarank']=get_rank($ir['guard'],'guard'); $ir['labrank']=get_rank($ir['labour'],'labour'); $ir['IQrank']=get_rank($ir['IQ'],'IQ'); $tsrank=get_rank($ts,'strength+agility+guard+labou r+IQ'); $ir['strength']=number_format($ir['strength']); $ir['agility']=number_format($ir['agility']); $ir['guard']=number_format($ir['guard']); $ir['labour']=number_format($ir['labour']); $ir['IQ']=number_format($ir['IQ']);   EWWWW
  8. It could be that your ISP is caching the DNS on their side, thus it will only reset according to their time, which on average is every 30 minutes to 12 hours :P. I would recommend doing: CMD > dig coursefishing.net And then look at the TTL (Time to live), it will show in minutes when the DNS will expire to re-fetch the new DNS settings.
  9. I've never asked you for help once. So where do your fact's come from? You asked me for help dick head. As for year1920, it's none of your business. And you don't even know jack **** why it's not out. So please, **** off.
  10. Before you go ahead, I'd like to point you to a proper article regarding password hashing, the wrongs, goods & bads. http://crackstation.net/hashing-security.htm And, to give some quote's to those lazy ones.     Which is the case here, where you will be re-using the salt. Now, because you are using ripeMD-160, a hashing algorithm that's very quick to generate. You could run through 1 million hashes very quickly, thus it is better to implement a hashing algorithm that take's some time to create. You can take "bcrypt" for example, or "PBKDF2". You can find a PHP implementation of PBKDF2 here And i would suggest going to PHPASS, as it implements blowfish cryptography. What I'd like to point out tho, is that ripemd160, has got a lookup table floating around already.   Thats 16GB of ripeMD-160 hashes.
  11. Remember one thing with Bcrypt (Which PHPASS uses), is that no 2 passwords are alike. They are always generated differently. But PHPASS->CheckPassword can tell if they are the same. Take for example this code:   <?php include_once('path/to/phpass/class/hash.php'); $hasher = new Hashing(15, FALSE); $uniqID = '502e8110d592e'; $password = 'developing'; $hashed = $hasher->HashPassword($uniqID.$password); echo '======================================================================='.PHP_EOL; echo 'Hashed: '.$hashed.PHP_EOL; echo '======================================================================='.PHP_EOL; ?>   While you can see, the unique ID and password are not changing. But run that multiple times: Attempt 1: ======================================================================= Hashed: $2a$15$Vc35dR.ejQOC080v0HaUyuma0jGCfGNKRs17AWL/kU2nTz538qHE2 ======================================================================= Attempt 2: ======================================================================= Hashed: $2a$15$szabVlm5dzooEuqbubNcG.eqsIml6KT.1uUnXlo1rCo21LRJC5NA6 ======================================================================= Attempt 3: ======================================================================= Hashed: $2a$15$Ea1uOA3eMyUX8/jx4ZLro.GK3hjwjhgpxpFvk7ta/v3U0yUoKvTjO =======================================================================   --- As you can see, all 3 are different. But, when validating that password against the password "developing" using the same method (just reversed for the unique id), it is always different, but will always verify. Now, I do not know if you have a funny password that "MRES (mysqli_real_escape_string)" is breaking, or a simple one where your code is failing.
  12. Clearly you have no idea how big the gaming market is. So go do some research before bantering around saying Mafia/Crime games started dying. Ha....   OMG CUT MY EYES OUT PLEASE!   If you have a written class for all your SQL statement's, then your point is invalid. And no, it's not about it being harder. It's about it being more time consuming. But yeah, keep on going as if you've just learn't about PDO. Woopy Doo
  13. Before jumping the gun and asking why am I using include_once, and then you point me to a thread that literally, is storming with comment's on how wrong his code is? Lets go quote... Dilly Smith: Terrasque: Now for the rest of the points: - You should keep the logic (php code) separated from the view (html). - This is not an MVC ready framework, where one can simply just do that. Yes, one can have 2 different pages, but why for a login page? KISS - Supressing errors are generally bad practise. - Bad practice on a live environment? I won't even go further into this one. - You should drop the mysql_ extension, because as of version 5.5 mysql_ will be deprecated. - Some servers require mysqli extension to be enabled. While, I wanted to use MySQLi, I did not know if his server has it enabled or not.
  14. I can't see the screenshot, so I have stopped on the html part, but all the PHP is good:   <?php session_start(); extract($_SESSION); $ip_banlist = array( '86.131.94.68', '66.232.196.20', '71.254.108.205', '80.47.176.187', //add new rows to ban users ); /* Check if user is banned */ if(in_array($_SERVER['REMOTE_ADDR'], $ip_banlist)) { die('<center> <table width="96%"> <tr> <td> <span style="color: red;font-weight: bold;">Error | Crime-Nations.com data failed to load due to your IP being on our global ip ban list. If this is a mistake, contact a staff member through <a href="mailto:[email protected]">[email protected]</a>.</span> <img src="../beta/layout_images/topnav.gif" width="100%" height="4" /> </td> </tr> </table> </center>'); } /* Include our config & functions file */ include_once('includes/config.php'); include_once('includes/functions.php'); /* Connect to our database server, if connection failed throw an error */ $server = mysql_connect($gamedbhost, $gamedbuser, $gamedbpassword); if(!$server) { die('<center> <table width="96%"> <tr> <td> <span style="color: red;font-weight: bold;">Error | Could not connect to database. If this problem persists contact a staff member through <a href="mailto:[email protected]">[email protected]</a>.</span> <img src="../beta/layout_images/topnav.gif" width="100%" height="4" /> </td> </tr> </table> </center>'); } /* Connect to our game database. */ $game_db = mysql_select_db($prefix, $server) or die(mysql_error()); /* Connect to our core database. */ $core_db = mysql_select_db($prefix, $server) or die(mysql_error()); /* Instantiate our counters. */ $counters = array(); /* insert into counters how many users */ $query_users = mysql_query('SELECT COUNT(`email`) as `total` FROM `login_info`'); $query_users = mysql_fetch_assoc($query_users); $counters['users'] = $query_users['total']; /* Users counters */ /* last active */ $query_last_active = mysql_query('SELECT COUNT(`lastactive`) as `total` FROM `user_profiles` WHERE `lastactive` > '.(time() - 121)); $query_last_active = mysql_fetch_assoc($query_last_active); $counters['last_active'] = $query_last_active['total']; /* families */ $query_families = mysql_query('SELECT COUNT(*) as `total` FROM `families`'); $query_families = mysql_fetch_assoc($query_families); $counters['families'] = $query_families['total']; /* funeral home */ $query_funeral_home = mysql_query('SELECT COUNT(*) as `total` FROM `funeral_home`'); $query_funeral_home = mysql_fetch_assoc($query_funeral_home); $counters['funeral_home'] = $query_funeral_home['total']; /* users characters */ $query_user_characters = mysql_query('SELECT COUNT(*) as `total` FROM `user_characters`'); $query_user_characters = mysql_fetch_assoc($query_user_characters); $counters['user_characters'] = $query_user_characters['total']; /* Instantiate our game settings */ $query_settings = mysql_query('SELECT * FROM `game_settings` WHERE `id` = 1'); $settings = mysql_fetch_assoc($query_settings); /* Combine post and request variables (Unsure why this is needed?) */ $_GVARS = array_merge($_POST, $_REQUEST); ?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Crime Nations | Free Mafia MMORPG Browser Game | Cash Prizes | Round <?php echo $game_settings['round']; ?></title> <meta name="keywords" content="mafia,game,free,rpg,kingpin,economy,organization,colpitts,text based,crime,networking,rackets,gambling,corporation,drugs,empire,vegaskiller" /> <meta name="description" content="Crime Nations Com. It is an amazing free mass online game where you can mug/beat/hack/spy/stab/shoot/bomb/extort, and pretty much do what ever you want to the opposition, including killing them. You can choose from over 12 classes, and 25 cities to explore. You can pimp and/or own properties, Setting up a Roulette/ Slots/ Fence/ Chop shop/ launderer and many other back room features including Firebombing. Work for the corporation working your way out of the mail room into that ever so cozy CEO office. Send or receive your stolen goods from bank heists and transport truck robberies. Drug or Black market run across cities, making loads of money while eluding the FBI. And even kidnap that ****ing rat who sold you out. Co-Op with other players to succeed in organized crimes and bank robberies, creating new friendships and connections. Work for a organization, Doing hits for the boss or bringing in mass profits for the vault, or Start your own organization, leading hundreds of loyal members and take it to the top, Or start an airport riot causing mass chaos in the community. its all here at Crime Nations Com. Win prizes every week. www.crime-nations.com" /> <meta name="robots" content="ALL,INDEX,FOLLOW"> <meta name="revisit" content="3 days"> <style> A:link, A:visited, A:active { COLOR: #FFFFFF; TEXT-DECORATION: none; } A:hover { COLOR: #660000; TEXT-DECORATION: none; } .imgfloat{ position:absolute; } .login { border:1px solid black; text-color: #FFFFFF; border-color: solid black; background-color: #000000 } td.on { background: #111111; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #999999; align: center; } textarea, input, select { font-size : 11px; font-family : Tahoma; color : #FFFFFF; background-color : #333333; } .submit { font-size : 11px; font-family : Tahoma; font-weight: bold; color : #FFFFFF; background-color : #333333; } .font1 { font-size : 11px; font-family : Tahoma; color : #FFFFFF; font-weight: bold; } .text_head { font-size : 12px; font-family : Tahoma; color : #FFFFFF; font-weight: bold; } .text_menu { font-size : 11px; font-family : Tahoma; color : #FFFFFF; font-weight: bold; } .text_small { font-size : 11px; font-family : Tahoma; color : #FFFFFF; } .text_normal { font-size : 12px; font-family : Arial; color : silver; } .sidemenu2 { background-color: #222222; font-size : 10px; font-family : Tahoma; color : #FFFFFF; } .sidemenu { font-size : 10px; font-family : Tahoma; color : #FFFFFF; } td,body { font-size : 10px; font-family : Tahoma; color : #FFFFFF; } </style> </head> <body topmargin="0" leftmargin="0" rightmargin="0" background="/beta/layout_images/bg_6.gif"> <center> <img src="/beta/layout_images/headertop.gif" width="100%" height="4" /> <img src="/beta/layout_images/header.png" repeat="true" width="100%" /> <?php if($user_email == '') { /* User is not logged in */ echo "<body background='/beta/layout_images/bg_6.gif' topmargin=0 leftmargin=0 rightmargin=0><center><img src='/beta/layout_images/headertop.gif' width='100%' height='4'></center> <center><table width='100%' background='beta/layout_images/fbg.gif' cellspacing=0 width='100%'><tr><td width=15% valign='top'><b><center><font color=black><b><a href='?x=info' alt='Home' title='Home'><font color=tan>Home</font></a> | <a href='?x=scrnshots' alt='Screen Shots' title='Screen Shots'><font color=tan>Screen Shots</font></a> | <a target=_href href=http://www.youtube.com/watch?v=YsrQkWsvJUI><font color=tan>Teh Sins Video Tutorial</font></a> | <a href='?x=contact' alt='Contact Us' title='Contact Us'><font color=tan>Contact Us</font></a> | <a href='?x=updates' alt='Updates' title='Updates'><font color=tan>Updates</font></a> | <a href='?x=referral_program' alt='Refer Us' title='Refer Us'><font color=tan>Refer Us</font></a> | <a href='?x=signup' alt='Register Account' title='Register Account'><font color=tan>Register Account</font></a> | <a href='?x=account&action=forgotpass' alt='Forgot Password' title='Forgot Password'><font color=tan>Forgot Password</font></a></b></font></center> </td></tr></table><img src='/beta/layout_images/headertop.gif' width='100%' height=4></center></td></tr></table></center><center><table width=100% bgcolor='black'><tr><td>"; } else { echo "<body background='/beta/layout_images/bg_2.gif' topmargin=0 leftmargin=0 rightmargin=0><center><img src='/beta/layout_images/headertop.gif' width='100%' height='4'></center> <center><table width='100%' background='beta/layout_images/fbg.gif' cellspacing=0 width='100%'><tr><td width=15% valign='top'><b><center><font color=black><b><a href='index.php' alt='Game List' title='Game List'><font color=tan>Game List</font></a> | <a target=_href href=http://www.youtube.com/watch?v=YsrQkWsvJUI><font color=tan>Teh Sins Video Tutorial</font></a> |<a href='?x=account&action=logout' alt='Log Out' title='Log Out'><font color=tan>Log Out Account</font></a></b></font></center> </td></tr></table><img src='/beta/layout_images/headertop.gif' width='100%' height=4></center></td></tr></table></center><center><table width=100% bgcolor='black'><tr><td>"; } if ($user_email == "") { echo"<table width=100% align=center bgcolor=black><tr><td align=center class=sidemenu2 width=250 valign=top background='beta /layout_images/menubgg.png'> <table><td class=on align=center width=240><b><font color=#FFFFFF>Richest Gangsters</font></b></td><tr><td> <center><table width=100%><tr>"; $sql="SELECT nickname, nrank, rank, SUM(bank+cash) AS nw FROM $prefix.user_characters where rank!='Admin' and staff_rank!='Mod' and staff_rank!='Public_Relations' GROUP BY nickname ORDER BY nrank ASC LIMIT 0,5;"; $sql=mysql_query($sql); if(@mysql_num_rows($sql)==0) { echo "<td><font face=arial size=2 color=#FFFFFF> <font color=silver><b>None...</b></font></td>"; } else { $ranknum=1; while($temp=mysql_fetch_array($sql)) { echo "<td>$ranknum.</td><td><font face=arial size=2 color=#FFFFFF> <font color=silver><b>".$temp[nickname]."</b></font></td><td><font face=arial size=2 color=#FFFFFF> <font color=silver><b>$".number_format($temp[nw])."</b></font></td><tr>"; $ranknum++; } } echo"</tr></table></td><tr><td class=on align=center><b><font color=#FFFFFF>Top Hitmen</font></b></td></tr><tr><td> <table align=left border=0 width=240><tr>"; $sql="SELECT kills, nickname, view FROM $prefix.adv_stats WHERE view >= '10000' and nickname!='Teh_Sin' and nickname!='Teh_Boss' ORDER BY kills DESC LIMIT 0,5"; $sql=mysql_query($sql); if(@mysql_num_rows($sql)==0) { echo "<td><font face=arial size=2 color=#FFFFFF> <font color=silver><b>None...</b></font></td>"; } else { $ranknum=1; while($temp=mysql_fetch_array($sql)) { echo "<td>$ranknum.</td><td><font face=arial size=2 color=#FFFFFF> <font color=silver><b>".$temp[nickname]."</b></font></td><td><font face=arial size=2 color=#FFFFFF> <font color=silver><b>".number_format($temp[kills])."</b></font></td><tr>"; $ranknum++; } } echo"</tr></table></td></tr></table>"; } ?> </td> <td align=left width=100% bgcolor=black valign=top> <?php $x=$_GET['x']; if($x=='') { $x="home"; } $z=$x.".php"; if(is_file($z)) { include($z); } else { include('error.php'); } ?> </td> <?php if($user_email=="") { echo "<td align=center class=sidemenu2 width=250 valign=top background='beta /layout_images/menubg2.png'> <table><tr><td><table align=center width=240><tr><td colspan=2 align=center class=on><b><font color=#FFFFFF>Members Login</font></b></td><tr><form method=post action=index.php?x=account&action=login><td>Email: </td><td><input type=text name=email></td><tr> <td>Password</td><td><input type=password name=passwd></td><tr> <td colspan=2 align=center><input type=submit name=submit value=Login></form></td></tr></table></tr><tr><table align=center width=240 height><tr><td colspan=2 align=center class=on><b><font color=#FFFFFF>Game Stats & Info</font></b></td><tr><td>Users Online: </td><td><b>".number_format($onlinegangsters) . "</b></td><tr><td>Alive Gangsters: </td><td><b>".number_format($alive_members) . "</b></td><tr><td>Dead Gangsters: </td><td><b>".number_format($dead_members) . "</b></td><tr><td>Organizations: </td><td><b>".number_format($total_families) . "</b></td><tr><td>Registered Gangsters: </td><td><b>" . number_format($totalgangsters) . "</b></td></font></td></tr></table></td></table></td>"; } else { echo"<td align=center class=sidemenu2 width=250 valign=top><table class=sidemenu2 width=190 align=center background=layout_images/gray-greident.gif cellpadding=4 cellspacing=0> <tr valign=top> <td class=on align=center><font color=#FFFFFF><b>Account News</b></font></td><tr><td>"; $time=time(); $query= "SELECT * FROM news WHERE `to`='$user_email' ORDER BY timestamp DESC LIMIT 5;"; $result=mysql_query($query); if (mysql_num_rows($result) == 0) { echo "<font size=1 color=#FFFFFF>No News."; } else { while($row=mysql_fetch_row($result)) { $timegap=$time - $row[2]; if ($timegap < 86400) { $fontcolor="#FFCC00"; } else { $fontcolor="silver"; } echo "<font size=1 color=$fontcolor face=tahoma><b>" . date('m/d/Y H:i:s', $row[2]) . "</b><font color=#FFFFFF> $row[3]"; } } echo "</td></tr></table></center></td></table>"; } ?> </td></tr></table></center><center><img src='/beta/layout_images/headertop.gif' width='100%' height='4'></center> <center><table width='100%' background='beta /layout_images/topnav.gif' cellspacing=0 width='100%'><tr><td width=15% valign='top'><b><center><font color=black size=1><b>Crime-Nations.com™ Trademarked by Red-Circus Creative. Copyright © 2008-2012 Crime-Nations.Com™. WorldWideOCR SEAL™ Files © Last Modified: Nov, 2012.</b></center> <center><font color=black><b><a href='?x=frontvotepage' alt='Vote For Us' title='Vote For Us'><font color=tan>Vote For Us</font></a> | <a href='?x=about' alt='About Us' title='About Us'><font color=tan>About Us</font></a> | <a href='?x=customerservice' alt='Customer Service' title='Customer Service'><font color=tan>Customer Service</font></a> |<a href='?x=contact' alt='Contact Us' title='Contact Us'><font color=tan>Contact Us</font></a> | <a href='?x=updates' alt='Updates' title='Updates'><font color=tan>Updates</font></a> | <a href='?x=tos' alt='Terms Of Service' title='Terms Of Service'><font color=tan>T.O.S</font></a> | <a href='?x=scrnshots' alt='Screen Shots' title='Screen Shots'><font color=tan>Screen Shots</font></a> | <a href='?x=referral_program' alt='Refer Us' title='Refer Us'><font color=tan>Refer Us</font></a> | <a href='?x=signup' alt='Register Account' title='Register Account'><font color=tan>Register Account</font></a> | <a href='?x=account&action=forgotpass' alt='Forgot Password' title='Forgot Password'><font color=tan>Forgot Password</font></a> | <a href='?x=stats' alt='Game Stats' title='Game Stats'><font color=tan>Game Stats</font></a></b></font></center></td></tr></table><center><img src='/beta/layout_images/headertop.gif' width='100%' height=4></center> </body> </html><script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-5704392-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script>   provide me with the screenshot and I might finish it.
  15. While that polling system cost you $100.00, that developer can go sell it 3 more times to cover his losses, hence why we "developers" (well i do in this case) don't actually charge the full amount unless it is fully custom to your own game. If its the case that the polling system was unique to your game. Shame on the developer. Yes, some people might want a small job, but your not offering a small job here. Your offering multiple coupled small jobs. Anyways, it looks like it is soon going into an argument so, this is my last post on this thread. As to your question regarding the developer from UK & India. It's kind an easy answer. Indian's will do it for cheaper, and there are many reasons for that: Economy in India is way worse than UK, so what you actually pay a person from India, is actually there "average", while to the developer in the UK its petty cash. Ill put it like this. A South African PHP developer earns on average 50 Rands per hour. That's a flipping measly $5 dollars an hour. Now, these South Africans don't know what they are worth overseas, so they will accept anything above 50 rand an hour. Where as people, like myself. Know what I am worth in this country and know what I am worth in other popular countries. Now, if a South African company came to me and said they wanted a simple contact form built in CakePHP with some little fancy stuff here & there. I'd charge plus minus 600 rand, because its simple. Thats $40+- dollars. Would I build the same script look & feel for $40 dollars? No, never. I agree with you that at time's we all love bargains. And 2 year's ago, i would of also gone for the cheaper designer. But you know what? I learned my mistake, in the long run, cheaper is more expensive. So all in all, don't go for the cheapest, but as that article says. The best "YOU" can afford. Even when I was a beginner at programming. All my modules sold for around $15, which made on average 20 sales. Covered some of my losses, but i still made what i wanted to achieve along with learning. Custom mods also, was no cheaper than $80 at that time (4 - 5 years ago). Don't take this as an argument, but rather as some advice from a freelance developer :) Hell, i might even take the 15 CAD offer for the framework page to be rewritten, just because i need $10 dollars in my paypal account :P, so yes. There is people wanting small jobs. Good luck with your project.
  16. I classify myself as a mid, not saying i value myself at a minimum of $40 an hour. Hell, i won't work for less than $100 either. To be honest, i think you are taking my response out as an argument, where i really did not intend it to be. This is actually to help yourself. Let me put it like this. You hire someone at the cost of $1 per hour. And at first it seems like a great deal. But take that further down the line. Is your code going to be optimized? Is your code going to be secure? Is your code going to be neat? Is your code going to be readable? Will your code handle X amount of users? While, the $1 dollar per hour person might be able to write readable code. It might not be neat, where as, it might also not be optimized nor secured. You've now hired this developer and his done his work for lets say $20 dollars for 3 mods you want. Later down the line, your game gets hacked and you find the issue to be with one of their mods. Now, additionally, you could go fix these issues yourself as you said you know basic php knowledge, then again. You only know basic, so what tells you, that its secure & optimized? Now, because you can't figure out the hack, you go back to the developer who done the mod. He can't figure out (if that may be the case, and yes i have seen this as a case), you will need to additionally go and hire another developer for lets say $20 to fix this issue/hack. My final point of the story, the more expensive the developer. The better in the long run. I'll let you read this article: http://www.customsoftwarebypreston.com/php-costs-and-hourly-rates then come back with your response please. But i will quote this for people who are lazy   Have a good day further, and good luck with your project :)
  17. I would just like to point out, and in no way trying to start an argument. However. The amount you want to pay is low. $5 - $15 for each page that requires an update. This is a fair price if the project is as a hole. But what happens when the page requires a rewrite and not just little updates? $15 - $40 for each custom modification. For this price, i expect i can resell the modifications? But let's look a serious note. A junior PHP devleoper in the united states makes minimum of $20 dollars an hour. Your asking to only pay $40 for each custom modification. A custom modification can extend into days development. Ill put it this simple. I charged for a house module, that allows images, you can upgrade your house and even rent it out. Hire staff, yes in other words, a torn.com house clone. I charged $150, on condition i could resell it. It took me roughly 9 hours to develop it. Now i am not even a junior, and classify myself as a mid which earn minimum $40. While I should of charged $400 +- for the module, I cut that price by 3, as then i only require 3 sales to cover my losses. Just a guideline. Nothing serious & no arguments.
  18. Cron's are a lot more accurate and should be used for thing such as hour and day cron. It is best to remove the 5min & 1min cron tho on mccodes. Also, bloodless, you are correct in your code. You just need to "Times by $n" like so:   $n = floor($hla / 300); $allusers_query = "UPDATE `users` SET `brave` = LEAST(`brave` + (((`maxbrave` / 10) + 0.5) * ".$n."), `maxbrave`), `hp` = LEAST(`hp` + ((`maxhp` / 3) * ".$n."), `maxhp`), `will` = LEAST(`will` + (10 * ".$n."), `maxwill`)"; mysql_query($allusers_query, $c); //enerwill update $en_nd_query = "UPDATE `users` SET `energy` = LEAST(`energy` + ((`maxenergy` / 12.5) * ".$n."), `maxenergy`) WHERE `donatordays` = 0"; $en_don_query = "UPDATE `users` SET `energy` = LEAST(`energy` + ((`maxenergy` / 6) * ".$n."), `maxenergy`) WHERE `donatordays` > 0";   That way, it will update by * the value by N, which is divided on top. n usually is 1, but then if 10 minutes are past. it will be 2, so the value is times by 2. if that makes sense. But realistically, we don't need 3 queries, and can combine that into one.   $n = floor($hla / 300); $update_users = 'UPDATE `users` SET `'; $update_users.= ' `brave` = LEAST(`brave` + (((`maxbrave` / 10) + 0.5) * '.$n.'), `maxbrave`),'; $update_users.= ' `hp` = LEAST(`hp` + ((`maxhp` / 3) * '.$n.'), `maxhp`),'; $update_users.= ' `will` = LEAST(`will` + (10 * '.$n.'), `maxwill`),'; $update_users.= ' `energy` = IF(`donatordays`, LEAST(`energy` + ((`maxenergy` / 6) * '.$n.')), LEAST(`energy` + ((`maxenergy` / 12.5) * '.$n.')))'; mysql_query($update_users);
  19. While we could do that, that defeats the purpose. Spoon feeding you, is not going to teach you. And if you can't see the simple error of "No such file or directory", then does it not mean "THERE IS NO SUCH FILE OR DIRECTORY AS THE ONE U REQUESTED"? change your include() path to where you went and changed it.
  20. explains it all..
  21. Go back to the drawing board. If you can not fix such simple issue's, we will be seeing a lot more simple issue's like this.
  22. MWG as is works perfect on my iphone.
  23. Don't you know not to post something such as "blacklist.php was exploitable"? Rather just leave it out. Unless you don't know. A lot of script kiddie pricks roam this forum too, just out there to brag about "hacking" a simple game. jus sayin
  24. I was also keen for this. BRING IT BACK!
  25. Filter my content as well please.
×
×
  • Create New...