403Webshell
Server IP : 51.89.169.208  /  Your IP : 216.73.216.211
Web Server : Apache
System : Linux ns3209505.ip-198-244-202.eu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Tue Nov 5 04:50:16 EST 2024 x86_64
User : yellowleaf ( 1019)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/thread-self/root/proc/self/root/usr/share/zsh/5.5.1/functions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/thread-self/root/proc/self/root/usr/share/zsh/5.5.1/functions/VCS_INFO_hook
### vim:ft=zsh:foldmethod=marker
## Written by Frank Terbeck <ft@bewatermyfriend.org>
## Distributed under the same BSD-ish license as zsh itself.

local hook static func
local context hook_name
local -i ret
local -a hooks tmp
local -i debug

ret=0
hook_name="$1"
shift
context=":vcs_info:${vcs}+${hook_name}:${usercontext}:${rrn}"
static=":vcs_info-static_hooks:${hook_name}"

zstyle -t "${context}" debug && debug=1 || debug=0
if (( debug )); then
    printf 'VCS_INFO_hook: running hook: "%s"\n' "${hook_name}"
    printf 'VCS_INFO_hook: current context: "%s"\n' "${context}"
    printf 'VCS_INFO_hook: static context: "%s"\n' "${static}"
fi

zstyle -a "${static}" hooks hooks
if (( debug )); then
    printf '+ static hooks: %s\n' "${(j:, :)hooks}"
fi
zstyle -a "${context}" hooks tmp
if (( debug )); then
    printf '+ context hooks: %s\n' "${(j:, :)tmp}"
fi
hooks+=( "${tmp[@]}" )
(( ${#hooks} == 0 )) && return 0

# Protect some internal variables in hooks. The `-g' parameter to
# typeset does *not* make the parameters global here (they are already
# "*-local-export). It prevents typeset from creating *new* *local*
# parameters in this function's scope.
typeset -g -r vcs rrn usercontext maxexports msgs vcs_comm
for hook in ${hooks} ; do
    func="+vi-${hook}"
    if (( ${+functions[$func]} == 0 )); then
        (( debug )) && printf '  + Unknown function: "%s"\n' "${func}"
        continue
    fi
    (( debug )) && printf '  + Running function: "%s"\n' "${func}"
    true
    ${func} "$@"
    case $? in
        (0)
            ;;
        (*)
            break
            ;;
    esac
done
typeset -g +r vcs rrn usercontext maxexports msgs vcs_comm
return $ret

Youez - 2016 - github.com/yon3zu
LinuXploit