Changeset 63
- Timestamp:
- Jan 1, 2016, 1:16:12 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 3 deleted
- 6 edited
- 5 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Global.php
r62 r63 8 8 } 9 9 include_once('Version.php'); 10 include_once(' types.php');11 include_once(' classes.php');10 include_once('Types.php'); 11 include_once('Classes.php'); 12 12 include_once('Packages/Common/Common.php'); 13 include_once('Measure.php'); 14 13 15 $PrefixMultiplier = new PrefixMultiplier(); 14 16 $ErrorHandler = new ErrorHandler(); 17 $ErrorHandler->ShowError = $Config['Web']['ShowError']; 15 18 $ErrorHandler->Start(); 16 $ErrorHandler->ShowError = $Config['Web']['ShowError'];17 include_once('stat_functions.php');18 19 $Database = new Database(); 19 20 $Database->Connect($Config['Database']['Host'], $Config['Database']['User'], -
trunk/Graph.php
r62 r63 1 1 <?php 2 2 3 include(' global.php');3 include('Global.php'); 4 4 5 5 if(array_key_exists('Debug', $_GET)) $Debug = $_GET['Debug']; -
trunk/Version.php
r62 r63 1 1 <?php 2 2 3 $Revision = 6 2;3 $Revision = 63; 4 4 $ReleaseTime = strtotime('2016-01-01'); -
trunk/add.php
r62 r63 1 1 <?php 2 2 3 include(' global.php');3 include('Global.php'); 4 4 5 5 if(array_key_exists('MeasureId', $_GET) and array_key_exists('Value', $_GET)) -
trunk/admin.php
r51 r63 1 1 <?php 2 include(' global.php');2 include('Global.php'); 3 3 4 4 if(array_key_exists('Operation', $_GET)) $Operation = $_GET['Operation']; else $Operation = ''; -
trunk/index.php
r58 r63 1 1 <?php 2 include(' global.php');2 include('Global.php'); 3 3 4 4 $Debug = 0; … … 65 65 } 66 66 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'); 69 69 70 70 $GrafTimeRanges = array( … … 103 103 } 104 104 105 if($_SESSION['TimeSpecify'] == 0) 105 if($_SESSION['TimeSpecify'] == 0) 106 106 { 107 107 $_SESSION['TimeEnd'] = time() - 60; … … 111 111 $Output = '<div style="text-align: center"><div class="Title">'.$Config['Web']['Title'].'</div>'; 112 112 113 if(!array_key_exists('Operation', $_GET)) $_GET['Operation'] = ''; 113 if(!array_key_exists('Operation', $_GET)) $_GET['Operation'] = ''; 114 114 switch($_GET['Operation']) 115 115 { 116 116 case 'SetTime': 117 117 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)) 119 119 { 120 120 if(($_GET['Time'] == 'TimeStart') or ($_GET['Time'] == 'TimeEnd')) 121 121 { 122 $_SESSION[$_GET['Time']] = mktime($_POST['Hour'], $_POST['Minute'], 0, $_POST['Month'], 122 $_SESSION[$_GET['Time']] = mktime($_POST['Hour'], $_POST['Minute'], 0, $_POST['Month'], 123 123 $_POST['Day'], $_POST['Year']); 124 124 $$_GET['Time'] = $_SESSION[$_GET['Time']]; … … 127 127 break; 128 128 case 'SetTimeNow': 129 if(array_key_exists('Time', $_GET)) 129 if(array_key_exists('Time', $_GET)) 130 130 { 131 131 if(($_GET['Time'] == 'TimeStart') or ($_GET['Time'] == 'TimeEnd')) … … 145 145 $Output .= 'Délka úseku: '; 146 146 foreach($GrafTimeRanges as $Index => $Item) 147 $Output .= '<a href="?Period='.$Index.'">'.$Item['caption'].'</a> '; 147 $Output .= '<a href="?Period='.$Index.'">'.$Item['caption'].'</a> '; 148 148 $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>'; 150 150 } else { 151 151 $Output .= '<table cellspacing="0" cellpadding="2" border="0" style="margin: 0px auto;">'; … … 153 153 $Output .= '<tr><td>Konec:</td><td>'.EditTime('TimeEnd').'</td></tr>'; 154 154 $Output .= '</table>'; 155 $Output .= '<a href="?TimeSpecify=0">Jednoduché nastavení...</a><br>'; 155 $Output .= '<a href="?TimeSpecify=0">Jednoduché nastavení...</a><br>'; 156 156 } 157 157 $Output .= '<br>'; … … 162 162 163 163 $Output .= '<strong>Graf:</strong><br>'; 164 $Output .= '<img alt="Graf" src=" graph.php?Measure='.$_SESSION['Measure'].'&From='.$_SESSION['TimeStart'].'&To='.$_SESSION['TimeEnd'].'&Width=750&Height=200&Differential='.$_SESSION['Differential'].'" width="750" height="200"><br>';164 $Output .= '<img alt="Graf" src="Graph.php?Measure='.$_SESSION['Measure'].'&From='.$_SESSION['TimeStart'].'&To='.$_SESSION['TimeEnd'].'&Width=750&Height=200&Differential='.$_SESSION['Differential'].'" width="750" height="200"><br>'; 165 165 $Output .= '<a href="?Measure='.$_SESSION['Measure'].'&TimeStart='.$_SESSION['TimeStart'].'&TimeEnd='.$_SESSION['TimeEnd'].'&TimeSpecify=1&Differential='.$_SESSION['Differential'].'">Odkaz na vybraný graf</a><br>'; 166 166 -
trunk/measure_scripts/monitor_sample.php
r31 r63 30 30 sleep(58); // 60(measure period) - 2(disk utilization) 31 31 } 32 ?> -
trunk/measure_scripts/system.php
r33 r63 164 164 return($UptimeParts[0]); 165 165 } 166 167 168 ?>
Note:
See TracChangeset
for help on using the changeset viewer.