@@ -10,8 +10,8 @@ discard block  | 
                                                    ||
| 10 | 10 | ***************************************************************************/  | 
                                                        
| 11 | 11 | |
| 12 | 12 | $opt['rootpath'] = '../../';  | 
                                                        
| 13 | -require_once __DIR__.'/../../lib2/cli.inc.php';  | 
                                                        |
| 14 | -require_once __DIR__.'/../../lib2/search/search.inc.php';  | 
                                                        |
| 13 | +require_once __DIR__ . '/../../lib2/cli.inc.php';  | 
                                                        |
| 14 | +require_once __DIR__ . '/../../lib2/search/search.inc.php';  | 
                                                        |
| 15 | 15 | |
| 16 | 16 | |
| 17 | 17 | $doubleindex['sankt'] = 'st';  | 
                                                        
@@ -27,7 +27,7 @@ discard block  | 
                                                    ||
| 27 | 27 |      foreach ($simpleTextsArray as $text) { | 
                                                        
| 28 | 28 |          if ($text !== '') { | 
                                                        
| 29 | 29 |              if (nonAlpha($text)) { | 
                                                        
| 30 | - die($r['uni'] . ' ' . $text . "\n");// obsolete for the same reason as above  | 
                                                        |
| 30 | + die($r['uni'] . ' ' . $text . "\n"); // obsolete for the same reason as above  | 
                                                        |
| 31 | 31 | }  | 
                                                        
| 32 | 32 | |
| 33 | 33 | $simpleText = search_text2simple($text);  | 
                                                        
@@ -60,7 +60,7 @@ discard block  | 
                                                    ||
| 60 | 60 | function nonAlpha($str)  | 
                                                        
| 61 | 61 |  { | 
                                                        
| 62 | 62 | $strLength = mb_strlen($str);  | 
                                                        
| 63 | -    for ($i = 0; $i < $strLength; $i ++) { | 
                                                        |
| 63 | +    for ($i = 0; $i < $strLength; $i++) { | 
                                                        |
| 64 | 64 |          if (!((ord(mb_substr($str, $i, 1)) >= ord('a')) && (ord(mb_substr($str, $i, 1)) <= ord('z')))) { | 
                                                        
| 65 | 65 | return true;  | 
                                                        
| 66 | 66 | }  | 
                                                        
@@ -10,8 +10,8 @@  | 
                                                    ||
| 10 | 10 | ***************************************************************************/  | 
                                                        
| 11 | 11 | |
| 12 | 12 | $opt['rootpath'] = '../../';  | 
                                                        
| 13 | -require_once __DIR__.'/../../lib2/cli.inc.php';  | 
                                                        |
| 14 | -require_once __DIR__.'/../../lib2/search/search.inc.php';  | 
                                                        |
| 13 | +require_once __DIR__ . '/../../lib2/cli.inc.php';  | 
                                                        |
| 14 | +require_once __DIR__ . '/../../lib2/search/search.inc.php';  | 
                                                        |
| 15 | 15 | |
| 16 | 16 | |
| 17 | 17 |  $rsLocations = sql("SELECT `uni`, `lat`, `lon`, `rc`, `cc1`, `adm1` FROM `gns_locations` WHERE `dsg` LIKE 'PPL%'"); | 
                                                        
@@ -22,7 +22,7 @@ discard block  | 
                                                    ||
| 22 | 22 | // ported from lib1 to lib2 / untested!  | 
                                                        
| 23 | 23 | |
| 24 | 24 | $opt['rootpath'] = '../../';  | 
                                                        
| 25 | -require_once __DIR__.'/../../lib2/cli.inc.php';  | 
                                                        |
| 25 | +require_once __DIR__ . '/../../lib2/cli.inc.php';  | 
                                                        |
| 26 | 26 | |
| 27 | 27 | /* defaults */  | 
                                                        
| 28 | 28 | $importFiles = [  | 
                                                        
@@ -44,7 +44,7 @@ discard block  | 
                                                    ||
| 44 | 44 | $file = fopen($filename, 'r');  | 
                                                        
| 45 | 45 | $cnt = 0;  | 
                                                        
| 46 | 46 |      while ($line = fgets($file, 4096)) { | 
                                                        
| 47 | -        if ($cnt ++ === 0) { // skip first line | 
                                                        |
| 47 | +        if ($cnt++ === 0) { // skip first line | 
                                                        |
| 48 | 48 | continue;  | 
                                                        
| 49 | 49 | }  | 
                                                        
| 50 | 50 | |
@@ -10,8 +10,8 @@  | 
                                                    ||
| 10 | 10 |  header('Content-type: text/html; charset=utf-8'); | 
                                                        
| 11 | 11 | |
| 12 | 12 | $opt['rootpath'] = '../../';  | 
                                                        
| 13 | -require __DIR__.'/../../lib2/web.inc.php';  | 
                                                        |
| 14 | -require __DIR__.'/../../templates2/ocstyle/search.tpl.inc.php';  | 
                                                        |
| 13 | +require __DIR__ . '/../../lib2/web.inc.php';  | 
                                                        |
| 14 | +require __DIR__ . '/../../templates2/ocstyle/search.tpl.inc.php';  | 
                                                        |
| 15 | 15 | |
| 16 | 16 | $bBox = isset($_REQUEST['BBOX']) ? $_REQUEST['BBOX'] : '0,0,0,0';  | 
                                                        
| 17 | 17 |  $aBox = mb_split(',', $bBox); |