@@ -71,8 +71,8 @@ |
||
71 | 71 | global $opt; |
72 | 72 | |
73 | 73 | // if data changed - delete statpic of user, if exists - will be recreated on next request |
74 | - if (file_exists($opt['rootpath'] . 'images/statpics/statpic' . $this->nUserId . '.jpg')) { |
|
75 | - unlink($opt['rootpath'] . 'images/statpics/statpic' . $this->nUserId . '.jpg'); |
|
74 | + if (file_exists($opt['rootpath'].'images/statpics/statpic'.$this->nUserId.'.jpg')) { |
|
75 | + unlink($opt['rootpath'].'images/statpics/statpic'.$this->nUserId.'.jpg'); |
|
76 | 76 | } |
77 | 77 | } |
78 | 78 | } |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | |
33 | 33 | private static function setCacheLocation($cache_id) |
34 | 34 | { |
35 | - echo $cache_id . "\n"; |
|
35 | + echo $cache_id."\n"; |
|
36 | 36 | $rs = sqll( |
37 | 37 | "SELECT `latitude`, `longitude`, `last_modified` |
38 | 38 | FROM `caches` |
@@ -95,16 +95,16 @@ discard block |
||
95 | 95 | $rs = sqll( |
96 | 96 | "SELECT |
97 | 97 | `geodb_coordinates`.`loc_id` `loc_id`, |
98 | - (( " . $lon . " - `geodb_coordinates`.`lon` ) * ( " . $lon . " - `geodb_coordinates`.`lon` ) + |
|
99 | - ( " . $lat . " - `geodb_coordinates`.`lat` ) * ( " . $lat . " - `geodb_coordinates`.`lat` )) `dist` |
|
98 | + (( " . $lon." - `geodb_coordinates`.`lon` ) * ( ".$lon." - `geodb_coordinates`.`lon` ) + |
|
99 | + ( " . $lat." - `geodb_coordinates`.`lat` ) * ( ".$lat." - `geodb_coordinates`.`lat` )) `dist` |
|
100 | 100 | FROM `geodb_coordinates` |
101 | 101 | INNER JOIN `geodb_locations` ON `geodb_coordinates`.`loc_id`=`geodb_locations`.`loc_id` |
102 | 102 | WHERE |
103 | 103 | `geodb_locations`.`loc_type`=100700000 |
104 | - AND `geodb_coordinates`.`lon` > " . ($lon - 0.15) . " |
|
105 | - AND `geodb_coordinates`.`lon` < " . ($lon + 0.15) . " |
|
106 | - AND `geodb_coordinates`.`lat` > " . ($lat - 0.15) . " |
|
107 | - AND `geodb_coordinates`.`lat` < " . ($lat + 0.15) . " |
|
104 | + AND `geodb_coordinates`.`lon` > " . ($lon - 0.15)." |
|
105 | + AND `geodb_coordinates`.`lon` < " . ($lon + 0.15)." |
|
106 | + AND `geodb_coordinates`.`lat` > " . ($lat - 0.15)." |
|
107 | + AND `geodb_coordinates`.`lat` < " . ($lat + 0.15)." |
|
108 | 108 | ORDER BY `dist` ASC |
109 | 109 | LIMIT 1" |
110 | 110 | ); |
@@ -34,10 +34,10 @@ |
||
34 | 34 | |
35 | 35 | $npas = get_npas($cache_id); |
36 | 36 | if ($npas) { |
37 | - $desc = "<p>" . str_replace('%1', helppagelink('npa'), _('This geocache is probably placed within the following protected areas (%1Info</a>):')) . "</p>\n" . |
|
37 | + $desc = "<p>".str_replace('%1', helppagelink('npa'), _('This geocache is probably placed within the following protected areas (%1Info</a>):'))."</p>\n". |
|
38 | 38 | "<ul>\n"; |
39 | 39 | foreach ($npas as $npa) { |
40 | - $desc .= "<li>" . $npa['npaTypeName'] . ": <a href='http://www.google.de/search?q=" . urlencode($npa['npaTypeName'] . ' ' . $npa['npaName']) . "' target='_blank'>" . $npa['npaName'] . "</a></li>\n"; |
|
40 | + $desc .= "<li>".$npa['npaTypeName'].": <a href='http://www.google.de/search?q=".urlencode($npa['npaTypeName'].' '.$npa['npaName'])."' target='_blank'>".$npa['npaName']."</a></li>\n"; |
|
41 | 41 | } |
42 | 42 | $desc .= "</ul>\n"; |
43 | 43 | } else { |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | * |
9 | 9 | ***************************************************************************/ |
10 | 10 | |
11 | -require_once __DIR__ . '/const.inc.php'; |
|
11 | +require_once __DIR__.'/const.inc.php'; |
|
12 | 12 | |
13 | 13 | class useroptions |
14 | 14 | { |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | $this->nOptions[$pId]['option_value'] = $pValue; |
151 | 151 | |
152 | 152 | return true; |
153 | - } elseif (preg_match("/" . $this->nOptions[$pId]['check_regex'] . "/", $pValue) || strlen($pValue) == 0) { |
|
153 | + } elseif (preg_match("/".$this->nOptions[$pId]['check_regex']."/", $pValue) || strlen($pValue) == 0) { |
|
154 | 154 | $this->nOptions[$pId]['option_value'] = $pValue; |
155 | 155 | |
156 | 156 | return true; |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | FROM `log_types` |
29 | 29 | LEFT JOIN `sys_trans_text` |
30 | 30 | ON `sys_trans_text`.`trans_id` = `log_types`.`trans_id` |
31 | - AND `sys_trans_text`.`lang`='" . sql_escape($locale) . "'" |
|
31 | + AND `sys_trans_text`.`lang`='" . sql_escape($locale)."'" |
|
32 | 32 | ); |
33 | 33 | while ($r = sql_fetch_array($rs)) { |
34 | 34 | $log_types[$r['id']] = $r['type_name']; |
@@ -91,28 +91,28 @@ discard block |
||
91 | 91 | |
92 | 92 | $allowed_logtypes = array(); |
93 | 93 | if ($owner || $admin_report || $admin_locked) { |
94 | - $allowed_logtypes[] = 3; // note |
|
94 | + $allowed_logtypes[] = 3; // note |
|
95 | 95 | } |
96 | 96 | if (($owner && $statuslogs) || $admin_report) { |
97 | 97 | if ($cache_status != 5 && (($cache_status != 4 && $cache_status != 7) || $admin_report)) { |
98 | - $allowed_logtypes[] = 10; // ready for search |
|
99 | - $allowed_logtypes[] = 11; // temporarily not available |
|
100 | - $allowed_logtypes[] = 9; // archived |
|
101 | - $allowed_logtypes[] = 13; // locked |
|
98 | + $allowed_logtypes[] = 10; // ready for search |
|
99 | + $allowed_logtypes[] = 11; // temporarily not available |
|
100 | + $allowed_logtypes[] = 9; // archived |
|
101 | + $allowed_logtypes[] = 13; // locked |
|
102 | 102 | } |
103 | 103 | if ($admin_report || $old_logtype == 14) { |
104 | 104 | $allowed_logtypes[] = 14; |
105 | 105 | } // locked, invisible |
106 | 106 | } |
107 | 107 | if ($cache_type == 6) { // event |
108 | - $allowed_logtypes[] = 8; // will attend |
|
109 | - $allowed_logtypes[] = 7; // attended |
|
108 | + $allowed_logtypes[] = 8; // will attend |
|
109 | + $allowed_logtypes[] = 7; // attended |
|
110 | 110 | } else { |
111 | - $allowed_logtypes[] = 1; // found |
|
112 | - $allowed_logtypes[] = 2; // not found |
|
111 | + $allowed_logtypes[] = 1; // found |
|
112 | + $allowed_logtypes[] = 2; // not found |
|
113 | 113 | } |
114 | 114 | if (!($owner || $admin_report || $admin_locked)) { |
115 | - $allowed_logtypes[] = 3; // note |
|
115 | + $allowed_logtypes[] = 3; // note |
|
116 | 116 | } |
117 | 117 | |
118 | 118 | // always allow to keep the existing logtype when the log is edited by an admin |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | } elseif (!$opt['logic']['admin']['team_comments_only_for_reports'] || admin_has_open_report($cache_id)) { |
152 | 152 | // allowed for report processing by admins |
153 | 153 | $allowed = true; |
154 | - } elseif ($login->hasAdminPriv(ADMIN_USER) && in_array($rCache['status'], [6,7])) { |
|
154 | + } elseif ($login->hasAdminPriv(ADMIN_USER) && in_array($rCache['status'], [6, 7])) { |
|
155 | 155 | // allowed for admins && locked caches, see http://forum.opencaching.de/index.php?topic=3102.msg39517#msg39517 |
156 | 156 | $allowed = true; |
157 | 157 | } else { |
@@ -104,7 +104,8 @@ |
||
104 | 104 | $allowed_logtypes[] = 14; |
105 | 105 | } // locked, invisible |
106 | 106 | } |
107 | - if ($cache_type == 6) { // event |
|
107 | + if ($cache_type == 6) { |
|
108 | +// event |
|
108 | 109 | $allowed_logtypes[] = 8; // will attend |
109 | 110 | $allowed_logtypes[] = 7; // attended |
110 | 111 | } else { |
@@ -19,14 +19,14 @@ |
||
19 | 19 | } |
20 | 20 | |
21 | 21 | // chicken-egg problem ... |
22 | -require_once $opt['rootpath'] . 'lib2/const.inc.php'; |
|
22 | +require_once $opt['rootpath'].'lib2/const.inc.php'; |
|
23 | 23 | |
24 | 24 | // do all output in text format |
25 | 25 | $opt['gui'] = GUI_TEXT; |
26 | 26 | |
27 | 27 | // include the main library |
28 | -require_once $opt['rootpath'] . 'lib2/common.inc.php'; |
|
29 | -require_once $opt['rootpath'] . 'lib2/cli.class.php'; |
|
28 | +require_once $opt['rootpath'].'lib2/common.inc.php'; |
|
29 | +require_once $opt['rootpath'].'lib2/cli.class.php'; |
|
30 | 30 | |
31 | 31 | if (($opt['debug'] & DEBUG_OUTOFSERVICE) == DEBUG_OUTOFSERVICE) { |
32 | 32 | $cli->debug('exit because DEBUG_OUTOFSERVICE is set'); |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | public function getPubDate() |
43 | 43 | { |
44 | 44 | if (empty($this->pubDate)) { |
45 | - return date("d.m.y H:i:s") . "GMT"; |
|
45 | + return date("d.m.y H:i:s")."GMT"; |
|
46 | 46 | } else { |
47 | 47 | return $this->pubDate; |
48 | 48 | } |
@@ -57,11 +57,11 @@ discard block |
||
57 | 57 | { |
58 | 58 | $out = $this->header(); |
59 | 59 | $out .= "<channel>\n"; |
60 | - $out .= "<title>" . $this->title . "</title>\n"; |
|
61 | - $out .= "<link>" . $this->link . "</link>\n"; |
|
62 | - $out .= "<description>" . $this->description . "</description>\n"; |
|
63 | - $out .= "<language>" . $this->language . "</language>\n"; |
|
64 | - $out .= "<pubDate>" . $this->getPubDate() . "</pubDate>\n"; |
|
60 | + $out .= "<title>".$this->title."</title>\n"; |
|
61 | + $out .= "<link>".$this->link."</link>\n"; |
|
62 | + $out .= "<description>".$this->description."</description>\n"; |
|
63 | + $out .= "<language>".$this->language."</language>\n"; |
|
64 | + $out .= "<pubDate>".$this->getPubDate()."</pubDate>\n"; |
|
65 | 65 | |
66 | 66 | foreach ($this->tags as $key => $val) { |
67 | 67 | $out .= "<$key>$val</$key>\n"; |
@@ -88,8 +88,8 @@ discard block |
||
88 | 88 | |
89 | 89 | public function header() |
90 | 90 | { |
91 | - $out = '<?xml version="1.0" encoding="utf-8"?>' . "\n"; |
|
92 | - $out .= '<rss version="2.0">' . "\n"; |
|
91 | + $out = '<?xml version="1.0" encoding="utf-8"?>'."\n"; |
|
92 | + $out .= '<rss version="2.0">'."\n"; |
|
93 | 93 | |
94 | 94 | return $out; |
95 | 95 | } |
@@ -141,10 +141,10 @@ discard block |
||
141 | 141 | public function out() |
142 | 142 | { |
143 | 143 | $out = "<item>\n"; |
144 | - $out .= "<title>" . $this->title . "</title>\n"; |
|
145 | - $out .= "<link>" . $this->link . "</link>\n"; |
|
146 | - $out .= "<description>" . $this->description . "</description>\n"; |
|
147 | - $out .= "<pubDate>" . $this->getPubDate() . "</pubDate>\n"; |
|
144 | + $out .= "<title>".$this->title."</title>\n"; |
|
145 | + $out .= "<link>".$this->link."</link>\n"; |
|
146 | + $out .= "<description>".$this->description."</description>\n"; |
|
147 | + $out .= "<pubDate>".$this->getPubDate()."</pubDate>\n"; |
|
148 | 148 | |
149 | 149 | if ($this->attachment != "") { |
150 | 150 | $out .= "<enclosure url='{$this->attachment}' length='{$this->length}' type='{$this->mimetype}' />"; |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | if (empty($this->guid)) { |
154 | 154 | $this->guid = $this->link; |
155 | 155 | } |
156 | - $out .= "<guid>" . $this->guid . "</guid>\n"; |
|
156 | + $out .= "<guid>".$this->guid."</guid>\n"; |
|
157 | 157 | |
158 | 158 | foreach ($this->tags as $key => $val) { |
159 | 159 | $out .= "<$key>$val</$key\n>"; |
@@ -5,8 +5,8 @@ discard block |
||
5 | 5 | * Unicode Reminder メモ |
6 | 6 | ***************************************************************************/ |
7 | 7 | |
8 | -require_once __DIR__ . '/../vendor/autoload.php'; |
|
9 | -require_once __DIR__ . '/Net/IDNA2.php'; |
|
8 | +require_once __DIR__.'/../vendor/autoload.php'; |
|
9 | +require_once __DIR__.'/Net/IDNA2.php'; |
|
10 | 10 | |
11 | 11 | // !! THIS CODE IS ALSO USED IN OKAPI !! |
12 | 12 | // Any changes must be tested with OKAPI services/logs/submit method. |
@@ -50,8 +50,8 @@ discard block |
||
50 | 50 | $config->set('Attr.IDPrefix', 'custom_'); |
51 | 51 | |
52 | 52 | // enable 'display' and 'visibility' styles for mystery descriptions |
53 | - $config->set('CSS.AllowTricky', true); // + display, visibility, overflow |
|
54 | - $config->set('CSS.ForbiddenProperties', 'overflow'); // - overflow |
|
53 | + $config->set('CSS.AllowTricky', true); // + display, visibility, overflow |
|
54 | + $config->set('CSS.ForbiddenProperties', 'overflow'); // - overflow |
|
55 | 55 | |
56 | 56 | // prepare additional definitions |
57 | 57 | $def = $config->getHTMLDefinition(true); |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | ); // HTML5 attribs currently not supported by TinyMCE |
66 | 66 | $def->addElement('legend', 'Inline', 'Flow', 'Common'); |
67 | 67 | $def->addElement('q', 'Inline', 'Inline', 'Common', ['cite' => 'URI']); |
68 | - $def->addElement('strike', 'Inline', 'Inline', 'Common'); // -> wird in CSS umgewandelt |
|
68 | + $def->addElement('strike', 'Inline', 'Inline', 'Common'); // -> wird in CSS umgewandelt |
|
69 | 69 | $def->addElement( |
70 | 70 | 'area', |
71 | 71 | 'Inline', |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -require_once __DIR__ . '/../Exception.php'; |
|
2 | +require_once __DIR__.'/../Exception.php'; |
|
3 | 3 | // adjusted path for OC distribution |
4 | 4 | |
5 | 5 | class Net_IDNA2_Exception_Nameprep extends Net_IDNA2_Exception |