-
Posts
3,137 -
Joined
-
Last visited
-
Days Won
35
Content Type
Profiles
Forums
Events
Everything posted by Djkanna
-
Valid; But what happens say if I wanted six items or seven, 8 ... ? -thats when things get tricky-
-
Not when you've apparently got a whole lot of work to be done... PS: Allowed. ;) P.P.S: Didn't read Spud's post till after I had posted.
-
Then quit posting, and get on with it. ^_^
-
May I offer a suggestion? Don't limit the amount of items available per pack. Also do it in a way that, if I want more than one item add another field for me, rather than giving me options for 5 and having to remove 3 (checkbox) because I only wanted 2.
-
Congratz on finishing your mod.:)
-
Depends on what you mean. There's a couple of options, as RoZ mentioned, img tags. Or you could use the list-style option, providing you're using lists for your menu.
-
[JS] (function ($) { $('#loaddiv').load('feed.php'); var auto_refresh = setInterval ( function () { //Do your normal refresh stuff. }, 5000); })(jQuery); [/JS] Maybe? Or (Should satisfy the needs of the post below) [JS] ;(function ($) { $(function () { $('#loaddiv').load('feed.php'); var auto_refresh = setInterval ( function () { //Do your normal refresh stuff. }, 5000); }); })(jQuery);[/JS]
-
So it was you! Next time leave your name, and I may just text back. :P
-
Never thought I would say this (I'm a grey/dark fan) it needs a splash of colour like Ian said. However other than that, I like it, well done.
-
I don't think that woud be a regular expression mishap (unless they used RE's and didn't allow zeros). Good rule of thumb, every field requires an input, if you don't want any increase in stats etc, use zero. I'll have a look at the item adding script for you though, I'll be back with what I find. :) Scratch that; No that wouldn't throw the same error as crimes. It would however throw that error, if you had a space within your item name. So: "Testing Item" would throw that error. In which case(new_item_submit function - staff_items.php). $itmname = (isset($_POST['itmname']) && preg_match( "/^[a-z0-9_]+([\\s]{1}[a-z0-9_]|[a-z0-9_])+$/i", $_POST['itmname'])) ? $db->escape(strip_tags(stripslashes($_POST['itmname']))) : ''; with: $itmname = (isset($_POST['itmname']) && preg_match( "/^[a-z0-9_]+([\s]{1}[a-z0-9_]|[a-z0-9_])+$/i", $_POST['itmname'])) ? $db->escape(strip_tags(stripslashes($_POST['itmname']))) : ''; Should fix that too. Now, we may be on mixed versions and I'm looking at an old copy, and these have already been fixed. However this is present in MCCodes V2.0.5a.
-
Really depends on your needs. Media Temple IOX Host V7 Host RackSpace However you get what you pay for. Looking for some cheap hosting, I'm guessing Iox Host and v7 host will do. Looking for some higher end hosting products, try Media Temple or Rackspace.
-
Anything quick, so generally; Two minute noodles. Salad Bowls. Cheese and pickle sandwich (these get made so much, I think I have a surplus of them in the fridge). If these are to much effort just a bag of crisps (chips for you American folks).
-
Would help if you provided us with your menu file. :)
-
Good luck with the sale and congratulations.
-
Replace: $_POST['name'] = (isset($_POST['name']) && preg_match( "/^[a-z0-9_]+([\\s]{1}[a-z0-9_]|[a-z0-9_])*$/i", $_POST['name'])) ? $db->escape(strip_tags(stripslashes($_POST['name']))) : ''; $_POST['brave'] = (isset($_POST['brave']) && is_numeric($_POST['brave'])) ? abs(intval($_POST['brave'])) : ''; $_POST['percform'] = (isset($_POST['percform'])) ? $db->escape(strip_tags(stripslashes($_POST['percform']))) : ''; $_POST['money'] = (isset($_POST['money']) && is_numeric($_POST['money'])) ? abs(intval($_POST['money'])) : ''; $_POST['crys'] = (isset($_POST['crys']) && is_numeric($_POST['crys'])) ? abs(intval($_POST['crys'])) : ''; $_POST['item'] = (isset($_POST['item']) && is_numeric($_POST['item'])) ? abs(intval($_POST['item'])) : 0; $_POST['group'] = (isset($_POST['group']) && is_numeric($_POST['group'])) ? abs(intval($_POST['group'])) : ''; $_POST['itext'] = (isset($_POST['itext'])) ? $db->escape(strip_tags(stripslashes($_POST['itext']))) : ''; $_POST['stext'] = (isset($_POST['stext'])) ? $db->escape(strip_tags(stripslashes($_POST['stext']))) : ''; $_POST['ftext'] = (isset($_POST['ftext'])) ? $db->escape(strip_tags(stripslashes($_POST['ftext']))) : ''; $_POST['jtext'] = (isset($_POST['jtext'])) ? $db->escape(strip_tags(stripslashes($_POST['jtext']))) : ''; $_POST['jailtime'] = (isset($_POST['jailtime']) && is_numeric($_POST['jailtime'])) ? abs(intval($_POST['jailtime'])) : ''; $_POST['jailreason'] = (isset($_POST['jailreason']) && preg_match( "/^[a-z0-9_]+([\\s]{1}[a-z0-9_]|[a-z0-9_])*$/i", $_POST['jailreason'])) ? $db->escape( strip_tags(stripslashes($_POST['jailreason']))) : ''; $_POST['crimexp'] = (isset($_POST['crimexp']) && is_numeric($_POST['crimexp'])) ? abs(intval($_POST['crimexp'])) : ''; In your staff_crimes.php file (new crime submit function) With: $_POST['name'] = (isset($_POST['name']) && preg_match( "/^[a-z0-9_]+([\s]{1}[a-z0-9_]|[a-z0-9_])*$/i", $_POST['name'])) ? $db->escape(strip_tags(stripslashes($_POST['name']))) : ''; $_POST['brave'] = (isset($_POST['brave']) && is_numeric($_POST['brave'])) ? abs(intval($_POST['brave'])) : ''; $_POST['percform'] = (isset($_POST['percform'])) ? $db->escape(strip_tags(stripslashes($_POST['percform']))) : ''; $_POST['money'] = (isset($_POST['money']) && is_numeric($_POST['money'])) ? abs(intval($_POST['money'])) : ''; $_POST['crys'] = (isset($_POST['crys']) && is_numeric($_POST['crys'])) ? abs(intval($_POST['crys'])) : ''; $_POST['item'] = (isset($_POST['item']) && is_numeric($_POST['item'])) ? abs(intval($_POST['item'])) : 0; $_POST['group'] = (isset($_POST['group']) && is_numeric($_POST['group'])) ? abs(intval($_POST['group'])) : ''; $_POST['itext'] = (isset($_POST['itext'])) ? $db->escape(strip_tags(stripslashes($_POST['itext']))) : ''; $_POST['stext'] = (isset($_POST['stext'])) ? $db->escape(strip_tags(stripslashes($_POST['stext']))) : ''; $_POST['ftext'] = (isset($_POST['ftext'])) ? $db->escape(strip_tags(stripslashes($_POST['ftext']))) : ''; $_POST['jtext'] = (isset($_POST['jtext'])) ? $db->escape(strip_tags(stripslashes($_POST['jtext']))) : ''; $_POST['jailtime'] = (isset($_POST['jailtime']) && is_numeric($_POST['jailtime'])) ? abs(intval($_POST['jailtime'])) : ''; $_POST['jailreason'] = (isset($_POST['jailreason']) && preg_match( "/^[a-z0-9_]+([\s]{1}[a-z0-9_]|[a-z0-9_])*$/i", $_POST['jailreason'])) ? $db->escape( strip_tags(stripslashes($_POST['jailreason']))) : ''; $_POST['crimexp'] = (isset($_POST['crimexp']) && is_numeric($_POST['crimexp'])) ? abs(intval($_POST['crimexp'])) : ''; Let me know how it goes, I think this is the only issue (a regular expression mishap [On a side note, don't use more than one space between words, no idea why this is limited in this way]) with it not correctly validating your inputs. Note: The formatting is exactly how it is presented within the script.
-
I thought Cloudflare was essentially just a way of keeping a copy of your stuff online, whilst moving around or should something go kabluey. Or has it changed? :confused:
-
I've not actually seen much of E3, but Dishonered looks good. I probably will not buy it, but it does look good. So like you, GTA V and that is more than likely the only one I'll get.
-
Either that, or I don't want to make my eyesight even worse by attempting to read it, unformatted. :rolleyes:
-
I've put in in code tags for you. [.PHP][/.PHP] [.CODE][/.CODE] [.HTML][/.HTML] So on and so forth, are code tags (without the period in between). :)
-
What is with this mindset, that x is better than y? I never said he's better than myself, Zu or Paul. I simply said he's not worse. In fact to be perfectly honest, I'd say none of us belong in that list. It's silly to think that one is better than another simply because they've been at it longer, or have a knack for learning things. We're only as good as the next. -Snip: Don't want to make the thread worse by implementing more controversy. :rolleyes:
-
Specifed keys can be anything you like. However not specifying keys (See MM's OP code), or using some function that doesn't leave the keys in-tact will regard my statement to be entirely true. As an example we'll take your cars array from the second code snippet(bumped up by 1.). $cars = array(1 => "Car1", 2 => "Car2", 3 => "Car3", 4 => "Car4", 5 => "Car5", 6 => "Car6"); Dump: array 1 => string 'Car1' (length=4) 2 => string 'Car2' (length=4) 3 => string 'Car3' (length=4) 4 => string 'Car4' (length=4) 5 => string 'Car5' (length=4) 6 => string 'Car6' (length=4) As expected; Now lets do something, you may come across from time to time, the sort function. sort($cars); Dump: array 0 => string 'Car1' (length=4) 1 => string 'Car2' (length=4) 2 => string 'Car3' (length=4) 3 => string 'Car4' (length=4) 4 => string 'Car5' (length=4) 5 => string 'Car6' (length=4) Conclusion; not specifying keys or using something that doesn't respect said keys will mean your arrays will start from zero.
-
I'd strongly disagree with this statement pal. Well thanks, generally I do tend to jump on the bandwagon, providing someone say something utterly stupid, I cannot help myself. That's when myself and Zu, go wild! As for this thread, I am now confused as to what's happening, or once again the original idea behind the thread. It's all random insults being thrown around like we're in a school playground... As for my opinion on either of the 'subjects' of this thread. @HD: Cool guy, has improved his skills and done well for himself doing what he (and as for that matter most of us here) loves to do, you've got to respect that. @CavellA: Not once had a problem with him, so he's alright in my book.