-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsupport-team.php
More file actions
130 lines (127 loc) · 6.18 KB
/
support-team.php
File metadata and controls
130 lines (127 loc) · 6.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<?php require 'includes/applications.php';?>
<html>
<head>
<title> Support Team Application | Tech Support Central </title>
<style>
#MainBody {
height: 550px;
border-radius: 5px;
background-color: #f2f2f2;
padding: 20px 20px;
}
</style>
<?php include 'includes/head.html';?>
</head>
<body bgcolor="#323232">
<div id="Container">
<?php
include 'includes/header.html';
if (isset($_SESSION['username'])) {
$age = age_check(2629800, 604800);
$submit = submission_check($_SESSION['user_id'], "support_team", $mongo_db, $mongo_uri);
}
echo '<div id="MainBody">';
if (isset($_SESSION['username']) && $age == 0 && !$submit) {
if (substr($_SESSION['user_avatar'], 0, 2) == "a_") {
$extension = ".gif";
} else {
$extension = ".png";
}
echo '
<form action="submit-form.php" method="post">
<label for="q1" style="font-weight: bold"> Are you currently or have you previously provided Tech Support in any other discord servers or a real life career? </label><br>
<input type="radio" id="q1o1" name="q1" value="Yes, I currently do.">
<label for="q1o1"> Yes, I currently do. </label><br>
<input type="radio" id="q1o2" name="q1" value="I have in the past.">
<label for="q1o2"> I have in the past. </label><br>
<input type="radio" id="q1o3" name="q1" value="No, not before.">
<label for="q1o3"> No, not before. </label><br>
<br>
<label for="q2" style="font-weight: bold"> Are you able to be active on the server at least 2-3 times a week? </label><br>
<input type="radio" id="q2o1" name="q2" value="Yes">
<label for="q2o1"> Yes </label><br>
<input type="radio" id="q2o2" name="q2" value="No">
<label for="q2o2"> No </label><br>
<br>
<b> What do you specialize in? </b><br>
<input type="checkbox" name="q3o1" value="Software">
<label for="q3o1"> Software </label><br>
<input type="checkbox" name="q3o2" value="Hardware">
<label for="q3o2"> Hardware </label><br>
<input type="checkbox" name="q3o3" value="PC Builds">
<label for="q3o3"> PC Builds </label><br>
<input type="checkbox" name="q3o4" value="Mobile">
<label for="q3o4"> Mobile </label><br>
<input type="checkbox" name="q3o5" value="Networking">
<label for="q3o5"> Networking </label><br>
<input type="checkbox" name="q3o6" value="Linux">
<label for="q3o6"> Linux </label><br>
<br>
<label for="q4" style="font-weight: bold"> Are you confident in giving advice and offering support? </label><br>
<input type="radio" id="q4o1" name="q4" value="Yes">
<label for="q4o1"> Yes </label><br>
<input type="radio" id="q4o2" name="q4" value="No">
<label for="q4o2"> No </label><br>
<br>
<label for="q5" style="font-weight: bold"> Are you okay with notifying other Support Team members if you are unsure how to deal with a case that you are involved in? </label><br>
<input type="radio" id="q5o1" name="q5" value="Yes">
<label for="q5o1"> Yes </label><br>
<input type="radio" id="q5o2" name="q5" value="No">
<label for="q5o2"> No </label><br>
<br>
<input type="hidden" name="username" value=' . $_SESSION['username'] . '>
<input type="hidden" name="id" value=' . $_SESSION['user_id'] . '>
<input type="hidden" name="avatar" value=' . $_SESSION['user_avatar'] . '>
<input type="hidden" name="extension" value=' . $extension . '>
<input type="hidden" name="type" value="support_team">
<input type="submit" value="Submit">
</form>
';
} elseif (isset($_SESSION['username']) && $age == 1) {
echo '<h2 style="text-align: center"> Your Discord account is not old enough (1 month) to become Support Team. <br> Please read the requirements next time. </h2>';
} elseif (isset($_SESSION['username']) && $age == 2) {
echo '<h2 style="text-align: center"> You have not been in TSC for long enough (1 week) to become Support Team. <br> Please read the requirements next time. </h2>';
} elseif (isset($_SESSION['username']) && $submit) {
echo '<h2 style="text-align: center"> You have already submitted a Support Team application. <br> If it gets accepted, you will be notified. Please be patient. </h2>';
} elseif ($_GET['form'] == "done") {
echo '<h1 style="text-align: center"> Form sent successfully. </h1>';
} elseif ($_GET['form'] == "fail") {
echo '<h1 style="text-align: center"> Something went wrong sending the form. Please try again. </h1>';
} elseif ($_POST['requirements'] == "done") {
echo '
<div class="center">
<h1> Please log in before submitting your application. </h1>
<a href=' . url($client_id, "https://www.techsupportcentral.org/support-team.php", "identify+guilds.members.read") . '> <img src="login.png", width=512, height=107> </a>
</div>
';
} else {
echo '
<form action="support-team.php" method="post">
<h2 style="text-align: center"> Before you can apply to be support team, you must read the requirements. </h2>
<br>
<h3> Support Team Requirements: </h3>
<ul>
<li> <b> Corruption: </b> If a member of the staff team does something they shouldn\'t have, let the owners know. </li>
<br>
<li> <b> Activity: </b> Support Team members need to be active at least once a week. </li>
<br>
<li> <b> Experience: </b> You need to have been on the server for at least a week and have a discord account older than a month. </li>
<br>
<li> <b> Piracy: </b> If someone asks for support with pirated or cracked content, report them to the mod team and don\'t give them support. </li>
<br>
<li> <b> Misinformation: </b> If you\'re not completely sure about something, ask other members of the support team to fact check it or let them take over the support instead of misinforming the user. </li>
<br>
<li> <b> Confidence: </b> Be confident in the support you\'re applying. It\'s okay if you don\'t know much but be confident in what you do know. </li>
<br>
</ul>
<input type="hidden" name="requirements" value="done">
<input type="submit" value="I have read and met the requirements">
</form>
';
}
echo '</div>';
include 'includes/footer.html';
?>
</div>
</body>
</html>