Lithron.LMetaData
[ class tree: Lithron.LMetaData ] [ index: Lithron.LMetaData ] [ all elements ]

Source for file LStatsModule.php

Documentation is available at LStatsModule.php

  1. <?php
  2.  
  3.  
  4. /**
  5. * Class file.
  6. *
  7. * @license http://opensource.org/licenses/mozilla1.1.php Mozilla Public License
  8. * @copyright 2005, diemeisterei GmbH. All rights reserved.
  9. * @author $Author: schmunk $
  10. * @version $Revision: 233 $ $Date: 2006-05-30 17:14:13 +0200 (Di, 30 Mai 2006) $
  11. * @package Lithron.LMetaData
  12. * @subpackage Modules
  13. */
  14.  
  15. /**
  16. * Core functionality for LStats
  17. *
  18. * @package Lithron.LStats
  19. * @subpackage Modules
  20. */
  21.  
  22. class LStatsModule extends TModule
  23. {
  24. const STATS_SEPERATOR = " | ";
  25. public function init($config)
  26. {
  27. $log = "";
  28. # $log .= $this->Application->User->getName();
  29. $log .= ">>>";
  30. $log .= $_SERVER["REQUEST_TIME"];
  31. $log .= self::STATS_SEPERATOR;
  32. $log .= $this->Service->getServicePage();
  33. $log .= self::STATS_SEPERATOR;
  34. if (isset($_SERVER["HTTP_REFERER"])) $log .= $_SERVER["HTTP_REFERER"];
  35. $log .= self::STATS_SEPERATOR;
  36. $log .= $_SERVER["REMOTE_ADDR"];
  37. $log .= self::STATS_SEPERATOR;
  38. $log .= $_SERVER["REMOTE_PORT"];
  39. $log .= self::STATS_SEPERATOR;
  40. $log .= $_SERVER["HTTP_USER_AGENT"];
  41. $log .= self::STATS_SEPERATOR;
  42. if (isset($_SERVER["HTTP_COOKIE"])) $log .= $_SERVER["HTTP_COOKIE"];
  43. $log .= self::STATS_SEPERATOR;
  44. $log .= $_SERVER["HTTP_HOST"];
  45. Prado :: log($log, 1, "Lithron.LStats");
  46. }
  47. }
  48. ?>

Documentation generated on Tue, 20 Jun 2006 05:15:24 +0200 by phpDocumentor 1.3.0RC4