From 3f99dbe42925b8b208ae6e46db803c89fd7851c1 Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Mon, 24 Sep 2007 00:28:19 -0400 Subject: [PATCH] updated coding conventions and fixed states pulldown --- metaform/template.html | 2 +- metaform/template.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/metaform/template.html b/metaform/template.html index a7d84d5..a4c088e 100644 --- a/metaform/template.html +++ b/metaform/template.html @@ -36,7 +36,7 @@
- +
~caption.html~: ~caption.html~: ~caption.html~: ~caption.html~: ~caption.html~:
~caption.html~: ~caption.html~: ~caption.html~? ~caption.html~?
~caption.html~: ~caption.html~: ~caption.html~: ~caption.html~: ~caption.html~:
~caption.html~: ~caption.html~: ~caption.html~: ~caption.html~? ~caption.html~?
diff --git a/metaform/template.php b/metaform/template.php index e86d791..14f88f1 100644 --- a/metaform/template.php +++ b/metaform/template.php @@ -15,8 +15,8 @@ $GLOBALS['~form_name~_form_recipient'] = "fixme@example.com"; # To save results to a database, you'll need to create the ~form_name~ table -# (the file ~form_name~.sql should help with this), and create a file called -# 'db_connect.php' or 'code/db_connect.php' which calls db_connect() see: +# (the file ~form_name~.sql should help with this), and create the file +# 'code/db_connect.php' which calls db_connect() see: # code/wfpl/examples/db_connect.php # # if you rename any of the database fields, you'll need to update this: @@ -38,7 +38,7 @@ require_once('code/wfpl/template.php'); require_once('code/wfpl/format.php'); require_once('code/wfpl/messages.php'); require_once('code/wfpl/email.php'); -require_once('db_connect.php'); +require_once('code/db_connect.php'); require_once('code/wfpl/upload.php'); function ~form_name~_get_fields() { @@ -78,7 +78,7 @@ function ~form_name~_display_listing($where = 'order by ~always_field~ limit 100 return true; } -function ~form_name~() { +function ~form_name~_main() { # To remove password protection, just delete this block: if (!isset($_SERVER['PHP_AUTH_USER']) || $_SERVER['PHP_AUTH_USER'] != AUTH_USER || $_SERVER['PHP_AUTH_PW'] != AUTH_PASS) { header('WWW-Authenticate: Basic realm="' . AUTH_REALM . '"'); -- 1.7.10.4