From: Jason Woofenden
Date: Sun, 8 Nov 2009 20:08:51 +0000 (-0500)
Subject: metaform has option for a session-based login-required
X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;h=1c6e9a5776476a1c6f8c5ace08ceaba64ffa05eb;p=wfpl.git
metaform has option for a session-based login-required
---
diff --git a/metaform.php b/metaform.php
index f90ad17..0f7563e 100644
--- a/metaform.php
+++ b/metaform.php
@@ -87,8 +87,8 @@ function metaform() {
tem_set('opt_listing', $GLOBALS['opt_listing']);
$GLOBALS['opt_display'] = format_yesno($_REQUEST['opt_display']);
tem_set('opt_display', $GLOBALS['opt_display']);
- $GLOBALS['opt_http_pass'] = format_yesno($_REQUEST['opt_http_pass']);
- tem_set('opt_http_pass', $GLOBALS['opt_http_pass']);
+ $GLOBALS['opt_pass'] = format_yesno($_REQUEST['opt_pass']);
+ tem_set('opt_pass', $GLOBALS['opt_pass']);
}
if(isset($_REQUEST['fields'])) {
@@ -437,9 +437,9 @@ function make_php() {
$tem->show('opt_email_1');
$tem->show('opt_email_2');
}
- if($GLOBALS['opt_http_pass'] == 'Yes') {
- $tem->show('opt_http_pass_1');
- $tem->show('opt_http_pass_2');
+ if($GLOBALS['opt_pass'] == 'Yes') {
+ $tem->show('opt_pass');
+ $tem->show('opt_pass');
}
return $tem->run();
}
diff --git a/metaform/main.html b/metaform/main.html
index 80f7d2b..f698d14 100644
--- a/metaform/main.html
+++ b/metaform/main.html
@@ -30,7 +30,7 @@
Provide a "Display" page.
-
Password protect this form (with HTTP authentication).
+
Password protect this form.
Below, specify the fields you'd like in your form, one field per line. After each field name, put at least one space, then the field type. The following field types are available: , ~type html~.