@@ -18,7 +18,7 @@ |
||
| 18 | 18 | |
| 19 | 19 | // database names |
| 20 | 20 | $dbname = 'opencaching'; |
| 21 | -$tmpdbname = 'octmp'; // empty db with CREATE and DROP privileges |
|
| 21 | +$tmpdbname = 'octmp'; // empty db with CREATE and DROP privileges |
|
| 22 | 22 | |
| 23 | 23 | // common developer system settings |
| 24 | 24 | require 'settings-dev.inc.php'; |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | ); |
| 80 | 80 | |
| 81 | 81 | $opt['page']['develsystem'] = true; |
| 82 | -$opt['page']['max_logins_per_hour'] = 1000; // for development ... |
|
| 82 | +$opt['page']['max_logins_per_hour'] = 1000; // for development ... |
|
| 83 | 83 | |
| 84 | 84 | $opt['mail']['from'] = 'root'; |
| 85 | 85 | $opt['mail']['subject'] = '[local.team-opencaching.de] '; |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | && (trim($line, " \n") !== '' || substr($line, -1) !== "\n") |
| 98 | 98 | ) { |
| 99 | 99 | $oldLine = $line; |
| 100 | - $line = rtrim($line); # trims " \t\n\r\0\x0B" |
|
| 100 | + $line = rtrim($line); # trims " \t\n\r\0\x0B" |
|
| 101 | 101 | $line = $this->expandTabs($line); |
| 102 | 102 | $line .= "\n"; |
| 103 | 103 | |
@@ -143,9 +143,9 @@ discard block |
||
| 143 | 143 | } |
| 144 | 144 | |
| 145 | 145 | $fnl = strlen($filename); |
| 146 | - $fh = "\x14\x00"; // ver needed to extract |
|
| 147 | - $fh .= "\x00\x00"; // gen purpose bit flag |
|
| 148 | - $fh .= "\x08\x00"; // compression method |
|
| 146 | + $fh = "\x14\x00"; // ver needed to extract |
|
| 147 | + $fh .= "\x00\x00"; // gen purpose bit flag |
|
| 148 | + $fh .= "\x08\x00"; // compression method |
|
| 149 | 149 | $fh .= "\x00\x00\x00\x00"; // last mod time and date |
| 150 | 150 | $fh .= |
| 151 | 151 | pack( |
@@ -172,16 +172,16 @@ discard block |
||
| 172 | 172 | "va*v3V2", |
| 173 | 173 | 0, |
| 174 | 174 | $fh, |
| 175 | - 0, // file comment length |
|
| 176 | - 0, // disk number start |
|
| 177 | - 0, // internal file attributes |
|
| 178 | - $attr, // external file attributes - 'archive/directory' bit set |
|
| 175 | + 0, // file comment length |
|
| 176 | + 0, // disk number start |
|
| 177 | + 0, // internal file attributes |
|
| 178 | + $attr, // external file attributes - 'archive/directory' bit set |
|
| 179 | 179 | $this->offset |
| 180 | 180 | ) . $filename; |
| 181 | 181 | |
| 182 | 182 | $this->offset += 42 + $fnl + $gzsize; |
| 183 | 183 | $this->cdir[] = $cdir; |
| 184 | - $this->cnt ++; |
|
| 184 | + $this->cnt++; |
|
| 185 | 185 | $this->idx = $this->cnt - 1; |
| 186 | 186 | } |
| 187 | 187 | |
@@ -230,7 +230,7 @@ discard block |
||
| 230 | 230 | $cdsl, // size of central dir |
| 231 | 231 | $zdsl, // offset to start of central dir |
| 232 | 232 | 0 |
| 233 | - ); // .zip file comment length |
|
| 233 | + ); // .zip file comment length |
|
| 234 | 234 | return $this->zipfile; |
| 235 | 235 | } |
| 236 | 236 | |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | public $main_template = 'sys_main'; |
| 20 | 20 | public $bench = null; |
| 21 | 21 | public $compile_id = null; |
| 22 | - public $cache_id = null; // This is a smarty caching ID, not a caches.cache_id. |
|
| 22 | + public $cache_id = null; // This is a smarty caching ID, not a caches.cache_id. |
|
| 23 | 23 | public $title = ''; |
| 24 | 24 | public $menuitem = null; |
| 25 | 25 | public $nowpsearch = false; |
@@ -134,7 +134,7 @@ |
||
| 134 | 134 | $errorlog_dir = __DIR__ . '/../var/errorlog'; |
| 135 | 135 | $errorlog_path = $errorlog_dir . '/errorlog-' . date('Y-m-d'); |
| 136 | 136 | |
| 137 | - $error_mail_limit = 32768; // send max 32 KB = ca. 5-20 errors per day/logfile |
|
| 137 | + $error_mail_limit = 32768; // send max 32 KB = ca. 5-20 errors per day/logfile |
|
| 138 | 138 | |
| 139 | 139 | // All errors which may happen here are ignored, to avoid error recursions. |
| 140 | 140 | |
@@ -608,7 +608,7 @@ |
||
| 608 | 608 | $pid_daemon = fgets($pidfile, 20); |
| 609 | 609 | fclose($pidfile); |
| 610 | 610 | |
| 611 | - $pid_daemon = (int) $pid_daemon; |
|
| 611 | + $pid_daemon = (int)$pid_daemon; |
|
| 612 | 612 | |
| 613 | 613 | // process running? |
| 614 | 614 | if (posix_kill($pid_daemon, 0)) { |
@@ -86,7 +86,7 @@ |
||
| 86 | 86 | // decide if the cache is new |
| 87 | 87 | $dDiff = dateDiff('d', $rCache['date_created'], date('Y-m-d')); |
| 88 | 88 | |
| 89 | - $rCache['isnew'] = ($dDiff <= NEWCACHES_DAYS && (int) $rCache['type'] !== 6); |
|
| 89 | + $rCache['isnew'] = ($dDiff <= NEWCACHES_DAYS && (int)$rCache['type'] !== 6); |
|
| 90 | 90 | |
| 91 | 91 | // get last logs |
| 92 | 92 | if ($options['sort'] != 'bymylastlog' || !$login->logged_in()) { |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | $page = $opt['page']; |
| 54 | 54 | $url = ($page['https']['mode'] == HTTPS_ENFORCED ? $page['absolute_https_url'] : $page['absolute_http_url']); |
| 55 | 55 | |
| 56 | - $url = urlencode($url. 'sitemap.xml'); |
|
| 56 | + $url = urlencode($url . 'sitemap.xml'); |
|
| 57 | 57 | |
| 58 | 58 | $this->pingSearchEngine('http://www.google.com/webmasters/ping?sitemap=' . $url); |
| 59 | 59 | $this->pingSearchEngine( |