public static function isJoomla()
    {
        $directories = array('./libraries/cms', './libraries/joomla', './index.php', './administrator/index.php');

        foreach ($directories as $directory)
        {
            $path = realpath($directory);

            if (!file_exists($path)) {
                return false;
            }
        }

        return true;
    }
public static function isJoomla()
    {
        $directories = array('./libraries/cms', './libraries/joomla', './index.php', './administrator/index.php');

        foreach ($directories as $directory)
        {
            $path = realpath($directory);

            if (!file_exists($path)) {
                return false;
            }
        }

        return true;
    }
public static function isJoomla ( ) { $ directories = array ( './libraries/cms' , './libraries/joomla' , './index.php' , './administrator/index.php' ) ; foreach ( $ directories as $ directory ) { $ path = realpath ( $ directory ) ; if ( ! file_exists ( $ path ) ) { return false ; } } return true ; }
Validate if the current working directory has a valid Joomla installation

@return bool
Validate if the current working directory has a valid Joomla installation