Jump to content
MakeWebGames

sniko

Members
  • Posts

    2,210
  • Joined

  • Last visited

  • Days Won

    47

Everything posted by sniko

  1. Yes, have a read here: https://www.owasp.org/index.php/Unrestricted_File_Upload  
  2. I'll give you the fishing rod, but not the fish.   if (preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/", $email) == FALSE) {   See regex tester
  3. You said you're considering moving hosting provider. May I suggest you use DigitalOcean? Once you've experienced their service, you won't ever go back to "shared cPanel cheap hosting".
  4. ereg has been deprecated, and dropped in later versions of PHP. You're going to want to look at preg_match http://uk1.php.net/preg_match.  
  5. The issue is that you're sending a HTTP header after output, causing that message, and most likely, not firing the redirect. To fix it, change your code around so that there is no output before you send the HTTP header, or make use of output buffering (properly).
  6. You're looking for vanity URLs/pretty URLs - mod_rewrite. An example would be something like;   RewriteEngine On RewriteRule ^([^/]*)$ /viewuser.php?u=$1 [L,QSA]   However, that would direct everything to viewuser.php - but it's a start. To accomplish what you're trying to achieve, look at RewriteCond (rewrite conditions)
  7. ****. Sign me up to one month of your hosting package to prove DigitalOcean isn't a serious competitor, and I doubt you'll meet any expectations someone expects with deploying their application to the web - especially with (bloat ware) cPanel.
  8. Today   Playing with GhostScript and ImageMagick to convert PDFs into JPGs and then cropping them. Creating more API endpoints to integrate with a 3rd party service Finalising collection designs within MongoDb   Tomorrow   Database restructure (MySQL) User class build (for a custom CMS platform) Building security token system for user requests [*]Planning a design [*]Planning the system design for the front-end websites using the custom CMS platform
  9. You use the term "Unlimited", I think you should change that to "Unmetered". I'll throw in the usual questions; How much server experience do you have? Do you have any backup procedures in place? Do you have any recovery procedures in place? How can we get support? Do we contact you? If so, what times are you available? After all, you are providing a service that we are paying for.   [*]What kind of interface do we have to interact with the server? [*]How dated is the technology on the user? Software versions Hardware versions [*]How often would you update software/drivers/... [*]Can we install PHP extensions? (PECL, PEAR)
  10. Nope. Unless with your implementation it changed. My code would send a HTTP GET request to ajaxListener.php?cmd=train&stat=strength. Your AJAX listener would "route" that request on switching the _GET['cmd'] value, down to the train() function. Admittedly, this should really be a POST.  
  11. I'd suggest using the REST methodology. It would open doors for much easier app building, and (depending on the back-end structure; classes, namespaces, etc - future proofing and enhancing code/routines) Sure this could be achieved with the others, but I personally find sending RESTful request to a web service (for apps) is much easier than sending SOAP requests. You'd need a good design pattern, obvious and most logical choice is the MVC design pattern.
  12. What type of methodology? REST, SOAP, (sorry for saying this) cheap labelling for a class, or?
  13. Considering you're switching on a _GET to call the respective function, this should suffice; (I've only done one button, but you'll get the gist on how to do the others. You will also need the jQuery library) <div id="response"></div> <a href="" class="trainButton" data-type="train" data-stat="strength">Train Strength</a> <script> $(document).ready(function() { $('.trainButton').click(function() { var strType = $(this).data('type'); var strStat = $(this).data('stat'); $.get('ajaxListener.php?cmd=' + strType + '&stat=' + strStat, function(strTrainResponse) { $('#response').html(strTrainResponse); }); }); }); </script>   You're also open to SQL injection. <font> should not be used. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/font This looks more like your AJAX listener, not caller. Don't use exit; directly. At least call $h->endpage() beforehand. There is no default case handler
  14. OP said > ok i open to offers as no one wants to buy it $5 is an offer.
  15. Thanks [MENTION=68479]Oracle[/MENTION]!   I'm planning of creating a guide to integrate pusher, and perhaps a tiny admin panel to accompany it, but nothing is set in stone, yet.
  16. You don't necessarily need MySQL. You need a database. MySQL is a relational database management system - you could go for NoSQL (Neo4j, Mongo, etc - although these are mostly used for BIG data, however not limited to that.)   A webserver Apache Nginx ... [*]A database SQL NoSQL [*]Server-side programming To communicate with the database(s) [*]Client-side programming Display everything to an end-user  
  17. The way a business flourishes is by supply & demand, to make a profit that outweighs the costs of developing such product/service. Currently, the demand for v3 is so low, it doesn't complement the costs involved. //These are my own views and opinions reflecting v3
  18. What part are you stuck with, exactly?
  19. I see no correlation between the use of invalid licenses and the communities enjoyment, sorry.
  20. If you're trying to promote yourself, it would be better to provide your work in the post. > Hey Tangled, > I've done some main menu designs before, and here are some samples of my work > [screenshot1] [screenshot2] [screenshot3] > For more samples, or if you'd like to discuss your design with me, contact me via e-mail ([email protected]) or PM me   You will get more people come to you, as you'd be exposing your work in multiple places, and not one Someone doesn't have to search for you work. This guy sent me on a stupid adventure looking for his work so I can see if I want to give him my money, and this guy sent me samples of his work [*]You will look much more professional   It's rookie-know-how on selling and making yourself look professional when proposing to new (and old) clients.
  21. sniko

    DCSG Hosting

    > might. Don't make accusations without providing evidence to backup your claims; even if you intend to post evidence, post it at the same time of the accusation, else you look like an idiot/hater.
  22. sniko

    mafia games

    Yes, i've seen a few - but I can't remember the names. I'd like to see more games adopt those mechanics, personally.
  23. See thread: http://makewebgames.io/showthread.php/44998-Buying-modules-McCodes?p=305841&viewfull=1#post305841
  24. Awesome! I'll checkout the games once they're on the app store for iOS :)
  25. Various ways you could tackle the bot issue;   Store the last train in a session. Check if they last trained within x seconds. If so, kill the training action. Third party CAPTCHA tool There are some awesome ones, which aren't just "type the text" ones - as these can be beaten to an extent. reCAPTCHA SweetCAPTCHA     In short, integrating a third party CAPTCHA solution is pretty easy. Creating your own is a good idea also (maybe), but robots can bypass them - so it could take a while to ensure bots cannot "read" them and humans can - without lowering user experience, and a third party application is probably the safer option - you don't need to develop it, future updates, ... For the energy to minus a value after training;   print '<div class="suc_msg">You have successfully spent 1 hour of studying the art of fighting!</div>'; $db->query("UPDATE `users` SET `money` = `money` - ".$cost['learn'].", `energy`=`energy`-1 WHERE `userid` = ".$userid); $db->query("UPDATE `userstats` SET `intelligence` = ".$intelligence.", `endurance` = ".$endurance.", `reflexive` = ".$reflexive." WHERE `userid` = ".$userid);
×
×
  • Create New...