Advertisement
DubStepMad

Untitled

Feb 13th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.97 KB | None | 0 0
  1. <?php
  2.  
  3. if (isset($_POST['update'])) {
  4. $email = mysqli_real_escape_string($dbconD, $_POST['email']);
  5. $tname = mysqli_real_escape_string($dbconD, $_POST['tname']);
  6. $dname = mysqli_real_escape_string($dbconD, $_POST['dname']);
  7. $joindate = mysqli_real_escape_string($dbconD, $_POST['hidden']);
  8. $id = mysqli_real_escape_string($dbconD, $_POST['steamid']);
  9. $tactivity = mysqli_real_escape_string($dbconD, $_POST['tactivity']);
  10. $experience = mysqli_real_escape_string($dbconD, $_POST['experience']);
  11. $explainexp = mysqli_real_escape_string($dbconD, $_POST['explainexp']);
  12. $offer = mysqli_real_escape_string($dbconD, $_POST['offer']);
  13. $qes1 = mysqli_real_escape_string($dbconD, $_POST['qes1']);
  14. $qes2 = mysqli_real_escape_string($dbconD, $_POST['qes2']);
  15. $qes3 = mysqli_real_escape_string($dbconD, $_POST['qes3']);
  16. $qes4 = mysqli_real_escape_string($dbconD, $_POST['qes4']);
  17. $qes5 = mysqli_real_escape_string($dbconD, $_POST['qes5']);
  18.  
  19. #Question 1 checks
  20. if($_POST['q1/1'] == 'Yes')
  21. {
  22. $q1 = 'Send them the welcome page url and get them to read it whilst you finish the game off';
  23. }
  24. elseif($_POST['q1/2'] == 'Yes')
  25. {
  26. $q1 = 'Reply saying after I finish this game';
  27. }
  28. elseif($_POST['q1/3'] == 'Yes')
  29. {
  30. $q1 = 'Ignore the message';
  31. }
  32. elseif($_POST['q1/4'] == 'Yes')
  33. {
  34. $q1 = 'Leave it for another examiner to sort out';
  35. }
  36. else{
  37. $q1 = 'None was selected';
  38. }
  39.  
  40. #Question 2 checks
  41. if($_POST['q2/1'] == 'Yes')
  42. {
  43. $q2 = "'Modify' the results so they did better then they actually did";
  44. }
  45. elseif($_POST['q2/2'] == 'Yes')
  46. {
  47. $q2 = 'Record the poor results but tell him/her they did well';
  48. }
  49. elseif($_POST['q2/3'] == 'Yes')
  50. {
  51. $q2 = 'Be truthful and tell him/her how they did';
  52. }
  53. elseif($_POST['q2/4'] == 'Yes')
  54. {
  55. $q2 = 'Skip the results';
  56. }
  57. else{
  58. $q2 = 'None was selected';
  59. }
  60.  
  61. #Question 3 checks
  62. if($_POST['q3/1'] == 'Yes')
  63. {
  64. $q3 = 'Tell the applicants you havent got the time';
  65. }
  66. elseif($_POST['q3/2'] == 'Yes')
  67. {
  68. $q3 = 'Try and deal with both';
  69. }
  70. elseif($_POST['q3/3'] == 'Yes')
  71. {
  72. $q3 = 'Come off TeamSpeak';
  73. }
  74. elseif($_POST['q3/4'] == 'Yes')
  75. {
  76. $q3 = 'Type in the examiner lounge on discord if anyone else is available';
  77. }
  78. else{
  79. $q3 = 'None was selected';
  80. }
  81.  
  82. #Question 4 checks
  83. if($_POST['q4/1'] == 'Yes')
  84. {
  85. $q4 = 'Message the VTC Commissioner';
  86. }
  87. elseif($_POST['q4/2'] == 'Yes')
  88. {
  89. $q4 = 'Message the applicant';
  90. }
  91. elseif($_POST['q4/3'] == 'Yes')
  92. {
  93. $q4 = 'Enter the test room';
  94. }
  95. elseif($_POST['q4/4'] == 'Yes')
  96. {
  97. $q4 = 'Do nothing';
  98. }
  99. else{
  100. $q4 = 'None was selected';
  101. }
  102.  
  103. #Question 5 checks
  104. if($_POST['q5/1'] == 'Yes')
  105. {
  106. $q5 = 'Change your mind and pass them';
  107. }
  108. elseif($_POST['q5/2'] == 'Yes')
  109. {
  110. $q5 = 'Call the management team in the room';
  111. }
  112. elseif($_POST['q5/3'] == 'Yes')
  113. {
  114. $q5 = 'Kick them from the server';
  115. }
  116. elseif($_POST['q5/4'] == 'Yes')
  117. {
  118. $q5 = 'Argue back';
  119. }
  120. else{
  121. $q5 = 'None was selected';
  122. }
  123.  
  124.  
  125.  
  126. $area = "Examiner-Team";
  127.  
  128. $UpdateQ = "INSERT INTO applications (area, steamid, email, tname, dname, joindate, tactivity, experience, explainexp, offer, qes1, qes2, qes3, qes4, qes5) VALUES ('$area', '$id', '$email', '$tname', '$dname', '$joindate', '$tactivity', '$experience', '$explainexp', '$offer', '$q1' , '$q2', '$q3', '$q4', '$q5')";
  129. mysqli_query($dbconD, $UpdateQ);
  130.  
  131. echo '<div class="alert alert-success" role="alert"><a href="#" class="alert-link">Initial Driving Record successfully added!</a></div>';
  132. header("Location: http://www.tsrvtc.com/");
  133. }
  134. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement