@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | $globals->batch = 1000; |
| 56 | 56 | $globals->lapsed_interval = 60*86400; |
| 57 | 57 | |
| 58 | -for ($i=1; $i<$argc; $i++) { |
|
| 58 | +for ($i = 1; $i < $argc; $i++) { |
|
| 59 | 59 | if ($argv[$i] == "--batch") { |
| 60 | 60 | $i++; |
| 61 | 61 | $globals->batch = $argv[$i]; |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | gmdate('d F Y', $user->create_time), |
| 170 | 170 | number_format($user->total_credit, 0), |
| 171 | 171 | opt_out_url($user), |
| 172 | - floor((time() - $user->last_rpc_time) / 86400), |
|
| 172 | + floor((time() - $user->last_rpc_time)/86400), |
|
| 173 | 173 | ); |
| 174 | 174 | return preg_replace($pat, $rep, $template); |
| 175 | 175 | } |
@@ -238,7 +238,7 @@ discard block |
||
| 238 | 238 | while ($user = _mysql_fetch_object($result)) { |
| 239 | 239 | handle_user($user); |
| 240 | 240 | $startid = $user->id; |
| 241 | - fputs($log, $user->id . "\n"); |
|
| 241 | + fputs($log, $user->id."\n"); |
|
| 242 | 242 | fflush($log); |
| 243 | 243 | } |
| 244 | 244 | _mysql_free_result($result); |
@@ -252,7 +252,7 @@ discard block |
||
| 252 | 252 | $user = _mysql_fetch_object($result); |
| 253 | 253 | if ($user) { |
| 254 | 254 | handle_user($user); |
| 255 | - fputs($log, $user->id . "\n"); |
|
| 255 | + fputs($log, $user->id."\n"); |
|
| 256 | 256 | fflush($log); |
| 257 | 257 | } |
| 258 | 258 | _mysql_free_result($result); |
@@ -289,7 +289,7 @@ discard block |
||
| 289 | 289 | } else { |
| 290 | 290 | $fid = fopen($id_file, 'r'); |
| 291 | 291 | if (!$fid) { |
| 292 | - echo $id_file . ' not found - create ID list and run again\n'; |
|
| 292 | + echo $id_file.' not found - create ID list and run again\n'; |
|
| 293 | 293 | exit(); |
| 294 | 294 | } |
| 295 | 295 | $thisid = 0; |
@@ -300,7 +300,7 @@ discard block |
||
| 300 | 300 | } |
| 301 | 301 | fclose($fid); |
| 302 | 302 | } |
| 303 | - echo 'All done!' . "\n"; |
|
| 303 | + echo 'All done!'."\n"; |
|
| 304 | 304 | } |
| 305 | 305 | |
| 306 | 306 | if (!function_exists('make_php_mailer')) { |