Changeset 129 for www/is/topologie-img.php
- Timestamp:
- Jan 5, 2009, 7:31:45 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.