Jump to content
MakeWebGames

Isomerizer

Members
  • Posts

    1,170
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Isomerizer

  1. Re: [mccode] Battle Arena [$20]   Isomerizer.com no longer contains DBS modifications, you can PM me via CE if you wish to purchase or have any questions.
  2. Re: [mccode] Sexual Appearance [$10.00]   I've only sold this to two people, ColdK & Paddy. The only person I can think of who asked me for some new help on altering the script so it worked the way he wanted (not the original way it was intended too), has been helped. When I continue to help him if something messes up, he simply replies with "Dw about it" "I'll get someone else to do it", So I don't... But I'm sure he got this working to the way he wanted it. Unprofessional? For $10, Your lucky to get any support at all, I know everything works with 0 PHP startup errors due to testing before released. One thing I do assume too is that people who buy mods off me do have a small understand of PHP, why else run a PHP based game? Not being able to even insert a piece of code into a notepad (copy & paste), can become really frustrating to work with.
  3. Re: Sexual Appearance   Indeed, the SA script items are suppose to be a one time thing, something for players to work for, e.g character upgrades. Easy fix for the 2nd problem, I'll get on that asap. Another thing whats suppose to happen, due to energy used for exchanging will. All items SA additions should add up to 100, though a limit to the field can be added.
  4. Re: help me plz Your not closing all your if / else statements correctly, try this:   <?php include "globals.php"; $_GET['u'] = abs((int) $_GET['u']); if(!$_GET['u']) { print "Invalid use of file"; } else { $q=$db->query("SELECT u.*,us.*,c.*,h.*,g.*,f.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN cities c ON u.location=c.cityid LEFT JOIN houses h ON u.maxwill=h.hWILL LEFT JOIN gangs g ON g.gangID=u.gang LEFT JOIN fedjail f ON f.fed_userid=u.userid WHERE u.userid={$_GET['u']}"); if($db->num_rows($q) == 0) { print "Sorry, we could not find a user with that ID, check your source."; } else { $r=$db->fetch_row($q); if($r['user_level'] == 1) { $userl="Member"; } else if($r['user_level'] == 2) { $userl="Admin"; } else if ($r['user_level'] == 3) { $userl="Secretary"; } else if($r['user_level'] == 0) { $userl="NPC"; } else {$userl="Assistant"; } $lon=($r['laston'] > 0) ?date('F j, Y g:i:s a',$r['laston']) : "Never"; $sup=date('F j, Y g:i:s a',$r['signedup']); $ts=$r['strength']+$r['agility']+$r['guard']+$r['labour']+$r['IQ']; $d=""; if($r['laston'] > 0) { $la=time()-$r['laston']; $unit="seconds"; if($la >= 60) { $la=(int) ($la/60); $unit="minutes"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; } } $str="$la $unit ago"; } else { $str="--"; } if($r['last_login'] > 0) { $ll=time()-$r['last_login']; $unit2="seconds"; if($ll >= 60) { $ll=(int) ($ll/60); $unit2="minutes"; } if($ll >= 60) { $ll=(int) ($ll/60); $unit2="hours"; if($ll >= 24) { $ll=(int) ($ll/24); $unit2="days"; } } $str2="$ll $unit2 ago"; } else { $str2="--"; } if($r['donatordays']) { $r['username'] = "<font color=red>{$r['username']}</font>";$d="[img=donator.gif]"; } if($r['laston'] >= time()-15*60) { $on="<font color=green>[b]Online[/b]</font>"; } else { $on="<font color=red>[b]Offline[/b]</font>"; } print "<h3>Profile for {$r['username']}</h3> <table width=100% cellspacing=1 class='table'><tr style='background:gray'><th>General Info</th><th>Financial Info</th> <th>Display Pic</th></tr> <tr><td>Name: {$r['username']} [{$r['userid']}] $d User Level: $userl Duties: {$r['duties']} Gender: {$r['gender']} Signed Up: $sup Last Active: $lon Last Action: $str Last Login: $str2 Online: $on Days Old: {$r['daysold']} Location: {$r['cityname']}</td><td> Money: \${$r['money']} Crystals: {$r['crystals']} Property: {$r['hNAME']} Referals: "; $rr=$db->query("SELECT * FROM referals WHERE refREFER={$r['userid']}"); print $db->num_rows($rr); print " Friends: {$r['friend_count']} Enemies: {$r['enemy_count']} </td> <td>"; if($r['display_pic']) { print "[img={$r[]"; } else { print "This user has no display pic!"; } $sh=($ir['user_level'] >1) ? "Staff Info" : " "; print "</td></tr> <tr style='background:gray'><th>Physical Info</th><th>Links</th><th>$sh</th></tr> <tr><td>Level: {$r['level']} Health: {$r['hp']}/{$r['maxhp']} Gang: "; if($r['gang']) { print "[url='gangs.php?action=view&ID={$r[']{$r['gangNAME']}[/url]"; } else { print "N/A"; } if($r['fedjail']) { print " [b]<font color=red>In federal jail for {$r['fed_days']} day(s). {$r['fed_reason']}</font>"; } if($r['hospital']) { print " [b]<font color=red>In hospital for {$r['hospital']} minutes. {$r['hospreason']}</font>[/b]"; } if($r['jail']) { print " [b]<font color=red>In jail for {$r['jail']} minutes. {$r['jail_reason']}</font>[/b]"; } print "</td><td>[[url='mailbox.php?action=compose&ID={$r[']Send Mail[/url]] [[url='sendcash.php?ID={$r[']Send Cash[/url]] "; if($set['sendcrys_on']) { print "[[url='sendcrys.php?ID={$r[']Send Crystals[/url]] "; } if($set['sendbank_on']) { if($ir['bankmoney'] >= 0 && $r['bankmoney'] >= 0) { print "[[url='sendbank.php?ID={$r[']Bank Xfer[/url]] "; } if($ir['cybermoney'] >= 0 && $r['cybermoney'] >= 0) { print "[[url='sendcyber.php?ID={$r[']CyberBank Xfer[/url]] "; } print "[[url='burn house and lose will.php?ID={$r[']Burn Users House[/url]] "; { print " [[url='attack.php?ID={$r[']Attack[/url]] "; print " [[url='contactlist.php?action=add&ID={$r[']Add Contact[/url]]"; if($ir['user_level'] == 2 || $ir['user_level'] == 3 || $ir['user_level'] == 5) { print " [[url='jailuser.php?userid={$r[']Jail[/url]] [[url='mailban.php?userid={$r[']MailBan[/url]]"; } if($ir['donatordays'] > 0) { print " [[url='friendslist.php?action=add&ID={$r[']Add Friends[/url]] [[url='blacklist.php?action=add&ID={$r[']Add Enemies[/url]] "; } print "</td><td>"; if($ir['user_level'] == 2 || $ir['user_level'] == 3 || $ir['user_level'] == 5) { $r['lastiph']=@gethostbyaddr($r['lastip']); $r['lastiph']=checkblank($r['lastiph']); $r['lastip_loginh']=@gethostbyaddr($r['lastip_login']); $r['lastip_loginh']=checkblank($r['lastip_loginh']); $r['lastip_signuph']=@gethostbyaddr($r['lastip_signup']); $r['lastip_signuph']=checkblank($r['lastip_signuph']); print "<h3>Internet Info</h3><table width='100%' border='0' cellspacing='1' class='table'> <tr><td></td><td class='h'>IP</td><td class='h'>Hostname</td></tr> <tr><td class='h'>Last Hit</td><td>$r[lastip]</td><td>$r[lastiph]</td></tr> <tr><td class='h'>Last Login</td><td>$r[lastip_login]</td><td>$r[lastip_loginh]</td></tr> <tr><td class='h'>Signup</td><td>$r[lastip_signup]</td><td>$r[lastip_signuph]</td></tr></table>"; print "<form action='staffnotes.php' method='post'> Staff Notes: <textarea rows=7 cols=40 name='staffnotes'>{$r['staffnotes']}</textarea> <input type='hidden' name='ID' value='{$_GET['u']}' /> <input type='submit' value='Change' /></form>"; } else { print " "; } print "</tr></table>"; } } } } function checkblank($in) { if(!$in) { return "N/A"; } return $in; } $h-endpage(); ?>
  5. Re: help me plz Like Ze0n said, go to line 202 and change >? to ?>
  6. Re: Hello My name is Mafia Wb Aqib / Criminal.
  7. Re: AV Bounty/Hitmanlist [V2] Looks pretty good, keep up the good work.
  8. Re: Sexual Appearance   Yeah, that's fair enough. Don't mind if you re-code my ideas, just dis-like it when people re-code then sell. But hey... I guess that's happening all the time in this world...
  9. Re: Sexual Appearance   Sure, its a free world..
  10. Re: Referral Help The promo code (Promotional Offer) is completely different to the referral ID. A promo code is for an example "extracash", obviously giving extra starting cash.
  11. Re: please can someone change from html to php   And that would achieve?
  12. Re: Sexual Appearance   Yep, how'd you guess Silver. :-P But for the another? :? Argh, don't rain on my parade. :cry:
  13. Re: $_POST Help Needed Check if $_POST['clue1'] is defined correctly.. echo $_POST['clue'] . $answer; Do they match?
  14. Re: What computer have you got? AMD Athlon 64 x 2 Dual Core Processor 2GB DDR2 667Ram 160GB Harddrive nVidia Mobo
  15. Re: Sexual Appearance   If you wish to purchase it PM me. Also Paypal email is: [email protected] .
  16. Re: $_POST Help Needed Try.. if($_POST['clue1'] == $answer) { print "Correct answer!"; $sql = 'my queries' }   No need for the $ir[ ..
  17. Re: $_POST Help Needed   They both do both the same thing. Mine just sets the $_POST['clue1'] as 0 if not set. But abs(@intval()), does the same if the result is not numeric. To display the clue would be pretty simple, locate the if statement executed if the answer is correct then add..   echo sprintf('%s', $_POST['clue1']);
  18. Re: $_POST Help Needed Just looking at the first bit, I notice this is incorrect:   $_POST['clue1'] = abs((int) $_POST['clue1']) && $_POST['clue1'] = isset($_POST['clue1']);   It should look something like this:   $_POST['clue1'] = isset($_POST['clue1']) ? abs(@intval($_POST['clue1'])) : 0;   To secure against SQL injections in a string, an example would be:   $sql = sprintf("UPDATE `users` SET `clue` = '%s' WHERE `userid` = ('%u')", mysql_real_escape_string($_POST['textanswer']), // Use MRES to escape the data $userid);   Or regex:   if (preg_match('/[^a-z]/i', $_POST['textanswer'])) { die('error'); }
  19. Price: $10 Overview: This mod will allow users to purchase various sexual appearance upgrades. Haircuts etc... Depending on their SA, they can complete different activities, what will reward the user will will. Another stat users can concentrate on upgrading. Screenshots Demo: http://torn-developments.com/game/sa.php Thanks to Tezza` for letting me test on his server, and giving me a few small ideas
  20. Re: Paper, Scissors, Stone   Irony?
  21. Re: 3 Word Game with her guest..
  22. Re: Free 2 - Gym   I think its some sort of trickery, To sploof bots. Its next to an important field in the form, the encryption.. Extra security.. ..I think.
  23. Re: Battletent Fix   Well %u is used for integers, plus %u wouldn't be needed here, its updating a fixed int... blah + 1, would do it..
  24. Re: Battletent Fix   I agree you are improving killah, but one thing that sticks out all the time when I read your code is efficiency. You seem to have taken a liking to the wildcard (*), it should hardly ever be used, its rarely needed. Optimize your queries, only select the col's you need too. I'm sure your discover the speed improvement it provides, especially during looping.
  25. Pretty simple script, I think Spud made one too, I couldn't seem to find it though.. Heres one I made. Step 1 Create a new PHP file error.php, and stick it in public_html / httpdocs: <?php // Free Source Custom Errors - isomerizer.com include_once("globals.php"); $error = abs(@intval($_GET['x'])); echo '<h1>'. $error .' Error </h1> '; $message = array( 'problem' => array( 400 => 'Bad Syntax - An error has occured.', 401 => 'Unauthorized Access. - Your not allowed to be here!', 402 => 'Not Used (Payment Granted) - This page is currently not being used.', 403 => 'Forbidden - This page can not be accessed.', 404 => 'Not Found - The page [b]'.$_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'].'[/b] could not found.', 500 => 'Internal Server Error - The server is currently having some trouble.', 501 => 'Not Implemented - This has not yet been implemented.', 502 => 'Overloaded - The server has been overloaded!', 503 => 'Gateway Timeout - The server does not seem to be responding.'), 'solution' => array( 400 => 'Please notify an admin about this and try again later.', 401 => 'Don\'t try to access this page', 402 => '[url="index.php"]Home[/url]', 403 => 'Stay away and don\'t come back', 404 => 'Try going back to [url="index.php"]home[/url] clicking a valid link.', 500 => 'Wait for assistance or notify an admin via email / IM', 501 => 'Nothing to see here', 502 => 'Try waiting a while to let the server settle', 503 => 'Wait... Then if still nothing contact an admin') ); echo '[img=images/error.gif] [b]Problem:[/b] '; echo sprintf("%s", $message['problem'][$error]); echo ' [b]Solution:[/b] '; echo sprintf("%s", $message['solution'][$error]); echo ' [b]Page:[/b] '; echo sprintf("%s%s", $_SERVER['HTTP_HOST'] , $_SERVER['REQUEST_URI']); $h->footer(); ?>   Step 2 Open .htaccess and add: ErrorDocument 400 /error.php?x=400 ErrorDocument 401 /error.php?x=401 ErrorDocument 402 /error.php?x=402 ErrorDocument 403 /error.php?x=403 ErrorDocument 404 /error.php?x=404 ErrorDocument 500 /error.php?x=500 ErrorDocument 501 /error.php?x=501 ErrorDocument 502 /error.php?x=502 ErrorDocument 503 /error.php?x=503   Step 3 Upload the attached image error.gif to /images directory. There, your game now has custom errors.
×
×
  • Create New...