|
58
|
58
|
new file mode 100644
|
|
...
|
...
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+<?php
|
|
|
2
|
+// ----------------------------------------------------------------------
|
|
|
3
|
+// Copyright (c) 2007 by Tammy Keefer
|
|
|
4
|
+// Valid HTML 4.01 Transitional
|
|
|
5
|
+// Based on eFiction 1.1
|
|
|
6
|
+// Copyright (C) 2003 by Rebecca Smallwood.
|
|
|
7
|
+// http://efiction.sourceforge.net/
|
|
|
8
|
+// ----------------------------------------------------------------------
|
|
|
9
|
+// LICENSE
|
|
|
10
|
+//
|
|
|
11
|
+// This program is free software; you can redistribute it and/or
|
|
|
12
|
+// modify it under the terms of the GNU General Public License (GPL)
|
|
|
13
|
+// as published by the Free Software Foundation; either version 2
|
|
|
14
|
+// of the License, or (at your option) any later version.
|
|
|
15
|
+//
|
|
|
16
|
+// This program is distributed in the hope that it will be useful,
|
|
|
17
|
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
18
|
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
19
|
+// GNU General Public License for more details.
|
|
|
20
|
+//
|
|
|
21
|
+// To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
|
|
22
|
+// ----------------------------------------------------------------------
|
|
|
23
|
+
|
|
|
24
|
+$current = "contactus";
|
|
|
25
|
+
|
|
|
26
|
+include ("header.php");
|
|
|
27
|
+
|
|
|
28
|
+ //make a new TemplatePower object
|
|
|
29
|
+if(file_exists("$skindir/default.tpl")) $tpl = new TemplatePower( "$skindir/default.tpl" );
|
|
|
30
|
+else $tpl = new TemplatePower("default_tpls/default.tpl");
|
|
|
31
|
+$tpl->assignInclude( "header", "./$skindir/header.tpl" );
|
|
|
32
|
+$tpl->assignInclude( "footer", "./$skindir/footer.tpl" );
|
|
|
33
|
+include("includes/pagesetup.php");
|
|
|
34
|
+
|
|
|
35
|
+ $output .= "<h1>"._CONTACTUS."</h1>";
|
|
|
36
|
+
|
|
|
37
|
+ if(isset($_POST['submit'])) {
|
|
|
38
|
+ if($captcha && !isMEMBER && !captcha_confirm()) $output .= write_error(_CAPTCHAFAIL);
|
|
|
39
|
+ else {
|
|
|
40
|
+ include("includes/emailer.php");
|
|
|
41
|
+ $result = sendemail($sitename, $siteemail, $_POST['email'], $_POST['email'], (!empty($_POST['reportpage']) ? _REPORT.": " : "").descript(strip_tags($_POST['subject'])), format_story(descript($_POST['comments'])).(!empty($_POST['reportpage']) ? "<br /><br /><a href='$url/".$_POST['reportpage']."'>$url/".$_POST['reportpage']."</a>" : "").(isMEMBER ? sprintf(_SITESIG2, "<a href='".$url."/viewuser.php?uid=".USERUID."'>".USERPENNAME."</a>") : _SITESIG), "html");
|
|
|
42
|
+ if($result) $output .= write_message(_EMAILSENT);
|
|
|
43
|
+ else $output .= write_error(_EMAILFAILED);
|
|
|
44
|
+ }
|
|
|
45
|
+ }
|
|
|
46
|
+ else
|
|
|
47
|
+ {
|
|
|
48
|
+ $output .= "<form method='POST' enctype='multipart/form-data' action='contact.php'>
|
|
|
49
|
+ <table class='acp'><tr><td><label for='email'>"._YOUREMAIL.":</label></td><td><INPUT type='text' class='textbox' name='email'></td></tr>";
|
|
|
50
|
+ if(!$action) $output .= "<tr><td><label for='subject'>"._SUBJECT.":</label></td><td><INPUT type='text' class='textbox' name='subject'></td></tr>";
|
|
|
51
|
+ else if($action == "report") $output .= "<tr><td><label for='subject'>"._REPORT.":</label></td><td><select class='textbox' name='subject'>
|
|
|
52
|
+ <option>"._RULESVIOLATION."</option>
|
|
|
53
|
+ <option>"._BUGREPORT."</option>
|
|
|
54
|
+ <option>"._MISSING."</option>
|
|
|
55
|
+ </select>
|
|
|
56
|
+ <input type='hidden' name='reportpage' value='".descript($_GET['url'])."'></td></tr>";
|
|
|
57
|
+ $output .= "<tr><td><label for='comments'>"._COMMENTS.":</label></td><td> <TEXTAREA class='textbox' name='comments' cols='50' rows='6'></TEXTAREA></td></tr>";
|
|
|
58
|
+ if(!USERUID && !empty($captcha)) $output .= "<tr><td><span class='label'>"._CAPTCHANOTE."</span></td><td><img width=120 height=30 src='"._BASEDIR."includes/button.php' alt='CAPTCHA image'><br /><br /><input MAXLENGTH=5 SIZE=5 name='userdigit' type='text' value=''></td></tr>";
|
|
|
59
|
+ $output .= "<tr><td colspan='2'><div style='text-align: center;'><INPUT name='submit' class='button' type='submit' value='"._SUBMIT."'></td></tr></table></form>";
|
|
|
60
|
+ }
|
|
|
61
|
+
|
|
|
62
|
+ $tpl->assign( "output", $output );
|
|
|
63
|
+$output = $tpl->getOutputContent( );
|
|
|
64
|
+$output = e107::getParser()->parseTemplate($output, true);
|
|
|
65
|
+echo $output;
|
|
|
66
|
+dbclose( );
|
|
0
|
67
|
\ No newline at end of file
|