X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fcommon.inc.php;h=27209e64ed8f414e1e6c1587bda8ee0e6470b3ba;hb=98925aab681d8a3b26e901beac0a4cf2b1a274fb;hp=f524ec876075851e38434556b821589ed88d4243;hpb=b27ccd85af8db2d996495ba1e8a63b504b2a9b4a;p=platal.git diff --git a/include/common.inc.php b/include/common.inc.php index f524ec8..27209e6 100644 --- a/include/common.inc.php +++ b/include/common.inc.php @@ -23,7 +23,13 @@ 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') {