mirror of
https://github.com/fsr/eseeva
synced 2025-01-19 00:11:41 +01:00
Kommentare, Kommentare, Kommentare
This commit is contained in:
parent
4b3d86492b
commit
897d70ca5c
3 changed files with 17 additions and 7 deletions
|
@ -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.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@ -289,4 +289,4 @@
|
||||||
echo " </div>\n";
|
echo " </div>\n";
|
||||||
echo "</div>\n";
|
echo "</div>\n";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -125,7 +125,14 @@
|
||||||
//else
|
//else
|
||||||
// echo "<script type='text/javascript'>alert('file written');</script>";
|
// echo "<script type='text/javascript'>alert('file written');</script>";
|
||||||
fclose($handle);
|
fclose($handle);
|
||||||
return true;
|
if ($res)
|
||||||
|
{
|
||||||
|
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
|
||||||
|
@ -163,4 +170,4 @@
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -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
|
||||||
|
@ -101,4 +104,4 @@
|
||||||
case KEYSTATE_USED: CreateMessageBox(MSG_DANGER, "Achtung!", "Der angegebene Code ist wurde bereits eingelöst. Es darf pro Student nur eine ESE-Tasse ausgegeben werden."); break;
|
case KEYSTATE_USED: CreateMessageBox(MSG_DANGER, "Achtung!", "Der angegebene Code ist wurde bereits eingelöst. Es darf pro Student nur eine ESE-Tasse ausgegeben werden."); break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
Loading…
Reference in a new issue