I have added XML functionality to the log in response to the note on line 56 of log.class.php:
// @todo write logs in a cleaner structured language (xml, html ... ?)
To create an XML Log, insert the following code into /src/proxies/log.class.php at line 64:
- Code: Select all
$logfile = $logpath."/chat.xml";
if (is_writable($logpath))
{
$log = "<chat_entry>n";
$log .= "t<channel>". $recipient ."</channel>n";
$log .= "t<date>". date("d/m/Y") ."</date>n";
$log .= "t<time>". date("H:i:s") ."</time>n";
$log .= "t<username>". $sender ."</username>n";
$log .= "t<message>". $param ."</message>n";
$log .= "</chat_entry>nn";
file_put_contents($logfile, $log, FILE_APPEND | LOCK_EX);
}
Best of luck!