JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
allow / in email subjects and names
[wfpl.git] / metaform.php
index 3a6e70d..deba1de 100644 (file)
 
 # This file writes the code for you (sql, php, html, email) to handle a form.
 
-require_once('code/wfpl/template.php');
-require_once('code/wfpl/http.php');
-require_once('code/wfpl/tar.php');
-require_once('code/wfpl/format.php');
+require_once(__DIR__ . '/template.php');
+require_once(__DIR__ . '/http.php');
+require_once(__DIR__ . '/tar.php');
+require_once(__DIR__ . '/format.php');
 
 # see code/wfpl/metaform/template.html for the html templates for these elements
 $GLOBALS['types'] = array(
@@ -30,7 +30,7 @@ $GLOBALS['types'] = array(
        'name' =>       array('textbox',     'oneline',    'varchar(200) binary'),
        'textbox' =>    array('textbox',     'oneline',    'varchar(200) binary'),
        'int' =>        array('textbox',     'int',        'int'),
-       'decimal' =>    array('textbox',     'decimal',    'decimal(12,12)'),
+       'decimal' =>    array('textbox',     'decimal',    'decimal(12,2)'),
        'bigint' =>     array('textbox',     'int',        'varchar(100) binary'), # up to 100 digits, stored as a string
        'zip' =>        array('textbox',     'zip',        'varchar(20) binary'),
        'email' =>      array('email',       'email',      'varchar(100) binary'),