<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style>
*{ font-size:12px; line-height:22px; margin:0; padding:0}
</style>
<table style="margin:0 20px;">
    <?php
        foreach($sp_testdirs as $d)
        {
          if($d!='/') $fulld = TUNTRON_PATH.$d;
          else $fulld = TUNTRON_PATH;
          if($d!='/') $rsta = (is_readable($fulld) ? '<font color=green>[√]读</font>' : '<font color=red>[×]读</font>');
          else $rsta = '';
          $wsta = (is_writeable($fulld) ? '<font color=green>[√]写</font>' : '<font color=red>[×]写</font>');
    ?> 
    <tr>
      <td width="200"><?php echo $d; ?></td>
      <td><?php echo $rsta." ".$wsta; ?></td>
    </tr>
    <?php }?>
</table>