Files
@ 36411b81240b
Branch filter:
Location: SlatePermutate/feedback.php - annotation
36411b81240b
2.9 KiB
text/x-php
Remove silly ampersand mangling.
eab20c15a6b2 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 7b489f5ccba0 79e1cca91899 ae8cada84fa2 ae8cada84fa2 7b489f5ccba0 7b489f5ccba0 7b489f5ccba0 7b489f5ccba0 6efbb3695b27 6efbb3695b27 6efbb3695b27 6efbb3695b27 6efbb3695b27 6efbb3695b27 7b489f5ccba0 7b489f5ccba0 7a6777d84d07 eab20c15a6b2 eab20c15a6b2 eab20c15a6b2 eab20c15a6b2 eab20c15a6b2 7a6777d84d07 5bc9711b7884 5bc9711b7884 5bc9711b7884 5bc9711b7884 5bc9711b7884 5bc9711b7884 eab20c15a6b2 eab20c15a6b2 eab20c15a6b2 eab20c15a6b2 6efbb3695b27 eab20c15a6b2 79e1cca91899 79e1cca91899 7b489f5ccba0 acb3d2aace0c 760a7551f2db 760a7551f2db 760a7551f2db 760a7551f2db 760a7551f2db 7b489f5ccba0 760a7551f2db acb3d2aace0c 79e1cca91899 79e1cca91899 5bc9711b7884 eab20c15a6b2 eab20c15a6b2 eab20c15a6b2 7a6777d84d07 | <?php
/*
* Copyright 2010 Nathan Gelderloos, Ethan Zonca, Nathan Phillip Brink
*
* This file is part of SlatePermutate.
*
* SlatePermutate is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* SlatePermutate is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with SlatePermutate. If not, see <http://www.gnu.org/licenses/>.
*/
include_once 'inc/class.page.php';
$feedbackpage = page::page_create('Feedback');
$feedbackpage->head();
$ipi = $_SERVER['REMOTE_ADDR'];
$fromdom = $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
$httpagenti = $_SERVER['HTTP_USER_AGENT'];
/* some prefill support */
$school = $feedbackpage->get_school();
$feedback_text = '';
if (isset($_GET['feedback']))
$feedback_text = $_GET['feedback'];
$n = "\n";
?>
<form action="feedback-submit.php" method="post">
<input type="hidden" name="ip" value="<?php echo $ipi ?>" />
<input type="hidden" name="fromdom" value="<?php echo $fromdom ?>" />
<input type="hidden" name="httpagent" value="<?php echo $httpagenti ?>" />
<table>
<tr><td><label for="nameis">Name: </label></td><td><input type="text" name="nameis" size="20" /></td></tr>
<tr><td><label for="visitormail">Email:</label></td><td><input type="text" name="visitormail" size="20" /> <span class="graytext">(if you want us to get back to you)</span></td></tr>
<tr><td><label for="school">School: </label></td><td><input type="text" name="school" value="<?php echo htmlentities($school['id']); ?>" size="20" /> <span class="graytext">(if relevant to your feedback)</span></td></tr>
</table>
<br/> Overall Rating:<br/> <input checked="checked" name="rating" type="radio" value="Great" />Great <input name="rating" type="radio" value="Usable" />Usable <input name="rating" type="radio" value="Buggy/Hard to Use" />Buggy/Hard to Use <input name="rating" type="radio" value="Don't know" />Don't Know <!-- ' -->
<br /><br />
<h3>General Comments</h3>
<p>
<textarea name="feedback" rows="6" cols="40"><?php echo htmlentities($feedback_text); ?></textarea>
</p>
<?php
if ($use_captcha)
{
echo '' . $n
. ' <h3>Captcha</h3>' . $n
. '<p>' . $n
. ' <img id="captcha_img" src="captcha_img.php" alt="captcha image" /><br />' . $n
. ' <label for="captcha_code">Enter the obfuscated text from the above image:</label><br />' . $n
. ' <input name="captcha_code" type="textbox" />' . $n
. '</p>' . $n;
}
?>
<input class="gray" type="submit" value="Send Feedback" />
</form>
<?php
$feedbackpage->foot();
|