Giter Site home page Giter Site logo

pacoorozco / gamify Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 1.0 2.15 MB

[THIS WON'T BE UPDATED] Gamification platform - The core of GoW!

License: GNU General Public License v2.0

PHP 64.45% CSS 2.40% JavaScript 2.96% Smarty 0.24% Shell 0.31% PLpgSQL 10.78% HTML 18.86%

gamify's People

Contributors

pacoorozco avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

nabsource

gamify's Issues

Optimize DB schema

After some work, I think there is some changes pending on DB schema.

  1. Add register_date field to members table
  2. Change to DATETIME format all date's containing columns. We must change PHP code to be able to work with it. Work with dates in PHP
  3. Change amount_needed, points, amount for something more coherent such us xp_points
  4. Removes level_id from members and put on vmembers
  5. Add total_xp_points to vmembers
  6. Add level_name to vmembers

Some DB.class functions returns incorrect values

Whe use some DB.class functions, like getOne() in SELECT without any record returned it doesn't return NULL. Instead of this return a empty array.

It must change this behaivour in order to return NULL.

return (is_array($row)) ? reset($row) : null;

change to some like this

return ($result->num_rows > 0) ? reset($row) : null;

XSS on 'nav' field on login page

An attacker can use 'nav' input field in order to do XSS. This 'nav' input is not sanitize, more than header() function does.

A good approach is not to use this input field, using a $_SESSION instead

Add time periods to actions

For example:

  • a achieve to obtain a badge is limited once a day
  • you can't reply more than X questions at week

Enable notifications

Enable app to send email notifications where:

  • a question is published (to admins)
  • a question is published (to users with "notify me" checked)

Levels are incorrectly assigned

Member A with more experience points than member B, has a lesser level.
I think there's a problem when experience points are granted and calculate new level.

File uploads for admin managements functions

Code file uploads actions in order to upload images to:

  • question management
  • level management
  • badge management

On member management is implemented profile picture uploads from v2.7, may be we can use the same or similar code

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.