1
0

superadmin.php 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <?php
  2. /* $Id: superadmin.php 2892 2007-04-14 12:49:18Z 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. // main.internal
  16. require_once("inc/main.internal.php");
  17. // all functions
  18. require_once('inc/functions/functions.all.php');
  19. // superadmin functions
  20. require_once('inc/functions/functions.superadmin.php');
  21. // defines
  22. define('_DIR_BACKUP','.backup');
  23. define('_URL_HOME','http://tf-b4rt.berlios.de/');
  24. define('_URL_RELEASE','http://tf-b4rt.berlios.de/current');
  25. define('_SUPERADMIN_URLBASE','http://tf-b4rt.berlios.de/');
  26. define('_SUPERADMIN_PROXY','tf-b4rt.php');
  27. define('_FILE_CHECKSUMS_PRE','checksums-');
  28. define('_FILE_CHECKSUMS_SUF','.txt');
  29. define('_FILE_THIS', 'superadmin.php');
  30. define('_UPDATE_ARCHIVE','update.tar.bz2');
  31. // global fields
  32. $error = "";
  33. $statusImage = "black.gif";
  34. $statusMessage = "";
  35. $htmlTitle = "";
  36. $htmlTop = "";
  37. $htmlMain = "";
  38. // authenticate first
  39. superadminAuthentication();
  40. // fopen
  41. @ini_set("allow_url_fopen", "1");
  42. // version
  43. if (is_file('version.php'))
  44. require_once('version.php');
  45. else
  46. @error("version.php is missing");
  47. // -----------------------------------------------------------------------------
  48. // transfers "t"
  49. // -----------------------------------------------------------------------------
  50. if (isset($_REQUEST["t"]))
  51. sa_transfers(tfb_getRequestVar("t"));
  52. // -----------------------------------------------------------------------------
  53. // processes "p"
  54. // -----------------------------------------------------------------------------
  55. if (isset($_REQUEST["p"]))
  56. sa_processes(tfb_getRequestVar("p"));
  57. // -----------------------------------------------------------------------------
  58. // maintenance "m"
  59. // -----------------------------------------------------------------------------
  60. if (isset($_REQUEST["m"]))
  61. sa_maintenance(tfb_getRequestVar("m"));
  62. // -----------------------------------------------------------------------------
  63. // backup "b"
  64. // -----------------------------------------------------------------------------
  65. if (isset($_REQUEST["b"]))
  66. sa_backup(tfb_getRequestVar("b"));
  67. // -----------------------------------------------------------------------------
  68. // log "l"
  69. // -----------------------------------------------------------------------------
  70. if (isset($_REQUEST["l"]))
  71. sa_log(tfb_getRequestVar("l"));
  72. // -----------------------------------------------------------------------------
  73. // misc "y"
  74. // -----------------------------------------------------------------------------
  75. if (isset($_REQUEST["y"]))
  76. sa_misc(tfb_getRequestVar("y"));
  77. // -----------------------------------------------------------------------------
  78. // tfb "z"
  79. // -----------------------------------------------------------------------------
  80. if (isset($_REQUEST["z"]))
  81. sa_tfb(tfb_getRequestVar("z"));
  82. // -----------------------------------------------------------------------------
  83. // update "u"
  84. // -----------------------------------------------------------------------------
  85. if (isset($_REQUEST["u"]))
  86. sa_update(tfb_getRequestVar("u"));
  87. // -----------------------------------------------------------------------------
  88. // fluxd "f"
  89. // -----------------------------------------------------------------------------
  90. if (isset($_REQUEST["f"]))
  91. sa_fluxd(tfb_getRequestVar("f"));
  92. // -----------------------------------------------------------------------------
  93. // fluazu "a"
  94. // -----------------------------------------------------------------------------
  95. if (isset($_REQUEST["a"]))
  96. sa_fluazu(tfb_getRequestVar("a"));
  97. // -----------------------------------------------------------------------------
  98. // default
  99. // -----------------------------------------------------------------------------
  100. buildPage("_");
  101. printPage();
  102. exit();
  103. ?>