1
0

CoreClasses.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. /* $Id: CoreClasses.php 2886 2007-04-13 15:08:07Z b4rt $ */
  3. /*******************************************************************************
  4. LICENSE
  5. This program is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU General Public License (GPL)
  7. as published by the Free Software Foundation; either version 2
  8. of the License, or (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. To read the license please visit http://www.gnu.org/copyleft/gpl.html
  14. *******************************************************************************/
  15. // ClientHandler
  16. require_once("inc/classes/ClientHandler.php");
  17. // CommandHandler
  18. require_once("inc/classes/CommandHandler.php");
  19. // RunningTransfer
  20. require_once("inc/classes/RunningTransfer.php");
  21. // StatFile
  22. require_once("inc/classes/StatFile.php");
  23. // Fluxd
  24. require_once("inc/classes/Fluxd.php");
  25. // FluxdServiceMod
  26. require_once("inc/classes/FluxdServiceMod.php");
  27. // Xfer
  28. require_once("inc/classes/Xfer.php");
  29. /**
  30. * class ProcessInfo
  31. */
  32. class ProcessInfo {
  33. var $pid = "";
  34. var $ppid = "";
  35. var $cmdline = "";
  36. function ProcessInfo($psLine) {
  37. $psLine = trim($psLine);
  38. if (strlen($psLine) > 12) {
  39. $this->pid = trim(substr($psLine, 0, 5));
  40. $this->ppid = trim(substr($psLine, 5, 6));
  41. $this->cmdline = trim(substr($psLine, 12));
  42. }
  43. }
  44. }
  45. /**
  46. * class ProcessInfo : Stores the image and title of for the health of a file.
  47. */
  48. class HealthData {
  49. var $image = "";
  50. var $title = "";
  51. }
  52. ?>