Changeset 63


Ignore:
Timestamp:
Jan 1, 2016, 1:16:12 PM (9 years ago)
Author:
chronos
Message:
  • Renamed files to new names with first letter big.
  • Removed: Old unused files.
Location:
trunk
Files:
1 added
3 deleted
6 edited
5 moved

Legend:

Unmodified
Added
Removed
  • trunk/Global.php

    r62 r63  
    88}
    99include_once('Version.php');
    10 include_once('types.php');
    11 include_once('classes.php');
     10include_once('Types.php');
     11include_once('Classes.php');
    1212include_once('Packages/Common/Common.php');
     13include_once('Measure.php');
     14
    1315$PrefixMultiplier = new PrefixMultiplier();
    1416$ErrorHandler = new ErrorHandler();
     17$ErrorHandler->ShowError = $Config['Web']['ShowError'];
    1518$ErrorHandler->Start();
    16 $ErrorHandler->ShowError = $Config['Web']['ShowError'];
    17 include_once('stat_functions.php');
    1819$Database = new Database();
    1920$Database->Connect($Config['Database']['Host'], $Config['Database']['User'],
  • trunk/Graph.php

    r62 r63  
    11<?php
    22
    3 include('global.php');
     3include('Global.php');
    44
    55if(array_key_exists('Debug', $_GET)) $Debug = $_GET['Debug'];
  • trunk/Version.php

    r62 r63  
    11<?php
    22
    3 $Revision = 62;
     3$Revision = 63;
    44$ReleaseTime = strtotime('2016-01-01');
  • trunk/add.php

    r62 r63  
    11<?php
    22
    3 include('global.php');
     3include('Global.php');
    44
    55if(array_key_exists('MeasureId', $_GET) and array_key_exists('Value', $_GET))
  • trunk/admin.php

    r51 r63  
    11<?php
    2 include('global.php');
     2include('Global.php');
    33
    44if(array_key_exists('Operation', $_GET)) $Operation = $_GET['Operation']; else $Operation = '';
  • trunk/index.php

    r58 r63  
    11<?php
    2 include('global.php');
     2include('Global.php');
    33
    44$Debug = 0;
     
    6565}
    6666
    67 $Months = array('', 'Leden', 'Únor', 'Březen', 'Duben', 'Květen', 'Červen', 'Červenec', 'Srpen', 'Září', 
    68   'Říjen', 'Listopad', 'Prosinec'); 
     67$Months = array('', 'Leden', 'Únor', 'Březen', 'Duben', 'Květen', 'Červen', 'Červenec', 'Srpen', 'Září',
     68  'Říjen', 'Listopad', 'Prosinec');
    6969
    7070$GrafTimeRanges = array(
     
    103103}
    104104
    105 if($_SESSION['TimeSpecify'] == 0) 
     105if($_SESSION['TimeSpecify'] == 0)
    106106{
    107107  $_SESSION['TimeEnd'] = time() - 60;
     
    111111$Output = '<div style="text-align: center"><div class="Title">'.$Config['Web']['Title'].'</div>';
    112112
    113 if(!array_key_exists('Operation', $_GET)) $_GET['Operation'] = ''; 
     113if(!array_key_exists('Operation', $_GET)) $_GET['Operation'] = '';
    114114switch($_GET['Operation'])
    115115{
    116116  case 'SetTime':
    117117    if(array_key_exists('Time', $_GET) and array_key_exists('Month', $_POST) and array_key_exists('Day', $_POST) and
    118       array_key_exists('Year', $_POST) and array_key_exists('Hour', $_POST) and array_key_exists('Minute', $_POST)) 
     118      array_key_exists('Year', $_POST) and array_key_exists('Hour', $_POST) and array_key_exists('Minute', $_POST))
    119119      {
    120120        if(($_GET['Time'] == 'TimeStart') or ($_GET['Time'] == 'TimeEnd'))
    121121        {
    122           $_SESSION[$_GET['Time']] = mktime($_POST['Hour'], $_POST['Minute'], 0, $_POST['Month'], 
     122          $_SESSION[$_GET['Time']] = mktime($_POST['Hour'], $_POST['Minute'], 0, $_POST['Month'],
    123123            $_POST['Day'], $_POST['Year']);
    124124          $$_GET['Time'] = $_SESSION[$_GET['Time']];
     
    127127    break;
    128128  case 'SetTimeNow':
    129     if(array_key_exists('Time', $_GET)) 
     129    if(array_key_exists('Time', $_GET))
    130130    {
    131131      if(($_GET['Time'] == 'TimeStart') or ($_GET['Time'] == 'TimeEnd'))
     
    145145  $Output .= 'Délka úseku: ';
    146146  foreach($GrafTimeRanges as $Index => $Item)
    147     $Output .= '<a href="?Period='.$Index.'">'.$Item['caption'].'</a>&nbsp;'; 
     147    $Output .= '<a href="?Period='.$Index.'">'.$Item['caption'].'</a>&nbsp;';
    148148  $Output .= '<br>';
    149   $Output .= '<a href="?TimeSpecify=1">Přesnější nastavení...</a><br>'; 
     149  $Output .= '<a href="?TimeSpecify=1">Přesnější nastavení...</a><br>';
    150150} else {
    151151  $Output .= '<table cellspacing="0" cellpadding="2" border="0" style="margin: 0px auto;">';
     
    153153  $Output .= '<tr><td>Konec:</td><td>'.EditTime('TimeEnd').'</td></tr>';
    154154  $Output .= '</table>';
    155   $Output .= '<a href="?TimeSpecify=0">Jednoduché nastavení...</a><br>'; 
     155  $Output .= '<a href="?TimeSpecify=0">Jednoduché nastavení...</a><br>';
    156156}
    157157$Output .= '<br>';
     
    162162
    163163$Output .= '<strong>Graf:</strong><br>';
    164 $Output .= '<img alt="Graf" src="graph.php?Measure='.$_SESSION['Measure'].'&amp;From='.$_SESSION['TimeStart'].'&amp;To='.$_SESSION['TimeEnd'].'&amp;Width=750&amp;Height=200&amp;Differential='.$_SESSION['Differential'].'" width="750" height="200"><br>';
     164$Output .= '<img alt="Graf" src="Graph.php?Measure='.$_SESSION['Measure'].'&amp;From='.$_SESSION['TimeStart'].'&amp;To='.$_SESSION['TimeEnd'].'&amp;Width=750&amp;Height=200&amp;Differential='.$_SESSION['Differential'].'" width="750" height="200"><br>';
    165165$Output .= '<a href="?Measure='.$_SESSION['Measure'].'&amp;TimeStart='.$_SESSION['TimeStart'].'&amp;TimeEnd='.$_SESSION['TimeEnd'].'&amp;TimeSpecify=1&amp;Differential='.$_SESSION['Differential'].'">Odkaz na vybraný graf</a><br>';
    166166
  • trunk/measure_scripts/monitor_sample.php

    r31 r63  
    3030  sleep(58);  // 60(measure period) - 2(disk utilization)
    3131}
    32 ?>
  • trunk/measure_scripts/system.php

    r33 r63  
    164164  return($UptimeParts[0]);
    165165}
    166 
    167 
    168 ?>
Note: See TracChangeset for help on using the changeset viewer.