From: Jason Woofenden Date: Tue, 3 Mar 2015 14:31:49 +0000 (-0500) Subject: metaform: separate wfpl_main.php from config.php X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl.git;a=commitdiff_plain;h=ca972885f2beb03f94cc8b8418d40bf715a7cb4d metaform: separate wfpl_main.php from config.php --- diff --git a/metaform.php b/metaform.php index c604d9a..bf90466 100644 --- a/metaform.php +++ b/metaform.php @@ -599,7 +599,8 @@ function download_tar() { $files = array( "README" => "These files are meant to work with wfpl.\n\nSee: http://sametwice.com/wfpl\n", ".htaccess" => make_htaccess(), - "config.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(), diff --git a/metaform/htaccess b/metaform/htaccess index 4cb28ed..ebf4f8b 100644 --- a/metaform/htaccess +++ b/metaform/htaccess @@ -34,7 +34,7 @@ RewriteEngine on # Unfortunately, the rewrite rules only work with absolute paths, so if your # files are not at the top level of the domain, you'll have to customize this # part. Here's the config for running at the top level: -RewriteRule ^[^/.]*$ /config.php [L] +RewriteRule ^[^/.]*$ /wfpl_main.php [L] # use this line instead if you have this (.htaccess) file and your php and html # files in the ~form~ directory: diff --git a/metaform/wfpl_main.php b/metaform/wfpl_main.php new file mode 100644 index 0000000..86b0693 --- /dev/null +++ b/metaform/wfpl_main.php @@ -0,0 +1,9 @@ +