@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | <?php |
| 156 | 156 | foreach ($opt['template']['locales'] as $k => $lang) { |
| 157 | 157 | if ($lang['status'] == OC_LOCALE_ACTIVE) { |
| 158 | - echo '<a style="text-decoration: none;" href="'.$langUrl . $k . '"><img src="' . $lang['flag'] . |
|
| 158 | + echo '<a style="text-decoration: none;" href="' . $langUrl . $k . '"><img src="' . $lang['flag'] . |
|
| 159 | 159 | '" alt="' . $lang['name'] . '" title="' . $lang['name'] . '" width="24px" height="18px" /></a> '; |
| 160 | 160 | } |
| 161 | 161 | } |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | } |
| 185 | 185 | $nLastGroup = $tpl_usercountries[$i]['group']; |
| 186 | 186 | |
| 187 | - echo '<option value="' . htmlspecialchars($tpl_usercountries[$i]['country'], ENT_COMPAT, 'UTF-8') . '"' . (($sUserCountry==$tpl_usercountries[$i]['country']) ? ' selected="selected"' : '') . '>' . htmlspecialchars($tpl_usercountries[$i]['name'], ENT_COMPAT, 'UTF-8') . '</option>'; |
|
| 187 | + echo '<option value="' . htmlspecialchars($tpl_usercountries[$i]['country'], ENT_COMPAT, 'UTF-8') . '"' . (($sUserCountry == $tpl_usercountries[$i]['country']) ? ' selected="selected"' : '') . '>' . htmlspecialchars($tpl_usercountries[$i]['name'], ENT_COMPAT, 'UTF-8') . '</option>'; |
|
| 188 | 188 | } |
| 189 | 189 | ?> |
| 190 | 190 | </select> |
@@ -345,7 +345,7 @@ discard block |
||
| 345 | 345 | </div> <!-- page-container-1 --> |
| 346 | 346 | |
| 347 | 347 | </div> <!-- overall --> |
| 348 | - <?php if($opt['tracking']['googleAnalytics']) { ?> |
|
| 348 | + <?php if ($opt['tracking']['googleAnalytics']) { ?> |
|
| 349 | 349 | <script type="text/javascript"> |
| 350 | 350 | // Set to the same value as the web property used on the site |
| 351 | 351 | var gaProperty = '<?= $opt['tracking']['googleAnalytics']; ?>'; |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | - * @param $path |
|
| 44 | + * @param string $path |
|
| 45 | 45 | * @return TranslationStruct[] |
| 46 | 46 | */ |
| 47 | 47 | private function readCrowdinCsv($path) |
@@ -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']; |
@@ -190,14 +190,14 @@ |
||
| 190 | 190 | $tpl->assign( |
| 191 | 191 | 'other_report_in_progress', |
| 192 | 192 | sql_value( |
| 193 | - "SELECT `id` |
|
| 193 | + "SELECT `id` |
|
| 194 | 194 | FROM `cache_reports` |
| 195 | 195 | WHERE `cacheid`='&1' AND `id`<>'&2' AND `status`='&3' |
| 196 | 196 | LIMIT 1", |
| 197 | - null, |
|
| 198 | - $record['cacheid'], |
|
| 199 | - $record['id'], |
|
| 200 | - CACHE_REPORT_INPROGRESS |
|
| 197 | + null, |
|
| 198 | + $record['cacheid'], |
|
| 199 | + $record['id'], |
|
| 200 | + CACHE_REPORT_INPROGRESS |
|
| 201 | 201 | ) !== null |
| 202 | 202 | ); |
| 203 | 203 | |
@@ -137,7 +137,7 @@ |
||
| 137 | 137 | $allpics = 'ownlogs'; |
| 138 | 138 | } |
| 139 | 139 | if ($allpics == 'ownlogs' || $allpics == 'owncaches') { |
| 140 | - $gallery = ($allpics == 'ownlogs' ? LogPics::FOR_OWNLOGS_GALLERY : LogPics::FOR_OWNCACHES_GALLERY); |
|
| 140 | + $gallery = ($allpics == 'ownlogs' ? LogPics::FOR_OWNLOGS_GALLERY : LogPics::FOR_OWNCACHES_GALLERY); |
|
| 141 | 141 | $all_pictures = LogPics::get($gallery); |
| 142 | 142 | LogPics::setPaging($gallery, 0, 0, "myhome.php?allpics=1"); |
| 143 | 143 | } else { |
@@ -25,8 +25,8 @@ |
||
| 25 | 25 | |
| 26 | 26 | protected function execute(InputInterface $input, OutputInterface $output) |
| 27 | 27 | { |
| 28 | - require_once __DIR__.'/../../../okapi/core.php'; |
|
| 29 | - require_once __DIR__.'/../../../okapi/vendor/autoload.php'; |
|
| 28 | + require_once __DIR__ . '/../../../okapi/core.php'; |
|
| 29 | + require_once __DIR__ . '/../../../okapi/vendor/autoload.php'; |
|
| 30 | 30 | Okapi::execute_cron5_cronjobs(); |
| 31 | 31 | } |
| 32 | 32 | } |
@@ -6,36 +6,36 @@ |
||
| 6 | 6 | * Common error messages |
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | - define('ERROR_UNKNOWN', 1000); |
|
| 10 | - define('ERROR_TEMPLATE_NOT_FOUND', 1001); |
|
| 11 | - define('ERROR_COMPILATION_FAILED', 1002); |
|
| 12 | - define('ERROR_NO_ACCESS', 1003); |
|
| 13 | - define('ERROR_INVALID_OPERATION', 1004); |
|
| 14 | - define('ERROR_LOGIN_REQUIRED', 1005); |
|
| 15 | - define('ERROR_MAIL_TEMPLATE_NOT_FOUND', 1006); |
|
| 16 | - define('ERROR_NO_COOKIES', 1007); |
|
| 17 | - define('ERROR_ALREADY_LOGGEDIN', 1008); |
|
| 18 | - define('ERROR_USER_NOT_ACTIVE', 1009); |
|
| 19 | - define('ERROR_USER_NO_EMAIL', 1010); |
|
| 20 | - define('ERROR_CACHE_NOT_PUBLISHED', 1011); |
|
| 21 | - define('ERROR_CACHE_LOCKED', 1012); |
|
| 9 | + define('ERROR_UNKNOWN', 1000); |
|
| 10 | + define('ERROR_TEMPLATE_NOT_FOUND', 1001); |
|
| 11 | + define('ERROR_COMPILATION_FAILED', 1002); |
|
| 12 | + define('ERROR_NO_ACCESS', 1003); |
|
| 13 | + define('ERROR_INVALID_OPERATION', 1004); |
|
| 14 | + define('ERROR_LOGIN_REQUIRED', 1005); |
|
| 15 | + define('ERROR_MAIL_TEMPLATE_NOT_FOUND', 1006); |
|
| 16 | + define('ERROR_NO_COOKIES', 1007); |
|
| 17 | + define('ERROR_ALREADY_LOGGEDIN', 1008); |
|
| 18 | + define('ERROR_USER_NOT_ACTIVE', 1009); |
|
| 19 | + define('ERROR_USER_NO_EMAIL', 1010); |
|
| 20 | + define('ERROR_CACHE_NOT_PUBLISHED', 1011); |
|
| 21 | + define('ERROR_CACHE_LOCKED', 1012); |
|
| 22 | 22 | |
| 23 | - define('ERROR_SEARCHPLUGIN_WAYPOINT_FORMAT', 1013); |
|
| 24 | - define('ERROR_SEARCHPLUGIN_WAYPOINT_MANY', 1014); |
|
| 25 | - define('ERROR_SEARCHPLUGIN_WAYPOINT_NOTFOUND', 1015); |
|
| 23 | + define('ERROR_SEARCHPLUGIN_WAYPOINT_FORMAT', 1013); |
|
| 24 | + define('ERROR_SEARCHPLUGIN_WAYPOINT_MANY', 1014); |
|
| 25 | + define('ERROR_SEARCHPLUGIN_WAYPOINT_NOTFOUND', 1015); |
|
| 26 | 26 | |
| 27 | - define('ERROR_DB_COULD_NOT_RECONNECT', 1016); |
|
| 28 | - define('ERROR_DB_NO_ROOT', 1017); |
|
| 27 | + define('ERROR_DB_COULD_NOT_RECONNECT', 1016); |
|
| 28 | + define('ERROR_DB_NO_ROOT', 1017); |
|
| 29 | 29 | |
| 30 | - define('ERROR_USER_NOT_EXISTS', 1018); |
|
| 31 | - define('ERROR_CACHE_NOT_EXISTS', 1019); |
|
| 32 | - define('ERROR_CACHELOG_NOT_EXISTS', 1020); |
|
| 33 | - define('ERROR_PICTURE_NOT_EXISTS', 1021); |
|
| 30 | + define('ERROR_USER_NOT_EXISTS', 1018); |
|
| 31 | + define('ERROR_CACHE_NOT_EXISTS', 1019); |
|
| 32 | + define('ERROR_CACHELOG_NOT_EXISTS', 1020); |
|
| 33 | + define('ERROR_PICTURE_NOT_EXISTS', 1021); |
|
| 34 | 34 | |
| 35 | - define('ERROR_UPLOAD_ERR_NO_FILE', 1022); |
|
| 36 | - define('ERROR_UPLOAD_ERR_SIZE', 1023); |
|
| 37 | - define('ERROR_UPLOAD_ERR_TYPE', 1024); |
|
| 38 | - define('ERROR_UPLOAD_UNKNOWN', 1025); |
|
| 39 | - define('ERROR_UPLOAD_ERR_BAD_FORMAT', 1026); |
|
| 35 | + define('ERROR_UPLOAD_ERR_NO_FILE', 1022); |
|
| 36 | + define('ERROR_UPLOAD_ERR_SIZE', 1023); |
|
| 37 | + define('ERROR_UPLOAD_ERR_TYPE', 1024); |
|
| 38 | + define('ERROR_UPLOAD_UNKNOWN', 1025); |
|
| 39 | + define('ERROR_UPLOAD_ERR_BAD_FORMAT', 1026); |
|
| 40 | 40 | |
| 41 | - define('ERROR_WRONG_NODE', 1027); |
|
| 41 | + define('ERROR_WRONG_NODE', 1027); |
|
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | } else { |
| 87 | 87 | $position = PHP_INT_MAX; |
| 88 | 88 | } |
| 89 | - $position = min($position, $allpics ? $allpics[count($allpics)-1]['seq'] + 1 : 1); |
|
| 89 | + $position = min($position, $allpics ? $allpics[count($allpics) - 1]['seq'] + 1 : 1); |
|
| 90 | 90 | |
| 91 | 91 | // uploaded file ok? |
| 92 | 92 | if (isset($_REQUEST['ok'])) { // Ocprop |
@@ -233,7 +233,7 @@ discard block |
||
| 233 | 233 | } |
| 234 | 234 | $tpl->assign('allpics', $allpics); |
| 235 | 235 | $tpl->assign('position', $position); |
| 236 | - $tpl->assign('appendseq', $allpics ? $allpics[count($allpics)-1]['seq']+1 : 1); |
|
| 236 | + $tpl->assign('appendseq', $allpics ? $allpics[count($allpics) - 1]['seq'] + 1 : 1); |
|
| 237 | 237 | } |
| 238 | 238 | |
| 239 | 239 | $rsCache = sql("SELECT `wp_oc`, `name` FROM `caches` WHERE `cache_id`='&1'", $picture->getCacheId()); |
@@ -466,7 +466,7 @@ |
||
| 466 | 466 | $coords = sql_fetch_assoc_table($rsCoords); |
| 467 | 467 | |
| 468 | 468 | if ($coords) { |
| 469 | - $lastcoorddate = $coords[count($coords)-1]['date']; |
|
| 469 | + $lastcoorddate = $coords[count($coords) - 1]['date']; |
|
| 470 | 470 | $coords[] = [ |
| 471 | 471 | 'date' => '0000-00-00', |
| 472 | 472 | 'latitude' => $coords[count($coords) - 1]['latitude'], |