Changeset 4 for www/is/restart.php
- Timestamp:
- Jan 14, 2008, 9:48:39 PM (17 years ago)
- Location:
- www
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
www
-
Property svn:ignore
set to
config.php
php_script_error.log
-
Property svn:ignore
set to
-
www/is/restart.php
r1 r4 1 <? 2 include('global.php'); 3 include_once('db.php'); 4 DB_Init('localhost', 'root', '', 'is'); 1 <?php 2 include('../style.php'); 3 ShowHeader('Restart služeb', 'Restart služeb'); 5 4 6 5 $State = array('Neplánováno', 'V plánu'); … … 13 12 { 14 13 $Id = addslashes($Index); 15 DB_Update('services_restart', 'id='.$Id, array('changed' => 1));14 $Database->update('services_restart', 'id='.$Id, array('changed' => 1)); 16 15 } 17 16 } … … 20 19 $Period = 60; 21 20 22 echo('Vyberte slu ¾by, které chcete restartovat:<br><form method="post">');23 echo('<table border="1" cellspacing="0"><tr><th>Slu ¾ba</th><th>Restart</th><th>Zbývající èas</th></tr>');24 DB_Select('services_restart', '*, UNIX_TIMESTAMP(last_time)');25 while($Service = DB_Row())21 echo('Vyberte služby, které chcete restartovat:<br><form method="post">'); 22 echo('<table border="1" cellspacing="0"><tr><th>Sluľba</th><th>Restart</th><th>Zbývající čas</th></tr>'); 23 $DbResult = $Database->select('services_restart', '*, UNIX_TIMESTAMP(last_time)'); 24 while($Service = $DbResult->fetch_array()) 26 25 { 27 26 if($Service['changed'] == 1) … … 36 35 echo('</table><input type="submit" name="set" value="Naplánovat restart vybraných"></form>'); 37 36 38 39 40 37 ?>
Note:
See TracChangeset
for help on using the changeset viewer.