@@ -138,7 +138,7 @@ |
||
| 138 | 138 | $allpics = 'ownlogs'; |
| 139 | 139 | } |
| 140 | 140 | if ($allpics == 'ownlogs' || $allpics == 'owncaches') { |
| 141 | - $gallery = ($allpics == 'ownlogs' ? LogPics::FOR_OWNLOGS_GALLERY : LogPics::FOR_OWNCACHES_GALLERY); |
|
| 141 | + $gallery = ($allpics == 'ownlogs' ? LogPics::FOR_OWNLOGS_GALLERY : LogPics::FOR_OWNCACHES_GALLERY); |
|
| 142 | 142 | $all_pictures = LogPics::get($gallery); |
| 143 | 143 | LogPics::setPaging($gallery, 0, 0, "myhome.php?allpics=" . $allpics); |
| 144 | 144 | } else { |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | |
| 26 | 26 | protected function execute(InputInterface $input, OutputInterface $output) |
| 27 | 27 | { |
| 28 | - require_once __DIR__.'/../../../okapi/autoload.php'; |
|
| 28 | + require_once __DIR__ . '/../../../okapi/autoload.php'; |
|
| 29 | 29 | Okapi::execute_prerequest_cronjobs(); |
| 30 | 30 | Okapi::execute_cron5_cronjobs(); |
| 31 | 31 | } |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | $cursor[$key] = $value; |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | - $logEntry->id = (int) hexdec($cursor['i']); |
|
| 74 | + $logEntry->id = (int)hexdec($cursor['i']); |
|
| 75 | 75 | |
| 76 | 76 | $timeStamp = $entry['__REALTIME_TIMESTAMP']; |
| 77 | 77 | $logEntry->created = \DateTimeImmutable::createFromFormat( |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | public function toDatabaseArray() |
| 31 | 31 | { |
| 32 | 32 | return [ |
| 33 | - 'id' => (int) $this->id, |
|
| 33 | + 'id' => (int)$this->id, |
|
| 34 | 34 | 'email' => $this->email, |
| 35 | 35 | 'status' => $this->status, |
| 36 | 36 | 'created' => $this->created, |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | */ |
| 44 | 44 | public function fromDatabaseArray(array $data) |
| 45 | 45 | { |
| 46 | - $this->id = (int) $data['id']; |
|
| 46 | + $this->id = (int)$data['id']; |
|
| 47 | 47 | $this->email = $data['email']; |
| 48 | 48 | $this->status = $data['status']; |
| 49 | 49 | $this->created = $data['created']; |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | |
| 57 | 57 | public function fromCsvArray(array $data) |
| 58 | 58 | { |
| 59 | - $this->identifier = (int) $data['Identifier']; |
|
| 59 | + $this->identifier = (int)$data['Identifier']; |
|
| 60 | 60 | $this->sourceString = $data['SourceString']; |
| 61 | 61 | $this->comment = $data['Comment']; |
| 62 | 62 | $this->de = $data['DE']; |
@@ -505,8 +505,8 @@ |
||
| 505 | 505 | } |
| 506 | 506 | |
| 507 | 507 | $coords = []; |
| 508 | - if ($this->getType() != 7 && $this->getType() != 8 && // quiz cache |
|
| 509 | - $this->hasAttribute(61) != true && // safari cache |
|
| 508 | + if ($this->getType() != 7 && $this->getType() != 8 && // quiz cache |
|
| 509 | + $this->hasAttribute(61) != true && // safari cache |
|
| 510 | 510 | $this->getStatus() != 5 // unpublished cache |
| 511 | 511 | ) { |
| 512 | 512 | $rsCoords = sql( |
@@ -7,8 +7,8 @@ discard block |
||
| 7 | 7 | * Do not modify this file - use settings.inc.php! |
| 8 | 8 | ***************************************************************************/ |
| 9 | 9 | |
| 10 | -require_once __DIR__. '/locale.inc.php'; |
|
| 11 | -require_once __DIR__. '/settings-dist-common.inc.php'; |
|
| 10 | +require_once __DIR__ . '/locale.inc.php'; |
|
| 11 | +require_once __DIR__ . '/settings-dist-common.inc.php'; |
|
| 12 | 12 | |
| 13 | 13 | /* PHP settings |
| 14 | 14 | * |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | // database placeholder |
| 108 | 108 | |
| 109 | 109 | // productive database with opencaching-tables |
| 110 | -$opt['db']['placeholder']['db'] = ''; // selected by default |
|
| 110 | +$opt['db']['placeholder']['db'] = ''; // selected by default |
|
| 111 | 111 | |
| 112 | 112 | // empty database for temporary table creation |
| 113 | 113 | $opt['db']['placeholder']['tmpdb'] = ''; |
@@ -121,14 +121,14 @@ discard block |
||
| 121 | 121 | $opt['system']['maillog']['syslog_db_user'] = ''; |
| 122 | 122 | $opt['system']['maillog']['syslog_db_password'] = ''; |
| 123 | 123 | $opt['system']['maillog']['syslog_db_table'] = ''; |
| 124 | -$opt['system']['maillog']['syslog_oc_host'] = ''; // 'host_name' column in syslog DB |
|
| 125 | -$opt['system']['maillog']['syslog_mta'] = 'postfix/smtp%'; // 'program' column in syslog DB |
|
| 126 | -$opt['system']['maillog']['column']['id'] = 'id'; // 'ID' |
|
| 127 | -$opt['system']['maillog']['column']['created'] = 'created'; // 'ReceivedAt' |
|
| 124 | +$opt['system']['maillog']['syslog_oc_host'] = ''; // 'host_name' column in syslog DB |
|
| 125 | +$opt['system']['maillog']['syslog_mta'] = 'postfix/smtp%'; // 'program' column in syslog DB |
|
| 126 | +$opt['system']['maillog']['column']['id'] = 'id'; // 'ID' |
|
| 127 | +$opt['system']['maillog']['column']['created'] = 'created'; // 'ReceivedAt' |
|
| 128 | 128 | $opt['system']['maillog']['column']['host_name'] = 'host_name'; // 'FromHost' |
| 129 | -$opt['system']['maillog']['column']['message'] = 'message'; // 'Message' |
|
| 130 | -$opt['system']['maillog']['column']['program'] = 'program'; // 'SysLogTag' |
|
| 131 | -$opt['system']['maillog']['inactivity_warning'] = 30; // warn after N days without new entries |
|
| 129 | +$opt['system']['maillog']['column']['message'] = 'message'; // 'Message' |
|
| 130 | +$opt['system']['maillog']['column']['program'] = 'program'; // 'SysLogTag' |
|
| 131 | +$opt['system']['maillog']['inactivity_warning'] = 30; // warn after N days without new entries |
|
| 132 | 132 | |
| 133 | 133 | /* cookie or session |
| 134 | 134 | * |
@@ -150,15 +150,15 @@ discard block |
||
| 150 | 150 | * |
| 151 | 151 | * other parameters may be customized |
| 152 | 152 | */ |
| 153 | -$opt['session']['mode'] = SAVE_COOKIE; // don't change - other option "SAVE_SESSION" is not implemented properly |
|
| 153 | +$opt['session']['mode'] = SAVE_COOKIE; // don't change - other option "SAVE_SESSION" is not implemented properly |
|
| 154 | 154 | $opt['session']['cookiename'] = 'ocvagrant'; // only with SAVE_COOKIE |
| 155 | 155 | $opt['session']['path'] = '/'; |
| 156 | -$opt['session']['domain'] = ''; // may be overwritten by $opt['domain'][...]['cookiedomain'] |
|
| 156 | +$opt['session']['domain'] = ''; // may be overwritten by $opt['domain'][...]['cookiedomain'] |
|
| 157 | 157 | |
| 158 | 158 | /* maximum session lifetime |
| 159 | 159 | */ |
| 160 | 160 | $opt['session']['expire']['cookie'] = 31536000; // when cookies used (default 1 year) |
| 161 | -$opt['session']['expire']['url'] = 1800; // when no cookies used (default 30 min since last call), attention to session.js |
|
| 161 | +$opt['session']['expire']['url'] = 1800; // when no cookies used (default 30 min since last call), attention to session.js |
|
| 162 | 162 | |
| 163 | 163 | /* If the Referer was sent by the client and the substring was not found, |
| 164 | 164 | * the embedded session id will be marked as invalid. |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | /* other template options |
| 185 | 185 | * |
| 186 | 186 | */ |
| 187 | -$opt['page']['origin_url'] = 'https://www.opencaching.de/'; // production installation for this OC site |
|
| 187 | +$opt['page']['origin_url'] = 'https://www.opencaching.de/'; // production installation for this OC site |
|
| 188 | 188 | $opt['page']['develsystem'] = false; |
| 189 | 189 | $opt['page']['teampic_url'] = 'https://www.opencaching.de/images/team/'; |
| 190 | 190 | $opt['page']['teammember_url'] = 'https://www.opencaching.de/'; |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | 'newcaches' => [ |
| 219 | 219 | 'show' => true, |
| 220 | 220 | 'url' => 'https://www.opencaching.de', |
| 221 | - 'urlname' => '', // optional: show other name than the url-domain |
|
| 221 | + 'urlname' => '', // optional: show other name than the url-domain |
|
| 222 | 222 | ], |
| 223 | 223 | ]; |
| 224 | 224 | |
@@ -378,7 +378,7 @@ discard block |
||
| 378 | 378 | |
| 379 | 379 | /* license-related functions |
| 380 | 380 | */ |
| 381 | -$opt['logic']['license']['newusers'] = 2; // see license constants in lib2/logic/const.inc.php |
|
| 381 | +$opt['logic']['license']['newusers'] = 2; // see license constants in lib2/logic/const.inc.php |
|
| 382 | 382 | $opt['logic']['license']['admin'] = true; |
| 383 | 383 | $opt['logic']['license']['disclaimer'] = false; |
| 384 | 384 | $opt['logic']['license']['terms'] = 'articles.php?page=impressum#datalicense'; |
@@ -386,18 +386,18 @@ discard block |
||
| 386 | 386 | |
| 387 | 387 | /* optional APIs |
| 388 | 388 | */ |
| 389 | -$opt['logic']['api']['email_problems']['key'] = ''; // must be set to enable |
|
| 390 | -$opt['logic']['api']['user_inactivity']['key'] = ''; // must be set to enable |
|
| 389 | +$opt['logic']['api']['email_problems']['key'] = ''; // must be set to enable |
|
| 390 | +$opt['logic']['api']['user_inactivity']['key'] = ''; // must be set to enable |
|
| 391 | 391 | |
| 392 | 392 | /* cache report info settings |
| 393 | 393 | */ |
| 394 | 394 | $opt['logic']['cache_reports']['delaydays'] = 2; |
| 395 | -$opt['logic']['cache_reports']['min_processperday'] = 5; // set to 0 to disable |
|
| 396 | -$opt['logic']['cache_reports']['max_processperday'] = 20; // set to 0 to disable |
|
| 395 | +$opt['logic']['cache_reports']['min_processperday'] = 5; // set to 0 to disable |
|
| 396 | +$opt['logic']['cache_reports']['max_processperday'] = 20; // set to 0 to disable |
|
| 397 | 397 | |
| 398 | 398 | /* cronjob |
| 399 | 399 | */ |
| 400 | -$opt['cron']['username'] = 'apache'; // system username for cronjobs |
|
| 400 | +$opt['cron']['username'] = 'apache'; // system username for cronjobs |
|
| 401 | 401 | |
| 402 | 402 | /* phpbb news integration (index.php, outdated) |
| 403 | 403 | * |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | ['ai', 'ei'], |
| 18 | 18 | ['ou', 'u'], |
| 19 | 19 | ['th', 't'], |
| 20 | - ['ph','f'], |
|
| 20 | + ['ph', 'f'], |
|
| 21 | 21 | ['oh', 'o'], |
| 22 | 22 | ['ah', 'a'], |
| 23 | 23 | ['eh', 'e'], |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | $str = ''; |
| 102 | 102 | |
| 103 | 103 | ftsearch_load_ignores(); |
| 104 | - for ($i = count($astr) - 1; $i >= 0; $i --) { |
|
| 104 | + for ($i = count($astr) - 1; $i >= 0; $i--) { |
|
| 105 | 105 | // ignore? |
| 106 | 106 | if (array_search(mb_strtolower($astr[$i]), $ftsearch_ignores) !== false) { |
| 107 | 107 | unset($astr[$i]); |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | |
| 157 | 157 | // doppelte chars ersetzen |
| 158 | 158 | $ordZ = ord('z'); |
| 159 | - for ($c = ord('a'); $c <= $ordZ; $c ++) { |
|
| 159 | + for ($c = ord('a'); $c <= $ordZ; $c++) { |
|
| 160 | 160 | $old_str = ''; |
| 161 | 161 | while ($old_str !== $str) { |
| 162 | 162 | $old_str = $str; |
@@ -433,9 +433,9 @@ |
||
| 433 | 433 | $thisline = mb_ereg_replace('{logs}', $logentries, $thisline); |
| 434 | 434 | |
| 435 | 435 | // attributes |
| 436 | - $addAttributes = [-1]; // dummy |
|
| 436 | + $addAttributes = [-1]; // dummy |
|
| 437 | 437 | if ($r['type'] == 10) { // Drive-in |
| 438 | - $addAttributes[] = 24; // near the car / park and grab |
|
| 438 | + $addAttributes[] = 24; // near the car / park and grab |
|
| 439 | 439 | } |
| 440 | 440 | $rsAttributes = sql_slave( |
| 441 | 441 | " |