├── VERSION
├── .gitattributes
├── header.php
├── .gitignore
├── README.md
├── foot.php
├── config.dist.php
├── head.php
├── login.php
├── functions.php
└── index.php
/VERSION:
--------------------------------------------------------------------------------
1 | 1.7
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
--------------------------------------------------------------------------------
/header.php:
--------------------------------------------------------------------------------
1 |
8 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Ignore config file
2 | /config.php
3 | /test*
4 |
5 | # Ignoring directories
6 | # Both the directory itself and its contents will be ignored.
7 | test/
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # hMailServer Log Searcher
2 | Search hMailServer logs by keyword. Keyword can be string, IP, date/time, etc.
3 |
4 | The script loops through all files in hMailServer's Logs directory (path found via API), reads each line and if a matching keyword is found, displays the line and the log filename.
5 |
6 | # Instructions
7 | Copy config.dist.php to config.php and fill in the variables.
--------------------------------------------------------------------------------
/foot.php:
--------------------------------------------------------------------------------
1 |
4 | Pálinkás jó reggelt kívánok!
";
5 | $versionGitHub = file_get_contents('https://raw.githubusercontent.com/palinkas-jo-reggelt/hMailServer_Log_Searcher/main/VERSION');
6 | $versionLocal = file_get_contents('VERSION');
7 | if ((float)$versionLocal < (float)$versionGitHub) {
8 | echo "
9 | Upgrade to version ".trim($versionGitHub)." available at GitHub";
10 | }
11 | echo "
12 |
13 |
14 |