403Webshell
Server IP : 127.0.0.1  /  Your IP : 192.168.99.1
Web Server : Apache/2.4.35 (Win64) OpenSSL/1.1.1b mod_fcgid/2.3.9
System : Windows NT WIN-JEJMB9EN0L0 10.0 build 14393 (Windows Server 2016) AMD64
User : Administrator ( 0)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /wamp/apps/phpmyadmin3.4.10.1/scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /wamp/apps/phpmyadmin3.4.10.1/scripts/lang-cleanup.sh
#!/bin/sh
#
# vim: expandtab sw=4 ts=4 sts=4:
#
# Script for removing language selection from phpMyAdmin

if [ $# -lt 1 ] ; then
    echo "Usage: lang-cleanup.sh type"
    echo "Type can be one of:"
    echo "  all-languages - nothing will be done"
    echo "  english - no translations will be kept"
    echo "  langcode - keeps language"
    echo
    echo "Languages can be scpecified multiple times"
    exit 1
fi

# Expression for find
match=""
for type in "$@" ; do
    case $type in
        all-languages)
            exit 0
            ;;
        english)
            rm -rf po
            rm -rf locale
            exit 0
            ;;
        *)
            match="$match -and -not -name $type.po -and -not -path locale/$type/LC_MESSAGES/phpmyadmin.mo"
            ;;
    esac
done

# Delete unvanted languages
find po locale -type f $match -print0 | xargs -0r rm

# Delete empty directories
rmdir --ignore-fail-on-non-empty locale/*/*
rmdir --ignore-fail-on-non-empty locale/*

Youez - 2016 - github.com/yon3zu
LinuXploit