Add language to debug log

This commit is contained in:
Squidly271 2021-04-29 11:43:39 -04:00
parent 51b99c4bf5
commit 10a405a23b
3 changed files with 4 additions and 1 deletions

Binary file not shown.

View File

@ -11,7 +11,7 @@ b398273cf7daa62ab00d2de2336ca25f ./README.md
6e48a62b91bdd066f023f46c6b491afd ./images/discord-gray.svg
8e7dc33512b8a78f28d7179a972c7c34 ./images/discord-hover.svg
54e46db492ddb033dfeb2827c5efd4a8 ./images/discord-white.svg
1743a5f99c606008ec90b6302cb2d280 ./include/exec.php
692af549e6ebba0ffa09c512e59618cc ./include/exec.php
46a523633a4737378b64192db97fca27 ./include/helpers.php
8f1129e0cdb994c6d1900192252433d8 ./include/paths.php
9ba7ea3ef8bad60cb8335da9c0daea4f ./javascript/libraries.js

View File

@ -61,8 +61,11 @@ if ( !is_dir($caPaths['templates-community']) ) {
if ($caSettings['debugging'] == "yes") {
if ( ! is_file($caPaths['logging']) ) {
$caVersion = plugin("version","/var/log/plugins/community.applications.plg");
file_put_contents($caPaths['logging'],"Community Applications Version: $caVersion\n");
file_put_contents($caPaths['logging'],"MD5's: \n".shell_exec("cd /usr/local/emhttp/plugins/community.applications && md5sum -c ca.md5")."\n",FILE_APPEND);
$lingo = $_SESSION['locale'] ?: "en_US";
file_put_contents($caPaths['logging'],"Language: $lingo\n\n",FILE_APPEND);
}
file_put_contents($caPaths['logging'],"POST CALLED ({$_POST['action']})\n".print_r($_POST,true),FILE_APPEND);
}