Legend:
- Unmodified
- Added
- Removed
-
admin.php
r13 r14 13 13 case 'Edit': 14 14 $Output = ShowEdit(); 15 break; 16 case 'RebuildCache': 17 $Output = ShowRebuildCache(); 15 18 break; 16 19 default: … … 30 33 while($Measure = $Result->fetch_array()) 31 34 { 32 array_push($Table['Rows'], array($Measure['Description'], MakeLink('?Operation=Edit&MeasureId='.$Measure['Id'], 'Editovat').' '.MakeLink('?Operation=Delete&MeasureId='.$Measure['Id'], 'Odstranit') ));35 array_push($Table['Rows'], array($Measure['Description'], MakeLink('?Operation=Edit&MeasureId='.$Measure['Id'], 'Editovat').' '.MakeLink('?Operation=Delete&MeasureId='.$Measure['Id'], 'Odstranit').' '.MakeLink('?Operation=RebuildCache&MeasureId='.$Measure['Id'], 'Pøestavìt cache'))); 33 36 } 34 37 $Output = '<h3>Seznam mìøení</h3>'.Table($Table).MakeLink('?Operation=Add', 'Pøidat'); … … 39 42 { 40 43 global $Database; 41 $DbResult = $Database->select('measure', '*', 'Id='. $_GET['MeasureId']);44 $DbResult = $Database->select('measure', '*', 'Id='.addslashes($_GET['MeasureId'])); 42 45 $Values = array(); 43 46 $Values = $DbResult->fetch_array(); … … 52 55 } 53 56 57 function ShowRebuildCache() 58 { 59 global $Database; 60 echo("Vytvaøím novou cache...<br>"); 61 $DbResult = $Database->select('measure', '*', 'Id='.addslashes($_GET['MeasureId'])); 62 $Measure = $DbResult->fetch_array(); 63 64 RebuildMeasureCache($Measure); 65 echo('Dokonèeno<br>'); 66 } 67 54 68 ?>
Note:
See TracChangeset
for help on using the changeset viewer.