Git Product home page Git Product logo

rafflingsystem's Introduction



Matt Kent's Activity Graph

rafflingsystem's People

Watchers

 avatar  avatar  avatar  avatar

rafflingsystem's Issues

Discussion Forum

A discussion forum for members. Fully configurable via the adminCP.

Add CSRF protection to Delete avatar link

Currently, the link to delete your current avatar doesn't have any token. I need to add this. Most likely by making the link a button and submitting it as a form.

Add the public/en_gb view

This is the design that @Wild1145 and @WickedGamingUK did. I need to add this, currently it's only the panel for when the user's are logged in.

Also, I personally feel that once the user is logged in, only allow them to see the panel, and in order to go back to the public area, hence the "public/en_gb", they need to logout. This could help with security as although it will most likely be over SSL, not having to access the session superglobal means zero chance of session hijacking from the public area, i.e. affecting a logged in user. What do you guys think? @WickedGamingUK @Wild1145

Make csrf.php into a class

I need to do this, currently it's just functions as I wanted to make it work, and I had the code from a previous project.

Add better security to avatar directory.

Currently, the avatar directory has no form of protection, I need to add this.

Well, I lie, it has some but only direct access and protection for executables. Although the system only allows for .jpg uploads, we never no.

Add better database handling.

Currently, we're establishing a database connection in every method, and this isn't as performance friendly as it could be. I would like to improve on this, maybe by storing the connection in a static class variable. It can wait though.

Add some sort of caching.

Currently, although the raffle system is incomplete and is also in a very early pre-alpha stage, as there has been no official unit and other tests since the initial MVC design was built, there is no caching.

On localhost, with just me, there is no real performance problems, the slowest pages being login and the raffle listing. The worst is probably the raffle listing since it has to perform 2 queries. One to get the raffles >= CURDATE() and also one to insert the colour of each returned record. With high traffic this is going to become a complete bitch regarding performance. A cache here could work, maybe recheck for new raffles every hour. I could store them in a JSON or XML format. Either could work really.

I am going to mark this as "It can wait" as although it's a good thing to have, it's not utterly important in the grand scheme of things at this current stage.

Archive expired raffles that have been drawn.

I will first off need to implement scheduled tasks or Cronjobs, really it depends on site visits. If there are enough then all tasks will be executed otherwise they won't.

Personally to make it easier to manage with the fact that the system is hosted on their system the amount of unorganized cronjobs would be ridiculous, hence why personally I feel that scheduled tasks would be better, and more sustainable option. The only exception being, tasks are only executed upon a site visit. However with a system such as this, I don't see site visits being a problem.

I would love to hear what you think @Wild1145 @WickedGamingUK. I'm thinking of the future and making a more sustainable application.

Going back to the issue title, this would then allow the ability to archive the raffles.

Fix warning on enterRaffle URL when no ID is specified.

If no ID is specified, this happens:

Warning: Missing argument 1 for RaffleController::enterRaffle(), called in C:\xampp\htdocs\SwindonTown\application\core\Application.php on line 47 and defined in C:\xampp\htdocs\SwindonTown\application\controller\RaffleController.php on line 44

Need to fix.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.