X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fcommon.inc.php;h=a5bceaefda8d36de3c44d8129d4dba19e9ab6b6f;hb=fb813fb52d5ab65ca9a5b92b5cb9089523380d79;hp=54020a89038131515c07a07ed64ce548a594f6f0;hpb=a959b199b8f4790bf311c4e9c4b96b4ffb494eeb;p=platal.git diff --git a/include/common.inc.php b/include/common.inc.php index 54020a8..a5bceae 100644 --- a/include/common.inc.php +++ b/include/common.inc.php @@ -23,7 +23,15 @@ function __autoload($cls) { if (!pl_autoload($cls)) { $cls = strtolower($cls); - if (substr($cls, -3, 3) == 'req') { + if (substr($cls, 0, 4) == 'ufc_' || substr($cls, 0, 4) == 'ufo_') { + __autoload('userfilter'); + return; + } else if (substr($cls, 0, 4) == 'pfc_' + || substr($cls, 0, 4) == 'pfo_' + || substr($cls, 0, 8) == 'plfilter') { + __autoload('plfilter'); + return; + } else if (substr($cls, -3, 3) == 'req') { @include 'validations.inc.php'; return; } else if (substr($cls, 0, 6) == 'banana') {