Completed
Push — master ( b16e97...cfa47d )
by Thomas
07:53
created
htdocs/util2/cron/modules/push_waypoint_reports.class.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -27,15 +27,15 @@
 block discarded – undo
27 27
                     $result = 'ok';
28 28
                 } else {
29 29
                     $result = @file_get_contents(
30
-                        $opt['cron']['gcwp']['report'] .
31
-                        '?ocwp=' . urlencode($r['wp_oc']) .
32
-                        '&gcwp=' . urlencode($r['wp_external']) .
33
-                        '&source=' . urlencode($r['source'])
30
+                        $opt['cron']['gcwp']['report'].
31
+                        '?ocwp='.urlencode($r['wp_oc']).
32
+                        '&gcwp='.urlencode($r['wp_external']).
33
+                        '&source='.urlencode($r['source'])
34 34
                     );
35 35
                     $result = trim($result);
36 36
                 }
37 37
                 if ($result != 'ok') {
38
-                    echo "could not push GC waypoint report (id " . $r['report_id'] . "): " . $result . "\n";
38
+                    echo "could not push GC waypoint report (id ".$r['report_id']."): ".$result."\n";
39 39
                     break;
40 40
                 } else {
41 41
                     sql(
Please login to merge, or discard this patch.
htdocs/util2/cron/modules/geokrety.class.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -42,17 +42,17 @@  discard block
 block discarded – undo
42 42
     {
43 43
         global $opt;
44 44
 
45
-        if (!@mkdir(__DIR__ . '/../../../cache2/geokrety')) {
45
+        if (!@mkdir(__DIR__.'/../../../cache2/geokrety')) {
46 46
             // die('can\'t create geogrety cache dir');
47 47
         }
48
-        $path = __DIR__ . '/../../../cache2/geokrety/import-' . date('Ymd-His') . '.xml';
48
+        $path = __DIR__.'/../../../cache2/geokrety/import-'.date('Ymd-His').'.xml';
49 49
 
50 50
         // Changed default-value for getSysConfig() from '2005-01-01 00:00:00' to 'NOW - 9d 12h'
51 51
         // to safely stay in api-limit, even when client and server are in different time zones.
52 52
         $modifiedsince = strtotime(
53 53
             getSysConfig('geokrety_lastupdate', date($opt['db']['dateformat'], time() - 60 * 60 * 24 * 9.5))
54 54
         );
55
-        if (!@copy('http://geokrety.org/export.php?modifiedsince=' . date('YmdHis', $modifiedsince - 1), $path)) {
55
+        if (!@copy('http://geokrety.org/export.php?modifiedsince='.date('YmdHis', $modifiedsince - 1), $path)) {
56 56
             return false;
57 57
         }
58 58
 
@@ -81,19 +81,19 @@  discard block
 block discarded – undo
81 81
 
82 82
         $xr->read();
83 83
         if ($xr->nodeType != XMLReader::ELEMENT) {
84
-            echo 'error: First element expected, aborted' . "\n";
84
+            echo 'error: First element expected, aborted'."\n";
85 85
 
86 86
             return;
87 87
         }
88 88
         if ($xr->name != 'gkxml') {
89
-            echo 'error: First element not valid, aborted' . "\n";
89
+            echo 'error: First element not valid, aborted'."\n";
90 90
 
91 91
             return;
92 92
         }
93 93
 
94 94
         $startupdate = $xr->getAttribute('date');
95 95
         if ($startupdate == '') {
96
-            echo 'error: Date attribute not valid, aborted' . "\n";
96
+            echo 'error: Date attribute not valid, aborted'."\n";
97 97
 
98 98
             return;
99 99
         }
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
                         break;
116 116
                 }
117 117
 
118
-                $nRecordsCount ++;
118
+                $nRecordsCount++;
119 119
             }
120 120
         } while ($xr->next());
121 121
 
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
         $waypoints = $element->getElementsByTagName('waypoints');
254 254
         if ($waypoints->length > 0) {
255 255
             $wpItems = $waypoints->item(0)->getElementsByTagName('waypoint');
256
-            for ($i = 0; $i < $wpItems->length; $i ++) {
256
+            for ($i = 0; $i < $wpItems->length; $i++) {
257 257
                 $wp = mb_trim($wpItems->item($i)->nodeValue);
258 258
                 if ($wp != '') {
259 259
                     sql("INSERT INTO `gk_move_waypoint` (`id`, `wp`) VALUES ('&1', '&2')", $id, $wp);
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
                 WHERE `id`='&2' AND `wp`!=''",
286 286
                 $gkid,
287 287
                 $r['id']
288
-            );  // "late log" bugfix: replaced $id paramter by $r['id']
288
+            ); // "late log" bugfix: replaced $id paramter by $r['id']
289 289
         } else {
290 290
             // do nothing
291 291
         }
Please login to merge, or discard this patch.
htdocs/util2/cron/modules/cache_location.class.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,12 +41,12 @@
 block discarded – undo
41 41
                 "SELECT `level`, `code`, AsText(`shape`) AS `geometry`
42 42
                 FROM `nuts_layer`
43 43
                 WHERE MBRWITHIN(GeomFromText('&1'), `shape`) ORDER BY `level` DESC",
44
-                'POINT(' . $rCache['longitude'] . ' ' . $rCache['latitude'] . ')'
44
+                'POINT('.$rCache['longitude'].' '.$rCache['latitude'].')'
45 45
             );
46 46
             while ($rLayers = sql_fetch_assoc($rsLayers)) {
47 47
                 if (gis::ptInLineRing(
48 48
                     $rLayers['geometry'],
49
-                    'POINT(' . $rCache['longitude'] . ' ' . $rCache['latitude'] . ')'
49
+                    'POINT('.$rCache['longitude'].' '.$rCache['latitude'].')'
50 50
                 )
51 51
                 ) {
52 52
                     $sCode = $rLayers['code'];
Please login to merge, or discard this patch.
htdocs/util2/cron/modules/replication_monitor.class.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,11 +25,11 @@  discard block
 block discarded – undo
25 25
 
26 26
         foreach ($opt['db']['slaves'] as $k => $v) {
27 27
             $this->check_slave($k);
28
-            $known_ids[] = "'" . sql_escape($k) . "'";
28
+            $known_ids[] = "'".sql_escape($k)."'";
29 29
         }
30 30
 
31 31
         if (count($known_ids) > 0) {
32
-            sql("DELETE FROM `sys_repl_slaves` WHERE `id` NOT IN (" . implode(',', $known_ids) . ")");
32
+            sql("DELETE FROM `sys_repl_slaves` WHERE `id` NOT IN (".implode(',', $known_ids).")");
33 33
         } else {
34 34
             sql("DELETE FROM `sys_repl_slaves`");
35 35
         }
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         if ($nOnline != sql_value("SELECT `online` FROM `sys_repl_slaves` WHERE `id`='&1'", 0, $id)) {
89 89
             mail(
90 90
                 $opt['db']['error']['mail'],
91
-                "MySQL Slave Server Id " . $id . " (" . $slave['server'] . ") is now " . (($nOnline != 0) ? 'Online' : 'Offline'),
91
+                "MySQL Slave Server Id ".$id." (".$slave['server'].") is now ".(($nOnline != 0) ? 'Online' : 'Offline'),
92 92
                 ''
93 93
             );
94 94
         }
Please login to merge, or discard this patch.
htdocs/util2/cron/modules/replicate.class.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,9 +24,9 @@
 block discarded – undo
24 24
 
25 25
             $hidden_caches = file_get_contents($opt['cron']['replicate']['delete_hidden_caches']['url']);
26 26
             $hc = explode("\n", trim($hidden_caches));
27
-            $hc_imploded_and_escaped = "'" . implode("','", array_map('sql_escape', $hc)) . "'";
27
+            $hc_imploded_and_escaped = "'".implode("','", array_map('sql_escape', $hc))."'";
28 28
             sql("SET @allowdelete = 1");
29
-            sql("DELETE FROM `caches` WHERE `wp_oc` IN (" . $hc_imploded_and_escaped . ")");
29
+            sql("DELETE FROM `caches` WHERE `wp_oc` IN (".$hc_imploded_and_escaped.")");
30 30
             // All dependent data in other tables is deleted via trigger.
31 31
         }
32 32
     }
Please login to merge, or discard this patch.
htdocs/util2/cron/modules/sitemaps.class.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -50,15 +50,15 @@  discard block
 block discarded – undo
50 50
         global $opt;
51 51
 
52 52
         $url = urlencode(
53
-            ($opt['page']['https']['mode'] == HTTPS_ENFORCED ? $opt['page']['absolute_https_url'] : $opt['page']['absolute_http_url']) . 'sitemap.xml'
53
+            ($opt['page']['https']['mode'] == HTTPS_ENFORCED ? $opt['page']['absolute_https_url'] : $opt['page']['absolute_http_url']).'sitemap.xml'
54 54
         );
55 55
 
56
-        $this->ping_searchengine('http://www.google.com/webmasters/tools/ping?sitemap=' . $url);
56
+        $this->ping_searchengine('http://www.google.com/webmasters/tools/ping?sitemap='.$url);
57 57
         $this->ping_searchengine(
58
-            'http://search.yahooapis.com/SiteExplorerService/V1/updateNotification?appid=USERID&url=' . $url
58
+            'http://search.yahooapis.com/SiteExplorerService/V1/updateNotification?appid=USERID&url='.$url
59 59
         );
60
-        $this->ping_searchengine('http://submissions.ask.com/ping?sitemap=' . $url);
61
-        $this->ping_searchengine('http://www.bing.com/webmaster/ping.aspx?siteMap=' . $url);
60
+        $this->ping_searchengine('http://submissions.ask.com/ping?sitemap='.$url);
61
+        $this->ping_searchengine('http://www.bing.com/webmaster/ping.aspx?siteMap='.$url);
62 62
     }
63 63
 
64 64
     public function ping_searchengine($url)
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         $nCount = sql_value("SELECT COUNT(*) FROM `caches` WHERE `caches`.`status`=1", 0);
91 91
         $nIndex = 0;
92 92
         while ($nIndex < $nCount) {
93
-            $this->oSitemapXML->write('newcaches.php?startat=' . $nIndex, time(), 'always');
93
+            $this->oSitemapXML->write('newcaches.php?startat='.$nIndex, time(), 'always');
94 94
             $nIndex += 100;
95 95
         }
96 96
     }
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
     {
100 100
         $rs = sql("SELECT SQL_BUFFER_RESULT `user_id` FROM `user`");
101 101
         while ($r = sql_fetch_assoc($rs)) {
102
-            $this->oSitemapXML->write('viewprofile.php?userid=' . $r['user_id'], time() - 31 * 24 * 60 * 60);
102
+            $this->oSitemapXML->write('viewprofile.php?userid='.$r['user_id'], time() - 31 * 24 * 60 * 60);
103 103
         }
104 104
         sql_free_result($rs);
105 105
     }
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
             "SELECT SQL_BUFFER_RESULT MAX(`last_modified`) AS `d`, `cache_id` FROM `cache_logs` GROUP BY `cache_id`"
