Unexpectedly, although it is an XML way of thinking, It is not XML at all. The parsing part is still being modified ~~
<?
Require_once ( ' File/find. php ' );
Class Xygoogletalklog
{
VaR $ files;
VaR $ path;
Function xygoogletalklog ($ PATH)
{
$This->Path=$ Path;
$This->Files=File_find: maptreemultiple ($This->Path );
}
Function show ()
{
Header ( ' Content-Type: text/html; charset = UTF-8 ' );
Foreach ($ This -> Files As $ File)
{
Echo $This->Decoder ($This->Path."/". $ File );
}
}
Function Decoder ($ file)
{
$ Contents=File_get_contents ($ file );
ReturnUrldecode ($ contents );
}
}
If (Isset ($ _ server [ ' Argv ' ] [ ' Path ' ])
{
$ Path=$ _ Server ['Argv'] ['Path'];
}
Elseif (isset ($ _ Get [ ' Path ' ])
{
$ Path=$ _ Get ['Path'];
}
Else
{
Echo"Pleas give the parameter path as your Google Talk log directory.";
Exit;
}
$ Google = New Xygoogletalklog ($ PATH );
$ Google -> Show ();
?>