Changeset 204 for trunk/finance/manage.php
- Timestamp:
- May 1, 2009, 12:13:50 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/finance/manage.php
r186 r204 553 553 $Output .= 'Měním aktuální tarify....<br>'; 554 554 // Update tarrifs 555 $this->Database->delete(' finance_tariffs', 'period=0');556 $DbResult = $this->Database->select(' finance_tariffs', '*', 'period = 1');555 $this->Database->delete('FinanceTariffs', 'Period=0'); 556 $DbResult = $this->Database->select('FinanceTariff', '*', 'Period = 1'); 557 557 while($Tariff = $DbResult->fetch_array()) 558 558 { 559 $this->Database->insert(' finance_tariffs', array('period' => 0, 'name' => $Tariff['name'], 'id' => $Tariff['id'],'speed_factor' => $Tariff['speed_factor'], 'price_units' => $Tariff['price_units'], 'group_id' => $Tariff['group_id'], 'min_speed' => $Tariff['min_speed'], 'max_speed' => $Tariff['max_speed'], 'price' => $Tariff['price']));559 $this->Database->insert('FinanceTariff', array('Period' => 0, 'Name' => $Tariff['Name'], 'Tariff' => $Tariff['Tariff'], 'UploadAsymmetry' => $Tariff['UploadAsymmetry'], 'MemberCount' => $Tariff['MemberCount'], 'Group' => $Tariff['Group'], 'SpeedMin' => $Tariff['SpeedMin'], 'SpeedMax' => $Tariff['SpeedMax'], 'Price' => $Tariff['Price'])); 560 560 } 561 561 … … 566 566 567 567 // Restart traffic shaping 568 $this->Database->update('services_restart', 'id = 3', array('changed' => 1));568 //$this->Database->update('NetworkConfiguration', 'Id = 3', array('Changed' => 1)); 569 569 } 570 570 return($Output);
Note:
See TracChangeset
for help on using the changeset viewer.