admin_old : les vieux fichiers a migrer
[platal.git] / htdocs / index.php
index 4855883..881a223 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2004 Polytechnique.org                              *
+ *  Copyright (C) 2003-2006 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************/
 
-require_once("xorg.inc.php");
-new_skinned_page('index.tpl', AUTH_PUBLIC);
-if (logged()) {
-    redirect("login.php");
-}
-$page->run();
+require_once 'xorg.inc.php';
+
+require_once dirname(__FILE__).'/../classes/Platal.php';
+require_once dirname(__FILE__).'/../classes/PLModule.php';
+
+$platal = new Platal('auth', 'banana', 'carnet', 'email', 'events', 'geoloc',
+                     'lists', 'marketing', 'payment', 'platal', 'profile',
+                     'register', 'search', 'stats', 'trezo', 'admin');
+$platal->run();
+
 ?>