Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


sniko last won the day on July 14

sniko had the most liked content!

Community Reputation

128 Excellent


About sniko

  • Rank
  • Birthday 06/06/1994

Personal Information

  • Location
    South West England
  • Interests
    Short films, Counter Strike: GO, web development
  • Occupation
    Backend web developer
  • Website

Recent Profile Visitors

91,816 profile views
  1. I have! It's really touching on the reality of losing a loved one. I'm glad they are continuing the series
  2. sniko


    😄 Good times - I remember we went on the hot air balloon and we were all....cautious of the heights lmao
  3. sniko


    Hello Zed 😄
  4. sniko

    Mafia based game

    Your `l.php` script is also prone to XSS... An example: https://mafia-streets.com/l.php?u=l.php%3Cscript%3Edocument.location.href%3D%27https%3A%2F%2Fharrydenley.com%2F%27%3B%3C%2Fscript%3E - of course this is just a PoC, but could be harnessed for CSRF or something else. You do not validate or sanitize if the path is urlencoded
  5. You can run everything locally, on your machine which will make it easier as you won't have to rely on the free hosting provider to keep you up or deal with (likely) intrusive ads. https://hub.docker.com/r/mattrayner/lamp Or install mysql and php on your machine and run the server from the game root directory with `php -S localhost:8000` then navigate to http://localhost:8000
  6. This means you don't have `ext-mysql` enabled - you can confirm this by running phpinfo() or `php -i`. What kind of server do you have? VPS? Shared? Is your server Linux based or other? Are you familiar with installing and compiling extensions?
  7. How did you lose it? Also, I suggest you run your code through version control - such as git - with a good branching model. https://git-scm.com/ https://nvie.com/posts/a-successful-git-branching-model/
  8. Hey, so I know some of you here are still having success in running a text-based game in 2020. I am hoping we can crowdsource a list of things a game manager/owner can do to help build their community as well as maintain their existing player-base. I have not run a game or a community in a while, but in theory I know how to maintain one - building one is what I imagine to be the hardest part. How would you go about building a new community? Bimonthly newsletters - Email players twice every month of things that has happened in the game (ie: new Hall of Fame placements) in the last 15 days, what is in the pipeline for new features, and give promocodes out Multiple communication channels - Have an active chat area and even allow for stale chats to stay, this can be in the form of live chat/IRC and forums Run competitions - with tiered prizes for most referrals, most attacks, .... Frequent planned updates - update the game with new features and bug patches on a frequent schedule with a public changelog Mobile-first methodology - optimize the game for mobile and have support for desktop Having clear and enforced community rules - governance is hard but it is critical that your rules are clear and ban hammers are handed out to those who exploit/break the rules What other tactics do you have to build and maintain a community?
  9. You can buy your own VPS and install whatever version of PHP you want - even if its deprecated, dropped, and encouraged to not use in production. https://m.do.co/c/b1c2c28c6822
  10. What is your budget and timeline for all of this?
  11. sniko


    Is there anything in the error_log? Most likely unable to connect to the database - did you set up a MySQL database, create the tables, and create the database user?
  12. Take a look at the documentation: https://api.jquery.com/serialize/ > Note: Only "successful controls" are serialized to the string. No submit button value is serialized since the form was not submitted using a button. For a form element's value to be included in the serialized string, the element must have a name attribute. Values from checkboxes and radio buttons (inputs of type "radio" or "checkbox") are included only if they are checked. Data from file select elements is not serialized.
  13. sniko

    jQuery Ajax round #2

    I did, I asked what `vvvvv` was about. Also for better help please start posting a minimal, reproducible example and adding more details to help debug the issue.
  14. sniko

    jQuery Ajax round #2

    1. Make use of return statements so you don't need unnecessary if/else blocks 2. Look into Javascript linter (ie: eslint) so you have a consistent style and spacing in your code 3. Wtf is `vvvvvv`? That does not look correct. It looks like you want to check if the url has a query string. Use the native browser API for for this - `location.search`
  15. React DOM is a Javascript frontend framework to develop with emphasis on having managed DOM elements - https://reactjs.org/ JWT is a JSON web token that you assign to a client so they can be authorised on the server-side application to communicate with JSON objects to an API, for example - https://jwt.io/introduction/
  • Create New...