3
0
Fork 0
mirror of https://github.com/fsr/eseeva synced 2025-01-18 16:01:41 +01:00

Kommentare, Kommentare, Kommentare

This commit is contained in:
Lucas Woltmann 2015-11-07 16:15:29 +01:00
parent 4b3d86492b
commit 897d70ca5c
3 changed files with 17 additions and 7 deletions

View file

@ -267,10 +267,10 @@
}
/**
* Echos a new division with a labelled text box and switching row styles.
* Echos a new division with a dropdown menu.
*
* @param string $label The label that should be displayed for the dropdown menu.
* @param string $id The unique id that is used to identify the dropdownmenu.
* @param string $id The unique id that is used to identify the dropdown menu.
* @param string $value The options that should be displayed within the dropdown menu.
*
*/

View file

@ -125,8 +125,15 @@
//else
// echo "<script type='text/javascript'>alert('file written');</script>";
fclose($handle);
if ($res)
{
return true;
}
else
{
return false;
}
}
/**
* Get the current state of the specified key which will be one of the defines
* KEYSTATE constants.

View file

@ -47,7 +47,10 @@
if (WriteLogFile(STUDENTLOGFILE, $questionData, $tutorData, $commentData))
{
SetKeyState($keyData, $_POST["code"], KEYSTATE_ACTIVATED);
WriteKeyFile(KEYFILE, $keyData);
if (!WriteKeyFile(KEYFILE, $keyData))
{
$error = 1;
}
}
// otherwise set the error flag
else