@@ -50,7 +50,7 @@ |
||
| 50 | 50 | |
| 51 | 51 | function nonalpha($str) |
| 52 | 52 | { |
| 53 | - for ($i = 0; $i < mb_strlen($str); $i ++) { |
|
| 53 | + for ($i = 0; $i < mb_strlen($str); $i++) { |
|
| 54 | 54 | if (!((ord(mb_substr($str, $i, 1)) >= ord('a')) && (ord(mb_substr($str, $i, 1)) <= ord('z')))) { |
| 55 | 55 | return true; |
| 56 | 56 | } |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | die($result); |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | - ++ $n; |
|
| 35 | + ++$n; |
|
| 36 | 36 | } |
| 37 | 37 | sql_free_result($rs); |
| 38 | 38 | |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | class purge_logs |
| 13 | 13 | { |
| 14 | 14 | public $name = 'purge_logs'; |
| 15 | - public $interval = 86400; // daily |
|
| 15 | + public $interval = 86400; // daily |
|
| 16 | 16 | |
| 17 | 17 | public function run() |
| 18 | 18 | { |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | class autoarchive |
| 13 | 13 | { |
| 14 | 14 | public $name = 'autoarchive'; |
| 15 | - public $interval = 43200; // twice per day |
|
| 15 | + public $interval = 43200; // twice per day |
|
| 16 | 16 | |
| 17 | 17 | |
| 18 | 18 | public function run() |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | 'maintain the cache and re-enable the listing.', |
| 86 | 86 | $months |
| 87 | 87 | ); |
| 88 | - ++ $archived; |
|
| 88 | + ++$archived; |
|
| 89 | 89 | |
| 90 | 90 | // This limit throttles archiving. If something goes wrong, it won't |
| 91 | 91 | // produce too much trouble. |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | class maillog |
| 13 | 13 | { |
| 14 | 14 | public $name = 'maillog'; |
| 15 | - public $interval = 600; // every 10 minutes |
|
| 15 | + public $interval = 600; // every 10 minutes |
|
| 16 | 16 | |
| 17 | 17 | |
| 18 | 18 | public function run() |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | $opt['system']['maillog']['syslog_db_user'], |
| 34 | 34 | $opt['system']['maillog']['syslog_db_password'], |
| 35 | 35 | true |
| 36 | - ); // use separate connection even if on same DB host |
|
| 36 | + ); // use separate connection even if on same DB host |
|
| 37 | 37 | if ($dbc === false) { |
| 38 | 38 | echo $this->name . ": could not connect to syslog database\n"; |
| 39 | 39 | |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | while ($logentry = mysql_fetch_assoc($rs)) { |
| 102 | - $message = $logentry['message']; // latin-1 charset |
|
| 102 | + $message = $logentry['message']; // latin-1 charset |
|
| 103 | 103 | $delivered = strpos($message, 'status=sent') > 0; |
| 104 | 104 | $bounced = strpos($message, 'status=bounced') > 0; |
| 105 | 105 | if ($delivered || $bounced) { |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | class gcwp_update |
| 14 | 14 | { |
| 15 | 15 | public $name = 'gcwp_update'; |
| 16 | - public $interval = 3600; // every hour |
|
| 16 | + public $interval = 3600; // every hour |
|
| 17 | 17 | |
| 18 | 18 | |
| 19 | 19 | public function run() |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | } |
| 29 | 29 | sql_free_result($rs); |
| 30 | 30 | |
| 31 | - $this->cleanup_slave(- 1); |
|
| 31 | + $this->cleanup_slave(-1); |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | public function cleanup_slave($slaveId) |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | class orphan_cleanup |
| 14 | 14 | { |
| 15 | 15 | public $name = 'orphan_cleanup'; |
| 16 | - public $interval = 86400; // once per day |
|
| 16 | + public $interval = 86400; // once per day |
|
| 17 | 17 | |
| 18 | 18 | public function run() |
| 19 | 19 | { |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | $free_wp = $opt['logic']['waypoint_pool']['prefix'] . '0001'; |
| 82 | 82 | } |
| 83 | 83 | $nInsertCount += $this->fill_turn($free_wp, $max_inserts_count - $nInsertCount); |
| 84 | - $rowCount ++; |
|
| 84 | + $rowCount++; |
|
| 85 | 85 | } |
| 86 | 86 | sql_free_result($rsStartWp); |
| 87 | 87 | |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | $nWaypointsGenerated = 0; |
| 122 | 122 | while (($nWaypointsGenerated < $max_inserts_count) && ($start_wp != $end_wp)) { |
| 123 | 123 | sql("INSERT INTO `cache_waypoint_pool` (`wp_oc`) VALUES ('&1')", $start_wp); |
| 124 | - $nWaypointsGenerated ++; |
|
| 124 | + $nWaypointsGenerated++; |
|
| 125 | 125 | $start_wp = $this->increment_waypoint($start_wp, $opt['logic']['waypoint_pool']['prefix']); |
| 126 | 126 | } |
| 127 | 127 | |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | |
| 143 | 143 | $wp_value = substr($wp, 2); |
| 144 | 144 | $b36_value = ''; |
| 145 | - for ($i = 0; $i < strlen($wp_value); $i ++) { |
|
| 145 | + for ($i = 0; $i < strlen($wp_value); $i++) { |
|
| 146 | 146 | $b36_value .= substr($b36_chars, strpos($wp_chars, substr($wp_value, $i, 1)), 1); |
| 147 | 147 | } |
| 148 | 148 | |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | $b36_value = strtoupper(base_convert($dec_value, 10, strlen($wp_chars))); |
| 151 | 151 | |
| 152 | 152 | $wp_value = ''; |
| 153 | - for ($i = 0; $i < strlen($b36_value); $i ++) { |
|
| 153 | + for ($i = 0; $i < strlen($b36_value); $i++) { |
|
| 154 | 154 | $wp_value .= substr($wp_chars, strpos($b36_chars, substr($b36_value, $i, 1)), 1); |
| 155 | 155 | } |
| 156 | 156 | |