| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,40 @@ |
| 1 |
+<?php |
|
| 2 |
+// ---------------------------------------------------------------------- |
|
| 3 |
+// Copyright (c) 2007 by Tammy Keefer |
|
| 4 |
+// Based on eFiction 1.1 |
|
| 5 |
+// Copyright (C) 2003 by Rebecca Smallwood. |
|
| 6 |
+// http://efiction.sourceforge.net/ |
|
| 7 |
+// ---------------------------------------------------------------------- |
|
| 8 |
+// LICENSE |
|
| 9 |
+// |
|
| 10 |
+// This program is free software; you can redistribute it and/or |
|
| 11 |
+// modify it under the terms of the GNU General Public License (GPL) |
|
| 12 |
+// as published by the Free Software Foundation; either version 2 |
|
| 13 |
+// of the License, or (at your option) any later version. |
|
| 14 |
+// |
|
| 15 |
+// This program is distributed in the hope that it will be useful, |
|
| 16 |
+// but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 17 |
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 18 |
+// GNU General Public License for more details. |
|
| 19 |
+// |
|
| 20 |
+// To read the license please visit http://www.gnu.org/copyleft/gpl.html |
|
| 21 |
+// ---------------------------------------------------------------------- |
|
| 22 |
+ |
|
| 23 |
+$current = "home"; |
|
| 24 |
+ |
|
| 25 |
+include ("header.php");
|
|
| 26 |
+ |
|
| 27 |
+//make a new TemplatePower object |
|
| 28 |
+ |
|
| 29 |
+if(file_exists("$skindir/index.tpl")) $tpl = new TemplatePower( "$skindir/index.tpl" );
|
|
| 30 |
+else $tpl = new TemplatePower("default_tpls/index.tpl");
|
|
| 31 |
+//let TemplatePower do its thing, parsing etc. |
|
| 32 |
+ |
|
| 33 |
+include("includes/pagesetup.php");
|
|
| 34 |
+$query = dbquery("SELECT message_text FROM ".TABLEPREFIX."fanfiction_messages WHERE message_name = 'welcome'");
|
|
| 35 |
+list($welcome) = dbrow($query); |
|
| 36 |
+$tpl->assign("welcome", stripslashes($welcome));
|
|
| 37 |
+ |
|
| 38 |
+$tpl->printToScreen(); |
|
| 39 |
+dbclose( ); |
|
| 40 |
+?> |
|
| 0 | 41 |
\ No newline at end of file |