JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
wfpl.git
14 years agoadd: _REQUEST_cut()
Jason Woofenden [Mon, 18 Apr 2011 08:29:30 +0000 (04:29 -0400)]
add: _REQUEST_cut()

14 years agotar.php better and configurable tmpdir
Jason Woofenden [Mon, 18 Apr 2011 03:43:23 +0000 (23:43 -0400)]
tar.php better and configurable tmpdir

14 years agoBREAKING: prefix "basename" var with "wfpl_"
Jason Woofenden [Mon, 18 Apr 2011 03:30:57 +0000 (23:30 -0400)]
BREAKING: prefix "basename" var with "wfpl_"

previous versions set $GLOBALS['basename'] and the "basename" variable in the
main site template.

Now it's "wfpl_basename" in both cases.

Also, stop checking for $wfpl_basename.css

14 years agoadd site-template, switch css->less
Jason Woofenden [Fri, 15 Apr 2011 22:02:14 +0000 (18:02 -0400)]
add site-template, switch css->less

14 years agonew options (don't do anything yet)
Jason Woofenden [Fri, 15 Apr 2011 18:40:35 +0000 (14:40 -0400)]
new options (don't do anything yet)

14 years agometaform impl: checkbox opts as bool in php
Jason Woofenden [Fri, 15 Apr 2011 18:35:53 +0000 (14:35 -0400)]
metaform impl: checkbox opts as bool in php

14 years agodb_printf(): add %$ (not encoded) param
Jason Woofenden [Sun, 10 Apr 2011 01:56:54 +0000 (21:56 -0400)]
db_printf(): add %$ (not encoded) param

14 years agocss "space between" hack only for margins
Jason Woofenden [Fri, 18 Mar 2011 02:13:48 +0000 (22:13 -0400)]
css "space between" hack only for margins

14 years agometaform css: fix spacing hack for legends
Jason Woofenden [Wed, 9 Mar 2011 19:49:39 +0000 (14:49 -0500)]
metaform css: fix spacing hack for legends

14 years agometaform: include charset metatag
Jason Woofenden [Wed, 9 Mar 2011 19:16:13 +0000 (14:16 -0500)]
metaform: include charset metatag

14 years agometaform: fix typo (cancel button feature)
Jason Woofenden [Mon, 21 Feb 2011 10:53:06 +0000 (05:53 -0500)]
metaform: fix typo (cancel button feature)

14 years agometaform: fix form beginning with section
Jason Woofenden [Mon, 21 Feb 2011 04:43:38 +0000 (23:43 -0500)]
metaform: fix form beginning with section

14 years agometaform: demo pulldown syntax
Jason Woofenden [Sat, 19 Feb 2011 02:08:03 +0000 (21:08 -0500)]
metaform: demo pulldown syntax

14 years agoadd: enc_pulled()
Jason Woofenden [Thu, 23 Dec 2010 05:50:19 +0000 (00:50 -0500)]
add: enc_pulled()

15 years agomade file_run() able to pass args
Jason Woofenden [Thu, 18 Nov 2010 11:08:05 +0000 (06:08 -0500)]
made file_run() able to pass args

15 years agofix format_mdy_to_ymd() to leave '' as is
Jason Woofenden [Wed, 10 Nov 2010 10:10:14 +0000 (05:10 -0500)]
fix format_mdy_to_ymd() to leave '' as is

15 years agometaform: make checkbox caption clickable
Jason Woofenden [Tue, 9 Nov 2010 10:11:52 +0000 (05:11 -0500)]
metaform: make checkbox caption clickable

15 years agoimprove :first-child hack
Jason Woofenden [Tue, 9 Nov 2010 09:59:14 +0000 (04:59 -0500)]
improve :first-child hack

15 years agometaform: use new syntax to show a template section
Jason Woofenden [Tue, 9 Nov 2010 09:19:23 +0000 (04:19 -0500)]
metaform: use new syntax to show a template section

15 years agometaform: fix table (missing <tr> and </tr>)
Jason Woofenden [Tue, 9 Nov 2010 05:09:07 +0000 (00:09 -0500)]
metaform: fix table (missing <tr> and </tr>)

15 years agoadded tem_auto_once() and friends
Jason Woofenden [Tue, 9 Nov 2010 03:55:13 +0000 (22:55 -0500)]
added tem_auto_once() and friends

15 years agometaform: autofocus
Jason Woofenden [Mon, 8 Nov 2010 05:40:03 +0000 (00:40 -0500)]
metaform: autofocus

15 years agometaform: fix typo and improve example
Jason Woofenden [Mon, 8 Nov 2010 05:37:14 +0000 (00:37 -0500)]
metaform: fix typo and improve example

15 years agometaform: fix name of title tem-sub
Jason Woofenden [Wed, 3 Nov 2010 21:48:23 +0000 (17:48 -0400)]
metaform: fix name of title tem-sub

15 years agometaform: can set options for pulldown/radio
Jason Woofenden [Sat, 30 Oct 2010 05:58:24 +0000 (01:58 -0400)]
metaform: can set options for pulldown/radio

15 years agometaform: added fieldset support
Jason Woofenden [Sat, 30 Oct 2010 00:49:22 +0000 (20:49 -0400)]
metaform: added fieldset support

15 years agometaform: improve and markdown INSTALL
Jason Woofenden [Fri, 29 Oct 2010 18:17:47 +0000 (14:17 -0400)]
metaform: improve and markdown INSTALL

15 years agoAPI CHANGE remove "format" arg from pulldown()
Jason Woofenden [Fri, 29 Oct 2010 06:30:09 +0000 (02:30 -0400)]
API CHANGE remove "format" arg from pulldown()

Both common option formats (PULLDOWN_ARRAY and PULDOWN_2D) are supported (and
auto-detected), and can be mixed. PULLDOWN_HASH support is removed (It wasn't
great anyway because you couldn't put in two options with the same value.)

15 years agometaform: add radio button support
Jason Woofenden [Thu, 28 Oct 2010 23:48:20 +0000 (19:48 -0400)]
metaform: add radio button support

15 years agometaform: hide img/thumb when blank
Jason Woofenden [Wed, 27 Oct 2010 04:30:42 +0000 (00:30 -0400)]
metaform: hide img/thumb when blank

15 years agoadd cancel button to edit/new page
Jason Woofenden [Tue, 26 Oct 2010 19:28:34 +0000 (15:28 -0400)]
add cancel button to edit/new page

15 years agostop including headers that should be in code/config.php
Jason Woofenden [Tue, 26 Oct 2010 19:16:02 +0000 (15:16 -0400)]
stop including headers that should be in code/config.php

15 years agoCHANGE LOGIN-REQUIRED API
Jason Woofenden [Tue, 26 Oct 2010 19:07:02 +0000 (15:07 -0400)]
CHANGE LOGIN-REQUIRED API

15 years agometaform: auto-add "back to listing" links
Jason Woofenden [Tue, 26 Oct 2010 19:06:39 +0000 (15:06 -0400)]
metaform: auto-add "back to listing" links

15 years agometaform: use new wysiwyg editor (ckeditor)
Jason Woofenden [Tue, 26 Oct 2010 17:52:56 +0000 (13:52 -0400)]
metaform: use new wysiwyg editor (ckeditor)

15 years agometaform: revamp codegen, fix hidden fields
Jason Woofenden [Tue, 26 Oct 2010 17:40:30 +0000 (13:40 -0400)]
metaform: revamp codegen, fix hidden fields

15 years agometaform codegen: use tem_auto_unset()
Jason Woofenden [Mon, 25 Oct 2010 05:30:26 +0000 (01:30 -0400)]
metaform codegen: use tem_auto_unset()

15 years agomake tem_set() default value to true
Jason Woofenden [Mon, 25 Oct 2010 05:39:09 +0000 (01:39 -0400)]
make tem_set() default value to true

So now that show('section') is depricated, we can use set('section')

15 years agoadd tem_auto_unset()
Jason Woofenden [Mon, 25 Oct 2010 04:57:14 +0000 (00:57 -0400)]
add tem_auto_unset()

15 years agorewrote template documentation
Jason Woofenden [Sun, 24 Oct 2010 01:14:38 +0000 (21:14 -0400)]
rewrote template documentation

15 years agoxhtml -> html5
Jason Woofenden [Sun, 24 Oct 2010 00:51:40 +0000 (20:51 -0400)]
xhtml -> html5

15 years agometaform's .htaccess: expires and css bump rewrite
Jason Woofenden [Sun, 24 Oct 2010 00:31:51 +0000 (20:31 -0400)]
metaform's .htaccess: expires and css bump rewrite

15 years agoform gen: refactor and simplify optional output
Jason Woofenden [Sat, 23 Oct 2010 23:45:45 +0000 (19:45 -0400)]
form gen: refactor and simplify optional output

15 years agometaform: if submit-only: s/*_edit_main/*_main/
Jason Woofenden [Sat, 23 Oct 2010 22:50:25 +0000 (18:50 -0400)]
metaform: if submit-only: s/*_edit_main/*_main/

15 years agometaform: always start password fields blank
Jason Woofenden [Sat, 23 Oct 2010 22:34:36 +0000 (18:34 -0400)]
metaform: always start password fields blank

15 years agometaform: indent html with tabs
Jason Woofenden [Sat, 23 Oct 2010 22:33:57 +0000 (18:33 -0400)]
metaform: indent html with tabs

15 years agometaform: fixed detection of file/image upload
Jason Woofenden [Sat, 23 Oct 2010 22:22:31 +0000 (18:22 -0400)]
metaform: fixed detection of file/image upload

15 years agomake metaform support file uploads
Jason Woofenden [Tue, 5 Oct 2010 20:56:14 +0000 (16:56 -0400)]
make metaform support file uploads

15 years agoMerge branch 'master' of gitorious.org:wfpl/wfpl
Jason Woofenden [Tue, 5 Oct 2010 08:21:03 +0000 (04:21 -0400)]
Merge branch 'master' of gitorious.org:wfpl/wfpl

15 years agofix docs for cms_display()
Jason Woofenden [Wed, 15 Sep 2010 22:12:15 +0000 (18:12 -0400)]
fix docs for cms_display()

15 years agomake metaform tarballs come with install doc
Jason Woofenden [Fri, 23 Jul 2010 05:21:49 +0000 (01:21 -0400)]
make metaform tarballs come with install doc

15 years agometaform: pretty captions in e-mails
Jason Woofenden [Sat, 10 Jul 2010 21:38:27 +0000 (17:38 -0400)]
metaform: pretty captions in e-mails

15 years agoadd unit_test_func(), convert unit_tests/format.php to use it
Jason Woofenden [Mon, 12 Apr 2010 01:27:06 +0000 (21:27 -0400)]
add unit_test_func(), convert unit_tests/format.php to use it

15 years agofix format_options() (it did nothing before)
Jason Woofenden [Fri, 9 Apr 2010 17:53:41 +0000 (13:53 -0400)]
fix format_options() (it did nothing before)

15 years agoadded unit tests for format_options
Jason Woofenden [Fri, 9 Apr 2010 17:47:33 +0000 (13:47 -0400)]
added unit tests for format_options

15 years agorevamp metaform so php holds db/form data as hash
Jason Woofenden [Tue, 6 Apr 2010 03:30:21 +0000 (23:30 -0400)]
revamp metaform so php holds db/form data as hash

15 years agoadd: tem_sets()
Jason Woofenden [Tue, 6 Apr 2010 03:28:43 +0000 (23:28 -0400)]
add: tem_sets()

15 years agoadd db_insert_assoc() and db_update_assoc()
Jason Woofenden [Tue, 6 Apr 2010 01:15:10 +0000 (21:15 -0400)]
add db_insert_assoc() and db_update_assoc()

15 years agoadded ordinalize() and tests for it
Jason Woofenden [Thu, 1 Apr 2010 11:43:49 +0000 (07:43 -0400)]
added ordinalize() and tests for it

15 years agodb_reposition(): fixed error messages
Jason Woofenden [Mon, 29 Mar 2010 19:46:25 +0000 (15:46 -0400)]
db_reposition(): fixed error messages

15 years agofixed db_reposition(x, 0)
Jason Woofenden [Mon, 29 Mar 2010 19:42:02 +0000 (15:42 -0400)]
fixed db_reposition(x, 0)

15 years agoadded unit test for db_reposition()
Jason Woofenden [Mon, 29 Mar 2010 19:41:34 +0000 (15:41 -0400)]
added unit test for db_reposition()

15 years agomade format_int() fail for 1.0 -> 10
Jason Woofenden [Mon, 29 Mar 2010 19:16:58 +0000 (15:16 -0400)]
made format_int() fail for 1.0 -> 10

format_int() and friends strip all not-numeric characters. This leads to
unexpected results when the user enters something with a decimal point.

ie 1.0 -> 10,  12.5 -> 125, etc

15 years agoadded more unit tests
Jason Woofenden [Sat, 27 Mar 2010 06:44:01 +0000 (02:44 -0400)]
added more unit tests

15 years agoencode.php: update comments/examples
Jason Woofenden [Sat, 27 Mar 2010 04:42:38 +0000 (00:42 -0400)]
encode.php: update comments/examples

15 years agoadded: db_reposition() (renumbering not tested)
Jason Woofenden [Tue, 23 Feb 2010 19:25:47 +0000 (14:25 -0500)]
added: db_reposition() (renumbering not tested)

15 years agosessions: use $_COOKIE instead of $_REQUEST
Jason Woofenden [Tue, 2 Feb 2010 06:42:15 +0000 (01:42 -0500)]
sessions: use $_COOKIE instead of $_REQUEST

No idea why, but on some systems $_REQUEST fails to contain the $_COOKIE
variables. (Despite variables_order = "GPCS")

15 years agometaform e-mail updated for new template format
Jason Woofenden [Tue, 12 Jan 2010 10:29:06 +0000 (05:29 -0500)]
metaform e-mail updated for new template format

15 years agometaform e-mails default to from: noreply@[thisdomain]
Jason Woofenden [Tue, 12 Jan 2010 09:45:35 +0000 (04:45 -0500)]
metaform e-mails default to from: noreply@[thisdomain]

15 years agooops, was checking for login twice
Jason Woofenden [Tue, 12 Jan 2010 09:29:47 +0000 (04:29 -0500)]
oops, was checking for login twice

16 years agometaform css: oops, caption bold not field
Jason Woofenden [Fri, 20 Nov 2009 20:51:22 +0000 (15:51 -0500)]
metaform css: oops, caption bold not field

16 years agoadded missing css for new-layout forms
Jason Woofenden [Fri, 20 Nov 2009 07:03:18 +0000 (02:03 -0500)]
added missing css for new-layout forms

16 years agoadded tem_auto_nonempty()
Jason Woofenden [Fri, 20 Nov 2009 06:24:31 +0000 (01:24 -0500)]
added tem_auto_nonempty()

16 years agosections are shown if value is set, more &refs
Jason Woofenden [Fri, 6 Nov 2009 17:01:55 +0000 (12:01 -0500)]
sections are shown if value is set, more &refs

Previously, when deciding if a template section should be expanded/shown, this
logic was used: if($value). This does not always behave as expected. For
example if you set the value to the string "0" it will not be displayed.

With the new code, any string (including "") or integer (including 0) will
cause the template section to be displayed. To hide the section, set the value
to null or false (or unset it).

The commit after this one adds a template section argument "nonempty" which
will cause that template section not to be shown if the value is the empty
string.

16 years agomerge_templates now merges to any level, new api
Jason Woofenden [Fri, 6 Nov 2009 13:06:04 +0000 (08:06 -0500)]
merge_templates now merges to any level, new api

New api: first argument is edited, so it contains references to 2nd. (ie it's
fast, but you can't use what you pass as the 2nd argument anymore.

This could be fixed by careful copying and reference updating as sub-templates
are copied to the first argument.

16 years agoadded: tem_merge(), tem_merge_file()
Jason Woofenden [Fri, 6 Nov 2009 11:20:19 +0000 (06:20 -0500)]
added: tem_merge(), tem_merge_file()

16 years agometaform: fixed bug when first field was an image
Jason Woofenden [Wed, 11 Nov 2009 22:34:04 +0000 (17:34 -0500)]
metaform: fixed bug when first field was an image

16 years agometaform: take advantage of tem_auto_show()
Jason Woofenden [Sun, 8 Nov 2009 20:41:10 +0000 (15:41 -0500)]
metaform: take advantage of tem_auto_show()

16 years agofixed encoding of spaces in pulldown value
Jason Woofenden [Sun, 8 Nov 2009 20:26:44 +0000 (15:26 -0500)]
fixed encoding of spaces in pulldown value

16 years agometaform has option for a session-based login-required
Jason Woofenden [Sun, 8 Nov 2009 20:08:51 +0000 (15:08 -0500)]
metaform has option for a session-based login-required

16 years agometaform's updated for new template engine
Jason Woofenden [Sun, 8 Nov 2009 19:39:19 +0000 (14:39 -0500)]
metaform's updated for new template engine

16 years agoparse_template deleted "<!--" and "0" sections
Jason Woofenden [Sun, 8 Nov 2009 19:29:37 +0000 (14:29 -0500)]
parse_template deleted "<!--" and "0" sections

parse_template used to delete "<!--" or "0" when they occured in a place where
they were the entirity of a static string piece. Examples:

~a~0~b~

Template to output a template:

~a~<!--~~b~~-->~c~

16 years agoadded tem_auto_last() and tem_auto_first()
Jason Woofenden [Wed, 4 Nov 2009 11:14:09 +0000 (06:14 -0500)]
added tem_auto_last() and tem_auto_first()

16 years agofixed/rewrote display_messages(), added columnize
Jason Woofenden [Wed, 4 Nov 2009 09:29:52 +0000 (04:29 -0500)]
fixed/rewrote display_messages(), added columnize

16 years agosilenced warning when evenodd called with no data
Jason Woofenden [Wed, 4 Nov 2009 10:48:35 +0000 (05:48 -0500)]
silenced warning when evenodd called with no data

16 years agotem_auto_evenodd() starts on even
Jason Woofenden [Wed, 4 Nov 2009 09:29:23 +0000 (04:29 -0500)]
tem_auto_evenodd() starts on even

16 years agotem_show() fails quietly when the template section is missing
Jason Woofenden [Wed, 4 Nov 2009 00:41:13 +0000 (19:41 -0500)]
tem_show() fails quietly when the template section is missing

16 years agodon't try to merge in the html file if there isn't one
Jason Woofenden [Tue, 3 Nov 2009 23:56:50 +0000 (18:56 -0500)]
don't try to merge in the html file if there isn't one

16 years agotem() now produces a valid empty template object
Jason Woofenden [Tue, 3 Nov 2009 23:54:12 +0000 (18:54 -0500)]
tem() now produces a valid empty template object

16 years agometaform: display page has edit link at top
Jason Woofenden [Tue, 3 Nov 2009 22:34:16 +0000 (17:34 -0500)]
metaform: display page has edit link at top

16 years agoremoved debugging from format_image_w_h_thumb_w_h()
Jason Woofenden [Tue, 9 Jun 2009 15:39:51 +0000 (11:39 -0400)]
removed debugging from format_image_w_h_thumb_w_h()

16 years agoMerge commit 'josh/master'
Jason Woofenden [Tue, 3 Nov 2009 22:47:06 +0000 (17:47 -0500)]
Merge commit 'josh/master'

16 years agometaform forms now have captions above fields
Jason Woofenden [Thu, 8 Oct 2009 04:39:09 +0000 (00:39 -0400)]
metaform forms now have captions above fields

16 years ago* template.php (tem->merge): only append expansions for show()n templates.
Josh Grams [Sun, 23 Aug 2009 23:52:44 +0000 (19:52 -0400)]
* template.php (tem->merge): only append expansions for show()n templates.

16 years ago* db.php (db_update): don't assume has numeric keys.
Josh Grams [Sun, 23 Aug 2009 23:50:23 +0000 (19:50 -0400)]
* db.php (db_update): don't assume  has numeric keys.

16 years ago* run.php, run2.php: doc fixes.
Josh Grams [Sat, 22 Aug 2009 17:37:22 +0000 (13:37 -0400)]
* run.php, run2.php: doc fixes.

16 years ago* run.php: factor merge out to template.php (now supports both APIs).
Josh Grams [Sat, 22 Aug 2009 17:30:17 +0000 (13:30 -0400)]
* run.php: factor merge out to template.php (now supports both APIs).

16 years ago* db.php (db_get_assoc, db_get_assocs): new functions to ease use of new template...
Josh Grams [Sat, 22 Aug 2009 17:29:23 +0000 (13:29 -0400)]
* db.php (db_get_assoc, db_get_assocs): new functions to ease use of new template code.

16 years ago* run2.php (run_php): internal variable rename.
Josh Grams [Sat, 22 Aug 2009 17:28:18 +0000 (13:28 -0400)]
* run2.php (run_php): internal variable rename.

16 years ago* run.php: restored old run.php since it should work with both template APIs.
Josh Grams [Sat, 22 Aug 2009 16:22:59 +0000 (12:22 -0400)]
* run.php: restored old run.php since it should work with both template APIs.