111 111
         );
112 112
         while ($r = sql_fetch_assoc($rs)) {
113
-            $this->oSitemapXML->write('viewlogs.php?cacheid=' . $r['cache_id'], strtotime($r['d']));
113
+            $this->oSitemapXML->write('viewlogs.php?cacheid='.$r['cache_id'], strtotime($r['d']));
114 114
         }
115 115
         sql_free_result($rs);
116 116
     }
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
                 $r['cache_id']
143 143
             );
144 144
             $this->oSitemapXML->write(
145
-                'viewcache.php?wp=' . $r['wp_oc'] . '&desclang=' . $r['language'],
145
+                'viewcache.php?wp='.$r['wp_oc'].'&desclang='.$r['language'],
146 146
                 strtotime($dLastMod)
147 147
             );
148 148
         }
Please login to merge, or discard this patch.
htdocs/util2/cron/modules/maillog.class.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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'];
Please login to merge, or discard this patch.
htdocs/util2/cron/modules/cache_waypoint_pool.class.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
                            ORDER BY `free_wp` ASC
57 57
                               LIMIT 250",
58 58
                 $opt['logic']['waypoint_pool']['prefix'],
59
-                '^' . $opt['logic']['waypoint_pool']['prefix'] . '[' . $opt['logic']['waypoint_pool']['valid_chars'] . ']{1,}$'
59
+                '^'.$opt['logic']['waypoint_pool']['prefix'].'['.$opt['logic']['waypoint_pool']['valid_chars'].']{1,}$'
60 60
             );
