Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
metaform working. added some encodings and formatters.
[wfpl.git]
/
encode.php
diff --git
a/encode.php
b/encode.php
index
90ec6c8
..
c3c71a7
100644
(file)
--- a/
encode.php
+++ b/
encode.php
@@
-37,4
+37,13
@@
function enc_attr($str) {
return $str;
}
+# this is a stupid hack to work around html's stupid syntax for checkboxes
+function enc_checked($str) {
+ if($str == 'Yes') {
+ return '" checked="checked';
+ } else {
+ return '';
+ }
+}
+