diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-09-01 21:09:56 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-09-01 21:09:56 -0400 |
commit | 68056e6d92285e184518bc8c7130bb49767623f3 (patch) | |
tree | c2a24370d8d132f85fb929580078adaf49a3c5fb /upload-msword.php | |
parent | 116af031a42db23e836633d5298a9595ad0803c7 (diff) |
Move config into one config.php file, add an index file, spit out complete HTML files, use CSSHEADmaster
Diffstat (limited to 'upload-msword.php')
-rw-r--r-- | upload-msword.php | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/upload-msword.php b/upload-msword.php index b234381..f2d93bf 100644 --- a/upload-msword.php +++ b/upload-msword.php @@ -1,6 +1,10 @@ <?php -header('Content-type: text/html; charset=utf-8'); -$dir = '/home/luke/j1-uploads'; +require('config.php'); +global $dir; + +global $title; +$title = 'Copy/Paste quotes from MS Word'; +include('header.php'); $set = isset($_POST['word_data']) && isset($_POST['filename']); if ($set) { @@ -23,9 +27,13 @@ if ($set) { } else { ?> <form method="post" action="upload-msword.php"> + Filename: <input type="text" name="filename" /> + Text: <textarea name="word_data"></textarea> <input type="submit" value="upload" /> </form> <?php -}
\ No newline at end of file +} + +include('footer.php'); |