-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathupload.php
148 lines (138 loc) · 8.9 KB
/
upload.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
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<?php
require_once($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'header.php');
require_once($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . '_constants.php');
require_once($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . '_functions.php');
?>
<p>Submit or adjust a RAMP2024 map here!</p>
<div class="lightbox">
<p>As well as a map, you can include these resources:</p>
<ul>
<li>Name a lump D_RUNNIN to include it as the background music for your map.</li>
<li>Include a 512x384 image lump RAMPSHOT to display it as the thumbnail image for your map in the hub level.</li>
<li>For skies, you can do one of two things:
<ul><li>Include a lump called RSKY1 and it'll automatically be used as the sky</li>
<li>OR Include your sky texture(s) under other names and point to them with SKY1 and SKY2 in a MAPINFO</li></ul>
</li>
</ul>
<p>Take a look at the <a href="./rules.php">rules page</a> for a complete list of accepted data. If what you want isn't there, ask!</p>
</div>
<div id="upload-question-type">
<p>I want to...</p>
<?php if (get_setting("ALLOW_NEW_UPLOADS")) { ?>
<button type="button" id="uploadtype_first">Add a new map</button>
<?php } ?>
<?php if (get_setting("ALLOW_EDIT_UPLOADS")) { ?>
<button type="button" id="uploadtype_update">Update a map I submitted before</button>
<?php } ?>
</div>
<div id="upload-question-pin">
<div id="pin_form" class="lightbox">
<p>Please enter the PIN for the slot you want to update. (If you don't know it, contact the project owner)</p>
<div id="pin_status"> </div>
<input type="text" style="width: 100px;" id="input_pin_to_reupload"></input>
<button type="button" id="confirm_pin">That's my PIN</button>
</div>
</div>
<div id="upload-question-details">
<div id="upload_form" class="lightbox">
<p id="upload_prompt">OK - add your details here and click Upload to submit the map.</p>
<table class="upload_table"><tbody><tr>
<td width="200">Map name:</td>
<td><input type="text" id="input_map_name"></input></td>
</tr><tr>
<td>Author name:</td>
<td><input type="text" id="input_author_name"></input></td>
</tr><tr>
<td>Music credit:</td>
<td><input type="text" id="input_music_credit"></input>
<div class="smallnote">Not needed, just if you want to add a "Rondo in D# by Flynn Taggart" note on level start</div></td>
</tr><tr
<?php if (!(get_setting('ALLOW_GAMEPLAY_JUMP') == 'user')) {
echo(' style="display: none"');
} ?>
><td>Allow jump and crouch:</td>
<td>
<label class="checkmarkcontainer">
<input type="checkbox" id="input_map_jumpcrouch">
<span class="checkmark"></span>
</label>
</td>
</tr><tr>
<td>Map is a work-in-progress:</td>
<td>
<label class="checkmarkcontainer">
<input type="checkbox" id="input_map_wip">
<span class="checkmark"></span>
</label>
<div class="smallnote">Check this box to indicate a map isn't ready to be fully played yet. You'll still be able to upload new versions even if this box isn't checked</div>
</td>
</tr>
<tr>
<td>Map theme</td>
<td>
<div class="smallnote">You don't have to be exact, just the general setting of the map.</div>
<div>
<?php
echo html_radio_button('input_map_category', 'Abstract or minigame', 'mystery', true, 'uac');
echo html_radio_button('input_map_category', 'Ancient', 'ancient', true, 'uac');
echo html_radio_button('input_map_category', 'Castle', 'castle', true, 'uac');
echo html_radio_button('input_map_category', 'Techbase (classic Doom)', 'uac', true, 'uac');
echo html_radio_button('input_map_category', 'Other future or space', 'space', true, 'uac');
echo html_radio_button('input_map_category', 'Hell', 'hell', true, 'uac');
echo html_radio_button('input_map_category', 'Outdoor or caves', 'cave', true, 'uac');
echo html_radio_button('input_map_category', 'Urban (towns and cities)', 'city', true, 'uac');
?>
</div>
</td>
<tr>
<tr>
<td>Map difficulty level</td>
<td>
<div class="smallnote">How tough is this map?</div>
<div>
<?php
echo html_radio_button('input_map_difficulty', 'No real chance of failure', 1, true, 3);
echo html_radio_button('input_map_difficulty', 'Pretty gentle', 2, true, 3);
echo html_radio_button('input_map_difficulty', 'About the same as Ultra-Violence in Doom', 3, true, 3);
echo html_radio_button('input_map_difficulty', 'You\'re going to die a lot', 4, true, 3);
echo html_radio_button('input_map_difficulty', 'Densely packed monster-o-rama', 5, true, 3);
?>
</div>
</td>
<tr>
<tr>
<td>Map length</td>
<td>
<div class="smallnote">Aim for maps to last 10 minutes or less.</div>
<div>
<?php
echo html_radio_button('input_map_length', 'A couple of minutes', 1, true, 3);
echo html_radio_button('input_map_length', '5 minutes or less', 2, true, 3);
echo html_radio_button('input_map_length', '10 minutes or so', 3, true, 3);
echo html_radio_button('input_map_length', 'A bit more than 10 minutes', 4, true, 3);
echo html_radio_button('input_map_length', 'Actually a lot more than 10 minutes', 5, true, 3);
?>
</div>
</td>
<tr>
<tr>
<td>Monster count:</td>
<td><div class="smallnote">Doesn't have to be exact. If it's very different between difficulty levels, use the rough average</div>
<input type="number" style="width: 100px" id="input_monster_count"></input></td>
</tr>
<td>Map file:</td><td>
<input type="file" name="file" id="file">
<!-- Drag and Drop container-->
<div class="upload-area" id="uploadfile">
<h1>Drag and drop your WAD here!<br/>(Or click to select a file)</h1>
</div>
<br/>
</td></tr>
</tbody></table>
<button type="button" id="upload_wad">Submit WAD!</button>
</div>
<div id="upload_status"> </div>
</div>
<?php
require_once($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'footer.php');
?>