]> git.ipfire.org Git - thirdparty/squid.git/commit - errors/templates/ERR_NO_RELAY
Error page stylesheets
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 15 Sep 2008 14:29:36 +0000 (02:29 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 15 Sep 2008 14:29:36 +0000 (02:29 +1200)
commit5b52cb6c9ffb5dc1c3584fba4de91d15c1255956
tree31473447b6ebe30ca3ad6fe0c42cb641f175d4e0
parent58d4b38bc55cf4690cb58e35e526e8bf6a3ce853
Error page stylesheets

* Adds %l option for adding CSS code to HTML output
* Adds error_stylesheet option to squid.conf for a filename to use
* Installs default CSS file errorpage.css in config directory
* Adds CSS tags and %l to all error templates
  (in a way that keeps the %l from causing trouble to older Squid)

Code portion loads the CSS file on startup, and merges the CSS as inline
with HTML wherever the %l option is present in HTML error files.
39 files changed:
errors/Makefile.am
errors/templates/ERR_ACCESS_DENIED
errors/templates/ERR_CACHE_ACCESS_DENIED
errors/templates/ERR_CACHE_MGR_ACCESS_DENIED
errors/templates/ERR_CANNOT_FORWARD
errors/templates/ERR_CONNECT_FAIL
errors/templates/ERR_DNS_FAIL
errors/templates/ERR_ESI
errors/templates/ERR_FORWARDING_DENIED
errors/templates/ERR_FTP_DISABLED
errors/templates/ERR_FTP_FAILURE
errors/templates/ERR_FTP_FORBIDDEN
errors/templates/ERR_FTP_NOT_FOUND
errors/templates/ERR_FTP_PUT_CREATED
errors/templates/ERR_FTP_PUT_ERROR
errors/templates/ERR_FTP_PUT_MODIFIED
errors/templates/ERR_FTP_UNAVAILABLE
errors/templates/ERR_ICAP_FAILURE
errors/templates/ERR_INVALID_REQ
errors/templates/ERR_INVALID_RESP
errors/templates/ERR_INVALID_URL
errors/templates/ERR_LIFETIME_EXP
errors/templates/ERR_NO_RELAY
errors/templates/ERR_ONLY_IF_CACHED_MISS
errors/templates/ERR_READ_ERROR
errors/templates/ERR_READ_TIMEOUT
errors/templates/ERR_SECURE_CONNECT_FAIL
errors/templates/ERR_SHUTTING_DOWN
errors/templates/ERR_SOCKET_FAILURE
errors/templates/ERR_TOO_BIG
errors/templates/ERR_UNSUP_REQ
errors/templates/ERR_URN_RESOLVE
errors/templates/ERR_WRITE_ERROR
errors/templates/ERR_ZERO_SIZE_OBJECT
errors/templates/generic
src/Makefile.am
src/cf.data.pre
src/errorpage.cc
src/structs.h