61 61
         } else {
62 62
             // query the last used waypoint
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
                                    SELECT MAX(WPTODEC(`wp_oc`, '&2')) AS dec_wp
71 71
                                      FROM `cache_waypoint_pool`
72 72
                                  ) AS tbl",
73
-                '^' . $opt['logic']['waypoint_pool']['prefix'] . '[' . $opt['logic']['waypoint_pool']['valid_chars'] . ']{1,}$',
73
+                '^'.$opt['logic']['waypoint_pool']['prefix'].'['.$opt['logic']['waypoint_pool']['valid_chars'].']{1,}$',
74 74
                 $opt['logic']['waypoint_pool']['prefix']
75 75
             );
76 76
         }
@@ -78,16 +78,16 @@  discard block
 block discarded – undo
78 78
         while (($rStartWp = sql_fetch_assoc($rsStartWp)) && ($nInsertCount < $max_inserts_count)) {
79 79
             $free_wp = $rStartWp['free_wp'];
80 80
             if ($free_wp == '') {
81
-                $free_wp = $opt['logic']['waypoint_pool']['prefix'] . '0001';
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
 
88 88
         if ($rowCount == 0) {
89 89
             // new database ...
90
-            $nInsertCount += $this->fill_turn($opt['logic']['waypoint_pool']['prefix'] . '0001', $max_inserts_count);
90
+            $nInsertCount += $this->fill_turn($opt['logic']['waypoint_pool']['prefix'].'0001', $max_inserts_count);
91 91
         }
92 92
 
93 93
         return $nInsertCount;
@@ -111,9 +111,9 @@  discard block
 block discarded – undo
111 111
                                      FROM `cache_waypoint_pool`
112 112
                                     WHERE WPTODEC(`wp_oc`, '&3')>WPTODEC('&1', '&3')
113 113
                                  ) AS tbl",
114
-            $opt['logic']['waypoint_pool']['prefix'] . '100000',
114
+            $opt['logic']['waypoint_pool']['prefix'].'100000',
115 115
             $start_wp,
116
-            '^' . $opt['logic']['waypoint_pool']['prefix'] . '[' . $opt['logic']['waypoint_pool']['valid_chars'] . ']{1,}$',
116
+            '^'.$opt['logic']['waypoint_pool']['prefix'].'['.$opt['logic']['waypoint_pool']['valid_chars'].']{1,}$',
117 117
             $opt['logic']['waypoint_pool']['prefix']
118 118
         );
