-
Posts
2,921 -
Joined
-
Last visited
-
Days Won
48
Content Type
Profiles
Forums
Events
Everything posted by KyleMassacre
-
Is this complete? If so, its a little bland but if its in development I do like where it is heading
-
Good call. TOPIC CLEANED UP
-
For one why don't you give your submit buttons a name? This you you can check for a post request by an input name. Now I forget which one is more dominant between get and post but you may just be checking to see if therr is any post request method and post may just be what you get once you click a link. Also, what's with the globals? you don't need to look for global variables because your not inside a function or a method of any sort. So try these and post back the results EDIT: I wouldn't recommend looping through each post request because you will be grabbing stuff you probably don't want and it may not be working because you are trying to update columns that you don't have since you are grabbing each post request EDIT 2: I don't know why I'm catching stuff after a submit but I think you want your returns to not be strings in you show tables function. I think you can't them to be (bool)contants
-
Ok that's fine. It just got way way out of hand with some comments that were made but keep on kepping on. BTW Peter is great. He has made almost all of my layouts and would totally recommended him
-
well I have mine for $5 but you can easily convert it to GRPG if you would like
-
Topic cleaned up and completely uncalled for in here stay on topic whatever topic this may be
-
If your going to use a form I would use post unless for some strange reason you cannot use post. Also why mres an int? Especially in this case your "points" is and should be an (int) in your database unless you have done something horribly wrong to your database. Also it really doesn't need to be "secured" since its not user input and your not displaying info from the db. Now would this be bad? No. Practical? No. its just adding some unnecessary strain by calling a function that doesn't need to be there. Now back on topic, If the OP takes all of these examples and puts the pieces together just right he has what he is looking for and I appreciate all the spoon feeding you guys have done :p
-
[VPS] 3 Cores, 3GB RAM, 50GB RAID10 Storage, 1TB Transfer, £3/mo
KyleMassacre replied to Vaz's topic in Linux and Webservers
Doesn't seem too bad at all. What would you rate their support 1-10. Is there anyword on their datacenters, do they run their own or is it 3rd party? -
[VPS] 3 Cores, 3GB RAM, 50GB RAID10 Storage, 1TB Transfer, £3/mo
KyleMassacre replied to Vaz's topic in Linux and Webservers
I'm a bit worried about the "3 cores" for just a few bucks/mo. What are they like 1 gHz each totalling 3 -
I think he wants it so players can spend currency to get out themselves
-
Well, thats a start but now you are just adding to the problem of most of these scripts for these engines. Granted your not using $_GET for anything in the database but its still promoting negligent security practices. Also you are passing ints as strings in the database, why when they are ints and not varchar, text, etc? But here we will go with yours just a bit cleaned up: //Always make sure that your gets and posts are set, but now whats are value for this key? anyways we'll just let it be if(isset($_GET['buyout']) && $user_class->points > floor($user_class->hospital / 60)) { $result = "UPDATE `grpgusers` SET `hospital` = 0, `points` = ".($user_class->points - floor($user_class->hospital / 60))." WHERE `id` = ".$user_class->id; mysql_query($result); }
-
Well I see exactly where guest is coming from. Why only set the announcements to 1 when you can display how many they actually have? What if they dont log in for a week or two?
-
well I don't know grpg off the top of my head but I'm pretty sure you can add a link in the jail and hospital like echo "<a href='?release=#'>Release </a>"; just change the # with the players id. Then you may want to check that the link was clicked using something like: //make sure the array is set && make sure the right key for the array exists && make sure that its an int for tye players id if(isset($_GET["release"]) && array_key_exists("release", $_GET) && abs((int) $_GET["release"])) { //execute the release here } Now its your duty to make it work :)
-
have you tried? if so, what have done? What errors if any? have you looked around your scripts to see how similar things are done?
-
This is getting off topic now
-
This thread was also moved. Again, look around before you post in random areas
-
Well, things could have changed since i tried helping skooda with it which was less than 3 years ago which then it was MCC so I am just assuming
-
Topic has been moved to the GRPG section. Please make sure you post in the right section next time... Thank you
-
So you mean to tell me me that you have owned this game since 2010 while skooda has been trying to sell this game to multiple people while still keeping it for himself? Wow I am so lost here. I just want to clear something up for my own curiosity, do YOU hold the license to the domain @ mccodes.com?
-
I must have been writing my reply when you were posting so yeah its basically the same
-
Well yes and no, if you went ahead and added the function to every page then you can remove it from the pages you want them to access. But, the instructions razor gave says to add the function in global funcs which is included in every page automatically. Possibly what you can try is this: function check_travel() { global $db,$ir,$userid, $allowTravel; if($ir['traveltime'] > 0 && $allowTravel > 0) { print "You have to wait {$ir['traveltime']} before you can access this page as you are travelling!"; exit; } } Then add at the top of your page (to be safe, above include "globals.php"): $allowTravel = 1;
-
Scripts script that he posted should work stand-alone or am I not understanding what you are saying? Are you using this module? or... Are you using a module from some where else?
-
*Ahem* The name is Kyle and there is no need for you to test it since I already have this as a working copy but thanks for wanted to check it for me.
-
Also this has been added to the MCCodes Marketplace
-
done bickering yet??? <?php session_start(); define('CAPTCHA_NUMCHARS', 4); $pass_phrase = ""; for ($i = 0; $i < CAPTCHA_NUMCHARS; $i++) { $pass_phrase.= chr(rand(97, 122)); } $_SESSION['cap_code'] = $pass_phrase; define('CAPTCHA_WIDTH', 70); define('CAPTCHA_HEIGHT', 20); $img = array(); $img = imagecreatetruecolor(CAPTCHA_WIDTH, CAPTCHA_HEIGHT); $bg_color = array(); $text_color = array(); $graphic_line_color = array(); $graphic_dot_color = array(); $gc = rand(1, 5); if ($gc == 1) { // blue bg 30-144-255 // white text 225-225-225 $bg_color = imagecolorallocate($img, 105, 105, 105); $text_color = imagecolorallocate($img, 192, 192, 192); } if ($gc == 2) { // green bg 124-252-0 // black text 0-0-0 // red lines 255-0-0 // green dots 124-252-0 $bg_color = imagecolorallocate($img, 124, 252, 0); $text_color = imagecolorallocate($img, 0, 0, 0); $graphic_line_color = imagecolorallocate($img, 225, 0, 0); $graphic_dot_color = imagecolorallocate($img, 124, 252, 0); } if ($gc == 3) { // red bg 255-0-0 // blue text 30-144-255 // black lines 0-0-0 // green dots 124-252-0 $bg_color = imagecolorallocate($img, 225, 0, 0); $text_color = imagecolorallocate($img, 30, 144, 255); $graphic_line_color = imagecolorallocate($img, 0, 0, 0); $graphic_dot_color = imagecolorallocate($img, 124, 252, 0); } if ($gc == 4) { // yellow bg 255-255-0 // red text 255-0-0 // blue lines 30-144-255 // black dots 0-0-0 $bg_color = imagecolorallocate($img, 225, 225, 0); $text_color = imagecolorallocate($img, 225, 0, 0); $graphic_line_color = imagecolorallocate($img, 30, 144, 255); $graphic_dot_color = imagecolorallocate($img, 0, 0, 0); } if ($gc == 5) { // blue bg 30-144-255 // yellow text 255-255-0 // green lines 124-252-0 // red dots 255-0-0 $bg_color = imagecolorallocate($img, 30, 144, 255); $text_color = imagecolorallocate($img, 225, 225, 0); $graphic_line_color = imagecolorallocate($img, 124, 252, 0); $graphic_dot_color = imagecolorallocate($img, 225, 0, 0); } imagefilledrectangle($img, 0, 0, CAPTCHA_WIDTH, CAPTCHA_HEIGHT, $bg_color); for ($i = 0; $i < 15; $i++) { imageline($img, 0, rand() % CAPTCHA_HEIGHT, CAPTCHA_WIDTH, rand() % CAPTCHA_HEIGHT, $graphic_line_color); } for ($i = 0; $i < 150; $i++) { imagesetpixel($img, rand() % CAPTCHA_WIDTH, rand() % CAPTCHA_HEIGHT, $graphic_dot_color); } imagettftext($img, 13, 0, rand(12, 22) , CAPTCHA_HEIGHT - rand(5, 10) , $text_color, 'ariblk.ttf', $pass_phrase); header('Content-type: image/png'); imagepng($img); imagedestroy($img); ?> the problem was that you had '' around your numbers in your if statements try that and see if it works