require_once(__DIR__.'/'.'tar.php');
require_once(__DIR__.'/'.'format.php');
-# see code/wfpl/metaform/template.html for the html templates for these elements
+# see wfpl/metaform/template.html for the html templates for these elements
$GLOBALS['types'] = array(
# type input format sql
'varname' => array('textbox', 'varname', 'varchar(50) binary'),
$url = ereg_replace('view_php=[^&]*', 'edit=yes', $url);
$url = ereg_replace('download_tar=[^&]*', 'edit=yes', $url);
$url = ereg_replace('/[a-z0-9_.]*\?', '/?', $url);
- $url = str_replace('jasonwoof.l', 'jasonwoof.com', $url); # so that code generated on Jason's home computer will display a publically accessible link.
return $url;
}
$admin_name = $GLOBALS['file_name'];
$nice_name = $GLOBALS['public_file_name'];
$files = array(
- "INSTALL" => read_whole_file(__DIR__.'/'.'metaform/INSTALL'),
+ "README" => "These files are meant to work with wfpl.\n\nSee: http://sametwice.com/wfpl\n",
".htaccess" => make_htaccess(),
- "config.php" => "<?php\n\nrequire_once(__DIR__.'/'.'inc/wfpl/main.php');\nmetaform_main();\n",
+ "config.php" => "<?php\n\n# put your site-wide configuration here\n",
+ "wfpl_main.php" => read_whole_file(__DIR__.'/'.'metaform/wfpl_main.php'),
"styl.styl" => read_whole_file(__DIR__.'/'.'metaform/styl.styl'),
"template.html" => read_whole_file(__DIR__.'/'.'metaform/site-template.html'),
"$admin_name.html" => make_html(),