Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../opt/sharedra...
File: radsfunctions.sh
#!/bin/bash
[0] Fix | Delete
# Shared RADS Tools, written by Erik Soroka (eriks@imhadmin.net, ext 834)
[1] Fix | Delete
# load banner functions
[2] Fix | Delete
[3] Fix | Delete
function radsbanner {
[4] Fix | Delete
echo -e "\033[40;37;2m INMOTION HOSTING : SHARED RADS : SHARED RESOURCE ABUSE DETECTION SCRIPTS \033[0m"
[5] Fix | Delete
}
[6] Fix | Delete
[7] Fix | Delete
function smradsbanner {
[8] Fix | Delete
echo -e " \033[40;37;2m.-------------------.\033[0m "
[9] Fix | Delete
echo -e " \033[40;37;2m| INMOTION HOSTING: |\033[0m "
[10] Fix | Delete
echo -e " \033[40;37;2m| SHARED RADS TOOLS |\033[0m "
[11] Fix | Delete
echo -e " \033[40;37;2m\`--------.---------' \033[0m "
[12] Fix | Delete
echo " | "
[13] Fix | Delete
echo " _|_ -e"
[14] Fix | Delete
}
[15] Fix | Delete
[16] Fix | Delete
[17] Fix | Delete
function radsbanner-nocolor {
[18] Fix | Delete
echo "#################################################################################"
[19] Fix | Delete
echo " INMOTION HOSTING .:: SHARED RADS ::. SHARED RESOURCE ABUSE DETECTION SCRIPTS"
[20] Fix | Delete
echo "#################################################################################"
[21] Fix | Delete
}
[22] Fix | Delete
[23] Fix | Delete
# Enables log archiving, storing a backup of their current settings if they have them
[24] Fix | Delete
function archive_logs {
[25] Fix | Delete
if [ -f /home/$SUSPENDUSER/.cpanel-logs ]; then
[26] Fix | Delete
mkdir -p /home/$SUSPENDUSER/.imh/
[27] Fix | Delete
/bin/mv /home/$SUSPENDUSER/.cpanel-logs /home/$SUSPENDUSER/.imh/.cpanel-logs
[28] Fix | Delete
fi
[29] Fix | Delete
echo "archive-logs=1" > /home/$SUSPENDUSER/.cpanel-logs
[30] Fix | Delete
chown $SUSPENDUSER.$SUSPENDUSER /home/$SUSPENDUSER/.cpanel-logs
[31] Fix | Delete
}
[32] Fix | Delete
[33] Fix | Delete
function unarchive_logs {
[34] Fix | Delete
if [ -f /home/$SUSPENDUSER/.imh/.cpanel-logs ]; then
[35] Fix | Delete
/bin/mv /home/$SUSPENDUSER/.imh/.cpanel-logs /home/$SUSPENDUSER/.cpanel-logs
[36] Fix | Delete
chown $SUSPENDUSER.$SUSPENDUSER /home/$SUSPENDUSER/.cpanel-logs
[37] Fix | Delete
else
[38] Fix | Delete
rm -f /home/$SUSPENDUSER/.cpanel-logs
[39] Fix | Delete
fi
[40] Fix | Delete
}
[41] Fix | Delete
[42] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function