@@ -8,8 +8,8 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | } |
@@ -8,8 +8,8 @@ discard block |
||
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 |
||
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); |
@@ -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; |
@@ -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; |
@@ -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; |
@@ -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; |
@@ -5,7 +5,7 @@ discard block |
||
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 |
||
83 | 83 | ) |
84 | 84 | ); |
85 | 85 | |
86 | -require __DIR__ . '/newlogs.php'; |
|
86 | +require __DIR__.'/newlogs.php'; |
@@ -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; |
@@ -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; |