Added logging for email
@@ -33,7 +33,10 @@ if (array_key_exists("mail", $OGPOST) and array_key_exists("sender", $OGPOST) an
|
||||
}
|
||||
$mail->addAddress($OGPOST["mail"]); // Add a recipient
|
||||
$mail->send();
|
||||
echo "sucess";
|
||||
echo "sent email";
|
||||
$sender = $_POST["sender"];
|
||||
$reciever = $_POST["mail"];
|
||||
writeLog(29, "Sent email from $sender to $reciever with user $USERNAME and ip $address");
|
||||
} catch (Exception $e) { // Used to make sure errors are reported
|
||||
http_response_code(500);
|
||||
echo $e->errorMessage();
|
||||
|
||||
0
html/css/images/ui-icons_00ff00_256x240.png
Normal file → Executable file
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
0
html/css/images/ui-icons_ff0000_256x240.png
Normal file → Executable file
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
0
html/css/images/ui-icons_ffffff_256x240.png
Normal file → Executable file
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
0
html/favicon/android-chrome-192x192.png
Normal file → Executable file
|
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 54 KiB |
0
html/favicon/apple-touch-icon.png
Normal file → Executable file
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
0
html/favicon/favicon-32x32.png
Normal file → Executable file
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
0
html/gameData/secret.env
Normal file → Executable file
0
html/img/cookieClicker.first.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 633 B After Width: | Height: | Size: 633 B |
0
html/img/cookieClicker.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
0
html/img/cookieClicker.min.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 319 KiB After Width: | Height: | Size: 319 KiB |
0
html/img/deck/.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
0
html/img/deck/0.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
0
html/img/deck/1.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
0
html/img/deck/10.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
0
html/img/deck/11.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
0
html/img/deck/14.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 8.1 KiB After Width: | Height: | Size: 8.1 KiB |
0
html/img/deck/15.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 8.7 KiB |
0
html/img/deck/16.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 9.3 KiB After Width: | Height: | Size: 9.3 KiB |
0
html/img/deck/17.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
0
html/img/deck/18.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
0
html/img/deck/2.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
0
html/img/deck/20.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
0
html/img/deck/21.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
0
html/img/deck/22.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
0
html/img/deck/23.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
0
html/img/deck/24.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
0
html/img/deck/25.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
0
html/img/deck/26.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
0
html/img/deck/27.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
0
html/img/deck/29.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
0
html/img/deck/3.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
0
html/img/deck/30.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
0
html/img/deck/33.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
0
html/img/deck/35.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
0
html/img/deck/36.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
0
html/img/deck/37.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
0
html/img/deck/38.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
0
html/img/deck/39.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
0
html/img/deck/4.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
0
html/img/deck/40.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 7.6 KiB |
0
html/img/deck/41.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 8.2 KiB |
0
html/img/deck/42.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 9.4 KiB |
0
html/img/deck/44.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
0
html/img/deck/46.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
0
html/img/deck/47.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
0
html/img/deck/48.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
0
html/img/deck/49.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
0
html/img/deck/5.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
0
html/img/deck/50.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
0
html/img/deck/51.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
0
html/img/deck/7.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
0
html/img/deck/8.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
0
html/img/deck/9.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
0
html/img/deck/back.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 33 KiB |
0
html/img/deck/undefined.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
0
html/img/floppy.first.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
0
html/img/floppy.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 2.0 MiB After Width: | Height: | Size: 2.0 MiB |
0
html/img/floppy.min.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 369 KiB After Width: | Height: | Size: 369 KiB |
0
html/img/notFound.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 228 KiB After Width: | Height: | Size: 228 KiB |
0
html/img/notFound.min.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 228 KiB After Width: | Height: | Size: 228 KiB |
@@ -44,7 +44,7 @@ function array_key_value(string $key, array $array, string $compare) {
|
||||
}
|
||||
function sanitize($value) # Used to sanitize a value very strictly
|
||||
{
|
||||
$validChars = "QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890-#:. ";
|
||||
$validChars = "QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890-#:.@ ";
|
||||
$validChars = str_split($validChars);
|
||||
$valueSplit = str_split($value);
|
||||
$value = "";
|
||||
|
||||
@@ -143,5 +143,10 @@
|
||||
"type": "28",
|
||||
"name": "Deleted Container",
|
||||
"color": "#660099"
|
||||
},
|
||||
{
|
||||
"type": "29",
|
||||
"name": "Sent Email",
|
||||
"color": "#003333"
|
||||
}
|
||||
]
|
||||