Crazy brainstorming for CrudeForum

來自:樹雄
時間:Thu 2018-01-11 15:13:44

A. Improved HTML sanitizer

Don't just remove all HTML. Allow some HTML tag to exists for formatting.
Only to remove dangerous ones
(i.e. <script>, <style>, <iframe>, <* style="*">)

Reference:

ezyang/htmlpurifier
htmlpurifier - Standards compliant HTML filter written in PHP
github.com

B. Markdown formatting support

All Github user at least know some markdown.

Reference:

michelf/php-markdown
php-markdown - Parser for Markdown and Markdown Extra derived from the original Markdown.pl by John Gruber.
github.com

C. Login with OAuth2 backend (e.g. Google)

Also better session than plaintext name in cookie.

Reference:

thephpleague/oauth2-client
oauth2-client - Easy integration with OAuth 2.0 service providers.
github.com
JWT.IO
JSON Web Tokens are an open, industry standard RFC 7519 method for representing claims securely between two parties.
jwt.io
firebase/php-jwt
php-jwt - PEAR package for JWT
github.com

D. Telegram bot to publish forum update

References:

Telegram Bot API
The Bot API is an HTTP-based interface created for developers keen on building bots for Telegram.To learn how to create…
core.telegram.org
Telegram Bot API
The Bot API is an HTTP-based interface created for developers keen on building bots for Telegram.To learn how to create…
core.telegram.org
Bots: An introduction for developers
Bots are third-party applications that run inside Telegram. Users can interact with bots by sending them messages, commands…
core.telegram.org

E. IPFS as alternative storage backend

Distributed storage. Need to figure out how to do locking.

References:

IPFS is the Distributed Web
A peer-to-peer hypermedia protocol to make the web faster, safer, and more open.
ipfs.io
cloutier/php-ipfs-api
php-ipfs-api - A client library for the IPFS API in PHP
github.com