jazyx / flash

Flash cards for learning Russian
0 stars 0 forks source link

Custom card sets #24

Open blackslate opened 5 years ago

blackslate commented 5 years ago

On the server, we can provide a text file for each user, containing a list of custom keys. In each card set folder in the data/ directory, we can include a text file with custom tags. If the file is missing or empty, any user will be able to access it. If the file contains tags, then only users whose personal file contains one of those tags can access it.

The PHP script will then need to:

Card sets visible to one user on a given device might need to be hidden from other users. If a user later earns a custom key, then the card set already downloaded should become immediately available.