Example #1
0
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
/* Usage: id is a required get parameter containing the clue ID
whose responses are to be edited */
require_once 'common.inc';
startpage(RESTRICTED);
try {
    if (!isset($_GET['id'])) {
        throw new Exception("No clue id was specified");
    }
    $clue_id = $_GET['id'];
    $clue = Database::get_clue_by_id($clue_id);
    $responses = Database::get_responses_for_clue($clue_id, true);
    $title = "Editing responses";
} catch (Exception $e) {
    $title = "Error occured generating responses";
    $errortext = sprintf("An error occured while generating the responses: %s", $e->getMessage());
}
/*CHANGE EVERYTHING BELOW THIS! */
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 
<link rel="stylesheet" type="text/css" href="theme.css" />
<link rel="icon" type="image/png" href="shcicon.png" />
<title><?php