
­­­­­­­­­­­­­­­­­­
<!DOCTYPE html>
<html>
#! /usr/bin/env bash

#define available colors
BLACK=`tput setaf 0`
RED=`tput setaf 1`
GREEN=`tput setaf 2`
YELLOW=`tput setaf 3`
BLUE=`tput setaf 4`
MAGENTA=`tput setaf 5`
CYAN=`tput setaf 6`
WHITE=`tput setaf 7`
BOLD=`tput bold`
RESET=`tput sgr0`

# Basic info
USER=$(whoami)
HOSTNAME=`uname -n`
IP=`cat /var/cpanel/mainip`
ROOT=`df -Ph | egrep "sda|root" | awk '{print $4}' | tr -d '\n'`
CPANEL=`/usr/local/cpanel/cpanel -V`
PHP=`php -v | head -1 | awk '{print $2}'`
MYSQL=`mysql -V | awk '{print $3}'`

if [ "$USER" = 'root' ]; then

 APACHE=`httpd -V | head -1 | awk '{print $3}'`

fi

# System load
MEMORY1=`free -t -m | grep Total | awk '{print $3" MB";}'`
MEMORY2=`free -t -m | grep "Mem" | awk '{print $2" MB";}'`
LOAD1=`cat /proc/loadavg | awk {'print $1'}`
LOAD5=`cat /proc/loadavg | awk {'print $2'}`
LOAD15=`cat /proc/loadavg | awk {'print $3'}`

if [ "$USER" = 'root' ]; then

 echo -e "
$GREEN ========================================================== $RESET
$GREEN \t Web Hosting services powered by FastComet \t $RESET
$GREEN ========================================================== $RESET
$GREEN Website:$RESET \t $CYAN https://www.fastcomet.com/ $RESET
$GREEN Client Area:$RESET \t $CYAN https://my.fastcomet.com/clientarea.php $RESET
$GREEN Tutorials:$RESET \t $CYAN https://www.fastcomet.com/tutorials $RESET
$GREEN ========================================================== $RESET
$GREEN Hostname:$RESET \t $CYAN $HOSTNAME $RESET
$GREEN IP Address:$RESET \t $CYAN $IP $RESET
$GREEN cPanel:$RESET \t $CYAN $CPANEL $RESET
$GREEN Apache:$RESET \t $CYAN ${APACHE:7} $RESET
$GREEN Global PHP:$RESET \t $CYAN $PHP $RESET
$GREEN MySQL:$RESET \t $CYAN ${MYSQL::-1} $RESET
$GREEN ========================================================== $RESET
$GREEN CPU Usage:$RESET \t $CYAN $LOAD1, $LOAD5, $LOAD15 $RESET
$GREEN Disk Space:$RESET \t $CYAN $ROOT remaining $RESET
$GREEN Memory Usage:$RESET \t $CYAN $MEMORY1 / $MEMORY2 $RESET
$GREEN ========================================================== $RESET
"
else 

 echo -e "
$GREEN ========================================================== $RESET
$GREEN \t Web Hosting services powered by FastComet \t $RESET
$GREEN ========================================================== $RESET
$GREEN Website:$RESET \t $CYAN https://www.fastcomet.com/ $RESET
$GREEN Client Area:$RESET \t $CYAN https://my.fastcomet.com/clientarea.php $RESET
$GREEN Tutorials:$RESET \t $CYAN https://www.fastcomet.com/tutorials $RESET
$GREEN ========================================================== $RESET
$GREEN Hostname:$RESET \t $CYAN $HOSTNAME $RESET
$GREEN IP Address:$RESET \t $CYAN $IP $RESET
$GREEN cPanel:$RESET \t $CYAN $CPANEL $RESET
$GREEN Global PHP:$RESET \t $CYAN $PHP $RESET
$GREEN MySQL:$RESET \t $CYAN ${MYSQL::-1} $RESET
$GREEN ========================================================== $RESET
$GREEN CPU Usage:$RESET \t $CYAN $LOAD1, $LOAD5, $LOAD15 $RESET
$GREEN Disk Space:$RESET \t $CYAN $ROOT remaining $RESET
$GREEN Memory Usage:$RESET \t $CYAN $MEMORY1 / $MEMORY2 $RESET
$GREEN ========================================================== $RESET
"
fi
