3
0
Fork 0
mirror of https://github.com/fsr/eseeva synced 2025-01-19 00:11: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 $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. * @param string $value The options that should be displayed within the dropdown menu.
* *
*/ */

View file

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

View file

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