[ Index ]

PHP Cross Reference of Yamoon 0.9.0

title

Body

[close]

/ -> mrtg.php (source)

   1  <?php
   2  
   3  require_once ('Yamoon/Global.php');
   4  include ('header.php');
   5  
   6  $company_id = $_GET['company_id'];
   7  
   8  // ============ REALOAD
   9  if (isset($_GET['action']) && $_GET['action'] == "reload") {
  10      $mrtg = new Mrtg($config, $company_id);
  11      $mrtg->reloadConfig();
  12      $message = "Mrtg config for '".$mrtg->company->name."' reloaded!";
  13      $link = "company.php?action=edit&company_id=".$mrtg->company->id;
  14      $timeout = $config->redir_timeout;
  15      include ('message.php');
  16  
  17  // ============ EXECUTE
  18  } else if (isset($_GET['action']) && $_GET['action'] == "execute") {
  19      $mrtg = new Mrtg($config, $company_id);
  20      $mrtg->execute();
  21      $message = "Mrtg config for '".$mrtg->company->name."' executed!";
  22      $link = "company.php?company_id=".$mrtg->company->id;
  23      $timeout = $config->redir_timeout;
  24      include ('message.php');
  25  }
  26  include ('footer.php');
  27  ?>


Generated: Sat Feb 19 17:29:53 2005 Cross-referenced by PHPXref 0.6