-<Files loader*.php>
- Deny from all
-</Files>
<Files config.php*>
Deny from all
</Files>
<?
-include('loader.php');
+include('inc/loader.php');
if(!$db->canAdministrate())
die("Administration is turned off. Sorry.");
//internal info: server version
$MAGICSMOKEVERSION="0.1 alpha";
//load DB drivers
-include('inc/db.php');
-include('inc/db_mysql.php');
-include('config.php');
-include('inc/db_scheme.php');
+include('./inc/db.php');
+include('./inc/db_mysql.php');
+include('./config.php');
+include('./inc/db_scheme.php');
//try to connect
$db->tryConnect();
//move on in loader_nonadmin.php (or admin.php)
if(!$db->canUseDb())
die("Database is not correctly configured. Giving up.");
//load class-files
-include('inc/event.php');
-include('inc/room.php');
+include('./inc/event.php');
+include('./inc/room.php');
+include("./inc/random.php");
?>
\ No newline at end of file
<?
//basics
-include('loader.php');
-include('loader_nonadmin.php');
+include('inc/loader.php');
+include('inc/loader_nonadmin.php');
//include display scripts
include('inc/event_listing.php');
include('inc/parser.php');
}
//initialize basics
-include("loader.php");
+include("inc/loader.php");
// server info can be answered without performing any more initialization
if($SMOKEREQUEST=="serverinfo"){
}
//initialize DB
-include("loader_nonadmin.php");
+include("inc/loader_nonadmin.php");
//load machine interface
-include("inc/random.php");
include("inc/session.php");
// request to start a session