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
added: db_reposition() (renumbering not tested)
[wfpl.git]
/
metaform.php
diff --git
a/metaform.php
b/metaform.php
index
0f7563e
..
ee5b942
100644
(file)
--- a/
metaform.php
+++ b/
metaform.php
@@
-200,7
+200,7
@@
function view_sql() {
function find_always_field($fields) {
foreach($fields as $field) {
list($name, $type, $input, $format, $sql) = $field;
function find_always_field($fields) {
foreach($fields as $field) {
list($name, $type, $input, $format, $sql) = $field;
- if($input != 'submit' && $input != 'checkbox' && $input != 'radio') {
+ if($input != 'submit' && $input != 'image' && $input != 'checkbox' && $input != 'radio') {
return $name;
}
}
return $name;
}
}
@@
-434,12
+434,16
@@
function make_php() {
$tem->show('opt_db_5');
}
if($GLOBALS['opt_email'] == 'Yes') {
$tem->show('opt_db_5');
}
if($GLOBALS['opt_email'] == 'Yes') {
+ $this_domain = $_SERVER['HTTP_HOST'];
+ if(substr($this_domain, -2) == '.l') {
+ $this_domain = substr($this_domain, 0, -1) . 'com';
+ }
+ $tem->set('this_domain', $this_domain);
$tem->show('opt_email_1');
$tem->show('opt_email_2');
}
if($GLOBALS['opt_pass'] == 'Yes') {
$tem->show('opt_pass');
$tem->show('opt_email_1');
$tem->show('opt_email_2');
}
if($GLOBALS['opt_pass'] == 'Yes') {
$tem->show('opt_pass');
- $tem->show('opt_pass');
}
return $tem->run();
}
}
return $tem->run();
}