Skip to content
Snippets Groups Projects
Commit 2d07e122 authored by Bob Mottram's avatar Bob Mottram
Browse files

Button for blocking words

parent 018d1206
No related branches found
No related tags found
No related merge requests found
......@@ -120,6 +120,7 @@
<textarea rows="10" cols="50" name="blockinglist" translate="no">BLOCKEDLIST</textarea>
<br><br>
<input type="submit" name="submitblockingcancel" translate="yes" value="Cancel">
<input type="submit" name="submitblockingwords" translate="yes" value="Muted words">
<input type="submit" name="submitblocking" translate="yes" value="Continue">
</form>
......
......@@ -12,6 +12,10 @@ if (isset($_POST['submitblocking'])) {
fclose($blocking_file);
}
if (isset($_POST['submitblockingwords'])) {
$output_filename = "blocking_words.html";
}
$htmlfile = fopen("$output_filename", "r") or die("Unable to open $output_filename");
echo fread($htmlfile,filesize("$output_filename"));
fclose($htmlfile);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment