X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fxnet.inc.php;h=0247b2613cac3e4bccf79281e49fbec303bf5ada;hb=96d5db7deabb190a355d35e7bbd78aa62e23ee30;hp=f3fc1a8466d655eb18da3817cbcb4efb2c2d1071;hpb=bec580ff2bb4e580e51cb852e07121fbdea6c5f2;p=platal.git diff --git a/include/xnet.inc.php b/include/xnet.inc.php index f3fc1a8..0247b26 100644 --- a/include/xnet.inc.php +++ b/include/xnet.inc.php @@ -20,26 +20,12 @@ ***************************************************************************/ define('PL_GLOBALS_CLASS', 'PlatalGlobals'); +define('PL_LOGGER_CLASS', 'PlatalLogger'); define('PL_SESSION_CLASS', 'XnetSession'); define('PL_PAGE_CLASS', 'XnetPage'); require_once dirname(dirname(__FILE__)) . '/core/include/platal.inc.php'; - -function __autoload($cls) -{ - $cls = strtolower($cls); - if (!pl_autoload($cls)) { - if (substr($cls, -3, 3) == 'req') { - @include 'validations.inc.php'; - return; - } else if (substr($cls, 0, 6) == 'banana') { - require_once 'banana/banana.inc.php'; - Banana::load(substr($cls, 6)); - return; - } - @include "$cls.inc.php"; - } -} +require_once 'common.inc.php'; // vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: ?>