@@ -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 | { |
@@ -112,7 +112,8 @@ discard block |
||
112 | 112 | $emailadr |
113 | 113 | ); |
114 | 114 | } else { |
115 | - if ($bounced) // maximum one bounce per day is counted, to filter out temporary problems |
|
115 | + if ($bounced) { |
|
116 | + // maximum one bounce per day is counted, to filter out temporary problems |
|
116 | 117 | { |
117 | 118 | sql( |
118 | 119 | "UPDATE `user` SET `email_problems`=`email_problems`+1, `last_email_problem`='&2' |
@@ -121,6 +122,7 @@ discard block |
||
121 | 122 | $logentry['created'] |
122 | 123 | ); |
123 | 124 | } |
125 | + } |
|
124 | 126 | } |
125 | 127 | } else { |
126 | 128 | echo $this->name . ": no email address found for record ID " . $logentry['id'] . "\n"; |
@@ -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,14 +33,14 @@ 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 | - echo $this->name . ": could not connect to syslog database\n"; |
|
38 | + echo $this->name.": could not connect to syslog database\n"; |
|
39 | 39 | |
40 | 40 | return; |
41 | 41 | } |
42 | - if (@mysql_query("USE " . $opt['system']['maillog']['syslog_db_name'], $dbc) === false) { |
|
43 | - echo $this->name . ": could not open syslog database: " . mysql_error() . "\n"; |
|
42 | + if (@mysql_query("USE ".$opt['system']['maillog']['syslog_db_name'], $dbc) === false) { |
|
43 | + echo $this->name.": could not open syslog database: ".mysql_error()."\n"; |
|
44 | 44 | |
45 | 45 | return; |
46 | 46 | } |
@@ -52,13 +52,13 @@ discard block |
||
52 | 52 | $col_program = mysql_real_escape_string($opt['system']['maillog']['column']['program']); |
53 | 53 | |
54 | 54 | $maillog_where = |
55 | - "`" . $col_hostname . "`='" . mysql_real_escape_string($opt['system']['maillog']['syslog_oc_host']) . "' AND |
|
56 | - `" . $col_program . "` like '" . mysql_real_escape_string($opt['system']['maillog']['syslog_mta']) . "'"; |
|
55 | + "`".$col_hostname."`='".mysql_real_escape_string($opt['system']['maillog']['syslog_oc_host'])."' AND |
|
56 | + `" . $col_program."` like '".mysql_real_escape_string($opt['system']['maillog']['syslog_mta'])."'"; |
|
57 | 57 | |
58 | 58 | $rs = @mysql_query( |
59 | 59 | " |
60 | - SELECT TIMESTAMPDIFF(DAY, MAX(" . $col_created . "), NOW()) |
|
61 | - FROM `" . mysql_real_escape_string($opt['system']['maillog']['syslog_db_table']) . "` |
|
60 | + SELECT TIMESTAMPDIFF(DAY, MAX(" . $col_created."), NOW()) |
|
61 | + FROM `" . mysql_real_escape_string($opt['system']['maillog']['syslog_db_table'])."` |
|
62 | 62 | WHERE " . $maillog_where |
63 | 63 | ); |
64 | 64 | $r = mysql_fetch_row($rs); |
@@ -80,26 +80,26 @@ discard block |
||
80 | 80 | // case some entries with same timestamp as $last_date will be processed redundantly. |
81 | 81 | |
82 | 82 | $rs = @mysql_query( |
83 | - "SELECT `" . $col_id . "` `id`, |
|
84 | - `" . $col_message . "` `message`, |
|
85 | - `" . $col_created . "` `created` |
|
86 | - FROM `" . mysql_real_escape_string($opt['system']['maillog']['syslog_db_table']) . "` |
|
87 | - WHERE `" . $col_created . "`>='" . mysql_real_escape_string($last_date) . "' |
|
88 | - AND (`" . $col_id . "`>'" . mysql_real_escape_string( |
|
83 | + "SELECT `".$col_id."` `id`, |
|
84 | + `" . $col_message."` `message`, |
|
85 | + `" . $col_created."` `created` |
|
86 | + FROM `" . mysql_real_escape_string($opt['system']['maillog']['syslog_db_table'])."` |
|
87 | + WHERE `" . $col_created."`>='".mysql_real_escape_string($last_date)."' |
|
88 | + AND (`" . $col_id."`>'".mysql_real_escape_string( |
|
89 | 89 | $last_id |
90 | - ) . "' OR `" . $col_created . "`>'" . mysql_real_escape_string($last_date) . "') |
|
91 | - AND " . $maillog_where . " |
|
92 | - ORDER BY `" . $col_created . "`,`" . $col_id . "`", |
|
90 | + )."' OR `".$col_created."`>'".mysql_real_escape_string($last_date)."') |
|
91 | + AND " . $maillog_where." |
|
92 | + ORDER BY `" . $col_created."`,`".$col_id."`", |
|
93 | 93 | $dbc |
94 | 94 | ); |
95 | 95 | if ($rs === false) { |
96 | - echo $this->name . ": syslog query error (" . mysql_errno() . "): " . mysql_error() . "\n"; |
|
96 | + echo $this->name.": syslog query error (".mysql_errno()."): ".mysql_error()."\n"; |
|
97 | 97 | |
98 | 98 | return; |
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) { |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | } |
124 | 124 | } |
125 | 125 | } else { |
126 | - echo $this->name . ": no email address found for record ID " . $logentry['id'] . "\n"; |
|
126 | + echo $this->name.": no email address found for record ID ".$logentry['id']."\n"; |
|
127 | 127 | } |
128 | 128 | } |
129 | 129 | $last_id = $logentry['id']; |
@@ -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) |
@@ -141,7 +141,7 @@ |
||
141 | 141 | $opt['locale']['DE']['page']['license'] = '<a rel="license" href="%1"><img alt="Creative Commons Lizenzvertrag" style="border-width:0" src="resource2/ocstyle/images/media/cc-by-nc-nd-small.png" /></a><div style="text-align:center; margin:8px 0 0 6px;">Die <a href="articles.php?page=impressum#datalicense">Inhalte</a> von {site} stehen unter der Creative-Commons-Lizenz <a rel="license" href="%1">BY-NC-ND 3.0 DE</a>.</div>'; |
142 | 142 | $opt['locale']['DE']['helpwiki'] = 'http://wiki.opencaching.de/index.php/'; |
143 | 143 | $opt['locale']['DE']['mostly_translated'] = true; |
144 | -$opt['locale']['DE']['what3words'] = true; // "beta" |
|
144 | +$opt['locale']['DE']['what3words'] = true; // "beta" |
|
145 | 145 | |
146 | 146 | $opt['locale']['IT']['format']['dateshort'] = '%d/%m/%y'; |
147 | 147 | $opt['locale']['IT']['format']['dm'] = '%d/%m'; |
@@ -7,10 +7,10 @@ |
||
7 | 7 | * common constant definitions of lib1 and lib2 |
8 | 8 | ***************************************************************************/ |
9 | 9 | |
10 | -define('GUI_HTML', 0); // also defined in lib/consts.inc.php |
|
10 | +define('GUI_HTML', 0); // also defined in lib/consts.inc.php |
|
11 | 11 | define('GUI_TEXT', 1); |
12 | 12 | |
13 | -define('HTTPS_DISABLED', 0); // also defined in lib/consts.inc.php |
|
13 | +define('HTTPS_DISABLED', 0); // also defined in lib/consts.inc.php |
|
14 | 14 | define('HTTPS_ENABLED', 1); |
15 | 15 | define('HTTPS_ENFORCED', 2); |
16 | 16 |
@@ -18,7 +18,7 @@ |
||
18 | 18 | |
19 | 19 | // database names |
20 | 20 | $dbname = 'opencaching'; |
21 | -$tmpdbname = 'octmp'; // empty db with CREATE and DROP privileges |
|
21 | +$tmpdbname = 'octmp'; // empty db with CREATE and DROP privileges |
|
22 | 22 | |
23 | 23 | // common developer system settings |
24 | 24 | require 'settings-dev.inc.php'; |
@@ -1,6 +1,6 @@ |
||
1 | 1 | #!/usr/bin/php -q |
2 | 2 | <?php |
3 | - /*************************************************************************** |
|
3 | + /*************************************************************************** |
|
4 | 4 | * For license information see doc/license.txt |
5 | 5 | * |
6 | 6 | * Unicode Reminder メモ |
@@ -8,8 +8,8 @@ discard block |
||
8 | 8 | * Load current stored procs and triggers into database. |
9 | 9 | ***************************************************************************/ |
10 | 10 | |
11 | -$opt['rootpath'] = __DIR__ . '/../../../'; |
|
12 | -require $opt['rootpath'] . 'lib2/cli.inc.php'; |
|
11 | +$opt['rootpath'] = __DIR__.'/../../../'; |
|
12 | +require $opt['rootpath'].'lib2/cli.inc.php'; |
|
13 | 13 | |
14 | 14 | if ($opt['db']['maintenance_user'] == '') { |
15 | 15 | die("ERROR: \$opt['db']['maintenance_user'] is not set in config2/settings.inc.php\n"); |
@@ -18,10 +18,10 @@ discard block |
||
18 | 18 | // retrieve DB password |
19 | 19 | if ($opt['db']['maintenance_password'] == '') { |
20 | 20 | if (in_array('--flush', $argv)) { |
21 | - echo "\nenter DB " . $opt['db']['maintenance_user'] . " password:\n"; |
|
21 | + echo "\nenter DB ".$opt['db']['maintenance_user']." password:\n"; |
|
22 | 22 | flush(); |
23 | 23 | } else { |
24 | - echo 'enter DB ' . $opt['db']['maintenance_user'] . ' password: '; |
|
24 | + echo 'enter DB '.$opt['db']['maintenance_user'].' password: '; |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | $fh = fopen('php://stdin', 'r'); |
@@ -44,13 +44,13 @@ discard block |
||
44 | 44 | // include the requested maintain version file |
45 | 45 | $dbsv = in_array('--dbsv', $argv); |
46 | 46 | if ($dbsv) { |
47 | - $versionfile = 'maintain-' . $argv[$dbsv + 1] . '.inc.php'; |
|
48 | - if (!file_exists(__DIR__ . '/' . $versionfile)) { |
|
49 | - die($versionfile . " not found\n"); |
|
47 | + $versionfile = 'maintain-'.$argv[$dbsv + 1].'.inc.php'; |
|
48 | + if (!file_exists(__DIR__.'/'.$versionfile)) { |
|
49 | + die($versionfile." not found\n"); |
|
50 | 50 | } else { |
51 | 51 | require $versionfile; |
52 | 52 | } |
53 | - @unlink($opt['rootpath'] . 'cache2/dbsv-running'); |
|
53 | + @unlink($opt['rootpath'].'cache2/dbsv-running'); |
|
54 | 54 | } else { |
55 | 55 | require 'maintain-current.inc.php'; |
56 | 56 | } |
@@ -88,8 +88,9 @@ |
||
88 | 88 | $tpl->assign('coordW3W2', $coord->getW3W($w3w_langs[1])); |
89 | 89 | $lang2_name = sql_value("SELECT `name` FROM `languages` WHERE `short`='&1'", '', $w3w_langs[1]); |
90 | 90 | $tpl->assign('W3Wlang2', $translate->t($lang2_name, '', '', 0)); |
91 | -} else |
|
91 | +} else { |
|
92 | 92 | $tpl->assign('coordW3W2', false); |
93 | +} |
|
93 | 94 | |
94 | 95 | // wp gesetzt? |
95 | 96 | $wp = isset($_REQUEST['wp']) ? $_REQUEST['wp'] : ''; |
@@ -5,7 +5,7 @@ |
||
5 | 5 | * Unicode Reminder メモ |
6 | 6 | ***************************************************************************/ |
7 | 7 | |
8 | -require __DIR__ . '/lib2/web.inc.php'; |
|
8 | +require __DIR__.'/lib2/web.inc.php'; |
|
9 | 9 | |
10 | 10 | $tpl->name = 'event_attendance'; |
11 | 11 | $tpl->popup = true; |
@@ -101,7 +101,7 @@ |
||
101 | 101 | "SELECT COUNT(*) |
102 | 102 | FROM `" . $table . "` |
103 | 103 | WHERE " . $this->getDateCondition($table, $dateField) . |
104 | - ($andWhere ? ' AND (' . $andWhere . ')' : ''), |
|
104 | + ($andWhere ? ' AND (' . $andWhere . ')' : ''), |
|
105 | 105 | 0 |
106 | 106 | ); |
107 | 107 | self::message(1, $objectCount . ' ' . $description); |
@@ -16,25 +16,25 @@ discard block |
||
16 | 16 | * Unicode Reminder メモ |
17 | 17 | ***************************************************************************/ |
18 | 18 | |
19 | -$opt['rootpath'] = __DIR__ . '/../../htdocs/'; |
|
20 | -require $opt['rootpath'] . 'lib2/cli.inc.php'; |
|
19 | +$opt['rootpath'] = __DIR__.'/../../htdocs/'; |
|
20 | +require $opt['rootpath'].'lib2/cli.inc.php'; |
|
21 | 21 | |
22 | 22 | if ($argc < 3 || $argc > 4) { |
23 | 23 | die( |
24 | - "usage: php email_recovery.php \"from-datetime\" \"to-datetime\" [option]\n" . |
|
25 | - "\n" . |
|
26 | - " Datetimes must be in YYYY-MM-DD HH:MM:SS format and are inclusive.\n" . |
|
27 | - "\n" . |
|
28 | - "options: <none> show information about all lost information\n" . |
|
29 | - " watchlist resend log notifications\n" . |
|
30 | - " newcaches resend new caches notifications\n" . |
|
24 | + "usage: php email_recovery.php \"from-datetime\" \"to-datetime\" [option]\n". |
|
25 | + "\n". |
|
26 | + " Datetimes must be in YYYY-MM-DD HH:MM:SS format and are inclusive.\n". |
|
27 | + "\n". |
|
28 | + "options: <none> show information about all lost information\n". |
|
29 | + " watchlist resend log notifications\n". |
|
30 | + " newcaches resend new caches notifications\n". |
|
31 | 31 | " registrations resend activation codes\n" |
32 | 32 | ); |
33 | 33 | } |
34 | 34 | |
35 | 35 | $er = new EmailRecovery($argv[1], $argv[2], $errormsg); |
36 | 36 | if ($errormsg != '') { |
37 | - die($errormsg . "\n"); |
|
37 | + die($errormsg."\n"); |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | if ($argc < 4) { |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | $er->resendActivationCodes(); |
53 | 53 | break; |
54 | 54 | default: |
55 | - die('invalid option: '. $option . "\n"); |
|
55 | + die('invalid option: '.$option."\n"); |
|
56 | 56 | } |
57 | 57 | } |
58 | 58 | |
@@ -65,9 +65,9 @@ discard block |
||
65 | 65 | public function __construct($fromDT, $toDT, &$errormsg) |
66 | 66 | { |
67 | 67 | if (!self::verifyDateTime($fromDT)) { |
68 | - $errormsg = 'invalid from-datetime (must be SQL format): "' . $fromDT . '"'; |
|
68 | + $errormsg = 'invalid from-datetime (must be SQL format): "'.$fromDT.'"'; |
|
69 | 69 | } elseif (!self::verifyDateTime($toDT)) { |
70 | - $errormsg = 'invalid from-datetime (must be SQL format): "' . $toDT . '"'; |
|
70 | + $errormsg = 'invalid from-datetime (must be SQL format): "'.$toDT.'"'; |
|
71 | 71 | } else { |
72 | 72 | $this->fromDateTime = $fromDT; |
73 | 73 | $this->toDateTime = $toDT; |
@@ -85,26 +85,26 @@ discard block |
||
85 | 85 | |
86 | 86 | private static function message($level, $text) |
87 | 87 | { |
88 | - echo str_repeat(' ', 2 * $level) . $text . "\n"; |
|
88 | + echo str_repeat(' ', 2 * $level).$text."\n"; |
|
89 | 89 | } |
90 | 90 | |
91 | 91 | private function getDateCondition($table, $field) |
92 | 92 | { |
93 | 93 | return |
94 | - "`" . $table . "`.`" . $field . "` >= '" . sql_escape($this->fromDateTime) . "'" . |
|
95 | - " AND `" . $table . "`.`" . $field . "` <= '" . sql_escape($this->toDateTime) . "'"; |
|
94 | + "`".$table."`.`".$field."` >= '".sql_escape($this->fromDateTime)."'". |
|
95 | + " AND `".$table."`.`".$field."` <= '".sql_escape($this->toDateTime)."'"; |
|
96 | 96 | } |
97 | 97 | |
98 | 98 | private function showObjectCount($table, $dateField, $description, $andWhere = '') |
99 | 99 | { |
100 | 100 | $objectCount = sql_value( |
101 | 101 | "SELECT COUNT(*) |
102 | - FROM `" . $table . "` |
|
103 | - WHERE " . $this->getDateCondition($table, $dateField) . |
|
104 | - ($andWhere ? ' AND (' . $andWhere . ')' : ''), |
|
102 | + FROM `" . $table."` |
|
103 | + WHERE " . $this->getDateCondition($table, $dateField). |
|
104 | + ($andWhere ? ' AND ('.$andWhere.')' : ''), |
|
105 | 105 | 0 |
106 | 106 | ); |
107 | - self::message(1, $objectCount . ' ' . $description); |
|
107 | + self::message(1, $objectCount.' '.$description); |
|
108 | 108 | } |
109 | 109 | |
110 | 110 | |
@@ -153,16 +153,16 @@ discard block |
||
153 | 153 | JOIN `user` `user1` ON `user1`.`user_id` = `cache_logs_archived`.`user_id` |
154 | 154 | JOIN `user` `user2` ON `user2`.`user_id` = `cache_logs_archived`.`deleted_by` |
155 | 155 | JOIN `caches` ON `caches`.`cache_id` = `cache_logs_archived`.`cache_id` |
156 | - WHERE " . $this->getDateCondition('cache_logs_archived', 'deletion_date') . " |
|
156 | + WHERE " . $this->getDateCondition('cache_logs_archived', 'deletion_date')." |
|
157 | 157 | ORDER BY `cache_logs_archived`.`deletion_date` DESC" |
158 | 158 | ); |
159 | 159 | while ($r = sql_fetch_assoc($rs)) { |
160 | 160 | self::message( |
161 | 161 | 2, |
162 | 162 | $r['wp_oc'] |
163 | - . ' logged:' . $r['logdate'] |
|
164 | - . ' logger:' . $r['logger_name'] |
|
165 | - . ' deleter:' . $r['deleter_name'] |
|
163 | + . ' logged:'.$r['logdate'] |
|
164 | + . ' logger:'.$r['logger_name'] |
|
165 | + . ' deleter:'.$r['deleter_name'] |
|
166 | 166 | ); |
167 | 167 | } |
168 | 168 | sql_free_result($rs); |
@@ -175,12 +175,12 @@ discard block |
||
175 | 175 | `username` |
176 | 176 | FROM `user` |
177 | 177 | WHERE " . |
178 | - $this->getDateCondition('user', 'date_created') . " |
|
178 | + $this->getDateCondition('user', 'date_created')." |
|
179 | 179 | AND last_login IS NULL AND `activation_code` <> '' |
180 | 180 | ORDER BY `date_created` DESC" |
181 | 181 | ); |
182 | 182 | while ($r = sql_fetch_assoc($rs)) { |
183 | - self::message(2, $r['registration_date'] . ' ' . $r['username']); |
|
183 | + self::message(2, $r['registration_date'].' '.$r['username']); |
|
184 | 184 | } |
185 | 185 | sql_free_result($rs); |
186 | 186 | |
@@ -192,11 +192,11 @@ discard block |
||
192 | 192 | `user`.`username` `sender_name` |
193 | 193 | FROM `email_user` |
194 | 194 | JOIN `user` ON `user`.`user_id` = `email_user`.`from_user_id` |
195 | - WHERE " . $this->getDateCondition('email_user', 'date_created') . " |
|
195 | + WHERE " . $this->getDateCondition('email_user', 'date_created')." |
|
196 | 196 | ORDER BY `email_user`.`date_created` DESC" |
197 | 197 | ); |
198 | 198 | while ($r = sql_fetch_assoc($rs)) { |
199 | - self::message(2, $r['emaildate'] . ' from:' . $r['sender_name']); |
|
199 | + self::message(2, $r['emaildate'].' from:'.$r['sender_name']); |
|
200 | 200 | } |
201 | 201 | sql_free_result($rs); |
202 | 202 | } |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | JOIN `cache_status` ON `cache_status`.`id` = `caches`.`status` |
233 | 233 | JOIN `cache_watches` ON `cache_watches`.`cache_id` = `caches`.`cache_id` |
234 | 234 | WHERE |
235 | - " . $this->getDateCondition('cache_logs', 'date_created') . " |
|
235 | + " . $this->getDateCondition('cache_logs', 'date_created')." |
|
236 | 236 | AND `cache_status`.`allow_user_view` = 1" |
237 | 237 | ); |
238 | 238 | $watcher_notifications = sql_affected_rows(); |
@@ -247,13 +247,13 @@ discard block |
||
247 | 247 | JOIN `cache_list_items` ON `cache_list_items`.`cache_id` = `cache_logs`.`cache_id` |
248 | 248 | JOIN `cache_list_watches` ON `cache_list_watches`.`cache_list_id` = `cache_list_items`.`cache_list_id` |
249 | 249 | WHERE |
250 | - " . $this->getDateCondition('cache_logs', 'date_created') . " |
|
250 | + " . $this->getDateCondition('cache_logs', 'date_created')." |
|
251 | 251 | AND `cache_status`.`allow_user_view` = 1" |
252 | 252 | ); |
253 | 253 | $watcher_notifications += sql_affected_rows(); |
254 | 254 | |
255 | - self::message(0, $owner_notifications . ' owners will be notified'); |
|
256 | - self::message(0, $watcher_notifications . ' watchers will be notified'); |
|
255 | + self::message(0, $owner_notifications.' owners will be notified'); |
|
256 | + self::message(0, $watcher_notifications.' watchers will be notified'); |
|
257 | 257 | } |
258 | 258 | |
259 | 259 | public function resendCacheNotifications() |
@@ -265,7 +265,7 @@ discard block |
||
265 | 265 | FROM `caches` |
266 | 266 | JOIN `cache_status` ON `cache_status`.`id` = `caches`.`status` |
267 | 267 | WHERE |
268 | - " . $this->getDateCondition('caches', 'date_created') . " |
|
268 | + " . $this->getDateCondition('caches', 'date_created')." |
|
269 | 269 | AND `cache_status`.`allow_user_view` = 1" |
270 | 270 | ); |
271 | 271 | while ($r = sql_fetch_assoc($rs)) { |
@@ -280,7 +280,7 @@ discard block |
||
280 | 280 | |
281 | 281 | $new_notifications = |
282 | 282 | sql_value("SELECT COUNT(*) FROM `notify_waiting`", 0) - $notifies_wating; |
283 | - self::message(0, $new_notifications . ' new cache notifications will be sent'); |
|
283 | + self::message(0, $new_notifications.' new cache notifications will be sent'); |
|
284 | 284 | } |
285 | 285 | |
286 | 286 | public function resendActivationCodes() |
@@ -289,7 +289,7 @@ discard block |
||
289 | 289 | "SELECT `user_id` |
290 | 290 | FROM `user` |
291 | 291 | WHERE |
292 | - " . $this->getDateCondition('user', 'date_created') . " |
|
292 | + " . $this->getDateCondition('user', 'date_created')." |
|
293 | 293 | AND last_login IS NULL |
294 | 294 | AND `activation_code` <> ''" |
295 | 295 | ); |
@@ -297,10 +297,10 @@ discard block |
||
297 | 297 | while ($r = sql_fetch_assoc($rs)) { |
298 | 298 | $user = new user($r['user_id']); |
299 | 299 | $user->sendRegistrationCode(); |
300 | - ++ $n; |
|
300 | + ++$n; |
|
301 | 301 | } |
302 | 302 | sql_free_result($rs); |
303 | - self::message(0, $n . ' users have been re-sent the activation code'); |
|
303 | + self::message(0, $n.' users have been re-sent the activation code'); |
|
304 | 304 | } |
305 | 305 | |
306 | 306 | } |