Exemplo n.º 1
0
 static function FullDir($sFile)
 {
     if (substr(strtolower($sFile), 0, 7) == 'plugin:') {
         $aParts = explode(':', substr($sFile, 7));
         if (sizeof($aParts) == 2 and in_array($aParts[0], Engine::getInstance()->Plugin_GetActivePlugins())) {
             $sFile = ACE::FilePath(ACE::GetPluginDir($aParts[0]) . '/' . $aParts[1]);
         }
     }
     if (self::IsLocalDir($sFile)) {
         return self::FilePath($sFile);
     }
     return self::FilePath(self::_calledFilePath() . $sFile);
 }