Skip to content

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
yigitkeremoktay committed Nov 27, 2020
1 parent 31f7325 commit a8cf71f
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 20 deletions.
Binary file modified locale/tr_TR/LC_MESSAGES/skymake.mo
Binary file not shown.
14 changes: 13 additions & 1 deletion locale/tr_TR/LC_MESSAGES/skymake.po
Original file line number Diff line number Diff line change
Expand Up @@ -623,4 +623,16 @@ msgid "Join via app"
msgstr "Uygulama ile katıl"

msgid "Assigned to me"
msgstr "Bana atanmış"
msgstr "Bana atanmış"

msgid "You can't change the role of user 'root'."
msgstr "'root' kullanıcısının rolünü değiştiremezsiniz"

msgid "You can't delete the user 'root'"
msgstr "'root' kullanıcısını silemezsiniz"

msgid "Moderator"
msgstr "Moderatör"

msgid "We've successfully saved your response for question:"
msgstr "Yanıtınızı başarıyla kaydettik. Kaydedilen Soru Numarası:"
5 changes: 2 additions & 3 deletions oes/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,15 +233,15 @@ function getRemoteIPAddress() {
$sql = "INSERT INTO skymake_answer (id, qn, answer,uniq,examid)
VALUES ('".$_SESSION["id"]."', '".$qn_internal."', '".$_SESSION["lastanswer"]."','".$uniq."','".$_SESSION["examid"]."')";
if (mysqli_query($linktwo, $sql)) {
echo "SQL Query Succeeded:".$sql;
echo _("We've successfully saved your response for question:").$qn_internal;
} else {
$sql = "DELETE FROM skymake_answer WHERE uniq='".$uniq."';";
if (mysqli_query($linktwo, $sql)){
$sql = "INSERT INTO skymake_answer (id, qn, answer,uniq,examid)
VALUES ('".$_SESSION["id"]."', '".$qn_internal."', '".$_SESSION["lastanswer"]."','".$uniq."','".$_SESSION["examid"]."')";

if (mysqli_query($linktwo, $sql)) {
echo "SQL Query Succeeded:".$sql;
echo _("We've successfully saved your response for question:").$qn_internal;
}
else{
echo "Type 2 Error: " . $sql . "<br>" . mysqli_error($linktwo);
Expand Down Expand Up @@ -290,7 +290,6 @@ function getRemoteIPAddress() {
<input type="radio" id="Q_EMPTY" name="ANSWER" value="Q_EMPTY">
<label for="Q_EMPTY"><?= _("Leave Empty") ?></label>
<input id="nextbtn" name="nextbtn" type="submit" class="btn btn-primary" value="<?= _("Submit and Continue") ?>"><br>
<input name="killsession" type="submit" class="btn btn-primary" value="<?= _("Kill Session") ?>"><br>
<p id="timer" name="timer"></p>
</form>
</body>
Expand Down
14 changes: 0 additions & 14 deletions oes/sessionkill.php

This file was deleted.

5 changes: 3 additions & 2 deletions skymake-platform.php
Original file line number Diff line number Diff line change
Expand Up @@ -619,14 +619,14 @@ function loadWebMeeting(){
echo("ERROR: Could not able to execute $sql. " . mysqli_error($link));
}
} else {
echo "You can't delete the user 'root'";
echo _("You can't delete the user 'root'");
}
}
if(isset($_POST["setRole"])){
if($_POST["username"] != "root") {
SMUser::setRole($link, $_POST["username"], $_POST["newRole"]);
} else {
echo "You can't change the role of user 'root'.";
echo _("You can't change the role of user 'root'.");
}
}
?>
Expand Down Expand Up @@ -657,6 +657,7 @@ function loadWebMeeting(){
<option value="admin"><?= _("Administrator") ?></option>
<option value="student"><?= _("Student") ?></option>
<option value="teacher"><?= _("Teacher") ?></option>
<option value="moderator"><?= _("Moderator") ?></option>
</select>
<div class="input-group-append">
<button class="btn btn-outline-secondary" type="submit" name="setRole"><?= _("Set Role") ?></button>
Expand Down

0 comments on commit a8cf71f

Please sign in to comment.