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>.
|
||||
</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>
|
||||
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.
|
||||
</p>
|
||||
<!-- <p>
|
||||
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.
|
||||
</p>
|
||||
|
||||
<form method="post" action="/add" enctype="multipart/form-data" id="form_add">
|
||||
<label for="instance">Instance:</label>
|
||||
<input type="text" id="instance" name="instance" placeholder="example.com" required>
|
||||
<span class="hint">(Without the “https://”)</span>
|
||||
<br>
|
||||
<form method="post" action="/add" enctype="multipart/form-data" id="form_add">
|
||||
<label for="instance">Instance:</label>
|
||||
<input type="text" id="instance" name="instance" placeholder="example.com" required>
|
||||
<span class="hint">(Without the “https://”)</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="button" id="add_tag" value="➕" title="Add tag" onclick="javascript:add_input_tag();">
|
||||
<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="button" id="add_tag" value="➕" title="Add tag" onclick="javascript:add_input_tag();">
|
||||
<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="button" id="add_receipt" value="➕" title="Add receipt" onclick="javascript:add_input_receipt();">
|
||||
<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="button" id="add_receipt" value="➕" title="Add receipt" onclick="javascript:add_input_receipt();">
|
||||
<br>
|
||||
|
||||
<label for="screenshot1">Screenshots:</label><span class="hint">(optional)</span>
|
||||
<br>
|
||||
<input type="file" id="screenshot1" name="screenshots[]" accept="image/*">
|
||||
<br>
|
||||
<input type="file" id="screenshot2" name="screenshots[]" accept="image/*">
|
||||
<br>
|
||||
<input type="file" id="screenshot3" name="screenshots[]" accept="image/*">
|
||||
<br>
|
||||
<input type="file" id="screenshot4" name="screenshots[]" accept="image/*">
|
||||
<br>
|
||||
<label for="screenshot1">Screenshots:</label><span class="hint">(optional)</span>
|
||||
<br>
|
||||
<input type="file" id="screenshot1" name="screenshots[]" accept="image/*">
|
||||
<br>
|
||||
<input type="file" id="screenshot2" name="screenshots[]" accept="image/*">
|
||||
<br>
|
||||
<input type="file" id="screenshot3" name="screenshots[]" accept="image/*">
|
||||
<br>
|
||||
<input type="file" id="screenshot4" name="screenshots[]" accept="image/*">
|
||||
<br>
|
||||
|
||||
<label for="description">Description:</label><br>
|
||||
<textarea id="description" name="description" cols="80" rows="20" required></textarea><br>
|
||||
<label for="description">Description:</label><br>
|
||||
<textarea id="description" name="description" cols="80" rows="20" required></textarea><br>
|
||||
|
||||
<div style="display:none;">
|
||||
<label for="url" style="width: 18ch;">Leave this empty:</label>
|
||||
<input type="text" id="url" name="url">
|
||||
</div>
|
||||
<div style="display:none;">
|
||||
<label for="url" style="width: 18ch;">Leave this empty:</label>
|
||||
<input type="text" id="url" name="url">
|
||||
</div>
|
||||
|
||||
<div>Please solve this mathematical question:</div>
|
||||
<?php
|
||||
$array = array
|
||||
(
|
||||
0 => "1 + 1",
|
||||
1 => "4 + 2",
|
||||
2 => "12 + 5",
|
||||
3 => "15 - 3",
|
||||
4 => "2 x 2",
|
||||
5 => "2 - 1"
|
||||
);
|
||||
$random_number = rand(0, 5);
|
||||
<div>Please solve this mathematical question:</div>
|
||||
<?php
|
||||
$array = array
|
||||
(
|
||||
0 => "1 + 1",
|
||||
1 => "4 + 2",
|
||||
2 => "12 + 5",
|
||||
3 => "15 - 3",
|
||||
4 => "2 x 2",
|
||||
5 => "2 - 1"
|
||||
);
|
||||
$random_number = rand(0, 5);
|
||||
|
||||
printf('<input type="text" id="captcha_id" name="captcha_id" value="%s" style="display:none;">',
|
||||
$random_number);
|
||||
printf('<label for="captcha_answer">%s:</label>', $array[$random_number]);
|
||||
?>
|
||||
<input type="text" id="captcha_answer" name="captcha_answer" required>
|
||||
<br>
|
||||
printf('<input type="text" id="captcha_id" name="captcha_id" value="%s" style="display:none;">',
|
||||
$random_number);
|
||||
printf('<label for="captcha_answer">%s:</label>', $array[$random_number]);
|
||||
?>
|
||||
<input type="text" id="captcha_answer" name="captcha_answer" required>
|
||||
<br>
|
||||
|
||||
<input type="submit">
|
||||
</form>
|
||||
<input type="submit">
|
||||
</form> -->
|
||||
|
||||
<p class="footer">
|
||||
<a href="https://schlomp.space/FediBlock">Sourcecode</a> licensed under the
|
||||
|
|
Reference in New Issue