Jump to content
MakeWebGames

Zero-Affect

Members
  • Posts

    3,713
  • Joined

  • Last visited

    Never

Everything posted by Zero-Affect

  1. Nice idea RSS into MC does seem a little far though, it's a game but good job.
  2. Any need for more code? echo '[img='. ($r['laston'] >= time() - 900 ? 'on' : 'off') .'line.png]'; Would work just fine. LazyT's got a point ternary operators ain't only used in variables.
  3. do you have the script gangster legends up anywhere so i could test and find loop holes bugs risks and so on, is it under GNU or commercial?
  4. i'd say rent a spy lol because it's mine... got a problem with that? X(
  5. i really hate the following => if( $ir['jail'] or $ir['hospital'] ) { echo 'This page cannot be accessed while in the jail or hospital.'; $h->endpage(); exit; } It's like the worst thing i've ever seen why not basically setup a table with a list of files which cannot be accessed while in hospital or jail explore.php bank.php and so on... then it would be simple // this is a rough setup $file_name = basename($_SERVER['SCRIPT_FILENAME']); $grab_caution_files = $db->query("SELECT `filename`, `caution` FROM `caution_files` WHERE `filename` = '$file_name'"); $fetch_cfiles = $db->fetch_row($grab_caution_files); if ( $ir['jail'] OR $ir['hospital'] ) { $caution_type = ( $ir['jail'] ) ? 'jail' : 'hospital' ; } elseif ( $ir['jail'] AND $ir['hospital'] ) { $caution_type = 'jail/hospital'; } if ( $fetch_cfiles['caution'] == $caution_type AND !empty( $caution_type ) ) { // check if the caution is one of the cautions and that it isn't empty $caution_type_test = ( $caution_type = 'jail/hospital' ) ? 'jail and hospital' : $caution_type ; // filter the caution type to look for jail/hospital and change / to and for echoing echo 'You cannot access this file when in '.$caution_type_test.'.'; // echo the complete text die(); }   I have not tested this idea and im sure there will be a downfall (i actually use this method on crimgame) but don't forget you need a database... with two columns one for the file and another for the caution enum would be best for the caution enum 'hospital', 'jail', 'jail/hospital'. Good luck and if you edit it please post your edits i'd love to see where this goes.
  6. $ip = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; into $ip = $_SERVER['REMOTE_ADDR'] ;
  7. no problem hope it helps, sorry to hear about your accident.
  8. People will complain about any change, I disliked WBB when i first came back but look at the options i think CE/MWG is 100% better even if i get filtered for bad language lol On a serious note i think the market place will be a good addition if used properly, Bids will be a good option also i think bidding for work if people post requests (like freelancer websites). Personal shops is a good idea also reminds me of ebay :D
  9. looks good Alain, i do like all the little options :D
  10. Cronus made something that works? If he said it isn't his code then i don't think we have a problem here unless there is a legal issue which then contact Cronus
  11. They look pretty good for free templates, well done. Buggy and Djkanna you two do know that Karma isn't available on here right?
  12. function crystals() { global $db,$ir,$userid; $itemname = 'ITEMNAMEHERE'; // change this to the name of the item $itemid = 10; // item id $points = 12; // amount of points needed if($ir['points'] >= $points) { echo ' You have just traded '.$points.' points for '.$itemname.' [size="1"]> [/size][url="pointstrader.php"]Back[/url] '; $sql = sprintf("UPDATE `users` SET `points` = `points` - %u WHERE `userid` = ". $userid .";",$points); // gathers the information for submission $db->query($sql); // submits the query to the database item_add($userid, $itemid, 1); // This function is defined in global_func.php } else { echo ' You havnt got enough points to trade. [size="1"]> [/size][url="pointstrader.php"]Back[/url] '; } } I got abit bored thought i'd give you a hand, Please remember when using global to only really pull what you actually want it's just easier.
  13. download notepad++ open all your public html .php files and search for 'money' or 'crystals' without the quotations in the files, it's pretty straight forward to do.
  14. Djkanna does have a point there Buggy
  15. it's actually crimgame.com lol and yeah looks fine to me
  16. Making online games of previous hits (movies/games) is a great idea, i mean look at startrekonlinethey will have more advertising on fan sites then they actually pay for. I do like EA they do some interesting games but with them launching browser based games i predict alot of companies following in their footsteps and putting the smaller online browser games out of business.
  17. Why even use array i mean was it just copied from somewhere or something?   $_POST['msg'] = str_replace( '\n', ' ', strip_tags(htmlentities($_POST['msg'])) );
  18. Does that mean your revamped the originals or this is a revamp of someone else's script?
  19. Zero-Affect

    GYM

    Danny that is very difficult to read with the background being dark blue and the text also being a blue, try maybe white text or grey even maybe a lighter background?
  20. if someone abuses it just simply disable their right to change their signature.
  21. $sql2 = $db->query(" SELECT `mail_from`, `mail_to` FROM `mail` WHERE `mail_id` = {$_GET['ID']} "); $sql1 = $db->fetch_row($sql2); if ( $sql1['mail_from'] != $userid AND $sql1['mail_to'] != $userid ) { echo ' Error. This is not your mail.'; $h->endpage(); die; }
  22. use the search function... example input 'ctype' in there or the exact name of the function your research 'ctype_digit' people don't put the quotes... Simple solution is to google whatever like for example [lmgtfy]array php.net[/lmgtfy] top result: http://php.net/manual/en/language.types.array.php
  23. dude [lmgtfy]basic html table[/lmgtfy] result 2: http://www.w3schools.com/html/html_tables.asp
  24. i just glanced at the userlist fix, I have to ask did you just copy examples from other people? i think (if i remember correctly) $_GET['ord'] only can be two things asc and desc so why not use a array and use a ternary operator... $_GET['ord'] = ( isset($_GET['ord']) AND in_array($_GET['ord'], array('asc', 'desc')) ) ? $_GET['ord'] : 'asc' ; same with some of the others...   $by = abs((int) $_GET['by']); $ord = abs((int) $_GET['ord']); You are simply just copying other peoples methods not considering they ain't numeric they are alpha, i would suggest you maybe hit php.net a little more and work out some methods. I personally like to double check all my code before uploading it.   $st = abs((int) $_GET['st']); into $st = ( ctype_digit($_GET['st']) AND isset($_GET['st']) ) ? $_GET['st'] : 0;   I won't do the other for you and i hope you don't just copy this stuff, research the functions and consider where it's needed.
  25. Zero-Affect

    Bank

    just my own personally specification but would $withdraw = abs(@intval($_POST['withdraw'])); not be better being $withdraw = ( ctype_digit($_POST['withdraw']) AND isset($_POST['withdraw']) ) ? $_POST['withdraw'] : 'FALSE' ; or something along them lines?
×
×
  • Create New...