Added support for dependencies
[AOOS.git] / index.php
blobf6059ecdc898d07212afe8aceebc1eb3148f85bf
1 <?php
2 session_start();
3 include("tmp/header.php");
4 include("tmp/translatebox.php");
6 require_once("AOOSCore.php");
7 require_once("AOOSModel.php");
8 require_once("AOOSStorageDevice.php");
10 try
12 if (!isset($_SESSION["core"]))
14 $c = new AOOSCore();
15 $_SESSION["core"] = serialize($c);
17 $c = unserialize($_SESSION["core"]);
18 $_SESSION["core"] = serialize($c);
19 $u = $c->getModule("User");
20 $u->login("'foo'", "'bar'");
22 catch (AOOSException $e)
25 global $c;
26 $c->printExceptions();