- Timestamp:
- Jan 5, 2009, 7:31:45 AM (16 years ago)
- Location:
- www/is
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
www/is/tc.php
r1 r129 6 6 <title>Traffic Control stat</title> 7 7 <meta http-equiv="Content-Language" content="cs"> 8 <meta http-equiv="Content-Type" content="text/html; charset= iso-8859-2">8 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 9 9 <style type="text/css"> 10 10 table td … … 121 121 { 122 122 global $ClassList; 123 123 124 if(array_key_exists('Leaf', $Class)) $Class['Id'] .= ' Leaf'; 124 125 if(!array_key_exists('Prio', $Class)) $Class['Prio'] = ' '; … … 136 137 foreach($Class['SubClasses'] as $Index => $SubClassId) 137 138 ShowClass($ClassList[$SubClassId], $Level + 1); 138 //echo('</table></td></tr>'); 139 //echo('</table></td></tr>'); 139 140 } 140 141 } 141 142 142 echo('<table style="font-size: small;" border="0" cellspacing="0" cellpadding="1"><tr><th>Id</th><th>Level</th><th>Description</th><th>Prio</th>143 echo('<table style="font-size: x-small;" border="0" cellspacing="0" cellpadding="1"><tr><th>Id</th><th>Level</th><th>Description</th><th>Prio</th> 143 144 <th>Rate [bit/s]</th><th>Ceil [bit/s]</th><th>Burst [B/s]</th><th>CBurs [B/s]t</th><th>Quantum [B]</th> 144 145 <th>CurrentRate [bit/s]</th><th>Dropped</th></tr>'); -
www/is/topologie-img.php
r16 r129 5 5 if(array_key_exists('debug', $_GET)) $debug = $_GET['debug']; 6 6 else $debug = 0; 7 $TopHostName = ' NIX-ROUTER';7 $TopHostName = 'nix-router'; 8 8 // $debug = 0; 9 9 … … 179 179 $im_dev = imagecreatefrompng('images/device.png'); 180 180 // === Generování obrázku ====================================================== 181 $im = imagecreate(($ width + 1.6) * $spacex, ($height + 1) * $spacey);181 $im = imagecreate(($datawidth+$width+3.2) * $halfx, ($height + 1) * $spacey); 182 182 $background_color = imagecolorallocate($im, 255, 255, 255); 183 183 $black = imagecolorallocate($im, 0, 0, 0); … … 236 236 // imagerectangle($im,xpos($id)+$halfx-6,$vtop[$id]*$spacey+16,xpos($id)+$halfx+6,$vtop[$id]*$spacey+28,$color); 237 237 if ($debug) { 238 imagestring($im, 2,xpos($id)+($spacex-strlen($item['id'])*imagefontwidth(2))/2,$vtop[$id]*$spacey+31+imagefontheight(2),$item['id'],$color);239 } else imagestring($im, 2,xpos($id)+($spacex-strlen($item['name'])*imagefontwidth(2))/2,$vtop[$id]*$spacey+31+imagefontheight(2),$item['name'],$color);240 } 238 imagestring($im, 2, xpos($id) + ($spacex - strlen($item['id']) * imagefontwidth(2)) / 2, $vtop[$id] * $spacey + 31 + imagefontheight(2), $item['id'], $color); 239 } else imagestring($im, 2, xpos($id) + ($spacex - strlen($item['name']) * imagefontwidth(2)) / 2, $vtop[$id] * $spacey + 31 + imagefontheight(2), strtoupper($item['name']), $color); 240 } 241 241 } 242 242
Note:
See TracChangeset
for help on using the changeset viewer.