Jump to content
MakeWebGames

Lithium

Members
  • Posts

    1,099
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Lithium

  1. Lithium

    Apache

    Re: Apache Options +FollowSymlinks RewriteEngine on RewriteRule ^([0-9]+)-([a-z]+) http://domain.com/index.php?page=$1 [NC] Try this one
  2. Re: Mccodes sql injection   if (($_GET) || ($_POST)) { $_GET = ""; $_POST = ""; } This will solve all your problems, though it will create you a few more!
  3. Re: change names... crystals, will, brave, ect   with caution though. unless you want to change $vars as well, and it seems to me that djgringoboy2003 is not comfortable enough to change also vars and db matching fields. @ djgringoboy2003: you can use the CTRL F but as i said... with caution, try not to change $var names like $ir['crystals'] or whatsoever. Avoiding changing these, you should be just fine :)
  4. Re: change names... crystals, will, brave, ect well... you don't really have to change them... what you need (and correct me if i'm wrong) is to show those "objects" with another name to the players. So if that is what you are looking for, just edit the files to display, whatever you need to call each "object", the name you want users to see.
  5. Re: Starting new Game Engine (massive features) - Need feedback   Well, search over sourceforge and you will find quite a handfull of those! :)
  6. Re: [mc codes lite] User Credit Card Companys   LOL, but then again, before complaining about others spelling, well you should also check your spelling first. it's "Mods" as short for "modification" and not "mod's" as you spelt. (and yes you can complain about my spelling as english is not my native language) ;) @ Sim ... nice concept :)
  7. Re: [mccode v2] Events Page Updated.   Hmmm, funny, a look at the code shows it will error... right about here... "<center><h2>Thahacker07 Say's Hello</h2></center>" Plus further more, testing it... it effectivelly errors... on that exact place.
  8. Re: [mccode v2] userADS   No harm on that one, also the best way to troubleshoot your issue is to split php from html, probably a misplaced tag somewhere that makes the script halting without error'ing
  9. Re: [mccode v2] Battletent Fix on the attack files wherever a user is sent to hospital you could place it something like... if (attackeduser_level != 0) { set hospital=xx } This way only user_level 0 users (NPC's) won't be placed in hospital
  10. Re: [REVIEW] Crime-Network.com - Please review! well... if you don't want "petty" comments, whatever that is... then you definetly DON'T need a review!!! AFAIK a review can be BAD or GOOD, depending the reviewer, and his/hers considerations about the game!
  11. Re: [mccode v2] Events Page Updated. A quick fix (not perfect though) for the first version killah posted! No showing page 0, and paginating as it should. <? //Leave notice //Made by killah for ce community include('globals.php'); if( isset($_POST['del_all']) ) { mysql_query("DELETE FROM `events` WHERE `evUSER` = ".$ir['userid']) or die(mysql_error()); echo 'All events have been deleted.'; } if( isset($_GET['del']) ) { $id = abs(@intval($_GET['del'])); mysql_query("DELETE FROM `events` WHERE `evID` = ".$id." AND `evUSER` = ".$ir['userid']); echo 'Event deleted.'; } if( isset($_POST['checkbox']) ) { for($i = 0; $i < count($_POST['checkbox']); $i++) { mysql_query("DELETE FROM `events` WHERE `evID` IN(".$_POST['checkbox'][$i].") AND `evUSER` = ".$ir['userid']); $result = 1; } if($result == 1) { echo $i.' event(s) have been deleted.'; } else { echo 'Error occured while trying to delete the event(s).'; } } //Create Page Number's. $limit = 10; $page = abs(@intval($_GET['page'])); $page = isset($page) ? abs(@intval($_GET['page'])) : 1; $by = 'evTIME'; $order = 'DESC'; $rows = mysql_query("SELECT `evID` FROM `events` WHERE `evUSER` = ".$ir['userid']); $rows = mysql_num_rows($rows); $pages = ceil($rows/$limit); if($rows % $limit == 0) { $pages++; } $pg = 'Page: '; echo ' <form action="'.$_SERVER['PHP_SELF'].'" method="post"> '.$pg; for($i = 1; $i <= $pages; $i++) { $next = ($i * $limit); if ($i != 0) { echo '[url="'.$_SERVER['PHP_SELF'].'?page='.$next.'"]'.$i.'[/url] - '; } } echo ' <table border="1" cellspacing="0" cellpadding="0" class="table" width="80%"> <tr> <th>Time</th> <th>Event</th> <th>Links</th> </tr>'; if ($page >= 10) { $page=$page-10; } $myEvents = mysql_query("SELECT `evTIME`, `evREAD`, `evTEXT`, `evID` FROM `events` WHERE `evUSER` = ".$ir['userid']." ORDER BY ".$by." ".$order." LIMIT ".$page.",".$limit); while($soc = mysql_fetch_assoc($myEvents)) { $time = date('F j Y, g:i:s a', $soc['evTIME']); if(!$soc['evREAD']) { $new = ' [b]New![/b]'; } echo ' <tr> <td>'.$time.' '.isset($new).'</td> <td>'.$soc['evTEXT'].'</td> <td> <input type="checkbox" name="checkbox[]" value="'.$soc['evID'].'"> | '; if( isset($_GET['page']) ) { echo '[url="'.$_SERVER['PHP_SELF'].'?page='.$_GET['page'].'&del='.$soc['evID'].'"]Delete[/url]'; } else { echo '[url="'.$_SERVER['PHP_SELF'].'?del='.$soc['evID'].'"]Delete[/url]'; } echo ' </td> </tr> <tr>'; } echo ' </tr> </table> '.$pg; for($i = 1; $i <= $pages; $i++) { $next = ($i * $limit); if ($i != 0) { echo '[url="'.$_SERVER['PHP_SELF'].'?page='.$next.'"]'.$i.'[/url] - '; } } echo ' <input type="submit" value="Delete Selected Events"> <input name="del_all" id="del_all" type="button" value="Delete All Events"> </form>'; if( isset($ir['new_events']) > 0) { mysql_query("UPDATE `events` SET `evREAD` = 1 WHERE `evUSER` = ".$ir['userid']); mysql_query("UPDATE `users` SET `new_events` = 0 WHERE `userid` = ".$ir['userid']); } $h->endpage(); ?>
  12. Re: [REVIEW] Crime-Network.com - Please review!   i can review it... or not!!! cause it seems you only want a 10/10 review... and hell for the time your page shows it takes to load... hell a decent coder you are... not! "Page generated in 1233088696.67 seconds."
  13. Re: [mccode v2] Events Page Updated. nice try killah, though i doubt this last version will work for anyone without a lot editing ;)
  14. Re: Profile picture in header $r['display_pic']} shouldn't it be $ir['display_pic']}
  15. Re: will ? LOL
  16. Re: [mccode] Customisable Merit System [$15.00]   Reading the OP and asking... Is what you should have done in the first place.
  17. Re: Round timer In fact, javascript is meaningless to the needs. Also, i don't think a simple file to reset users will be enough for the needs. adapting an mcc engine to a round/turn based sytem will need more than a single file to make it suitable ;)
  18. Re: Algorithm of all mafia games if i'm not mistaken (topmorpg is the best one to reply to this one though i think) most of "mafia" games are based on the old pimp script, and for what it seems on your post, you are asking about either mc codes or grpg engines, try to figure out which one is the ground base for that and then ask again :)
  19. Re: [REVIEW] Crime-Network.com - Please review!   You know... attitude is a b*tch... and on your case, even after several people (me included) telling that you DID NOT create the game. Well you placed some graphics, so you created the game (NOT), also reading a few posts back, to a guy who created a game, not even knowing what is an engine... damn either i'm pretty dumb and might be missplaced here when i should be at a toddlers safe house or something, or you don't even have a clue about a good amount of people around here and what they do for a living/hobby++, and just trying to pass as a smart ass that wants everyone to think you actually created something from the scratch, when evidence shows you DID NOT.
  20. Lithium

    New Login pg.

    Re: New Login pg.   Not To Argue M8 But I Have A Worse Connection Then 56kbps Try 54.0mbps On Wireless And Flash Doesnt Bother It So Why You Think Itd Bother A Connection Speed Of 56kbps??? 54Mbps = 55296 Kbps... that seems to me that its just a tiny but "short" tiny bit more than 56Kbps... But then again... it can be me... :roll:
  21. Re: Little Bit Of Cron Help Seems no one READ the first post. Basicly, to simplify, you will need to run in this examples, killah's query for non donators on a 5minutes cron (0/5 * * * *) $sql[1] = 'UPDATE `users` SET `brave` = `brave` + 5 WHERE `brave` < `maxbrave` AND `donatordays` < 1'; mysql_query($sql[1]); and donators query on a 10 minute cron (0/10 * * * *) $sql[2] = 'UPDATE `users` SET `brave` = `brave` + 10 WHERE `brave` < `maxbrave` AND `donatordays` > 0'; mysql_query($sql[2]); :)
  22. Re: Strange thing!!!   Though i must've explained right as Floydian got it at first ;) thx anyway though :)
  23. Re: Strange thing!!!   heh! +1 for Floydian ;) Never thought the answer would be so simple :) With that, your form will not start on a new line.
  24. I have a problem and wonder if someone knows a work around... inside a <td> i have some text and i need to place a <form> pretty much near the line end. The problem is that as soon as i place the <form> tag whatever comes inside it simply drops to a new line. and i only want to have one single line with everything. By any chance is there someone out there that could come out with a solution? Thanks :)
  25. Re: [mccodes v2] Free Login   True, but that could also be an issue... let's say that he was skilled enough to make such a thing on paintbrush... (and no use on flaming saying it is not possible because it is), What is the original format for paintbrush? .bmp ... Editable? hell, as editable as .png or any other compressed format! :P
×
×
  • Create New...