-
Notifications
You must be signed in to change notification settings - Fork 0
/
Home.php
81 lines (79 loc) · 4.06 KB
/
Home.php
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
<html>
<head>
<title>A.R.S. Echo Creator</title>
<link rel="icon" href="https://cdn.discordapp.com/app-icons/249891250117804032/8006c62af129d35355732de574da495c.jpg" type="image/x-icon">
<link rel="stylesheet" href="css/arscreator.css" type="text/css">
<link rel="stylesheet" href="css/fontstyles.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-16" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
function KeyDiv() {
document.getElementById('KeyList').style.display = "block";
document.getElementById('Content').style.opacity = "0.1";
return;
}
function CloseKeyDiv() {
document.getElementById('KeyList').style.display = "none";
document.getElementById('Content').style.opacity = "1";
}
function ParamsKey() {
document.getElementById('Key1').className = "KeyParams";
document.getElementById('Key1').innerHTML = "<label class='bold'>Params Key</label>";
}
</script>
</head>
<body>
<?php
include 'php/creator.php';
$_REQUEST['AddParamsKeyCheck'] = "False";
function AddParamsKeyCheck () {
if (isset($_POST['AddParamsKey'])) {
$_REQUEST['AddParamsKeyCheck'] = "True";
}
}
?>
<form id="Requirements" method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>">
<div id="KeyList" style="display: none;" >
<div class="KeyListContent">
<h1>
Pick a Key.
</h1>
<button class="buttonkeyscontent" onclick="CloseKeyDiv(); return false;">Close ⨉</button>
<input type="hidden" name="AddParamsKeyCheck" <?php echo $EnabledOrDisabled;?> value="True"/>
<div class="keycontent">
<div class="keycontent1">
<label>Add a <label class="DCSL skipbold">{params}</label> key.</label><input type="submit" class="button" name="AddParamsKey" onclick="CloseKeyDiv(); <?php echo AddParamsKeyCheck();?>" <?php echo $EnabledOrDisabled;?> value="Add Key"/>
</div>
</div>
</div>
</div>
<div id="Content" class="content" style="opacity: 1;">
<h1>
A.R.S. Creator for Echo Discord bot.
</h1>
<div>
<input type="hidden" name="Requirements" id="Requirements" value="Test">
<label for="PrefixBeingUsed" class="bold">Your Prefix<label class="ReqTip">*<div class="ReqTipText">This field is required.</div></label>: <input class="prefix bold input" type="text" name="PrefixBeingUsed" id="PrefixBeingUsed" placeholder="." maxlength="3" value="<?php echo $PrefixBeingUsed;?>"></label><label class="VarError"><?php echo $PrefixBeingUsedEmpty?></label>
<label for="SetTriggerName" class="bold">Trigger name<label class="ReqTip">*<span class="ReqTipText">This field is required.</span></label>: <input class="input" type="text" name="SetTriggerName" id="SetTriggerName" placeholder="Trigger name" value="<?php echo $SetTriggerName;?>"></label><label class="VarError"><?php echo $SetTriggerNameEmpty?></label>
<label for="CheckPar" class="bold EnablePar"><input class="EnableParBox" type="checkbox" name="CheckPar" id="CheckPar" value="UseParams" <?php if(isset($_POST['CheckPar'])) echo "checked='checked'"; ?>/><label class="ReqTip">!<span class="ReqTipTextBig">If enabled, <label class="DCSL skipbold">{params}</label> is required in your response. If <label class="DCSL skipbold">{params}</label> isn't found it will be automatically be added at the beginning of the response.</label></span> Enable <label class="DCSL skipbold">{params}</label> in your trigger.</label>
<br>
<br>
<input class="MkARS button" type="submit" name="submit" value="Make it!" form="Requirements" />
</div>
<div class="Keys">
<label class="bold">Used Keys:</label>
<button class="button" onclick="KeyDiv(); return false;">Add a Key</button>
<div id="Key1" class="Key1"><?php echo $KeyText; ?></div>
</div>
<div class="outputdiv">
<label class="bold">Your Echo command:</label>
<textarea class="output" rows="10" cols="50" readonly placeholder="You A.R.S. Trigger will be posted here...">
<?php
echo $Output;
?>
</textarea>
</div>
</div>
</form>
</body>
</html>