119 119
 
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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,14 +150,14 @@  discard block
 block discarded – undo
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
 
157 157
         if (strlen($wp_value) < 4) {
158
-            return $prefix . substr('0000' . $wp_value, - 4);
158
+            return $prefix.substr('0000'.$wp_value, - 4);
159 159
         } else {
160
-            return $prefix . $wp_value;
160
+            return $prefix.$wp_value;
161 161
         }
162 162
     }
163 163
 }
Please login to merge, or discard this patch.
htdocs/util2/geokrety/fix-waypoints.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -10,17 +10,17 @@
 block discarded – undo
10 10
  *  Data import functions are in util2/cron/modules/geokrety.class.php.
11 11
  ***************************************************************************/
12 12
 
13
-$opt['rootpath'] = __DIR__ . '/../../';
14
-require_once $opt['rootpath'] . 'lib2/cli.inc.php';
13
+$opt['rootpath'] = __DIR__.'/../../';
14
+require_once $opt['rootpath'].'lib2/cli.inc.php';
15 15
 
16 16
 if (count($argv) != 2 || $argv[1] != 'run') {
17
-    die("\n" .
18
-        "Please verify that runcron.php is disabled in crontab;\n" .
19
-        "then run this script with\n" .
20
-        "\n" .
21
-        "   php fix-waypoints.php run\n" .
22
-        "\n" .
23
-        "Don't forget to re-enable cronjobs afterwards!\n" .
17
+    die("\n".
18
+        "Please verify that runcron.php is disabled in crontab;\n".
19
+        "then run this script with\n".
20
+        "\n".
21
+        "   php fix-waypoints.php run\n".
22
+        "\n".
23
+        "Don't forget to re-enable cronjobs afterwards!\n".
24 24
         "\n");
25 25
 }
26 26
 
Please login to merge, or discard this patch.