-
Notifications
You must be signed in to change notification settings - Fork 1
/
int.php
54 lines (51 loc) · 1.91 KB
/
int.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php include("top.php"); ?>
<?php
$targets = loadTargets();
$int = intval($_GET["int"]);
if ($int < 1) $int = 1;
if ($int > 54) $int = 54;
echo("<div class=\"lefty\">");
if ($int > 1) echo("<a href=\"int.php?int=" . ($int-1) . "\">" . "<-</a> ");
echo("<b>" . internal($int, true, true, false) . "</b>");
if ($int < 54) echo(" <a href=\"int.php?int=" . ($int+1) . "\">" . "-></a>");
echo("<br/><br/>");
$utimes = array();
$unicks = array();
$c = 0;
foreach ($users as $cItem) {
$utimes[] = stateTimes($cItem["nick"], $cItem["elmaname"]);
$unicks[] = $cItem["nick"];
$c++;
}
$top = array();
for ($y = 0;$y < $c;$y++) {
$cItem["nick"] = $unicks[$y];
$cItem["time"] = $utimes[$y][$int][1];
if ($cItem["time"] == 0) $cItem["time"] = 60000;
if ($cItem["time"] < 60000) $top[] = $cItem;
}
usort($top, "cmp");
echo("<table class=\"times\">\n");
echo("<tr><th class=\"times\" width=\"20px\"></th>");
echo("<th class=\"times\" width=\"180px\">Kuski</th>");
echo("<th class=\"times\" width=\"81px\"><center>Time</center></th></tr>\n");
for ($y = 0;$y < count($top);$y++) {
if ($top[$y]["nick"] != "") {
echo("<tr>");
echo("<td class=\"times\" width=\"20px\">" . ($y+1) . ".</td>");
echo("<td class=\"times\" width=\"180px\">" . man($top[$y]["nick"]) . "</td>");
$str = "";
if ($y > 0) $str = " title=\"+" . formatElmaTime($top[$y]["time"]-$top[0]["time"]) . " to " . $top[0]["nick"] . "'s time\"";
echo("<td class=\"times\" width=\"81px\"" . $str . "><center>" . sttime($top[$y]["nick"], $int, $top[$y]["time"], true, false, target($top[$y]["time"], $int)) . "</center></td>");
echo("</tr>\n");
}
}
echo("</table>");
echo("</div><div class=\"lefty\">");
echo("<b>All internals</b><br/><br/>");
for ($x = 0;$x < 54;$x++) {
echo(internal($x+1, true) . "<br/>");
}
echo("</div>");
?>
<?php include("tpo.php"); ?>