threadr.lostcave.ddnss.de/macros
BodgeMaster 2c91728544 moved variable grabbler files out of the way so they can have more descriptive names 2021-09-02 06:38:21 +02:00
..
README.md moved variable grabbler files out of the way so they can have more descriptive names 2021-09-02 06:38:21 +02:00
banner_cookies.template moved variable grabbler files out of the way so they can have more descriptive names 2021-09-02 06:38:21 +02:00
navbar.template moved variable grabbler files out of the way so they can have more descriptive names 2021-09-02 06:38:21 +02:00
variable_grabbler.pass0.json moved variable grabbler files out of the way so they can have more descriptive names 2021-09-02 06:38:21 +02:00
variable_grabbler.pass1.json moved variable grabbler files out of the way so they can have more descriptive names 2021-09-02 06:38:21 +02:00
variable_grabbler.pass2.json moved variable grabbler files out of the way so they can have more descriptive names 2021-09-02 06:38:21 +02:00

README.md

Files

variable_grabbler.pass0.json, variable_grabbler.pass1.json, variable_grabbler.pass2.json

These are the the config files for ../variable_grabbler.py. A short description of what the variables do and where they should go:

  • %NAVBAR% (in HTML part of PHP file) → the Navbar, also includes an automatic logout-function if the user is in a place where they should never be logged in (triggered by absence of the $login variable)
  • %SET_LOGIN_VARIABLE% (in PHP code) → sets the $login variable in PHP by detecting if the user has a valid logged in session
  • %NO_CHEAP_LOGIN_STEALING% (in PHP code, before any non-header data is sent to client) → prevents the most primitive cookie stealing attempts, nothing advanced though
  • %BANNER_COOKIES% (in HTML part of PHP file) → the cookie banner that every web page has
  • %PLEAZE_NO_CACHE% (in PHP code, before any non-header data is sent to client) → requests the browser to not cache this page
  • %FORCE_LOGOUT% (in PHP code) → logout immediately (obviously less common than the other variables...)
  • %CONTENT_DIR% (anywhere in code) → the path to the ThreadR directory (without domain name)
  • %STYLESHEET% (in HTML) → adds the tag linking the stylesheet
  • %REQUIRE_LOGIN% (in PHP code, before any non-header data is sent to client) → sends users to the login page if they are not logged in

navbar.template, banner_cookies.template

file templates for variables from the code variable replacement system

README.md

this file