first commit

This commit is contained in:
Erreur32 2021-02-02 14:23:37 +01:00
parent 50da256810
commit b2f89bdb73
2 changed files with 30 additions and 9 deletions

View File

@ -213,10 +213,19 @@ $sec = "300";
echo $InfoGT[68].$InfoGT[69].$InfoGT[70].$InfoGT[71].$InfoGT[72]; echo $InfoGT[68].$InfoGT[69].$InfoGT[70].$InfoGT[71].$InfoGT[72];
echo "<small style='color: grey;'><i class='fas fa-sun'></i><span style='color: white;'>x". $InfoGT[42]. "</span> - <i class='fas fa-moon'></i><span style='color: white;'>x".$InfoGT[55]." </span>"; } echo "<small style='color: grey;'><i class='fas fa-sun'></i><span style='color: white;'>x". $InfoGT[42]. "</span> - <i class='fas fa-moon'></i><span style='color: white;'>x".$InfoGT[55]." </span>"; }
if (count($objlower) > 0) {
/* if (count($objlower) > 0) {
echo $InfoGT[67].$InfoGT[68].$InfoGT[69].$InfoGT[70].$InfoGT[71].$InfoGT[72].$InfoGT[73]; echo $InfoGT[67].$InfoGT[68].$InfoGT[69].$InfoGT[70].$InfoGT[71].$InfoGT[72].$InfoGT[73];
echo "<small style='color: grey;'><i class='fas fa-sun'></i><span style='color: white;'>x". $InfoGT[43]. "</span> - <i class='fas fa-moon'></i><span style='color: white;'>x".$InfoGT[56]." </span>"; echo "<small style='color: grey;'><i class='fas fa-sun'></i><span style='color: white;'>x". $InfoGT[43]. "</span> - <i class='fas fa-moon'></i><span style='color: white;'>x".$InfoGT[56]." </span>";
} }
*/
if (count($objlower) > 0) {
echo $InfoGT[73].$InfoGT[74].$InfoGT[75].$InfoGT[76].$InfoGT[77].$InfoGT[78];
echo "<small style='color: grey;'><i class='fas fa-sun'></i><span style='color: white;'>x". $InfoGT[47]. "</span> - <i class='fas fa-moon'></i><span style='color: white;'>x".$InfoGT[60]." </span>";
}
?> ?>
@ -244,7 +253,7 @@ $sec = "300";
<div class="col-md-2 col-xs-12"> <div class="col-md-2 col-xs-12">
<div class="description-block"> <div class="description-block">
<h5 class="description-header"><?php echo $InfoGT[18].$InfoGT[19].$InfoGT[20].$InfoGT[21].$InfoGT[22].$InfoGT[23].$InfoGT[24].$InfoGT[25]; ?> <h5 class="description-header"><?php echo $InfoGT[24].$InfoGT[25].$InfoGT[26].$InfoGT[27].$InfoGT[28].$InfoGT[29].$InfoGT[30].$InfoGT[31]; ?>
</h5> </h5>
<span class="description-text">HIVE</span> <span class="description-text">HIVE</span>
</div> </div>
@ -466,7 +475,7 @@ $sec = "300";
</label> </label>
</div> </div>
<div class="col-sm-7"> <div class="col-sm-7">
<a style="text-decoration:none;" href='steam://connect/<?php echo $ipserv.":".$queryport; ?>/'> <a style="text-decoration:none;" href='steam://221100/<?php echo $ipserv.":".$queryport."/";?>'>
<span class='label label-success'> GO PLAY </span> <span class='label label-success'> GO PLAY </span>
</a> </a>
</div> </div>

View File

@ -12,14 +12,14 @@ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/dayz/dat
# #
# need to create the directory if dosen't exist an error will appear. # need to create the directory if dosen't exist an error will appear.
pathd="/path/to/your/website" pathd="/home/dayz/git-DayZ-server-stat"
# create directory # create directory
varMod="server1" varMod="server1"
# Game Port IP mod # Game Port IP mod
IpGame="" IpGame="103.58.149.102"
PortGame="" PortGame="2402"
QueryGame="" QueryGame="27017"
#CHECKstatserver="/tmp/CHECKstatserver_${varMod}.json" #CHECKstatserver="/tmp/CHECKstatserver_${varMod}.json"
statserver="${pathd}/${varMod}/statserver.json" statserver="${pathd}/${varMod}/statserver.json"
@ -46,12 +46,12 @@ DB_NAME=""
if [ -d ${pathd}/${varMod} ] if [ -d ${pathd}/${varMod} ]
then then
echo " ✅ Directory ${pathd}/${varMod} exist!" echo " ✅ Directory ${pathd}/${varMod} ok"
else else
mkdir -p ${pathd}/${varMod} mkdir -p ${pathd}/${varMod}
echo " ✅ Directory ${pathd}/${varMod} CREATED ✅" echo " ✅ Directory ${pathd}/${varMod} CREATED ✅"
fi fi
exit 1
if [ ! -r "$statserver" ]; then if [ ! -r "$statserver" ]; then
echo " ⛔Error:"${statserver}" doesn't exits" echo " ⛔Error:"${statserver}" doesn't exits"
@ -59,7 +59,19 @@ if [ ! -r "$statserver" ]; then
fi fi
nmapGame=`/usr/local/bin/gamedig --type dayz $IpGame:$QueryGame > ${CHECKstatserver}`
catCHECKstatserver=`cat ${CHECKstatserver}`
if [[ "$catCHECKstatserver" == *error* ]]
then
echo -e " ✅ Game is Down | port $PortGame closed! ⛔ "
insert_mysql_down && echo -e " ✅ Mysql Updated " || echo -e "\n !!!!!!!!!!!!! Huston , MYSQL issue ⛔"
# echo -e "\n Mysql updated"
exit 1 exit 1
else
echo -e " ✅ Game is UP | port $PortGame OPEN ✅ !\n"
cp ${CHECKstatserver} ${statserver}
########################## not use ########################## not use