Completed
Push — master ( ad0de3...23a320 )
by
unknown
16s
created
local/devel/strip_private_data.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -9,15 +9,15 @@  discard block
 block discarded – undo
9 9
  *  Unicode Reminder メモ
10 10
  ***************************************************************************/
11 11
 
12
-$opt['rootpath'] = __DIR__ . '/../../htdocs/';
13
-require $opt['rootpath'] . 'lib2/cli.inc.php';
12
+$opt['rootpath'] = __DIR__.'/../../htdocs/';
13
+require $opt['rootpath'].'lib2/cli.inc.php';
14 14
 
15 15
 if (!($opt['debug'] & DEBUG_DEVELOPER)) {
16 16
     die("This script deletes lot of data and must be run only on development systems.\n");
17 17
 }
18 18
 if ($argc != 2 || $argv[1] != 'go') {
19 19
     die(
20
-        "This script deletes lot of data. Make sure that you really want to dos this,\n" .
20
+        "This script deletes lot of data. Make sure that you really want to dos this,\n".
21 21
         "and confirm it by adding the parameter 'go'.\n"
22 22
     );
23 23
 }
@@ -63,11 +63,11 @@  discard block
 block discarded – undo
63 63
 echo "clearing user data\n";
64 64
 sql('TRUNCATE `cache_adoption`');
65 65
 sql('TRUNCATE `cache_ignore`');
66
-sql('DELETE FROM `cache_lists` WHERE `is_public`<2');  // trigger deletes dependent data
66
+sql('DELETE FROM `cache_lists` WHERE `is_public`<2'); // trigger deletes dependent data
67 67
 sql('TRUNCATE `cache_list_bookmarks`');
68 68
 sql('TRUNCATE `cache_list_watches`');
69 69
 sql('TRUNCATE `cache_watches`');
70
-sql('DELETE FROM `coordinates` WHERE `type`=2');   // personal cache notes and coords
70
+sql('DELETE FROM `coordinates` WHERE `type`=2'); // personal cache notes and coords
71 71
 sql('TRUNCATE `queries`');
72 72
 sql('TRUNCATE `user_options`');
