Code:
<html lang="en">
<head>
<meta http-equiv="refresh" content="5">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="http://rrmsclan.clanservers.com/sniper/priorityscrolling.css" rel="stylesheet" />
<script src="http://rrmsclan.clanservers.com/sniper/priorityscrolling.js">
/***********************************************
* Priority+ Scrolling Menu By Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Please keep this notice intact
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/
</script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<link rel="stylesheet" href="http://rrmsweb.com/assets/blossomfeaturebox.css" />
<link rel="stylesheet" href="http://rrmsweb.com/assets/optincontent.css" />
<link href="http://rrmsweb.com/css/bootstrap.min.css" rel="stylesheet">
<link href="http://rrmsweb.com/css/animate.min.css" rel="stylesheet">
<link href="http://rrmsweb.com/css/font-awesome.min.css" rel="stylesheet">
<link href="http://rrmsweb.com/css/lightbox.css" rel="stylesheet">
<link href="http://rrmsweb.com/css/responsive.css" rel="stylesheet">
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700' rel='stylesheet' type='text/css'>
<link href="http://fonts.googleapis.com/css?family=Bitter&subset=latin" rel="stylesheet" type="text/css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
<!--[if lt IE 9]>
<script src="http://rrmsweb.com/js/html5shiv.js"></script>
<script src="http://rrmsweb.com/js/respond.min.js"></script>
<![endif]-->
<script src="http://code.jquery.com/jquery-1.8.1.min.js"></script>
<script language="javascript" type="text/javascript">
function scrollToBottom() {
$('#html, body').scrollTop($('#html, body')[0].scrollHeight);
}
</script>
<title> *RRMS* Death Match Console</title>
<style type="text/css">
body {
margin: 0px;
background-color: #2c3237;
overflow-wrap: anywhere;
}
#myBtn {
display: none;
position: fixed;
bottom: 73px;
right: 20px;
z-index: 99;
font-size: 16px;
border: none;
outline: none;
background-color: transparent;
color: #f24242;
cursor: pointer;
padding: 8px;
border-radius: 4px;
}
#myBtn:hover {
background-color: transparent;
padding: 5px;
}
#admin {
color: whitesmoke;
font-style: oblique;
font-size: small;
background-color: #cc0000;
border: 1px solid black;
}
#line {
font-size: small;
color: #dec8ab;
}
#join {
font-size: small;
color: #ffc252;
}
#quit {
font-size: small;
color: orange;
}
#kill {
color: #f24242;
font-size: 13px;
font-style: bold;
}
#say {
color: #dec8ab;
font-size: 13px;
font-style: bold;
}
#wl {
color: #ffc252;
font-size: small;
}
#ls {
color: #ffc252;
font-size: small;
}
#item {
color: #2a9fd6;
font-size: small;
font-style: bold;
}
#weapon {
color: #2a9fd6;
font-size: small;
font-style: bold;
}
#fall {
color: #50edd6;
font-size: small;
font-style: bold;
}
#dmg {
color: #50edd6;
font-size: small;
font-style: bold;
}
table {
color: #50edd6;
font-size: small;
}
h1 {
background-color: #191919;
font-weight: bold;
font-size: 14pt;
font-family: Arial;
text-align: center;
color: #07cb6f;
padding: 5px;
margin-bottom: 5px;
margin-top: 5px;
}
h2 {
background-color: #191919;
text-shadow: 3px 2px 2px #292929 ;
border-bottom: #191919 1px inset;
border-left: #000000;
border-right: #000000;
border-top: #191919 1px inset;
text-align: left;
font-size: x-large;
color: #f4f4f4;
padding: 2px;
}
h4 {
background-color: #212529;
text-shadow: 5px 5px 5px #000000 ;
text-align: center;
font-size: medium;
color: #85929c;
padding: 4px;
border: 1px solid #191919;
border-radius: 3vw;
font-weight: bold;
}
h5 {
background-color: #2c3237;
text-shadow: 5px 5px 5px #000000 ;
color: #cccccc;
text-align: center;
font-size: large;
padding: 4px;
font-family: Questrial, Helvetica Neue, Arial, sans-serif;
border: 1px solid #292929;
border-radius: 3vw;
}
h6 {
background-color: #212529;
text-shadow: 5px 5px 5px #000000 ;
color: #000000;
text-align: center;
font-size: medium;
padding: 4px;
font-family: Questrial, Helvetica Neue, Arial, sans-serif;
border: 0px solid #292929;
border-radius: 1vw;
}
h3 {
background-color: transparent;
text-shadow: 4px 8px 8px #000000 ;
border-bottom: #191919 1px inset;
border-left: #000000;
border-right: #000000;
border-top: #191919 1px inset;
text-align: center;
font-size: medium;
color: #f24242;
}
.responsive {
width: 100%;
height: auto;
}
a {
text-decoration: none;
-webkit-transition: 100ms;
-moz-transition: 100ms;
-o-transition: 100ms;
transition: 100ms;
}
a:focus,
a:hover {
text-decoration: none;
background-color: transparent;
padding: 1px;
font-weight: bold;
text-shadow: 6px 6px 6px #000000;
}
a:visited {
color: #008080;
}
a {
color: #008080;
}
hr {
max-width: 100%;
border-width: 1px;
opacity: 0.33;
margin-top: 2px;
margin-bottom: 8px;
border-color: #191919;
}
::-webkit-scrollbar {
width: 5px;
}
::-webkit-scrollbar-track {
background: hsl(0, 0%, 30%);
border: 1px solid #191919;
border-radius: 150vw;
}
::-webkit-scrollbar-thumb {
background: hsl(0, 100%, 25%);
border: 1px solid #191919;
border-radius: 30vw;
}
</style>
</head>
<body>
<hr>
<h5 class="animated fadeInLeftBig"><i><b>*RR<span style="color: #f24242;">MS*</span><span style="color: #cccccc;"> Death</span><span style="color: #f24242;"> Match</span><span style="color: gold;">*</i></b></span></h5>
<table width="100%" class="responsive" style="border: 0px inset #f4f4f4; background-color: #2c3237; color: #f4f4f4; overflow: hidden" >
<tr>
<td> <h4 class="animated fadeInRightBig"><i><a href="javascript:void(0);" onmouseover="scrollToBottom();" title="Scroll to Bottom"><span style="color: #008080;"> <span class="glyphicon glyphicon-arrow-down"></span> <span style="color: #f4f4f4;">Scroll Down To Bottom From Here</span></a> <a href="javascript:void(0);" onmouseover="scrollToBottom();" title="Scroll to Bottom"><span style="color: #008080;"><span class="glyphicon glyphicon-arrow-down"></span></a></i></h4> </td>
</tr>
</table>
<?php
function ColorizeName($s)
{
$pattern[0] = "^0";
$replacement[0] = '</span><span style="color:#f4f4f4">';
$pattern[1] = "^1";
$replacement[1] = '</span><span style="color: #f24242">';
$pattern[2] = "^2";
$replacement[2] = '</span><span style="color: #00d700">';
$pattern[3] = "^3";
$replacement[3] = '</span><span style="color: yellow">';
$pattern[4] = "^4";
$replacement[4] = '</span><span style="color: #2a9fd6">';
$pattern[5] = "^5";
$replacement[5] = '</span><span style="color: 008080">';
$pattern[6] = "^6";
$replacement[6] = '</span><span style="color: #f24242">';
$pattern[7] = "^7";
$replacement[7] = '</span><span style="color:#f4f4f4">';
$pattern[8] = "^8";
$replacement[8] = '</span><span style="color: #f4f4f4">';
$pattern[9] = "^9";
$replacement[9] = '</span><span style="color: #f4f4f4">';
$s = str_replace($pattern, $replacement, htmlspecialchars($s));
$i = strpos($s, '</span>');
if ($i !== false) {
return substr($s, 0, $i) . substr($s, $i + 7, strlen($s)) . '</span>';
} else {
return $s;
}
}
$count = 1;
$fn = "ftp://username:password@108.61.238.231/main/rrms_dm_mod/logs/dm_log75.log";
$path = file($fn);
$sliced = @array_slice($path, -400, 400);
foreach($sliced as $linen => $line) {
$count++;
$line = str_replace("Shoe", "Nad", $line);
$line = str_replace("torso_lower", "Torso", $line);
$line = str_replace("torso_upper", "Torso", $line);
$line = str_replace("right_arm_upper", "Right Arm", $line);
$line = str_replace("right_arm_lower", "Right Arm", $line);
$line = str_replace("left_arm_upper", "Left Arm", $line);
$line = str_replace("left_arm_lower", "Left Arm", $line);
$line = str_replace("left_leg_upper", "Left Leg", $line);
$line = str_replace("right_leg_upper", "Right Leg", $line);
$line = str_replace("left_leg_lower", "Left Leg", $line);
$line = str_replace("right_leg_lower", "Right Leg", $line);
$line = str_replace("neck", "Neck", $line);
$line = str_replace("head", "Head", $line);
$line = str_replace("axis", "American-", $line);
$line = str_replace("allies", "German-", $line);
$line = str_replace("2134589", "(Royalty)", $line);
$line = str_replace("1941023", "(Royalty)", $line);
$line = str_replace("2116470", "(Royalty)", $line);
$line = str_replace("1551771", "(Clan Member)", $line);
$line = str_replace("2130158", "(Clan Member)", $line);
$line = str_replace("417508", "(Royalty)", $line);
$line = str_replace("1275831", "(Royalty)", $line);
$line = str_replace("417508", "(Royalty)", $line);
$line = str_replace("2126881", "(Douchebag)", $line);
$line = str_replace("1277306", "(Clan Member)", $line);
$line = str_replace("rrms_grid_locked_f", "*RRMS* Grid Locked", $line);
$line = str_replace("mp_brecourt", "MP Brecourt", $line);
$line = str_replace("mp_railyard", "MP Railyard", $line);
$line = str_replace("mp_harbor", "MP Harbor", $line);
$line = str_replace("rrms_house_of_rock_v2", "*RRMS* House of Rock", $line);
$line = str_replace("poker_table", "Poker Table", $line);
$line = str_replace("mp_pavlov", "MP Pavlov", $line);
$line = str_replace("GhostTown_ZheCk", "MP Ghost Town", $line);
$line = str_replace("rrms_killhouse", "*RRMS* Kill House", $line);
$line = str_replace("stielhandgranate2_mp", "Super Stick Grenade-", $line);
$line = str_replace("stielhandgranate_mp", "Stick Grenade-", $line);
$line = str_replace("thompson_mp", "Shotgun (Alt)-", $line);
$line = str_replace("m1carbine_mp", "Shotgun-", $line);
$line = str_replace("rgd-33russianfrag_mp", "Flashbang-", $line);
$line = str_replace("mk1-britishfrag_mp", "Grenade-", $line);
$line = str_replace("fraggrenade_mp", "Grenade-", $line);
$line = str_replace("grenade_mp", "Grenade-", $line);
$line = str_replace("knife_mp", "Dagger-", $line);
$line = str_replace("bat_mp", "Baseballbat-", $line);
$line = str_replace("uzi_mp", "UZI", $line);
$line = str_replace("sten_mp", "Sten", $line);
$line = str_replace("fg42_mp", "FG42", $line);
$line = str_replace("panzerfaust_mp", "Panzerfaust", $line);
$line = str_replace("ak74_mp", "Ak74-", $line);
$line = str_replace("ak742_mp", "AK74(Alt)-", $line);
$line = str_replace("ak47_mp", "AK47-", $line);
$line = str_replace("ak472_mp", "AK47(Alt)-", $line);
$line = str_replace("g3a3_mp", "G3A3-", $line);
$line = str_replace("g3a32_mp", "G3A3(Alt)-", $line);
$line = str_replace("mp5_mp", "MP5-", $line);
$line = str_replace("mp5_silenced_mp", "Silenced MP5-", $line);
$line = str_replace("m4_mp", "M4-", $line);
$line = str_replace("m4_2_mp", "M4(Alt)-", $line);
$line = str_replace("m14_mp", "M14-", $line);
$line = str_replace("m142_mp", "M14(Alt)-", $line);
$line = str_replace("m16_mp", "M16-", $line);
$line = str_replace("m162_mp", "M16(Alt)-", $line);
$line = str_replace("luger_mp", "P99 Pistol-", $line);
$line = str_replace("colt_mp", "Glock-", $line);
$line = str_replace("mg42_bipod_duck_mp", "MG 42-", $line);
$line = str_replace("mg42_bipod_stand_mp", "MG 42-", $line);
$line = str_replace("mg42_bipod_prone_mp", "MG 42-", $line);
if(strpos($line, "say;") == true) {
if(strpos($line, "say;") == true && strpos($line, "Admin") == true || strpos($line, "admin") == true) {
$xps = explode(";", $line);
echo "<div id=admin><u>Someone has Awakened the Gods!</u> Admin mentioned!</b>" . $xps[0] . " -
" . $xps[1] . " - " . $xps[2] . " - ". $xps[3] . " - ". ColorizeName($xps[4]) . " </span> - <b>" . $xps[5] . " </b> " . $xps[6] . " </div>";
}else {
$exp = explode(";", $line);
echo " <div id='say'> <b>" . $exp[3] . "</b>: <i>" . ColorizeName($exp[4]) . "</span></i></div>";
}}
elseif(strpos($line, "sayteam;") == true) {
$exp = explode(";",$line);
}
elseif(strpos($line, "tell;") == true) {
$exp = explode(";",$line);
}
elseif(strpos($line, "W;") == true) {
$exp = explode(";",$line);
echo " <div id='wl'>Winners: " . ColorizeName($line). "</div>";
}
elseif(strpos($line, "L;") == true) {
$exp = explode(";",$line);
echo " <div id='ls'>Losers: " . ColorizeName($line). "</div>";
}
elseif(strpos($line,"mapname") == true) {
$expm = explode("\\", $line);
echo "<h4> Map : " . $expm[20] . "</h4>";
}
elseif(strpos($line, "J;") == true) {
$expj = explode(";", $line);
echo "<div id=join>Joined: " . $expj[1] . " " . $expj[2] ." " . ColorizeName($expj[3]) . "</span></div>";
}
elseif(strpos($line, "Q;") == true) {
$expm = explode(";", $line);
echo "<div id=quit>Quit: " . $expm[1] . " " . $expm[2] ." " . ColorizeName($expm[3]) . "</span></div>";
}
elseif(strpos($line, "K;") == true) {
$xps = explode(";", $line);
echo "<div id=kill> " . $xps[3] . " <b>" . ColorizeName($xps[4]) . "</span></b> was <b>murdered</b> by " . $xps[7] . " <b>" . ColorizeName($xps[8]) . "</b> with a " . $xps[9] . " location: " . $xps[12] . " </div>" ;
}
elseif(strpos($line, "D;") == true) {
if(strpos($line, "MOD_FALLING")) {
$xpfa = explode(";", $line);
echo "<div id=fall> ". ColorizeName($xpfa[4]) . " </span> took a Leap of faith an lost causing <b>". $xpfa[6] . " Damage</b></div>";
}else{
$xpd = explode(";", $line);
}}
elseif(strpos($line, "Weapon;") == true) {
$exp = explode(";",$line);
echo "<div id=weapon>". ColorizeName($exp[3]) ." picked up a ".
$exp[4] . " </span> </div>";
}
elseif(strpos($line, "Item;") == true) {
$exp = explode(";",$line);
echo "<div id=item>". ColorizeName($exp[3]) ." got a ".
$exp[4] . " </span> </div>";
}
else {
echo "<div id=line> " . ColorizeName($line) . "</div>";
} }
?>
</td>
</tr>
</table>
<table width="100%" class="responsive" style="border: 0px inset #f4f4f4; overflow: hidden" >
<tr>
<h4 style="background-color: #191919;" width="50%" align="center"><span style="color: #008080;"><span class="glyphicon glyphicon-arrow-up"></span> <span style="color: #d3d3d3;">Begin Live Feed - Please Stand By</span> <span class="glyphicon glyphicon-arrow-up"></span></h4></span>
</tr>
</table>
<p><iframe width="100%" height="200" style="display: block; margin-left: auto; margin-right: auto;" frameborder="0" src="http://rrmsclan.com/server_tracker/dm/console_players.php"></iframe></p>
<hr>
<h6 class="animated fadeInRightBig" style="text-align: center;"><input type='button' value='Close Window' onclick='javascript: window.close();' /"></button></h6>
<hr>
<script type="text/javascript" src="http://rrmsweb.com/js/jquery.js"></script>
<script type="text/javascript" src="http://rrmsweb.com/js/bootstrap.min.js"></script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>
<script type="text/javascript" src="http://rrmsweb.com/js/jquery.inview.min.js"></script>
<script type="text/javascript" src="http://rrmsweb.com/js/wow.min.js"></script>
<script type="text/javascript" src="http://rrmsweb.com/js/mousescroll.js"></script>
<script type="text/javascript" src="http://rrmsweb.com/js/smoothscroll.js"></script>
<script type="text/javascript" src="http://rrmsweb.com/js/jquery.countTo.js"></script>
<script type="text/javascript" src="http://rrmsweb.com/js/lightbox.min.js"></script>
<script type="text/javascript" src="http://rrmsweb.com/js/main.js"></script>
</body>
</html>