threadr.lostcave.ddnss.de/macros
BodgeMaster 7e62d6f11e updated documentation 2021-09-02 15:47:01 +02:00
..
templates updated documentation 2021-09-02 15:47:01 +02:00
README.md updated documentation 2021-09-02 15:47:01 +02:00
pass0_templates.json started working on moving hard-coded things to config 2021-09-02 07:40:16 +02:00
pass1_misc.json messing around with macros to make ThreadR less LostCave specific 2021-09-02 07:49:10 +02:00
pass2_session.json messing around with macros to make ThreadR less LostCave specific 2021-09-02 07:49:10 +02:00
pass3_install-config.json fixed config parsing command 2021-09-02 09:14:39 +02:00

README.md

Files

[DIR] templates

contains the templates used by the macro processor

pass0_templates.json

Macros that insert templates

  • %NAVBAR% the navigation bar at the top of the website (requires PHP)
  • %BANNER_COOKIES% the cookie banner (requires PHP)

pass1_misc.json

Miscellaneous macros

  • %STYLESHEET% links stylesheet (HTML <head> section)
  • %PLEAZE_NO_CACHE% tell the browser not to cache this page (PHP, before any data is sent to the client)
  • %COLOR_BEIGE%, %COLOR_ORANGE%, %COLOR_BLUE%, %COLOR_PINK%, %COLOR_CYAN% color codes, format: #XXXXXX

pass2_session.json

Session handling macros

  • %REQUIRE_LOGIN% go to login page if not logged in
  • %NO_CHEAP_SESSION_STEALING% make sure that IP and user agent stay the same, otherwise end session
  • %SET_LOGIN_VARIABLE% sets the variable $login based on whether the user is logged in
  • %FORCE_LOGOUT% end session right here and now

pass3_install-config.json

Macros that grab the configuration values and inject them into the instance

  • %DOMAIN_NAME% the domain name of the instance
  • %CONTENT_DIR% the directory of the ThreadR home page on the webhost
  • %DB_PASSWORD% password for the MySQL server
  • %DB_USERNAME% username for the MySQL server
  • %ABOUT_PAGE% the template for the about page

README.md

this file