summaryrefslogtreecommitdiff
path: root/upload-org.php
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-09-01 21:09:56 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-09-01 21:09:56 -0400
commit68056e6d92285e184518bc8c7130bb49767623f3 (patch)
treec2a24370d8d132f85fb929580078adaf49a3c5fb /upload-org.php
parent116af031a42db23e836633d5298a9595ad0803c7 (diff)
Move config into one config.php file, add an index file, spit out complete HTML files, use CSSHEADmaster
Diffstat (limited to 'upload-org.php')
-rw-r--r--upload-org.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/upload-org.php b/upload-org.php
index 40f403f..e752232 100644
--- a/upload-org.php
+++ b/upload-org.php
@@ -1,5 +1,10 @@
<?php
-$dir = '/home/luke/j1-uploads/';
+require('config.php');
+global $dir;
+
+global $title;
+$title = 'Copy/Paste quotes from Org-Mode';
+include('header.php');
$set = isset($_POST['org_data']) && isset($_POST['filename']);
if ($set) {
@@ -11,8 +16,12 @@ if ($set) {
} else {
?>
<form method="post" action="upload-msword.php">
+ Filename:
<input type="text" name="filename" />
+ Text:
<textarea name="org_data"></textarea>
</form>
<?php
}
+
+include('footer.php');