File: 1.01.8a/server/base/nats.php (View as HTML)

  1: <?php
  2: /* -------------------------------------------------------------
  3: This file is part of FreeNATS
  4: 
  5: FreeNATS is (C) Copyright 2008 PurplePixie Systems
  6: 
  7: FreeNATS is free software: you can redistribute it and/or modify
  8: it under the terms of the GNU General Public License as published by
  9: the Free Software Foundation, either version 3 of the License, or
 10: (at your option) any later version.
 11: 
 12: FreeNATS is distributed in the hope that it will be useful,
 13: but WITHOUT ANY WARRANTY; without even the implied warranty of
 14: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 15: GNU General Public License for more details.
 16: 
 17: You should have received a copy of the GNU General Public License
 18: along with FreeNATS.  If not, see www.gnu.org/licenses
 19: 
 20: For more information see www.purplepixie.org/freenats
 21: -------------------------------------------------------------- */
 22: 
 23: if (!isset($BaseDir)) $BaseDir="./";
 24: 
 25: require($BaseDir."config.inc.php");
 26: 
 27: // Stuff...
 28: require($BaseDir."help.inc.php");
 29: require($BaseDir."node.xml.inc.php");
 30: 
 31: // Modules
 32: require($BaseDir."nats.db.inc.php");
 33: require($BaseDir."nats.cfg.inc.php");
 34: require($BaseDir."nats.tests.inc.php");
 35: require($BaseDir."freenats.inc.php");
 36: $NATS=new TFreeNATS();
 37: // just remains to call Start
 38: 
 39: // Session Management
 40: require($BaseDir."session.inc.php");
 41: $NATS_Session=new TNATS_Session();
 42: 
 43: // Scheduling Support
 44: require($BaseDir."schedule.inc.php");
 45: 
 46: // Timer
 47: require($BaseDir."timer.inc.php");
 48: 
 49: // Tests
 50: require($BaseDir."eval.inc.php");
 51: require($BaseDir."tests.inc.php");
 52: 
 53: // Screen and Stuff
 54: require($BaseDir."screen.inc.php");
 55: require($BaseDir."testtext.inc.php");
 56: require($BaseDir."view.inc.php");
 57: ?>