Ignore:
Timestamp:
Jan 5, 2009, 7:31:45 AM (16 years ago)
Author:
george
Message:
  • Odstraněno: Openwebmail. * Odstraněno: phpMyAdmin. * Upraveno: Mnoho malých úprav a oprav.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • www/is/topologie-img.php

    r16 r129  
    55if(array_key_exists('debug', $_GET)) $debug = $_GET['debug'];
    66else $debug = 0;
    7 $TopHostName = 'NIX-ROUTER';
     7$TopHostName = 'nix-router';
    88// $debug = 0;
    99
     
    179179$im_dev = imagecreatefrompng('images/device.png');
    180180// === 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);
    182182$background_color = imagecolorallocate($im, 255, 255, 255);
    183183$black = imagecolorallocate($im, 0, 0, 0);
     
    236236//    imagerectangle($im,xpos($id)+$halfx-6,$vtop[$id]*$spacey+16,xpos($id)+$halfx+6,$vtop[$id]*$spacey+28,$color);
    237237    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  }
    241241}
    242242
Note: See TracChangeset for help on using the changeset viewer.