1
0

index.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /* $Id: index.php 2893 2007-04-14 13:20:30Z 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. // iid-check
  18. if (!isset($_REQUEST["iid"])) {
  19. // this is for official tf compat
  20. require_once("inc/functions/functions.compat.tf.php");
  21. compat_tf_indexDispatch();
  22. // set iid-var
  23. $_REQUEST["iid"] = "index";
  24. }
  25. // include page
  26. if (preg_match('/^[a-zA-Z]+$/D', $_REQUEST["iid"])) {
  27. @require_once("inc/iid/".$_REQUEST["iid"].".php");
  28. } else {
  29. $_iid = tfb_getRequestVar('iid');
  30. AuditAction($cfg["constants"]["error"], "INVALID PAGE: ".$_iid);
  31. @error("Invalid Page", "index.php?iid=index", "Home", array($_iid));
  32. }
  33. ?>