Ignore:
Timestamp:
Apr 14, 2015, 10:20:16 PM (9 years ago)
Author:
chronos
Message:
  • Removed: Spaces on end of line.
  • Modified: Tabs converted to spaces.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/NetworkTopology/NetworkTopology.php

    r586 r738  
    77  var $ParentClass = 'PagePortal';
    88  var $TopHostName = 'NIX-ROUTER';
    9  
     9
    1010  function Show()
    1111  {
    1212    if(count($this->System->PathItems) > 1)
    13     { 
     13    {
    1414      if($this->System->PathItems[1] == 'topologie.png') return($this->ShowImage());
    1515        else return(PAGE_NOT_FOUND);
    16      
     16
    1717    } else return($this->ShowOverview());
    1818  }
    19  
     19
    2020  function ShowImage()
    2121  {
     
    3131    $width = $item[0];
    3232    $height = $item[1];
    33  
     33
    3434    $spacex = 32;
    3535    $spacey = 68;
    3636    $halfx = $spacex / 2;
    3737    $halfy = $spacey / 2;
    38     // Načtení pomocných obrázků 
     38    // Načtení pomocných obrázků
    3939    $im_comp = imagecreatefrompng(dirname(__FILE__).'/images/comp.png');
    4040    $im_dev = imagecreatefrompng(dirname(__FILE__).'/images/device.png');
     
    4747    $blue = imagecolorallocate($im, 100, 100, 255);
    4848    $gray = imagecolorallocate($im, 160, 160, 160);
    49    
     49
    5050    //$DbResult = $Database->query("SELECT * FROM hosts, NetworkTopology WHERE host = id AND used=1");
    5151    $DbResult = $this->Database->query('SELECT NetworkTopology.*, NetworkTopology.Host AS Id, '.
     
    9898      }
    9999    }
    100    
     100
    101101    // === Sestavení výsledného souboru ============================================
    102102    if($debug == 0)
    103103    {
    104104      Header("Content-type: image/png");
    105       Header("Cache-Control: no-cache");        // Dynamický graf, nekešovat
     105      Header("Cache-Control: no-cache");  // Dynamický graf, nekešovat
    106106      imagepng($im);
    107107      imagedestroy($im);
     
    111111    return('');
    112112  }
    113  
     113
    114114  function ShowOverview()
    115115  {
     
    142142    $this->Dependencies = array('Network');
    143143  }
    144  
     144
    145145  function DoInstall()
    146146  {
    147147  }
    148  
     148
    149149  function DoUnInstall()
    150150  {
Note: See TracChangeset for help on using the changeset viewer.