@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | $opt['session']['mode'] = SAVE_COOKIE; |
| 64 | 64 | $opt['session']['cookiename'] = 'ocvagrant'; // only with SAVE_COOKIE |
| 65 | 65 | $opt['session']['path'] = '/'; |
| 66 | -$opt['session']['domain'] = 'local.team-opencaching.de'; // may be overwritten by $opt['domain'][...]['cookiedomain'] |
|
| 66 | +$opt['session']['domain'] = 'local.team-opencaching.de'; // may be overwritten by $opt['domain'][...]['cookiedomain'] |
|
| 67 | 67 | |
| 68 | 68 | /* If the Referer was sent by the client and the substring was not found, |
| 69 | 69 | * the embedded session id will be marked as invalid. |
@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | * Take caution on caching issues (!) |
| 222 | 222 | */ |
| 223 | 223 | |
| 224 | -$opt['map']['towns']['enable'] = true; // for releasing v14 |
|
| 224 | +$opt['map']['towns']['enable'] = true; // for releasing v14 |
|
| 225 | 225 | |
| 226 | 226 | define('MNU_INFO', 1015); |
| 227 | 227 | define('MNU_TEAMBLOG', 1016); |
@@ -284,7 +284,7 @@ discard block |
||
| 284 | 284 | * @param $filename |
| 285 | 285 | * @param $maxLength |
| 286 | 286 | * |
| 287 | - * @return bool|string |
|
| 287 | + * @return false|string |
|
| 288 | 288 | */ |
| 289 | 289 | function read_file($filename, $maxLength = 4096) |
| 290 | 290 | { |
@@ -453,7 +453,7 @@ discard block |
||
| 453 | 453 | * |
| 454 | 454 | * @param $n |
| 455 | 455 | * |
| 456 | - * @return mixed|string |
|
| 456 | + * @return string |
|
| 457 | 457 | */ |
| 458 | 458 | function number1000($n) |
| 459 | 459 | { |
@@ -241,7 +241,7 @@ |
||
| 241 | 241 | while ($nCurPos < mb_strlen($str)) { |
| 242 | 242 | $nNextSep = mb_strlen($str); |
| 243 | 243 | $sepLength = mb_strlen($sep); |
| 244 | - for ($nSepPos = 0; $nSepPos < $sepLength; $nSepPos ++) { |
|
| 244 | + for ($nSepPos = 0; $nSepPos < $sepLength; $nSepPos++) { |
|
| 245 | 245 | $nThisPos = mb_strpos($str, mb_substr($sep, $nSepPos, 1), $nCurPos); |
| 246 | 246 | if ($nThisPos !== false && $nNextSep > $nThisPos) { |
| 247 | 247 | $nNextSep = $nThisPos; |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -require_once __DIR__ .'/settings-sample-vagrant.inc.php'; |
|
| 3 | +require_once __DIR__ . '/settings-sample-vagrant.inc.php'; |
|
| 4 | 4 | |
| 5 | 5 | // database access |
| 6 | 6 | $opt['db']['servername'] = '127.0.0.1'; |
@@ -464,9 +464,9 @@ |
||
| 464 | 464 | return false; |
| 465 | 465 | } else { |
| 466 | 466 | // restore picture file |
| 467 | - $this->setUrl($original_url); // set the url, so that we can |
|
| 467 | + $this->setUrl($original_url); // set the url, so that we can |
|
| 468 | 468 | $filename = $this->getFilename(); // .. retrieve the file path+name |
| 469 | - $this->setFilenames($filename); // now set url(s) from the new uuid |
|
| 469 | + $this->setFilenames($filename); // now set url(s) from the new uuid |
|
| 470 | 470 | try { |
| 471 | 471 | rename($this->deletedFilename($filename), $this->getFilename()); |
| 472 | 472 | } catch (Exception $e) { |