@@ -21,8 +21,8 @@ discard block |
||
| 21 | 21 | // check for old-style parameters |
| 22 | 22 | if (isset($_REQUEST['cacheid']) && isset($_REQUEST['desclang']) && !isset($_REQUEST['descid'])) // Ocprop |
| 23 | 23 | { |
| 24 | - $cache_id = $_REQUEST['cacheid']; // Ocprop |
|
| 25 | - $desc_lang = $_REQUEST['desclang']; // Ocprop |
|
| 24 | + $cache_id = $_REQUEST['cacheid']; // Ocprop |
|
| 25 | + $desc_lang = $_REQUEST['desclang']; // Ocprop |
|
| 26 | 26 | |
| 27 | 27 | $rs = sql("SELECT `id` FROM `cache_desc` WHERE `cache_id`='&1' AND `language`='&2'", $cache_id, $desc_lang); |
| 28 | 28 | if (mysql_num_rows($rs) == 1) { |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | if (isset($_POST['post'])) // Ocprop |
| 91 | 91 | { |
| 92 | 92 | //here we read all used information from the form if submitted |
| 93 | - $descMode = isset($_POST['descMode']) ? $_POST['descMode'] + 0 : 1; // Ocprop |
|
| 93 | + $descMode = isset($_POST['descMode']) ? $_POST['descMode'] + 0 : 1; // Ocprop |
|
| 94 | 94 | |
| 95 | 95 | // fuer alte Versionen von OCProp |
| 96 | 96 | if (isset($_POST['submit']) && !isset($_POST['version2'])) { |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | $oldDescMode = $descMode; |
| 124 | 124 | } |
| 125 | 125 | |
| 126 | - $short_desc = $_POST['short_desc']; // Ocprop |
|
| 126 | + $short_desc = $_POST['short_desc']; // Ocprop |
|
| 127 | 127 | $hint = htmlspecialchars($_POST['hints'], ENT_COMPAT, 'UTF-8'); |
| 128 | 128 | $desclang = $_POST['desclang']; |
| 129 | 129 | $show_all_langs = isset($_POST['show_all_langs_value']) ? $_POST['show_all_langs_value'] : 0; |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | } |
| 139 | 139 | |
| 140 | 140 | // Text from textarea |
| 141 | - $desc = $_POST['desc']; // Ocprop |
|
| 141 | + $desc = $_POST['desc']; // Ocprop |
|
| 142 | 142 | |
| 143 | 143 | // fuer alte Versionen von OCProp |
| 144 | 144 | if (isset($_POST['submit']) && !isset($_POST['version2'])) { |
@@ -297,7 +297,7 @@ discard block |
||
| 297 | 297 | tpl_set_var('desclang', htmlspecialchars($desc_lang, ENT_COMPAT, 'UTF-8')); |
| 298 | 298 | tpl_set_var('desclang_name', htmlspecialchars(db_LanguageFromShort($desc_lang), ENT_COMPAT, 'UTF-8')); |
| 299 | 299 | tpl_set_var('cachename', htmlspecialchars($desc_record['name'], ENT_COMPAT, 'UTF-8')); |
| 300 | - tpl_set_var('reset', $reset); // obsolete |
|
| 300 | + tpl_set_var('reset', $reset); // obsolete |
|
| 301 | 301 | tpl_set_var('submit', $submit); |
| 302 | 302 | |
| 303 | 303 | // Text / normal HTML / HTML editor |
@@ -1011,7 +1011,7 @@ |
||
| 1011 | 1011 | } |
| 1012 | 1012 | $logs_restored = true; |
| 1013 | 1013 | } |
| 1014 | - // if it was not already restored by a later restore operation ... |
|
| 1014 | + // if it was not already restored by a later restore operation ... |
|
| 1015 | 1015 | } elseif (sql_value("SELECT `id` FROM `cache_logs` WHERE `id`='&1'", 0, $revert_logid) == 0) { |
| 1016 | 1016 | // id, uuid, date_created and last_modified are set automatically; |
| 1017 | 1017 | // picture will be updated automatically on picture-restore |
@@ -367,7 +367,7 @@ discard block |
||
| 367 | 367 | $rs = sql("SELECT * FROM `caches` WHERE `cache_id` IN " . $cachelist); |
| 368 | 368 | while ($r = sql_fetch_assoc($rs)) { |
| 369 | 369 | $nextcd[$r['wp_oc']] = $r; |
| 370 | - $user_id = $r['user_id']; // is used later for logs |
|
| 370 | + $user_id = $r['user_id']; // is used later for logs |
|
| 371 | 371 | } |
| 372 | 372 | sql_free_result($rs); |
| 373 | 373 | |
@@ -467,7 +467,7 @@ discard block |
||
| 467 | 467 | "SELECT * FROM `caches_attributes_modified` |
| 468 | 468 | WHERE `cache_id` IN " . $cachelist . " /* OConly attrib is shown, but not restorable */ |
| 469 | 469 | ORDER BY `date_modified` ASC" |
| 470 | - ); // order doesn't matter as long it is date only |
|
| 470 | + ); // order doesn't matter as long it is date only |
|
| 471 | 471 | while ($r = sql_fetch_assoc($rs)) { |
| 472 | 472 | append_data( |
| 473 | 473 | $data, |
@@ -623,7 +623,7 @@ discard block |
||
| 623 | 623 | "SELECT *, " . $piccacheid . "AS `cache_id` FROM `pictures_modified` |
| 624 | 624 | WHERE " . $piccacheid . " IN " . $cachelist . " |
| 625 | 625 | ORDER BY `date_modified` ASC" |
| 626 | - ); // order is relevant for the case of restore-reverts |
|
| 626 | + ); // order is relevant for the case of restore-reverts |
|
| 627 | 627 | while ($r = sql_fetch_assoc($rs)) { |
| 628 | 628 | $r['date_modified'] = substr($r['date_modified'], 0, 10); |
| 629 | 629 | switch ($r['operation']) { |
@@ -727,7 +727,7 @@ discard block |
||
| 727 | 727 | { |
| 728 | 728 | global $opt, $login; |
| 729 | 729 | |
| 730 | - sql("SET @restoredby='&1'", $login->userid); // is evaluated by trigger functions |
|
| 730 | + sql("SET @restoredby='&1'", $login->userid); // is evaluated by trigger functions |
|
| 731 | 731 | sql_slave("SET @restoredby='&1'", $login->userid); |
| 732 | 732 | |
| 733 | 733 | $restored = array(); |
@@ -1019,7 +1019,7 @@ discard block |
||
| 1019 | 1019 | // id, uuid, date_created and last_modified are set automatically; |
| 1020 | 1020 | // picture will be updated automatically on picture-restore |
| 1021 | 1021 | $log = new cachelog(); |
| 1022 | - $log->setNode($r['node']); // cachelog class currently does not initialize node field |
|
| 1022 | + $log->setNode($r['node']); // cachelog class currently does not initialize node field |
|
| 1023 | 1023 | $log->setCacheId($r['cache_id']); |
| 1024 | 1024 | $log->setUserId($r['user_id']); |
| 1025 | 1025 | $log->setType($r['type'], true); |
@@ -1071,7 +1071,7 @@ discard block |
||
| 1071 | 1071 | } // not already processed |
| 1072 | 1072 | |
| 1073 | 1073 | if ($error != "") { |
| 1074 | - $restored[$wp]['internal error - could not $error log ' + $r['id'] + "/" + $logid]; |
|
| 1074 | + $restored[$wp]['internal error - could not $error log ' +$r['id'] + "/" +$logid]; |
|
| 1075 | 1075 | } |
| 1076 | 1076 | if ($logs_restored) { |
| 1077 | 1077 | $restored[$wp]['logs'] = true; |
@@ -1203,7 +1203,7 @@ discard block |
||
| 1203 | 1203 | } // not already processed |
| 1204 | 1204 | |
| 1205 | 1205 | if ($error != "") { |
| 1206 | - $restored[$wp]['internal error - could not $error picture ' . $r['id'] + "/" + $picid] = true; |
|
| 1206 | + $restored[$wp]['internal error - could not $error picture ' . $r['id'] + "/" +$picid] = true; |
|
| 1207 | 1207 | } |
| 1208 | 1208 | if ($pics_restored) { |
| 1209 | 1209 | $restored[$wp]['pictures'] = true; |
@@ -12,8 +12,7 @@ |
||
| 12 | 12 | $tpl->change_country_inpage = true; |
| 13 | 13 | |
| 14 | 14 | $startat = isset($_REQUEST['startat']) ? floor($_REQUEST['startat'] + 0) : 0; |
| 15 | -$country = isset($_REQUEST['usercountry']) ? $_REQUEST['usercountry'] : |
|
| 16 | - (isset($_REQUEST['country']) ? $_REQUEST['country'] : ''); |
|
| 15 | +$country = isset($_REQUEST['usercountry']) ? $_REQUEST['usercountry'] : (isset($_REQUEST['country']) ? $_REQUEST['country'] : ''); |
|
| 17 | 16 | $cachetype = isset($_REQUEST['cachetype']) ? $_REQUEST['cachetype'] + 0 : 0; |
| 18 | 17 | $bEvents = ($cachetype == 6); |
| 19 | 18 | |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | global $login; |
| 31 | 31 | |
| 32 | 32 | $fields = |
| 33 | - "`pics`.`uuid` AS `pic_uuid`, |
|
| 33 | + "`pics`.`uuid` AS `pic_uuid`, |
|
| 34 | 34 | `pics`.`url` AS `pic_url`, |
| 35 | 35 | `pics`.`title`, |
| 36 | 36 | `pics`.`date_created`, |
@@ -17,12 +17,12 @@ |
||
| 17 | 17 | const FOR_STARTPAGE_GALLERY = 1; |
| 18 | 18 | const FOR_NEWPICS_GALLERY = 2; |
| 19 | 19 | const FOR_USER_STAT = 3; |
| 20 | - const FOR_USER_GALLERY = 4; // params: userid |
|
| 20 | + const FOR_USER_GALLERY = 4; // params: userid |
|
| 21 | 21 | const FOR_MYHOME_GALLERY = 5; |
| 22 | - const FOR_CACHE_STAT = 6; // params: cacheid |
|
| 23 | - const FOR_CACHE_GALLERY = 7; // params: cacheid |
|
| 22 | + const FOR_CACHE_STAT = 6; // params: cacheid |
|
| 23 | + const FOR_CACHE_GALLERY = 7; // params: cacheid |
|
| 24 | 24 | |
| 25 | - const MAX_PICTURES_PER_GALLERY_PAGE = 48; // must be multiple of 6 |
|
| 25 | + const MAX_PICTURES_PER_GALLERY_PAGE = 48; // must be multiple of 6 |
|
| 26 | 26 | |
| 27 | 27 | |
| 28 | 28 | public static function get($purpose, $userid = 0, $cacheid = 0) |
@@ -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 { |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | |
| 11 | 11 | public static function get($user_id, $cache_id, $cache_status, $cache_userid, $iconname) |
| 12 | 12 | { |
| 13 | - $iconname = mb_eregi_replace("cache/", "", $iconname); // for old cache_type table contents |
|
| 13 | + $iconname = mb_eregi_replace("cache/", "", $iconname); // for old cache_type table contents |
|
| 14 | 14 | $iconext = "." . mb_eregi_replace("^.*\.", "", $iconname); |
| 15 | 15 | $iconname = mb_eregi_replace("\..*", "", $iconname); |
| 16 | 16 | |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | break; |
| 31 | 31 | case 5: |
| 32 | 32 | $iconname .= "-s"; |
| 33 | - break; // fix for RT ticket #3403 |
|
| 33 | + break; // fix for RT ticket #3403 |
|
| 34 | 34 | case 6: |
| 35 | 35 | $iconname .= "-a"; |
| 36 | 36 | break; |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | { |
| 13 | 13 | public $sDefaultChangeFreq = 'monthly'; |
| 14 | 14 | public $nMaxFileSize = 9961472; // max file size, 10MB by specification |
| 15 | - public $nMaxUrlCount = 50000; // max number of URLs per file, 50000 by specification |
|
| 15 | + public $nMaxUrlCount = 50000; // max number of URLs per file, 50000 by specification |
|
| 16 | 16 | |
| 17 | 17 | public $sPath = ''; |
| 18 | 18 | public $sDomain = ''; |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | |
| 76 | 76 | // open new XML file? |
| 77 | 77 | if ($this->oSitemapFile === false) { |
| 78 | - $this->nSitemapIndex ++; |
|
| 78 | + $this->nSitemapIndex++; |
|
| 79 | 79 | $sFilename = 'sitemap-' . $this->nSitemapIndex . '.xml.gz'; |
| 80 | 80 | $this->oSitemapFile = gzopen($this->sPath . $sFilename, 'wb'); |
| 81 | 81 | |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | // write string to XML |
| 92 | 92 | gzwrite($this->oSitemapFile, $str); |
| 93 | 93 | $this->nWrittenSize += strlen($str); |
| 94 | - $this->nWrittenCount ++; |
|
| 94 | + $this->nWrittenCount++; |
|
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | public function close() |
@@ -175,8 +175,8 @@ discard block |
||
| 175 | 175 | 0 |
| 176 | 176 | ]; |
| 177 | 177 | } |
| 178 | - $lw = (float) $this->nLon; |
|
| 179 | - $bw = (float) $this->nLat; |
|
| 178 | + $lw = (float)$this->nLon; |
|
| 179 | + $bw = (float)$this->nLat; |
|
| 180 | 180 | |
| 181 | 181 | //WGS84 Datum |
| 182 | 182 | //Große Halbachse a und Abplattung f |
@@ -195,9 +195,9 @@ discard block |
||
| 195 | 195 | |
| 196 | 196 | //Koeffizienten zur Berechnung der Meridianbogenlänge |
| 197 | 197 | $e0 = $c * (pi() / 180) * (1 - 3 * $ex2 / 4 + 45 * $ex4 / 64 - 175 * $ex6 / 256 + 11025 * $ex8 / 16384); |
| 198 | - $e2 = $c * (- 3 * $ex2 / 8 + 15 * $ex4 / 32 - 525 * $ex6 / 1024 + 2205 * $ex8 / 4096); |
|
| 198 | + $e2 = $c * (-3 * $ex2 / 8 + 15 * $ex4 / 32 - 525 * $ex6 / 1024 + 2205 * $ex8 / 4096); |
|
| 199 | 199 | $e4 = $c * (15 * $ex4 / 256 - 105 * $ex6 / 1024 + 2205 * $ex8 / 16384); |
| 200 | - $e6 = $c * (- 35 * $ex6 / 3072 + 315 * $ex8 / 12288); |
|
| 200 | + $e6 = $c * (-35 * $ex6 / 3072 + 315 * $ex8 / 12288); |
|
| 201 | 201 | |
| 202 | 202 | //Längenzone lz und Breitenzone (Band) bz |
| 203 | 203 | $lzn = intval(($lw + 180) / 6) + 1; |
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | if ($lzn < 10) { |
| 224 | 224 | $lz = "0" . $lzn; |
| 225 | 225 | } |
| 226 | - $bd = (int) (1 + ($bw + 80) / 8); |
|
| 226 | + $bd = (int)(1 + ($bw + 80) / 8); |
|
| 227 | 227 | $bz = substr($b_sel, $bd - 1, 1); |
| 228 | 228 | |
| 229 | 229 | //Geographische Breite in Radianten br |
@@ -268,20 +268,20 @@ discard block |
||
| 268 | 268 | $ew = 0.9996 * ($nd * $cos1 * $dl + $nd * $cos3 * (1 - $tan2 + $etasq) * $dl3 / 6 + |
| 269 | 269 | $nd * $cos5 * (5 - 18 * $tan2 + $tan4) * $dl5 / 120) + 500000; |
| 270 | 270 | |
| 271 | - $nk = $nw - (int) $nw; |
|
| 271 | + $nk = $nw - (int)$nw; |
|
| 272 | 272 | if ($nk < 0.5) { |
| 273 | - $nw = '' . (int) $nw; |
|
| 273 | + $nw = '' . (int)$nw; |
|
| 274 | 274 | } else { |
| 275 | - $nw = '' . ((int) $nw + 1); |
|
| 275 | + $nw = '' . ((int)$nw + 1); |
|
| 276 | 276 | } |
| 277 | 277 | |
| 278 | 278 | while (strlen($nw) < 7) { |
| 279 | 279 | $nw = '0' . $nw; |
| 280 | 280 | } |
| 281 | 281 | |
| 282 | - $nk = $ew - (int) $ew; |
|
| 282 | + $nk = $ew - (int)$ew; |
|
| 283 | 283 | if ($nk < 0.5) { |
| 284 | - $ew = '0' . (int) $ew; |
|
| 284 | + $ew = '0' . (int)$ew; |
|
| 285 | 285 | } else { |
| 286 | 286 | $ew = '0' . intval($ew + 1); |
| 287 | 287 | } |
@@ -331,8 +331,8 @@ discard block |
||
| 331 | 331 | 0 |
| 332 | 332 | ]; |
| 333 | 333 | } |
| 334 | - $lw = (float) $lw; |
|
| 335 | - $bw = (float) $bw; |
|
| 334 | + $lw = (float)$lw; |
|
| 335 | + $bw = (float)$bw; |
|
| 336 | 336 | |
| 337 | 337 | // Quellsystem WGS 84 Datum |
| 338 | 338 | // Große Halbachse a und Abplattung fq |
@@ -410,8 +410,8 @@ discard block |
||
| 410 | 410 | 0 |
| 411 | 411 | ]; |
| 412 | 412 | } |
| 413 | - $lp = (float) $lp; |
|
| 414 | - $bp = (float) $bp; |
|
| 413 | + $lp = (float)$lp; |
|
| 414 | + $bp = (float)$bp; |
|
| 415 | 415 | |
| 416 | 416 | // Potsdam Datum |
| 417 | 417 | // Große Halbachse a und Abplattung f |
@@ -429,9 +429,9 @@ discard block |
||
| 429 | 429 | |
| 430 | 430 | // Koeffizienten zur Berechnung der Meridianbogenlänge |
| 431 | 431 | $e0 = $c * (pi() / 180) * (1 - 3 * $ex2 / 4 + 45 * $ex4 / 64 - 175 * $ex6 / 256 + 11025 * $ex8 / 16384); |
| 432 | - $e2 = $c * (- 3 * $ex2 / 8 + 15 * $ex4 / 32 - 525 * $ex6 / 1024 + 2205 * $ex8 / 4096); |
|
| 432 | + $e2 = $c * (-3 * $ex2 / 8 + 15 * $ex4 / 32 - 525 * $ex6 / 1024 + 2205 * $ex8 / 4096); |
|
| 433 | 433 | $e4 = $c * (15 * $ex4 / 256 - 105 * $ex6 / 1024 + 2205 * $ex8 / 16384); |
| 434 | - $e6 = $c * (- 35 * $ex6 / 3072 + 315 * $ex8 / 12288); |
|
| 434 | + $e6 = $c * (-35 * $ex6 / 3072 + 315 * $ex8 / 12288); |
|
| 435 | 435 | |
| 436 | 436 | // Breite in Radianten |
| 437 | 437 | $br = $bp * pi() / 180; |
@@ -469,18 +469,18 @@ discard block |
||
| 469 | 469 | $rw = ($nd * $cos1 * $dl + $nd * $cos3 * (1 - $tan2 + $etasq) * $dl3 / 6 + |
| 470 | 470 | $nd * $cos5 * (5 - 18 * $tan2 + $tan4) * $dl5 / 120 + $kz * 1e6 + 500000); |
| 471 | 471 | |
| 472 | - $nk = $hw - (int) $hw; |
|
| 472 | + $nk = $hw - (int)$hw; |
|
| 473 | 473 | if ($nk < 0.5) { |
| 474 | - $hw = (int) $hw; |
|
| 474 | + $hw = (int)$hw; |
|
| 475 | 475 | } else { |
| 476 | - $hw = ((int) $hw) + 1; |
|
| 476 | + $hw = ((int)$hw) + 1; |
|
| 477 | 477 | } |
| 478 | 478 | |
| 479 | - $nk = $rw - (int) $rw; |
|
| 479 | + $nk = $rw - (int)$rw; |
|
| 480 | 480 | if ($nk < 0.5) { |
| 481 | - $rw = (int) $rw; |
|
| 481 | + $rw = (int)$rw; |
|
| 482 | 482 | } else { |
| 483 | - $rw = (int) ($rw + 1); |
|
| 483 | + $rw = (int)($rw + 1); |
|
| 484 | 484 | } |
| 485 | 485 | |
| 486 | 486 | return [ |
@@ -499,8 +499,8 @@ discard block |
||
| 499 | 499 | $lat_base = 52.15517440; |
| 500 | 500 | $lon_base = 5.38720621; |
| 501 | 501 | |
| 502 | - for ($i = 0; $i <= 6; $i ++) { |
|
| 503 | - for ($j = 0; $j <= 5; $j ++) { |
|
| 502 | + for ($i = 0; $i <= 6; $i++) { |
|
| 503 | + for ($j = 0; $j <= 5; $j++) { |
|
| 504 | 504 | $rpq[$i][$j] = 0; |
| 505 | 505 | $spq[$i][$j] = 0; |
| 506 | 506 | } |
@@ -535,8 +535,8 @@ discard block |
||
| 535 | 535 | $xOrigin = 0; |
| 536 | 536 | $yOrigin = 0; |
| 537 | 537 | |
| 538 | - for ($q = 0; $q <= 5; $q ++) { |
|
| 539 | - for ($p = 0; $p <= 6; $p ++) { |
|
| 538 | + for ($q = 0; $q <= 5; $q++) { |
|
| 539 | + for ($p = 0; $p <= 6; $p++) { |
|
| 540 | 540 | $xOrigin = $xOrigin + ($rpq[$p][$q] * ((pow($dlat, $p)) * (pow($dlon, $q)))); |
| 541 | 541 | $yOrigin = $yOrigin + ($spq[$p][$q] * ((pow($dlat, $p)) * (pow($dlon, $q)))); |
| 542 | 542 | } |
@@ -435,9 +435,9 @@ |
||
| 435 | 435 | return false; |
| 436 | 436 | } else { |
| 437 | 437 | // restore picture file |
| 438 | - $this->setUrl($original_url); // set the url, so that we can |
|
| 439 | - $filename = $this->getFilename(); // .. retreive the file path+name |
|
| 440 | - $this->setFilenames($filename); // now set url(s) from the new uuid |
|
| 438 | + $this->setUrl($original_url); // set the url, so that we can |
|
| 439 | + $filename = $this->getFilename(); // .. retreive the file path+name |
|
| 440 | + $this->setFilenames($filename); // now set url(s) from the new uuid |
|
| 441 | 441 | @rename($this->deleted_filename($filename), $this->getFilename()); |
| 442 | 442 | } |
| 443 | 443 | } |