-
Posts
3,713 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by Zero-Affect
-
Grab rss feed for your newspaper (any version)
Zero-Affect replied to wrx's topic in Free Modifications
Nice idea RSS into MC does seem a little far though, it's a game but good job. -
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.
-
GL Project Idea & Team Applications [Freedom City]
Zero-Affect replied to a topic in Gangster Legends
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? -
i'd say rent a spy lol because it's mine... got a problem with that? X(
-
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.
-
$ip = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; into $ip = $_SERVER['REMOTE_ADDR'] ;
-
Need help With trading points for items
Zero-Affect replied to bennybwoi's topic in Modification Support
no problem hope it helps, sorry to hear about your accident. -
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
-
looks good Alain, i do like all the little options :D
-
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
-
They look pretty good for free templates, well done. Buggy and Djkanna you two do know that Karma isn't available on here right?
-
Need help With trading points for items
Zero-Affect replied to bennybwoi's topic in Modification Support
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. -
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.
-
Djkanna does have a point there Buggy
-
it's actually crimgame.com lol and yeah looks fine to me
-
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.
-
Send Bank,Cyber,Cash,Crystals--All-In-One
Zero-Affect replied to Joshua's topic in Free Modifications
Why even use array i mean was it just copied from somewhere or something? $_POST['msg'] = str_replace( '\n', ' ', strip_tags(htmlentities($_POST['msg'])) ); -
Send Bank,Cyber,Cash,Crystals--All-In-One
Zero-Affect replied to Joshua's topic in Free Modifications
Does that mean your revamped the originals or this is a revamp of someone else's script? -
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?
-
if someone abuses it just simply disable their right to change their signature.
-
$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; }
-
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
-
dude [lmgtfy]basic html table[/lmgtfy] result 2: http://www.w3schools.com/html/html_tables.asp
-
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.
-
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?