kernel/classes/ezsiteaccess.php
static function findPathToSiteAccess( $siteAccess )
    {
        $ini = eZINI::instance();
        $siteAccessList = $ini->variable( 'SiteAccessSettings', 'AvailableSiteAccessList' );
        if ( !in_array( $siteAccess, $siteAccessList )  )
            return false;

        $currentPath = 'settings/siteaccess/' . $siteAccess;
        if ( file_exists( $currentPath ) )
            return $currentPath;

        $activeExtensions = eZExtension::activeExtensions();
        $baseDir = eZExtension::baseDirectory();
        foreach ( $activeExtensions as $extension )
        {
            $currentPath = $baseDir . '/' . $extension . '/settings/siteaccess/' . $siteAccess;
            if ( file_exists( $currentPath ) )
                return $currentPath;
        }

        return 'settings/siteaccess/' . $siteAccess;
    }
static function findPathToSiteAccess( $siteAccess )
    {
        $ini = eZINI::instance();
        $siteAccessList = $ini->variable( 'SiteAccessSettings', 'AvailableSiteAccessList' );
        if ( !in_array( $siteAccess, $siteAccessList )  )
            return false;

        $currentPath = 'settings/siteaccess/' . $siteAccess;
        if ( file_exists( $currentPath ) )
            return $currentPath;

        $activeExtensions = eZExtension::activeExtensions();
        $baseDir = eZExtension::baseDirectory();
        foreach ( $activeExtensions as $extension )
        {
            $currentPath = $baseDir . '/' . $extension . '/settings/siteaccess/' . $siteAccess;
            if ( file_exists( $currentPath ) )
                return $currentPath;
        }

        return 'settings/siteaccess/' . $siteAccess;
    }
static function findPathToSiteAccess ( $ siteAccess ) { $ ini = eZINI :: instance ( ) ; $ siteAccessList = $ ini -> variable ( 'SiteAccessSettings' , 'AvailableSiteAccessList' ) ; if ( ! in_array ( $ siteAccess , $ siteAccessList ) ) return false ; $ currentPath = 'settings/siteaccess/' . $ siteAccess ; if ( file_exists ( $ currentPath ) ) return $ currentPath ; $ activeExtensions = eZExtension :: activeExtensions ( ) ; $ baseDir = eZExtension :: baseDirectory ( ) ; foreach ( $ activeExtensions as $ extension ) { $ currentPath = $ baseDir . '/' . $ extension . '/settings/siteaccess/' . $ siteAccess ; if ( file_exists ( $ currentPath ) ) return $ currentPath ; } return 'settings/siteaccess/' . $ siteAccess ; }
Returns path to site access

@param string $siteAccess
@return string|false Return path to siteacces or false if invalid
Returns path to site access