proposecompatibility.php

<? include 'xmlheader.php'?>
<?
echo "<?xml version=\"1.0\" ?>";?>
<root>
<?php
     
include 'include.php';

     
openDatabase();

     
//This simple file proposes using a compatibility

     
$compatibilityid getAndCheckParameter("compatibilityid"PATTERN_NUMERIC"There's been a database error. (compatibilityid is zero)");

     
//TODO: In the future, we should check for the active user here
     
$sProposeCompatibilityQuery "UPDATE compatibility SET invocationstatus = 'proposed' WHERE compatibilityid = ".$compatibilityid;

     
updateDatabase($sProposeCompatibilityQuery );

     
outputCompatibilities();

     
closeDatabase();
?>
</root>