-
Posts
2,921 -
Joined
-
Last visited
-
Days Won
48
Content Type
Profiles
Forums
Events
Everything posted by KyleMassacre
-
Because Digital Ocean relies heavily on cli.
-
Are you comfy with the Command Line?
-
$nji=$db->query("SELECT * FROM items ORDER BY itmname ASC"); while ($list=$db->fetch_row($nji)) // mysqli_fetch_row() to $db->fetch_row() { print"<option value=' {$list['itmid']}'>{$list['itmname']}</option>"; }
-
I dont like x10 hosting at all. You can do digital ocean for $5/mo, buy a domain and it would come out to about the same price per year. Or you can do interserver and use the coupon warrior199 and get hosting for $1.99/mo on top of their discounts for going more than one year. A 3 year package comes out to 57.00. I have used them before for hosting and I do like their customer service a lot.
-
I think you have your variables backwards [uSER=65530]Coly010[/uSER] haha. the $restricted should be allowed
-
There is a topic that was created and we (even myself) went off topic and it was about different environments. So I wanted to maybe create its own. I want to talk about some whys and whats between Dev and Production and give some resources as well. Why use a dev environment 1. It's cheap 2. It's easy 3. For the most part it's secure. What I mean by secure is that it's not really open to the outside world so it's only as secure as your weakest script. And since your running on a dev environment aka Localhost, you have all the time in the world because your not paying for hosting just yet. This gives you plenty of time to do whatever it is that you need to do in order to get your game production ready. Below is a list of some of the most common applications used to develop locally on your own machine: WAMP Windows Apache MySQL PHP MAMP (Pro) Mac OSX Apache MySQL PHP XAMPP No idea what X stands for and the last "P" I believe is PERL AMPPS No clue what the "S" is either Vagrant Probably my favorite and best pick but does require some basic cli usage and another provider like Virtual Box. And also when programming locally, some kind of version control is your friend (Git). Add a Git repo to your locally hosted directory and also to your production server. This will help you make changes and deploy them very easily. Also, if you muck up a change you can revert back pretty easily. Ctrl+Z only works for so long and even the history on my IDE has been lost so this has saved me before. Why not develop on a production environment 1. Just dumb 2. Just dumb 3. See points 1 & 2 One of the biggest issues I have with this is the fact your edits, changes, or additions haven't been tested. A couple reasons why this is a bad idea is for the most part, your security hasn't been thoroughly tested and can result in data theft. Your users data like email addresses and passwords should be a top priority for you. Some people use the same password for everything like BANKS and even their email accounts. Another reason is, people can be online. If your editing a file like the MCCodes file "globals.php" and you create a syntax error, people may get hung up doing something and they just submitted a form and lost out on money buying something or even attacking and click back to find out they lost their health. The list goes on!! I know it can be a headache to have to open your IDE or text editor of choice, edit your files, open up FTP and upload your edits; but it's safer in the long run.
-
I don't think any *AMP* applications do crons but I'm pretty sure Vagrant can because it basically installs an image of the server you wish to run or any OS.
-
In theory it should work and I want to thank you for attempting this yourself. Just so you know, while() will execute the code in a loop as long as what's in the while as a parameter will return true. So basically what it's saying if you are not getting any results is that your query is not returning any rows or "ferching" and rows. Now, what could potentially be your issue is that mysqli_fetch_row() doesn't actually exists. You have 2 choices and in order of best to worst I would change your mysqli_fetch_row() to $db->fetch_row() or change it to mysqli_stmt_fetch()
-
No, that's all fine. The more resources the better but I just wanted to post that there is no way to be 100% secure. I just don't want people thinking that if they follow this stuff that they are out of the woods. Server languages are always changing to try and adapt with the times. Sometimes something great is added or changed but some smarty pants finds their way around it.
-
Bottom line is that whether you are a MCCodes game or a Word Press blog, you are a target. You will never be able to stop an attacker from attacking your site. Let me just go on the record here by saying that I am no security expert, but these "hackers" rely heavily on HTTP requests. The easiest way to stop someone from attacking your site is to [sarcasm]disable HTTP requests[/sarcasm]. In other words you can't
-
I think your free_result needs to be fetch_row
-
I have yet to see such list but I know you can search for words such as MCCodes or Dabomstew in the Google search bar, but that just brings up games that people never really worked on and mostly pirated games.
-
There are plenty of options available. You have WAMP, MAMP, XAMPP applications, I don't know much about Windows but on OSX a PHP server comes built in, and you also have Vagrant which is probably my personal favorite
-
It probably is still MD5 but they changed your password. This is a prime example of why not going live on a development site is the best practice.
-
Just to add to Dom's post: http://php.net/manual/en/language.operators.comparison.php
-
You must check that the array key exists or that it is set. Put a couple of my words together and you have your functions that you need. But here, I will write it for you. Just a FYI this will be my last time giving you an answer without you providing what you providing what you have attempted to rectify the warning: $bounty = isset($_GET['bounty']) && array_key_exists('bounty',$_GET) ? (abs((int)$_GET['bounty']) + 0 : NULL; Now, $bounty will return one of 3 things here. I could make it return one of 3 things but that's really spoon feeding you ;). It will return either 0 (which also equals false), a number greater than 0, or null. Some things to look at possibly are some ctype functions, filter_var/filter_input, preg_match, or even preg_replace and not to mention the 3 other functions I listed in the code which are pretty self explanatory
-
Ajax chat paid mod from mccodes by Dave
KyleMassacre replied to boionfire81's topic in Modification Support
[MENTION=52003]Dave Macaulay[/MENTION] still hasn't replied? -
I was being sarcastic. I was implying I would issue a DMCA and they would be in contact with you to take down their content
-
I may be able to help get you in contact ;)
-
Its because its MCCodes. MCCodes uses mysqli in their wrapper which will still work
-
Well I'll be, that's pretty smart haha
-
Nice, where you do see that? Maybe it's not a view that's available on mobile
-
Why don't you write it like you did for the boxes?
-
No, because somehow when I edited it the userdesc.php file contents disappeared
-
Try running the same query without the i.itmid=133 AND