- Timestamp:
- Dec 31, 2010, 4:56:19 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/finance/finance.php
r294 r301 191 191 //echo($Row['fullname'].' '.$Row['inet'].' '.$Monthly.'<br>'); 192 192 $Monthly = round($Monthly); 193 //echo($Row['fullname'].' '.$Row['inet'].' '.$Monthly.'<br>') ;193 //echo($Row['fullname'].' '.$Row['inet'].' '.$Monthly.'<br>') 194 194 195 if($Member['BillingPeriodNext'] == 1) 196 { 197 // Inactive payer 198 $MonthlyInet = 0; 199 $Monthly = 0; 200 $ConsumptionPlus = 0; 201 $Consumption = 0; 202 } 195 203 $this->Database->insert('MemberPayment', array('Member' => $Member['Id'], 'NetworkDevice' => $NetworkDevice, 'MonthlyInternet' => $MonthlyInet, 'MonthlyTotal' => $Monthly, 'MonthlyConsumption' => $this->W2Kc($Consumption), 'Cash' => $Cash, 'MonthlyPlus' => $this->W2Kc($ConsumptionPlus))); 196 204 } -
trunk/system/generators/dhcp.php
r290 r301 11 11 $Routerboard->Debug = true; 12 12 13 $DbResult = $Database->query('SELECT * FROM `NetworkSubnet` WHERE `Member` = 0');13 $DbResult = $Database->query('SELECT * FROM `NetworkSubnet`'); // WHERE `Member` = 0'); 14 14 while($Subnet = $DbResult->fetch_assoc()) 15 15 { -
trunk/system/generators/firewall_nat.php
r300 r301 107 107 $Items[] = array('chain' => 'dstnat', 'in-interface' => $LocalInterface, 'action' => 'jump', 'jump-target' => 'local-in', 'comment' => 'local-in'); 108 108 109 /* 109 110 // Route public addresses localy 110 111 $DbResult = $Database->query('SELECT Member.*, Subject.Name FROM Member JOIN Subject ON Member.Subject = Subject.Id'); … … 126 127 127 128 // Map returned local traffic to virtual subnet 128 $Items[] = array('chain' => 'local-out', 'src-address' => '10.145.0.0/16', ' action' => 'netmap', 'to-addresses' => '10.45.0.0-10.45.255.255', 'comment' => 'map-local');129 129 $Items[] = array('chain' => 'local-out', 'src-address' => '10.145.0.0/16', 'dst-address' => '10.145.0.0/16', 'action' => 'netmap', 'to-addresses' => '10.45.0.0-10.45.255.255', 'comment' => 'map-local'); 130 */ 130 131 131 132 //print_r($Items); -
trunk/system/generators/netwatch.php
r250 r301 11 11 $Routerboard->Debug = true; 12 12 13 $DbResult3 = $Database->query('SELECT DISTINCT (`DHCP`) FROM `NetworkSubnet` WHERE `Member` = 0');13 $DbResult3 = $Database->query('SELECT DISTINCT (`DHCP`) FROM `NetworkSubnet`'); // WHERE `Member` = 0'); 14 14 while($Router = $DbResult3->fetch_assoc()) 15 15 { -
trunk/system/routerboard.php
r261 r301 89 89 foreach($Conditions as $Index => $Item) 90 90 { 91 $ConditionList .= $Index.'="'.$Item.'" '; 91 if($Item == 'no') $ConditionList .= $Index.'='.$Item.' '; 92 else $ConditionList .= $Index.'="'.$Item.'" '; 92 93 } 93 94 $ConditionList = substr($ConditionList, 0, -1);
Note:
See TracChangeset
for help on using the changeset viewer.