73 73
 sql(
@@ -132,10 +132,10 @@  discard block
 block discarded – undo
132 132
 
133 133
 echo "clearing other nonpublic data\n";
134 134
 sql('TRUNCATE `news`');
135
-$rs = sql("SHOW TABLES WHERE `Tables_in_" . $opt['db']['placeholder']['db'] . "` LIKE '\_%'");
135
+$rs = sql("SHOW TABLES WHERE `Tables_in_".$opt['db']['placeholder']['db']."` LIKE '\_%'");
136 136
 $tables = sql_fetch_column($rs);
137 137
 foreach ($tables as $table) {
138
-    sql('DROP TABLE ' . $table);
138
+    sql('DROP TABLE '.$table);
139 139
 }
140 140
 
141 141
 echo "done.\n";
Please login to merge, or discard this patch.
htdocs/config2/locale.inc.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@  discard block
 block discarded – undo
17 17
  *                 $opt['locale']
18 18
  ***************************************************************************/
19 19
 
20
-define('OC_LOCALE_ACTIVE', 2);    // enable language and show language button in header line
21
-define('OC_LOCALE_HIDDEN', 1);    // enable language but hide language button in header line
22
-define('OC_LOCALE_DISABLED', 0);  //  disable language
20
+define('OC_LOCALE_ACTIVE', 2); // enable language and show language button in header line
21
+define('OC_LOCALE_HIDDEN', 1); // enable language but hide language button in header line
22
+define('OC_LOCALE_DISABLED', 0); //  disable language
23 23
 
24 24
 $opt['template']['locales']['DE']['status'] = OC_LOCALE_ACTIVE;
25 25
 $opt['template']['locales']['DE']['flag'] = 'images/flag/DE.png';
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 $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>';
132 132
 $opt['locale']['DE']['helpwiki'] = 'http://wiki.opencaching.de/index.php/';
133 133
 $opt['locale']['DE']['mostly_translated'] = true;
134
-$opt['locale']['DE']['what3words'] = true;  // "beta"
134
+$opt['locale']['DE']['what3words'] = true; // "beta"
135 135
 
136 136
 $opt['locale']['IT']['format']['dateshort'] = '%d/%m/%y';
137 137
 $opt['locale']['IT']['format']['dm'] = '%d/%m';
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
 $opt['locale']['SV']['page']['subtitle1'] = 'Geocaching med Opencaching';
233 233
 $opt['locale']['SV']['page']['subtitle2'] = '';
234 234
 $opt['locale']['SV']['mostly_translated'] = false;
235
-$opt['locale']['SV']['what3words'] = true;  // "beta"
235
+$opt['locale']['SV']['what3words'] = true; // "beta"
236 236
 
237 237
 $opt['locale']['NO']['format']['dateshort'] = '%d.%m.%y';
238 238
 $opt['locale']['NO']['format']['dm'] = '%d.%m.';
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
 $opt['locale']['RU']['format']['colonspace'] = '';
280 280
 $opt['locale']['RU']['country'] = 'RU';
281 281
 $opt['locale']['RU']['mostly_translated'] = false;
282
-$opt['locale']['RU']['what3words'] = true;   // "beta"
282
+$opt['locale']['RU']['what3words'] = true; // "beta"
283 283
 
284 284
 $opt['locale']['DA']['format']['dateshort'] = '%d.%m.%y';
285 285
 $opt['locale']['DA']['format']['dm'] = '%d.%m.';
Please login to merge, or discard this patch.
htdocs/config2/settings-sample-vagrant.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 $dev_baseurl = 'http://local.opencaching.de ';
12 12
 
13 13
 // common developer system settings
14
-require __DIR__ . '/settings-dev.inc.php';
14
+require __DIR__.'/settings-dev.inc.php';
15 15
 
16 16
 // database access
17 17
 $opt['db']['servername'] = 'localhost';
Please login to merge, or discard this patch.
htdocs/config2/settings-sample-dev.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 $dev_baseurl = 'http://local.opencaching.de ';
12 12
 
13 13
 // common developer system settings
14
-require __DIR__ . '/settings-dev.inc.php';
14
+require __DIR__.'/settings-dev.inc.php';
15 15
 
16 16
 // database access
17 17
 $opt['db']['servername'] = 'localhost';
Please login to merge, or discard this patch.
htdocs/lib2/Cronjobs.class.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
             // because the effect of forgetting a --test parameter can be worse
20 20
             // than forgetting the --auto option in crontab.
21 21
             return true;
22
-        } elseif (@file_get_contents($opt['page']['absolute_http_url'] . 'api/ping.php') !== false) {
22
+        } elseif (@file_get_contents($opt['page']['absolute_http_url'].'api/ping.php') !== false) {
23 23
             // website is up and running
24 24
             return true;
25 25
         } else {
Please login to merge, or discard this patch.
htdocs/util2/cron/modules/inactive/phpbbtopics.class.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,11 +31,11 @@
 block discarded – undo
31 31
         usort($this->topiclist, 'sort_compare_updated');
32 32
         $this->topiclist = array_slice($this->topiclist, 0, $opt['cron']['phpbbtopics']['count']);
33 33
 
34
-        $f = fopen(__DIR__ . '/../../cache2/phpbb.inc.php', 'w');
35
-        fwrite($f, '<?php' . "\n");
34
+        $f = fopen(__DIR__.'/../../cache2/phpbb.inc.php', 'w');
35
+        fwrite($f, '<?php'."\n");
36 36
         fwrite(
37 37
             $f,
38
-            '$phpbb_topics = unserialize("' . str_replace('"', '\\"', serialize($this->topiclist)) . '");' . "\n"
38
+            '$phpbb_topics = unserialize("'.str_replace('"', '\\"', serialize($this->topiclist)).'");'."\n"
39 39
         );
40 40
         fwrite($f, '?>');
41 41
         fclose($f);
Please login to merge, or discard this patch.
htdocs/util2/cron/runcron.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -11,8 +11,8 @@  discard block
 block discarded – undo
11 11
  *
12 12
  ***************************************************************************/
13 13
 
14
-$opt['rootpath'] = __DIR__ . '/../../';
15
-require $opt['rootpath'] . 'lib2/cli.inc.php';
14
+$opt['rootpath'] = __DIR__.'/../../';
15
+require $opt['rootpath'].'lib2/cli.inc.php';
16 16
 
17 17
 if (!Cronjobs::enabled()) {
18 18
     exit;
@@ -22,9 +22,9 @@  discard block
 block discarded – undo
22 22
 $processUser = posix_getpwuid(posix_geteuid());
23 23
 if ($processUser['name'] != $opt['cron']['username']) {
24 24
     die(
25
-        "ERROR: runcron must be run by '" . $opt['cron']['username']
26
-        . "' but was called by '" . $processUser['name'] . "'\n" .
27
-        "Try something like 'sudo -u " . $opt['cron']['username'] . " php runcron.php'.\n"
25
+        "ERROR: runcron must be run by '".$opt['cron']['username']
26
+        . "' but was called by '".$processUser['name']."'\n".
27
+        "Try something like 'sudo -u ".$opt['cron']['username']." php runcron.php'.\n"
28 28
     );
29 29
 }
30 30
 
@@ -39,22 +39,22 @@  discard block
 block discarded – undo
39 39
         }
40 40
     }
41 41
 
42
-    $modules_dir = $opt['rootpath'] . 'util2/cron/modules/';
42
+    $modules_dir = $opt['rootpath'].'util2/cron/modules/';
43 43
     $param = count($argv) > 1 ? $argv[1] : '';
44 44
 
45 45
     if ($param != '' && substr($param, 0, 1) != '-' && !strstr('/', $param)) {
46 46
         // run one job manually for debugging purpose
47 47
         $ignore_interval = true;
48
-        require $modules_dir . $argv[1] . '.class.php';
48
+        require $modules_dir.$argv[1].'.class.php';
49 49
     } else {
50 50
         $ignore_interval = false;
51 51
         $hDir = opendir($modules_dir);
52 52
         while (false !== ($file = readdir($hDir))) {
53 53
             if (substr($file, -10) == '.class.php') {
54 54
                 if ($param == '--show') {
55
-                    echo 'running ' . $file . "\n";
55
+                    echo 'running '.$file."\n";
56 56
                 }
57
-                require $modules_dir . $file;
57
+                require $modules_dir.$file;
58 58
             }
59 59
         }
60 60
     }
Please login to merge, or discard this patch.