threadr.lostcave.ddnss.de/macros
BodgeMaster be97370acb added favicon macro 2021-10-29 04:54:12 +02:00
..
templates undoing changes, I guess 2021-09-08 10:29:58 +02:00
README.md added favicon macro 2021-10-29 04:54:12 +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 added favicon macro 2021-10-29 04:54:12 +02:00
pass2_session.json undoing changes, I guess 2021-09-08 10:29:58 +02:00
pass3_install-config.json un-hard-coded db name and server 2021-09-02 17:01:28 +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

  • %FAVICON% links the tab icon (HTML <head> section)
  • %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
  • %DB_NAME% name of the database to use
  • %DB_SERVER% address of the mysql server
  • %ABOUT_PAGE% the template for the about page

README.md

this file