nano-tetra-modules/Status/api/fetchif.php

7 lines
130 B
PHP

<?php
$MYDATA=exec("grep ".$_GET['if']." /proc/net/dev | tr -s ' ' ' '");
$MYDATE=exec("date");
echo $MYDATE."\n".$MYDATA."\n";