<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Hi,</div><div>I hope it works, here is the sourcecode:</div><div><br></div><div>----</div><div><br></div><div><div><?</div><div>$quelltext = file_get_contents("<a href="http://stats.allstarlink.org">http://stats.allstarlink.org</a>");</div><div>$quelltext = str_replace("</div><div>", "", $quelltext);</div><div>$quelltext = str_replace("</tr>", "<br>", $quelltext);</div><div>$quelltext = str_replace("</td>", ";", $quelltext);</div><div>$quelltext = str_replace("<td>", "", $quelltext);</div><div>$quelltext = str_replace(";</div><div>", ";", $quelltext);</div><div>$quelltext = str_replace("; ", ";", $quelltext);</div><div>$quelltext = str_replace("; ", ";", $quelltext);</div><div>$quelltext = str_replace("<tr class=\"even-row\">", "", $quelltext);</div><div>$quelltext = str_replace("<tr class=\"odd-row\">", "", $quelltext);</div><div>$quelltext = substr($quelltext, strpos($quelltext, "Click here for")+39);</div><div>$quelltext = str_replace("<a href=\"nodeinfo.cgi?node=", "", $quelltext);</div><div>$quelltext = str_replace("\">", ";", $quelltext);</div><div>$quelltext = str_replace("</a>", "", $quelltext);</div><div>$quelltext = str_replace(";<br>", "<br>", $quelltext);</div><div>$quelltext = substr($quelltext, 0, strpos($quelltext, "<br></table>"));</div><div><br></div><div>$list = explode("<br>", $quelltext);</div><div><br></div><div>for ($i = 0; $i < count($list); $i++) {</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>$list[$i] = explode(";",$list[$i]);</div><div>}</div><div><br></div><div>for ($i = 0; $i < count($list); $i++) {</div><div><span class="Apple-tab-span" style="white-space:pre">      </span>$duration = $list[$i][6];</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>$d=0;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>$h=0;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>$m=0;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>$s=0;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>if (strpos($duration, "D") > 0)</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>{</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>$d = substr($duration, 0, strpos($duration, "D"));</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>$duration = substr($duration, strpos($duration, "D")+1);</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>if (strpos($duration, "H") > 0)</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>{</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>$h = substr($duration, 0, strpos($duration, "H"));</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>$duration = substr($duration, strpos($duration, "H")+1);</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>if (strpos($duration, "M") > 0)</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>{</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>$m = substr($duration, 0, strpos($duration, "M"));</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>$duration = substr($duration, strpos($duration, "M")+1);</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>if (strpos($duration, "S") > 0)</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>{</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>$s = substr($duration, 0, strpos($duration, "S"));</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>$duration = substr($duration, strpos($duration, "S")+1);</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">    </span></div><div><span class="Apple-tab-span" style="white-space:pre">     </span>$duration=$d*24*60*60+$h*60*60+$m*60+$s;</div><div><span class="Apple-tab-span" style="white-space:pre">     </span>$list[$i][6]=$duration;</div><div><span class="Apple-tab-span" style="white-space:pre">      </span></div><div><span class="Apple-tab-span" style="white-space:pre">     </span></div><div>}</div><div>for ($x = 1; $x < count($list); $x++) {</div><div>for ($i = 1; $i < count($list); $i++) {</div><div><br></div><div>if ($list[$i][6] < $list[$i-1][6])</div><div>{</div><div>$s1=$list[$i-1][1];</div><div>$s2=$list[$i-1][2];</div><div>$s3=$list[$i-1][3];</div><div>$s4=$list[$i-1][4];</div><div>$s5=$list[$i-1][5];</div><div>$s6=$list[$i-1][6];</div><div>$list[$i-1][1]=$list[$i][1];</div><div>$list[$i-1][2]=$list[$i][2];</div><div>$list[$i-1][3]=$list[$i][3];</div><div>$list[$i-1][4]=$list[$i][4];</div><div>$list[$i-1][5]=$list[$i][5];</div><div>$list[$i-1][6]=$list[$i][6];</div><div>$list[$i][1]=$s1;</div><div>$list[$i][2]=$s2;</div><div>$list[$i][3]=$s3;</div><div>$list[$i][4]=$s4;</div><div>$list[$i][5]=$s5;</div><div>$list[$i][6]=$s6;</div><div><br></div><div>}</div><div>}</div><div>}</div><div>echo "<table>";</div><div>echo "<tr><td>Node</td><td>Channel</td><td>Callsign</td><td>Location</td><td>Keyed</td><td>Last Key/Unkey</td></tr>";</div><div><br></div><div>for ($i = 0; $i < count($list); $i++) {</div><div>$durationD = intval($list[$i][6]/(24*60*60));</div><div>$durationH = intval(($list[$i][6]-$durationD*24*60*60)/(60*60));</div><div>$durationM = intval(($list[$i][6]-$durationD*24*60*60-$durationH*60*60)/(60));</div><div>$durationS = intval(($list[$i][6]-$durationD*24*60*60-$durationH*60*60-$durationM*60));</div><div>$duration ="";</div><div>if ($durationD > 0) {$duration = $durationD."D ".$durationH."H ".$durationM."M ".$durationS."S";}else{</div><div>if ($durationH > 0) {$duration = $durationH."H ".$durationM."M ".$durationS."S";}else{</div><div>if ($durationM > 0) {$duration = $durationM."M ".$durationS."S";}else{$duration = $durationS."S";}}}</div><div><br></div><div><br></div><div>echo "<tr><td>".$list[$i][1]."</td><td>".$list[$i][2]."</td><td>".$list[$i][3]."</td><td>".$list[$i][4]."</td><td>".$list[$i][5]."</td><td>".$duration."</td></tr>";</div><div>}</div><div>echo "<table>";</div><div><br></div><div><br></div><div><br></div><div>?></div></div><div><br></div><div>----</div><div><br><div><br></div><div><span style="background-color: rgba(255, 255, 255, 0);">73 de DL1FLO</span></div><div><br></div></div><div><br>Am 09.08.2015 um 04:02 schrieb Skyler F <<a href="mailto:electricity440@gmail.com">electricity440@gmail.com</a>>:<br><br></div><blockquote type="cite"><div><div dir="ltr">I like the feature on <a href="http://stats.allstarlink.org">stats.allstarlink.org</a> which shows the time since last unkey, but I wish there was a way to sort it, it would be really nice if I could find all of the nodes that are currently talking so I could connect in if I want to find someone to talk to or do a demonstration etc.<div><div class="gmail_signature"><div dir="ltr"></div></div>
</div><div><br></div><div>First, has anyone done such a thing, where you grab the last unkey from the stats.allstarlink and show all of the nodes that have had traffic sorted by last unkey? </div><div><br></div><div>Second, if I wanted to do it, what programming language would I have to learn to script it for my ham radio website and how hard would it be? </div><div><br></div><div>Thanks</div><div>Skyler KDØWHB</div></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>App_rpt-users mailing list</span><br><span><a href="mailto:App_rpt-users@ohnosec.org">App_rpt-users@ohnosec.org</a></span><br><span><a href="http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users">http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users</a></span><br><span></span><br><span>To unsubscribe from this list please visit <a href="http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users">http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users</a> and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button"</span><br><span>You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem. </span></div></blockquote></body></html>