Completed
Pull Request — master (#300)
by
unknown
07:10
created
local/stat/coordstat.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -8,8 +8,8 @@  discard block
 block discarded – undo
8 8
 // statistical data for cache and log activity map
9 9
 // optional script to be released locally into htdocs/api/stat
10 10
 
11
-$opt['rootpath'] = __DIR__ . '/../../htdocs/';
12
-require $opt['rootpath'] . 'lib2/web.inc.php';
11
+$opt['rootpath'] = __DIR__.'/../../htdocs/';
12
+require $opt['rootpath'].'lib2/web.inc.php';
13 13
 
14 14
 error_reporting(error_reporting() & ~E_NOTICE);
15 15
 
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     $year = substr($cache['date_created'], 0, 4);
27 27
     if ($year >= 2005 && $year <= date("Y") && ($lat != 0 || $long != 0)) {
28 28
         $years[$year] = true;
29
-        $liste[$lat][$long]["caches"][$year] ++;
29
+        $liste[$lat][$long]["caches"][$year]++;
30 30
     }
31 31
 }
32 32
 mysql_free_result($rs);
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         $year = substr($cache["date"], 0, 4);
51 51
         if ($year >= 2005 && $year <= date("Y") && ($lat != 0 || $long != 0)) {
52 52
             $years[$year] = true;
53
-            $liste[$lat][$long]["logs"][$year] ++;
53
+            $liste[$lat][$long]["logs"][$year]++;
54 54
         }
55 55
     }
56 56
     mysql_free_result($rs);
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 while ($cache = sql_fetch_assoc($rs)) {
68 68
     $lat = floor($cache["latitude"] / $grid);
69 69
     $long = floor($cache["longitude"] / $grid);
70
-    $liste[$lat][$long]["caches"]["all"] ++;
70
+    $liste[$lat][$long]["caches"]["all"]++;
71 71
     $liste[$lat][$long]["logs"]["all"] += $cache["logs"];
72 72
 }
73 73
 mysql_free_result($rs);
@@ -89,11 +89,11 @@  discard block
 block discarded – undo
89 89
 
90 90
 foreach ($liste as $lat => $liste2) {
91 91
     foreach ($liste2 as $long => $cachecounts) {
92
-        echo ($lat * $grid + 0.5 * $grid) . ',' . ($long * $grid + 0.5 * $grid) . ',' .
93
-            $cachecounts['caches']['all'] . ',' .
92
+        echo ($lat * $grid + 0.5 * $grid).','.($long * $grid + 0.5 * $grid).','.
93
+            $cachecounts['caches']['all'].','.
94 94
             $cachecounts['logs']['all'];
95 95
         foreach ($years as $year => $dummy) {
96
-            echo ',' . $cachecounts["caches"][$year] . ',' . $cachecounts["logs"][$year];
96
+            echo ','.$cachecounts["caches"][$year].','.$cachecounts["logs"][$year];
97 97
         }
98 98
         echo "\r\n";
99 99
     }
Please login to merge, or discard this patch.
local/stat/newimages.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,8 +8,8 @@  discard block
 block discarded – undo
8 8
 // list of new images
9 9
 // optional script to be released locally into htdocs/api/stat
10 10
 
11
-$opt['rootpath'] = __DIR__ . '/../../htdocs/';
12
-require $opt['rootpath'] . 'lib2/web.inc.php';
11
+$opt['rootpath'] = __DIR__.'/../../htdocs/';
12
+require $opt['rootpath'].'lib2/web.inc.php';
13 13
 
14 14
 if (!isset($_REQUEST['since'])) {
15 15
     exit;
@@ -23,6 +23,6 @@  discard block
 block discarded – undo
23 23
     $since
24 24
 );
25 25
 while ($pic = sql_fetch_assoc($rs)) {
26
-    echo $pic['url'] . "\n";
26
+    echo $pic['url']."\n";
27 27
 }
28 28
 mysql_free_result($rs);
Please login to merge, or discard this patch.
htdocs/dbmaintain.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
htdocs/newemail.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
htdocs/myhome.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
htdocs/reportcache.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
htdocs/ownlogs.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
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 = 'ownerlogs';
11 11
 $tpl->menuitem = MNU_MYPROFILE_OWNERLOGS;
@@ -83,4 +83,4 @@  discard block
 block discarded – undo
83 83
     )
84 84
 );
85 85
 
86
-require __DIR__ . '/newlogs.php';
86
+require __DIR__.'/newlogs.php';
Please login to merge, or discard this patch.
htdocs/newpw.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
htdocs/adminhistory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.