@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | $check = getimagesize($_FILES["file"]["tmp_name"]); |
16 | 16 | if ($check !== false) { |
17 | 17 | $uploadOk = 1; |
18 | - } else { |
|
18 | + }else { |
|
19 | 19 | echo "what are you doing anon? that file was not an image or a webm..."; |
20 | 20 | $uploadOk = 0; |
21 | 21 | } |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | // Upload the file |
36 | 36 | if ($uploadOk == 0) { |
37 | 37 | echo "Sorry, your file was not uploaded."; |
38 | - } else { |
|
38 | + }else { |
|
39 | 39 | move_uploaded_file($_FILES["file"]["tmp_name"], $target_file); |
40 | 40 | } |
41 | 41 | } |
@@ -58,12 +58,12 @@ discard block |
||
58 | 58 | array_push($messages["messages"], $new_message); |
59 | 59 | $jsondata = json_encode($messages, JSON_PRETTY_PRINT); |
60 | 60 | file_put_contents($file, $jsondata); |
61 | - } else { |
|
61 | + }else { |
|
62 | 62 | echo "The message field is <b>required</b>."; |
63 | 63 | } |
64 | 64 | } |
65 | 65 | |
66 | - function greenText($msg){ |
|
66 | + function greenText($msg) { |
|
67 | 67 | preg_match_all('/>.*/', $msg, $matches, PREG_SET_ORDER, 0); |
68 | 68 | |
69 | 69 | foreach ($matches as $m) { |
@@ -73,11 +73,11 @@ discard block |
||
73 | 73 | return str_replace("\n", "", $msg); |
74 | 74 | } |
75 | 75 | |
76 | - function postLink($msg){ |
|
76 | + function postLink($msg) { |
|
77 | 77 | preg_match_all('/>>.\S*/', $msg, $matches, PREG_SET_ORDER, 0); |
78 | 78 | |
79 | 79 | foreach ($matches as $m) { |
80 | - $msg = str_replace($m[0], '<a href="#' . str_replace(">>", "",$m[0]) . '" class="postLink" style="color:#55F;">' . str_replace(">>", ">", $m[0]) . '</a>', $msg); |
|
80 | + $msg = str_replace($m[0], '<a href="#' . str_replace(">>", "", $m[0]) . '" class="postLink" style="color:#55F;">' . str_replace(">>", ">", $m[0]) . '</a>', $msg); |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | return str_replace("\n", "", $msg); |