Deactivate form, add message.
This commit is contained in:
parent
27087fd671
commit
679d7d0ff5
118
index.php
118
index.php
|
@ -187,70 +187,80 @@
|
||||||
<a rel="me" href="https://botsin.space/@fediblock_archive">@fediblock_archive@botsin.space</a>.
|
<a rel="me" href="https://botsin.space/@fediblock_archive">@fediblock_archive@botsin.space</a>.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h2 id="suggest">Suggest instance</h2>
|
<h2 id="suggest"><del>Suggest instance</del></h2>
|
||||||
|
<div style="font-size: 200%; font-weight: bold;">
|
||||||
|
<p>
|
||||||
|
The project is inactive and will be for the forseeable future. You can't
|
||||||
|
suggest instances at the moment.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
If you want to adopt the project, get in touch with
|
||||||
|
<a rel="me" href="https://botsin.space/@fediblock_archive">@fediblock_archive@botsin.space</a>.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
<p>
|
<!-- <p>
|
||||||
Please make sure to include receipts (hyperlinks and/or screenshots) for all claims you make. We
|
Please make sure to include receipts (hyperlinks and/or screenshots) for all claims you make. We
|
||||||
don't want trust to be necessary to use this list.
|
don't want trust to be necessary to use this list.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<form method="post" action="/add" enctype="multipart/form-data" id="form_add">
|
<form method="post" action="/add" enctype="multipart/form-data" id="form_add">
|
||||||
<label for="instance">Instance:</label>
|
<label for="instance">Instance:</label>
|
||||||
<input type="text" id="instance" name="instance" placeholder="example.com" required>
|
<input type="text" id="instance" name="instance" placeholder="example.com" required>
|
||||||
<span class="hint">(Without the “https://”)</span>
|
<span class="hint">(Without the “https://”)</span>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<label for="tags">Tags:</label><span class="hint">(One tag per field or comma separated)</span><br>
|
<label for="tags">Tags:</label><span class="hint">(One tag per field or comma separated)</span><br>
|
||||||
<input type="text" list="list_tags" id="tags" name="tags[]" required>
|
<input type="text" list="list_tags" id="tags" name="tags[]" required>
|
||||||
<input type="button" id="add_tag" value="➕" title="Add tag" onclick="javascript:add_input_tag();">
|
<input type="button" id="add_tag" value="➕" title="Add tag" onclick="javascript:add_input_tag();">
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<label for="receipts">Receipts:</label><span class="hint">(One receipt per field or comma separated)</span><br>
|
<label for="receipts">Receipts:</label><span class="hint">(One receipt per field or comma separated)</span><br>
|
||||||
<input type="url" id="receipts" name="receipts[]" required>
|
<input type="url" id="receipts" name="receipts[]" required>
|
||||||
<input type="button" id="add_receipt" value="➕" title="Add receipt" onclick="javascript:add_input_receipt();">
|
<input type="button" id="add_receipt" value="➕" title="Add receipt" onclick="javascript:add_input_receipt();">
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<label for="screenshot1">Screenshots:</label><span class="hint">(optional)</span>
|
<label for="screenshot1">Screenshots:</label><span class="hint">(optional)</span>
|
||||||
<br>
|
<br>
|
||||||
<input type="file" id="screenshot1" name="screenshots[]" accept="image/*">
|
<input type="file" id="screenshot1" name="screenshots[]" accept="image/*">
|
||||||
<br>
|
<br>
|
||||||
<input type="file" id="screenshot2" name="screenshots[]" accept="image/*">
|
<input type="file" id="screenshot2" name="screenshots[]" accept="image/*">
|
||||||
<br>
|
<br>
|
||||||
<input type="file" id="screenshot3" name="screenshots[]" accept="image/*">
|
<input type="file" id="screenshot3" name="screenshots[]" accept="image/*">
|
||||||
<br>
|
<br>
|
||||||
<input type="file" id="screenshot4" name="screenshots[]" accept="image/*">
|
<input type="file" id="screenshot4" name="screenshots[]" accept="image/*">
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<label for="description">Description:</label><br>
|
<label for="description">Description:</label><br>
|
||||||
<textarea id="description" name="description" cols="80" rows="20" required></textarea><br>
|
<textarea id="description" name="description" cols="80" rows="20" required></textarea><br>
|
||||||
|
|
||||||
<div style="display:none;">
|
<div style="display:none;">
|
||||||
<label for="url" style="width: 18ch;">Leave this empty:</label>
|
<label for="url" style="width: 18ch;">Leave this empty:</label>
|
||||||
<input type="text" id="url" name="url">
|
<input type="text" id="url" name="url">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>Please solve this mathematical question:</div>
|
<div>Please solve this mathematical question:</div>
|
||||||
<?php
|
<?php
|
||||||
$array = array
|
$array = array
|
||||||
(
|
(
|
||||||
0 => "1 + 1",
|
0 => "1 + 1",
|
||||||
1 => "4 + 2",
|
1 => "4 + 2",
|
||||||
2 => "12 + 5",
|
2 => "12 + 5",
|
||||||
3 => "15 - 3",
|
3 => "15 - 3",
|
||||||
4 => "2 x 2",
|
4 => "2 x 2",
|
||||||
5 => "2 - 1"
|
5 => "2 - 1"
|
||||||
);
|
);
|
||||||
$random_number = rand(0, 5);
|
$random_number = rand(0, 5);
|
||||||
|
|
||||||
printf('<input type="text" id="captcha_id" name="captcha_id" value="%s" style="display:none;">',
|
printf('<input type="text" id="captcha_id" name="captcha_id" value="%s" style="display:none;">',
|
||||||
$random_number);
|
$random_number);
|
||||||
printf('<label for="captcha_answer">%s:</label>', $array[$random_number]);
|
printf('<label for="captcha_answer">%s:</label>', $array[$random_number]);
|
||||||
?>
|
?>
|
||||||
<input type="text" id="captcha_answer" name="captcha_answer" required>
|
<input type="text" id="captcha_answer" name="captcha_answer" required>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<input type="submit">
|
<input type="submit">
|
||||||
</form>
|
</form> -->
|
||||||
|
|
||||||
<p class="footer">
|
<p class="footer">
|
||||||
<a href="https://schlomp.space/FediBlock">Sourcecode</a> licensed under the
|
<a href="https://schlomp.space/FediBlock">Sourcecode</a> licensed under the
|
||||||
|
|
Reference in New Issue