Jump to content
MakeWebGames

Zero-Affect

Members
  • Posts

    3,713
  • Joined

  • Last visited

    Never

Everything posted by Zero-Affect

  1. Re: [V2] My home maybe array the get possibilities just to be on the safe side and maybe   $_GET['get'] = (ctype_alpha($_GET['get']) && isset($_GET['get'])) ? $_GET['get'] : FALSE ; if ( is_bool($_GET['get']) { echo "Operation unknown."; $h->endpage(); exit; }   can tell im bored huh lol
  2. Re: [MC-Codes][V2]Thugs (core system) basically pets
  3. Re: [ANY] Army(ish) Banner FREE not bad m8
  4. Re: [mccodes v2] Gang Bomb [$15.00] Yeah sorry about that photobucket is doing some edits or updates at the moment
  5. Re: [mccode v2] Inventory Recode MCV2, MC LITE & MCV1 sucked but i have to hand it to them monodistrict isn't such a bad website. I'm sure when MCV3 is released alot of people will change their tune, I personally dislike Dabs but CB is a alright guy. If i see one * in MCV3 which shouldn't be there then maybe i'm wrong but people progress as have you miniman and several other coders on this forum. You cannot judge someone from old script. PS: love this mod BD   $getWeps = sprintf("SELECT * I am right in assuming that everything is actually needed to be pulled from that table? and again $getInv = sprintf("SELECT iv.*,i.*,it.* ?
  6. Re: [mccode v2] Steal (Money / Crystals) [$10.00] 1 copy left
  7. Re: [mccodes v2] Gang Bomb [$15.00] 2 copies left
  8. Re: [MC-Codes][V2]Thugs (core system)   lol i know that's why i stopped at ctype :-D but i atleast made a example with mine giving that i know them :P not all of them are used for protection though...
  9. Re: [mccode] Advanced Merit System [$10.00] 9 copies left
  10. Re: [MC-Codes][V2]Thugs (core system) forgot afew is_string() is_ numeric() is_ array() is_ binary() is_ bool() is_ float() is_ int() is_ integer() is_ null() ctype_alnum() ctype_alpha() ctype_cntrl() ctype_digit() ctype_lower() ctype_space() htmlentities() strlen() we all know what php.net is :roll: lets see lol ill make some ridiculously secured code now $_GET['ID'] = (strlen($_GET['ID']) < '8' && ctype_numeric($_GET['ID'])) ? abs(@intval($_GET['ID'])) : FALSE ; if ( is_bool($_GET['ID']) ) { echo sprintf('%s', 'get a life'); exit; } if you don't get what im trying to say then please re-read or don't even comment.
  11. Re: v2 upgrading hosp time it's taken 11 posts to explain this modification... So not worth it
  12. Re: [MC-Codes][V2]Thugs (core system)   if ($action == '') { am i wrong in thinking that looks a little unusual? if (!$action) { i suggest looking up case and switch for starters, may help alot
  13. Re: [showcase] CriminalImpulse.com Released! quick tip cronus mirror the skeleton on the right to face the left, looks better
  14. Re: [mccodes V2] Review staff. I'm always learning, never stops I may wanna add you will need to remove: from the code due to this forum not liking my style of coding lol and switching double spaces into html special characters. Simple to do open in notepad press CTRL + H add in the top text box and nothing in the bottom then press replace all.
  15. Re: [V2] Mug feature with Stats! No problem + 1 to you also
  16. Re: [mccodes V2] Review staff. Old code: <?php include(DIRNAME(__FILE__) . '/globals.php'); $_GET['review'] = abs(@intval($_GET['review'])); if(!$_GET['review']) { echo "Invalid use of file"; $h->endpage(); exit; } $sql = sprintf( "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 (u.gang = g.gangID) " . "LEFT JOIN fedjail f ON (u.userid = f.fed_userid) " . "WHERE (u.userid = %u)", $_GET['review']); $q = $db->query($sql); if(!$db->num_rows($q)) { echo "You cannot review someone who does not exist."; $h->endpage(); exit; } $r = $db->fetch_row($q); if($r['user_level'] == 1) { echo "This user is not staff!"; $h->endpage(); exit; } if(!$ir['review']) { echo "You may only review once a day"; $h->endpage(); exit; } if($ir['daysold'] < 3) { echo "You may not post a review as you are less than 3 days old."; $h->endpage(); exit; } echo sprintf("<h3>Reviewing %s</h3>", stripslashes($r['username'])); echo "Below you may submit a review about a member of staff. Use the drop down menu to give a review of 1 or 9, 1 being the lowest and 9 being the highest. then explain the reason for your low or high review. This is to help pick decent staff and monitor there behaviour. "; $_POST['reason'] = mysql_real_escape_string(htmlspecialchars($_POST['reason'])); $_POST['rating'] = abs(@intval($_POST['rating'])); $sql1 = sprintf("INSERT INTO review VALUES ('', %u, %u, '%s', unix_timestamp())", $_GET['review'], $_POST['rating'], $_POST['reason']); $sql2 = sprintf("UPDATE users SET review = 0 WHERE (userid = %u)", $userid); $db->query($sql1); $db->query($sql2); echo "[b]You have reviewed this staff member[/b] "; echo sprintf("<form action='review.php?review=%u' method='post'>", $r['userid']); echo " Reason: <textarea rows='7' cols='50' name='reason'></textarea> "; echo "Rate: <select name='rating' type='dropdown'>"; for($i = 1; $i < 10; ++$i) { echo sprintf("<option value='%u'>%u</option>", $i, $i); } echo "</select>"; echo "<input type='submit' name='review' value='Review' />"; echo "</form>"; $h->endpage(); ?>   New Code: <?php include(DIRNAME(__FILE__) . '/globals.php'); $_GET['review'] = abs(@intval($_GET['review'])); if(!$_GET['review']) { echo "Invalid use of file"; $h->endpage(); exit; } $q = $db->query(sprintf("SELECT `user_level`, `username`, `userid` FROM `users` WHERE (u.userid = %u)", $_GET['review'])); if(!$db->num_rows($q)) { echo "You cannot review someone who does not exist."; $h->endpage(); exit; } $r = $db->fetch_row($q); if($r['user_level'] == 1) { echo "This user is not staff!"; $h->endpage(); exit; } if(!$ir['review']) { echo "You may only review once a day"; $h->endpage(); exit; } if($ir['daysold'] < 3) { echo "You may not post a review as you are less than 3 days old."; $h->endpage(); exit; } echo sprintf("<h3>Reviewing %s</h3>", stripslashes($r['username'])); echo " Below you may submit a review about a member of staff. Use the drop down menu to give a review of 1 or 9, 1 being the lowest and 9 being the highest. then explain the reason for your low or high review. This is to help pick decent staff and monitor there behaviour. "; $_POST['reason'] = mysql_real_escape_string(htmlspecialchars($_POST['reason'])); $_POST['rating'] = abs(@intval($_POST['rating'])); $db->query(sprintf("INSERT INTO review VALUES ('', %u, %u, '%s', unix_timestamp())", $_GET['review'], $_POST['rating'], $_POST['reason'])); $db->query(sprintf("UPDATE `users` SET `review` = 0 WHERE (userid = %u)", $userid)); echo "[b]You have reviewed this staff member[/b] "; echo sprintf("<form action='review.php?review=%u' method='post'>", $r['userid']); echo " Reason: <textarea rows='7' cols='50' name='reason'></textarea> "; echo "Rate: <select name='rating' type='dropdown'>"; for($i = 1; $i < 10; ++$i) { echo sprintf("<option value='%u'>%u</option>", $i, $i); } echo "</select>"; echo "<input type='submit' name='review' value='Review' />"; echo "</form>"; $h->endpage(); ?>   Not tested I don't believe the people who had comments edited and looked at this post never realised that it's pulling 6 full tables yet only needs 3 columns from a single table. Sometimes you guys really do worry me. and don't even get me started on auto_increment...
  17. Re: [mccodes V2] Review staff. Yeah and i believe it's  
  18. Re: [V2] Mug feature with Stats!   ALTER TABLE `users` ADD `mugs` INT( 11 ) NOT NULL DEFAULT '0'; ALTER TABLE `users` ADD `muggain` INT( 11 ) NOT NULL DEFAULT '0'; ALTER TABLE `users` ADD `mugloss` INT( 11 ) NOT NULL DEFAULT '0';   try that
  19. Re: [mccodes V2] Review staff. i didn't look at the code fully, first off nice try. secondly *: from a quick glance your pulling 6 full sql Databases in one go in the review.php two solutions to how you came upon this. one: you stole the sql from another file for example HOF two: your learning left join but not implying the right quality of coding, maybe too long looking at Dabs's code and not code provided by actual non-lazy coders on this forum. I personally dislike you Yubi but your trying so ill give constructive criticism
  20. Re: [mccode] [TGM] Crystal Market Logs [TGM] ok sorry let me correct my about 6 month old post to... Get of your cheap asses and buy v2 simple isn't it then again i'm assuming most of you don't have a legal copy and v1 is all you could find. Buy Horizon Game Engine with that you would be very satisfied and wouldn't need to spend a lifetime securing it.
  21. Re: [mccode v2] Advanced Turns [$15.00] i'd add it for free it's pretty simple, i actually think i coded a item add part into this for such inquiries.
  22. Re: [mccode v2] User Shops [$35.00] great why not just give a link also lol i mean it's only my post...
  23. Re: [mccode v2] Revamped RentaSpy ctrl + f 'rating' not that difficult really i see nothing wrong with the sprintf, some people do not have rating added to users DB due to the original mc not having it on but it being a addon modification.
  24. Re: [mccode v2] Steal (Money / Crystals) [$10.00] i added the 3 remaining add requests i had, hope your one of them.
  25. Re: [mccode v2] Crystal Temple lol @ mccodes level :roll:
×
×
  • Create New...