From 1c6e9a5776476a1c6f8c5ace08ceaba64ffa05eb Mon Sep 17 00:00:00 2001
From: Jason Woofenden
Date: Sun, 8 Nov 2009 15:08:51 -0500
Subject: [PATCH] metaform has option for a session-based login-required
---
metaform.php | 10 +++++-----
metaform/main.html | 2 +-
metaform/preview.html | 2 +-
metaform/template.php | 18 +++++-------------
4 files changed, 12 insertions(+), 20 deletions(-)
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~.
Example:
diff --git a/metaform/preview.html b/metaform/preview.html
index 5f20a5b..e8a07d2 100644
--- a/metaform/preview.html
+++ b/metaform/preview.html
@@ -14,7 +14,7 @@