Example #1
0
 function check_path()
 {
     if (!(defined("XOOPS_PATH") && defined("XOOPS_VAR_PATH") && defined("XOOPS_TRUST_PATH"))) {
         return false;
     }
     $ctrl = new PathStuffController();
     if (!$ctrl->checkPath()) {
         return false;
     }
     if (!$ctrl->checkPermissions()) {
         return false;
     }
     return true;
 }