PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /opt/sharedrads/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : //opt/sharedrads/radsfunctions.sh

#!/bin/bash
# Shared RADS Tools, written by Erik Soroka (eriks@imhadmin.net, ext 834)
# load banner functions

function radsbanner {
echo -e "\033[40;37;2m  INMOTION HOSTING  :  SHARED RADS  :  SHARED RESOURCE ABUSE DETECTION SCRIPTS  \033[0m"
}

function smradsbanner {
echo -e "  \033[40;37;2m.-------------------.\033[0m  "
echo -e "  \033[40;37;2m| INMOTION HOSTING: |\033[0m  "
echo -e "  \033[40;37;2m| SHARED RADS TOOLS |\033[0m  "
echo -e "  \033[40;37;2m\`--------.---------' \033[0m "
echo    "           |           "
echo    "          _|_      -e"
}


function radsbanner-nocolor {
echo "#################################################################################"
echo "  INMOTION HOSTING  .:: SHARED RADS ::.  SHARED RESOURCE ABUSE DETECTION SCRIPTS"
echo "#################################################################################"
}

# Enables log archiving, storing a backup of their current settings if they have them
function archive_logs {
    if [ -f /home/$SUSPENDUSER/.cpanel-logs ]; then
        mkdir -p /home/$SUSPENDUSER/.imh/
        /bin/mv /home/$SUSPENDUSER/.cpanel-logs /home/$SUSPENDUSER/.imh/.cpanel-logs
    fi
    echo "archive-logs=1" > /home/$SUSPENDUSER/.cpanel-logs
    chown $SUSPENDUSER.$SUSPENDUSER /home/$SUSPENDUSER/.cpanel-logs
}

function unarchive_logs {
    if [ -f /home/$SUSPENDUSER/.imh/.cpanel-logs ]; then
        /bin/mv /home/$SUSPENDUSER/.imh/.cpanel-logs /home/$SUSPENDUSER/.cpanel-logs
        chown $SUSPENDUSER.$SUSPENDUSER /home/$SUSPENDUSER/.cpanel-logs
    else
        rm -f /home/$SUSPENDUSER/.cpanel-logs
    fi
}