X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fxnet.inc.php;h=a8431e3722d4f7269b1a6981b774ea6465c657cd;hb=b17873a456b0ae3192d9766315b3d70685ee8691;hp=f3fc1a8466d655eb18da3817cbcb4efb2c2d1071;hpb=bec580ff2bb4e580e51cb852e07121fbdea6c5f2;p=platal.git diff --git a/include/xnet.inc.php b/include/xnet.inc.php index f3fc1a8..a8431e3 100644 --- a/include/xnet.inc.php +++ b/include/xnet.inc.php @@ -24,22 +24,7 @@ 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: ?>