nhoening / gritttt-rss

Implements 'cancelled' sharing-features of Google Reader for the excellent open-source RSS-Reader TinyTiny-RSS: share any page on the web via a bookmarklet and show your shared items in a widget on any website you want. Also allow to import shared&starred articles from Google Reader.
gritttt-rss.nicolashoening.de
Other
48 stars 4 forks source link

Most simple plugin: A plain XML file #39

Open nhoening opened 12 years ago

nhoening commented 12 years ago

A user hosts a simple XML file, to which driveby-sharing appends. gritttt.php needs no imports and insert only does some XML operation on the file. Also, gritttt.php performs basic session management to implement check_login (open: how to do some simple password-comparison - maybe store a password in a separate PHP file ...).

nhoening commented 12 years ago

I suggest that insert writes to two files. One is the complete shared history. As it would be inefficient to query that file for the shared-widget, it can also write to a file that only contains up to n entries (so if there are already n entries in there, insert deletes the last and then inserts the new one).

Will sharing become very inefficient if the complete history file becomes very large? Yes, and then the file should be arhived (either by hand or automatically) and a new one should be started. But that does not have to be done in a first version of this.