X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=messages.php;h=a762e5ed7429270e393d63e4b752b08f0f16ac4d;hb=019bb943365e512132a4a309921c014d3b80a69a;hp=9db80a136431c9c378fed518fce37509788a1244;hpb=856f805c6cbb6e712c662214f3b5821442f808a0;p=wfpl.git diff --git a/messages.php b/messages.php index 9db80a1..a762e5e 100644 --- a/messages.php +++ b/messages.php @@ -1,57 +1,49 @@ . - +# This program is in the public domain within the United States. Additionally, +# we waive copyright and related rights in the work worldwide through the CC0 +# 1.0 Universal public domain dedication, which can be found at +# http://creativecommons.org/publicdomain/zero/1.0/ -# This file is useful for putting message boxe(s) on the screen. +# This file is useful for putting message box(es) on the screen. If you include +# session_messages.php these messages can even persist accross http redirects +# (such as you should do after receiving a POST. # # Just call message("message here") whenever you have something to report. # -# Once a template is loaded, call display_messages(). Your template should have -# a section with ~message_text.html~ tag in it. # -# If you want a divider (any text between message boxes when there are multiple -# boxes) provide a sub-template section named "message_divider" INSIDE -# "message_box" at the begining of it. +# Once a template is loaded, call display_messages(). run.php will call +# display_messages() for you automaticallly after your main function returns +# (so long as you require_once this file.) If you want these messages to +# persist accross browser redirects, then you should +# require_once(__DIR__.'/'.'lib/wfpl/session_messages.php') +# +# Just make sure your template has a section with a +# ~message html~ tag in it. # -# If you'd like something around the group of all message boxes, you can put -# the whole thing in a sub-template section called "message_container" - # Simple example: # -# -#
~message_text.html~
-# - +# +#~message html~
+# +# # Full-featured example: # -# -#~message_text.html~
-# -#~message html~
+# +#