-
Posts
1,660 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Events
Everything posted by Jordan Palmer
-
Looking very good I must say! Well done
-
It's never to late, a bit of hard work and the forum will be back in shape
-
Hi Lilith, I personally do not like this idea, this would increase mod load along with more things for users to scan, What we need is suggestions to break the hostility between the community and rebuild the community to promote newbies..
-
All of you are missing his point.. He isn't using mccodes therefore doesn't want it made for MCCodes...
-
try again..
-
Stop people making themselves staff and crediting dp's
Jordan Palmer replied to gazsr123's topic in Modification Support
There are a few articles already, Using the search button usually helps ;) Which pages to secure your game A few simple lines of code to help Secuity tutorial Very basic look into security There are a few which could help, Thats just around our site, Google may be of help to :) -
Stop people making themselves staff and crediting dp's
Jordan Palmer replied to gazsr123's topic in Modification Support
The only thing you can do is secure your game properly, you can put things in the way to make it harder for hackers like changing the user_level to something else, staff password, ect but this will only slow them down.. -
It does the exact same however I like things to make functions so I only have to do blah() and it's controlled via one file. makes much more sense to me
-
I never said they had to be done for $1, he could sell them for $100 if he wished, I was giving a suggestion
-
You can sell anything you like ;) Joshua's isn't bad for $15,
-
I have a function that does the same as ctype_digit, however i could not use that in the script so I started of by using abs(intval then decided to use the ctype_digit() function but basically couldn't be bothered moving the abs/intval
-
Supply us with more information..
-
Very....interesting equinox xD
-
They look the bollocks :O
-
Great modifaction from the start. ATM for me it's still working smootly :)
-
@Equinox my version was only to give a general idea, It was early in the morning and basically i couldn't be arsed, I have a habbit of using abs(intval( because i rarely use the ctype_digit on my project due to having a function that handles that, so i started off then realised i could actually use that, so yeh lol djk great job :)
-
Would be so nice to say this work's however it don't. You've gotta go through all your files and secure the get/post individually
-
This isn't a competition, I was bored noticed that things could be slightly improved so went ahead and did what I thought could be improved. Not saying my version is better at all :)
-
I would probably say things such as prefs, forums, mail system ect All would sell for quite a bit ;) plus would be big help to all those who cannot code already :)
-
While I see where you was going with this I simply recoded the file, Now you can see what over the top is xD There was no errors when I did a quick test however my version of MCCodes is highly edited and restructured so there may be errors, however i'll happily fix :) <?php include_once(DIRNAME(__FILE__) . '/globals.php'); if (!in_array($ir['user_level'], array(2, 3, 5))) { echo('You are not allowed to do this'); exit($h->endpage()); } if(isset($_POST['user']) && is_string($_POST['reason'])) { if(!ctype_digit($_POST['user'])) { echo('The ID/user needs to have a numeric ID'); exit($h->endpage()); } else { $q = $db->query('SELECT `userid`,`user_level` FROM `users` WHERE `userid` ='.abs(intval($_POST['user'])).''); $them = $db->fetch_row($q); if (in_array($them['user_level'], array(2, 3, 5))) { echo('This is a fellow member of staff, This cannot be done'); exit($h->endpage()); } else { $db->query('UPDATE `users` SET `fedjail` = 1 WHERE `userid` ='.abs(intval($_POST['user'])).'') or die('no1'); $db->query('INSERT INTO fedjail VALUES("NULL",'.abs(intval($_POST['user'])).', '.abs(intval($_POST['days'])).', $userid, '.mysql_real_escape_string(strip_tags($_POST['reason'])).')') or die('n00b'); echo('User has been fedded, They can no longer play the game'); $db->query('INSERT INTO jaillogs VALUES("",$userid, '.abs(intval($_POST['user'])).', '.abs(intval($_POST['days'])).', '.mysql_real_escape_string(strip_tags($_POST['reason'])).',unix_timestamp())'); } } } else { echo '<h3>Jailing User</h3> The user will be put in fed jail and will be unable to do anything in the game. <form action = "jailuser.php" method = "POST"> User: '.user_dropdown($c,"user", $_GET['userid']).' Days: <input type = "text" name = "days"/> Reason: <input type = "text" name = "reason"/> <input type = "submit" value = "Jail User"/> </form>'; } $h->endpage(); ?> meh. was bored so thought I'd help
-
A quick query, A simple if... If you PM me your IM I will provide indepth help through there.
-
What are you actually trying to do? Please don't forget the header is only INSIDE game...
-
Nice and simple way of doing it there sniko :)
-
While it may not be the best way, it work's. It may be better for someone to use that then the standard way, So let's not put it down eh, I agree with what you are saying, however it works, most will use the standard way, however Danny was just informing them of other ways which as said in the topic "OLD" It doesn't make it right however it does work and thats what counts at the end of it really
-
Looking good sniko :) Well done mate :)