mirror of https://github.com/OpenIPC/composer.git
23 lines
639 B
Bash
Executable File
23 lines
639 B
Bash
Executable File
#!/usr/bin/haserl
|
|
<%in p/common.cgi %>
|
|
<%
|
|
target="$GET_to"
|
|
if [ -n "$(echo "telegram yadisk" | sed -n "/\b${target}\b/p")" ]; then
|
|
/usr/sbin/snapshot4cron.sh -f >/dev/null
|
|
[ "openwall" = "$target" ] && opts="-f"
|
|
/usr/sbin/send2${target}.sh ${opts} >/dev/null
|
|
redirect_back "success" "Отправить в ${target}."
|
|
elif [ "pastebin" = "$target" ]; then
|
|
if [ "mjlog" = "$GET_file" ]; then
|
|
_t=$(mktemp)
|
|
logread | grep 'user.info majestic' >$_t
|
|
_url=$(/usr/sbin/send2${target}.sh $_t)
|
|
rm $_t
|
|
unset _t
|
|
redirect_to $_url
|
|
fi
|
|
else
|
|
redirect_back "danger" "Неизвестная цель ${target}!"
|
|
fi
|
|
%>
|