@@ -6,4 +6,4 @@ |
||
| 6 | 6 | ***************************************************************************/ |
| 7 | 7 | |
| 8 | 8 | $newlogs_rest = true; |
| 9 | -require __DIR__ . '/newlogs.php'; |
|
| 9 | +require __DIR__.'/newlogs.php'; |
|
@@ -5,9 +5,9 @@ discard block |
||
| 5 | 5 | * Unicode Reminder メモ |
| 6 | 6 | ****************************************************************************/ |
| 7 | 7 | |
| 8 | -require __DIR__ . '/lib2/web.inc.php'; |
|
| 9 | -require_once __DIR__ . '/lib2/logic/labels.inc.php'; |
|
| 10 | -require_once __DIR__ . '/lib2/logic/cache.class.php'; |
|
| 8 | +require __DIR__.'/lib2/web.inc.php'; |
|
| 9 | +require_once __DIR__.'/lib2/logic/labels.inc.php'; |
|
| 10 | +require_once __DIR__.'/lib2/logic/cache.class.php'; |
|
| 11 | 11 | |
| 12 | 12 | $tpl->name = 'garmin'; |
| 13 | 13 | $tpl->popup = 1; |
@@ -30,9 +30,9 @@ discard block |
||
| 30 | 30 | // be needed. |
| 31 | 31 | |
| 32 | 32 | if (($opt['lib']['garmin']['domain'] != $_SERVER['HTTP_HOST']) && !isset($_REQUEST['redirect'])) { |
| 33 | - $redirect = $opt['lib']['garmin']['page_url'] . 'garmin.php?redirect=1&cacheid=' . $cacheid; |
|
| 33 | + $redirect = $opt['lib']['garmin']['page_url'].'garmin.php?redirect=1&cacheid='.$cacheid; |
|
| 34 | 34 | if (isset($_REQUEST['templocale'])) { |
| 35 | - $redirect .= '&templocale=' . $_REQUEST['templocale']; |
|
| 35 | + $redirect .= '&templocale='.$_REQUEST['templocale']; |
|
| 36 | 36 | } |
| 37 | 37 | $tpl->redirect($redirect); |
| 38 | 38 | exit; |
@@ -52,9 +52,9 @@ discard block |
||
| 52 | 52 | $tpl->assign('crypt', $bCrypt); |
| 53 | 53 | |
| 54 | 54 | if (isset($_REQUEST['desclang'])) { |
| 55 | - $sPreferedDescLang = $_REQUEST['desclang'] . ',' . $opt['template']['locale'] . ',EN'; |
|
| 55 | + $sPreferedDescLang = $_REQUEST['desclang'].','.$opt['template']['locale'].',EN'; |
|
| 56 | 56 | } else { |
| 57 | - $sPreferedDescLang = $opt['template']['locale'] . ',EN'; |
|
| 57 | + $sPreferedDescLang = $opt['template']['locale'].',EN'; |
|
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | //get cache record |
@@ -5,14 +5,14 @@ discard block |
||
| 5 | 5 | * Unicode Reminder メモ |
| 6 | 6 | ***************************************************************************/ |
| 7 | 7 | |
| 8 | -require __DIR__ . '/lib2/web.inc.php'; |
|
| 8 | +require __DIR__.'/lib2/web.inc.php'; |
|
| 9 | 9 | |
| 10 | 10 | $tpl->name = 'mywatches'; |
| 11 | 11 | $tpl->menuitem = MNU_MYPROFILE_WATCHES; |
| 12 | 12 | |
| 13 | 13 | $login->verify(); |
| 14 | 14 | if ($login->userid == 0) { |
| 15 | - $tpl->redirect('login.php?target=' . urlencode($tpl->target)); |
|
| 15 | + $tpl->redirect('login.php?target='.urlencode($tpl->target)); |
|
| 16 | 16 | } |
| 17 | 17 | |
| 18 | 18 | $action = isset($_REQUEST['action']) ? mb_strtolower($_REQUEST['action']) : ''; |
@@ -48,14 +48,14 @@ discard block |
||
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | $hours = array(); |
| 51 | - for ($i = 0; $i < 24; $i ++) { |
|
| 51 | + for ($i = 0; $i < 24; $i++) { |
|
| 52 | 52 | $hours[] = [ |
| 53 | 53 | 'value' => $i, |
| 54 | 54 | 'time' => mktime($i, 0, 0) |
| 55 | 55 | ]; |
| 56 | 56 | } |
| 57 | 57 | $weekdays = array(); |
| 58 | - for ($i = 1; $i <= 7; $i ++) { |
|
| 58 | + for ($i = 1; $i <= 7; $i++) { |
|
| 59 | 59 | $weekdays[] = array( |
| 60 | 60 | 'value' => $i, |
| 61 | 61 | 'time' => mktime(0, 0, 0, 0, $i + 5, 2000) |
@@ -5,8 +5,8 @@ discard block |
||
| 5 | 5 | * Unicode Reminder メモ |
| 6 | 6 | ***************************************************************************/ |
| 7 | 7 | |
| 8 | -require __DIR__ . '/lib2/web.inc.php'; |
|
| 9 | -require_once __DIR__ . '/lib2/edithelper.inc.php'; |
|
| 8 | +require __DIR__.'/lib2/web.inc.php'; |
|
| 9 | +require_once __DIR__.'/lib2/edithelper.inc.php'; |
|
| 10 | 10 | |
| 11 | 11 | $tpl->name = 'mydetails'; |
| 12 | 12 | $tpl->menuitem = MNU_MYPROFILE_DETAILS; |
@@ -51,8 +51,8 @@ discard block |
||
| 51 | 51 | |
| 52 | 52 | while ($record = sql_fetch_array($rs)) { |
| 53 | 53 | $id = $record['id']; |
| 54 | - $vis = isset($_REQUEST['chk' . $id]) ? $_REQUEST['chk' . $id] + 0 : 0; |
|
| 55 | - $value = isset($_REQUEST['inp' . $id]) ? $_REQUEST['inp' . $id] : ''; |
|
| 54 | + $vis = isset($_REQUEST['chk'.$id]) ? $_REQUEST['chk'.$id] + 0 : 0; |
|
| 55 | + $value = isset($_REQUEST['inp'.$id]) ? $_REQUEST['inp'.$id] : ''; |
|
| 56 | 56 | if ($vis != 1) { |
| 57 | 57 | $vis = 0; |
| 58 | 58 | } |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | $bErrorlen = true; |
| 64 | 64 | } else { |
| 65 | 65 | if (!$useroptions->setOptValue($id, $value)) { |
| 66 | - $error .= $useroptions->getOptName($id) . ', '; |
|
| 66 | + $error .= $useroptions->getOptName($id).', '; |
|
| 67 | 67 | $bError = true; |
| 68 | 68 | } |
| 69 | 69 | } |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | } |
| 173 | 173 | if ($descMode == 3) { |
| 174 | 174 | $tpl->add_header_javascript('resource2/tinymce/tiny_mce_gzip.js'); |
| 175 | - $tpl->add_header_javascript('resource2/tinymce/config/user.js.php?lang=' . strtolower($opt['template']['locale'])); |
|
| 175 | + $tpl->add_header_javascript('resource2/tinymce/config/user.js.php?lang='.strtolower($opt['template']['locale'])); |
|
| 176 | 176 | } |
| 177 | 177 | $tpl->add_header_javascript(editorJsPath()); |
| 178 | 178 | $tpl->assign('descMode', $descMode); |
@@ -9,13 +9,13 @@ |
||
| 9 | 9 | ***************************************************************************/ |
| 10 | 10 | |
| 11 | 11 | $opt['rootpath'] = '../../../'; |
| 12 | -require_once $opt['rootpath'] . 'lib/clicompatbase.inc.php'; |
|
| 12 | +require_once $opt['rootpath'].'lib/clicompatbase.inc.php'; |
|
| 13 | 13 | |
| 14 | -if (!file_exists($opt['rootpath'] . 'util/mysql_root/sql_root.inc.php')) { |
|
| 15 | - die("\n" . 'install util/mysql_root/sql_root.inc.php' . "\n\n"); |
|
| 14 | +if (!file_exists($opt['rootpath'].'util/mysql_root/sql_root.inc.php')) { |
|
| 15 | + die("\n".'install util/mysql_root/sql_root.inc.php'."\n\n"); |
|
| 16 | 16 | } |
| 17 | 17 | |
| 18 | -require_once $opt['rootpath'] . 'util/mysql_root/sql_root.inc.php'; |
|
| 18 | +require_once $opt['rootpath'].'util/mysql_root/sql_root.inc.php'; |
|
| 19 | 19 | |
| 20 | 20 | /* begin db connect */ |
| 21 | 21 | db_root_connect(); |
@@ -448,7 +448,7 @@ discard block |
||
| 448 | 448 | |
| 449 | 449 | SELECT GROUP_CONCAT(DISTINCT `language` ORDER BY `language` SEPARATOR ',') INTO dl FROM `cache_desc` WHERE `cache_id`=nCacheId GROUP BY `cache_id` ; |
| 450 | 450 | UPDATE `caches` SET `desc_languages`=dl, default_desclang=PREFERED_LANG(dl, '&1') WHERE `cache_id`=nCacheId LIMIT 1; |
| 451 | - END;", strtoupper($lang . ',EN')); |
|
| 451 | + END;", strtoupper($lang.',EN')); |
|
| 452 | 452 | |
| 453 | 453 | // set caches.desc_languages of all caches, fill cache_desc_prefered and return number of modified rows |
| 454 | 454 | sql_dropProcedure('sp_updateall_caches_descLanguages'); |
@@ -456,7 +456,7 @@ discard block |
||
| 456 | 456 | BEGIN |
| 457 | 457 | UPDATE `caches`, (SELECT `cache_id`, GROUP_CONCAT(DISTINCT `language` ORDER BY `language` SEPARATOR ',') AS `dl` FROM `cache_desc` GROUP BY `cache_id`) AS `tbl` SET `caches`.`desc_languages`=`tbl`.`dl`, `caches`.`default_desclang`=PREFERED_LANG(`tbl`.`dl`, '&1') WHERE `caches`.`cache_id`=`tbl`.`cache_id`; |
| 458 | 458 | SET nModified = ROW_COUNT() ; |
| 459 | - END;", strtoupper($lang . ',EN')); |
|
| 459 | + END;", strtoupper($lang.',EN')); |
|
| 460 | 460 | |
| 461 | 461 | // update found, last_found, notfound and note of stat_cache_logs, stat_caches and stat_user |
| 462 | 462 | sql_dropProcedure('sp_update_logstat'); |
@@ -808,7 +808,7 @@ discard block |
||
| 808 | 808 | SET @dont_update_listingdate=0; |
| 809 | 809 | END;", |
| 810 | 810 | $opt['logic']['waypoint_pool']['prefix'], |
| 811 | - '^' . $opt['logic']['waypoint_pool']['prefix'] . '[' . $opt['logic']['waypoint_pool']['valid_chars'] . ']{1,}$'); |
|
| 811 | + '^'.$opt['logic']['waypoint_pool']['prefix'].'['.$opt['logic']['waypoint_pool']['valid_chars'].']{1,}$'); |
|
| 812 | 812 | |
| 813 | 813 | sql_dropTrigger('cachesAfterInsert'); |
| 814 | 814 | sql("CREATE TRIGGER `cachesAfterInsert` AFTER INSERT ON `caches` |
@@ -204,7 +204,7 @@ discard block |
||
| 204 | 204 | LIMIT 1; |
| 205 | 205 | END IF; |
| 206 | 206 | END;", |
| 207 | - strtoupper($lang . ',EN') |
|
| 207 | + strtoupper($lang.',EN') |
|
| 208 | 208 | ); |
| 209 | 209 | |
| 210 | 210 | // set caches.desc_languages of all caches, fill cache_desc_prefered and return number of modified rows |
@@ -225,7 +225,7 @@ discard block |
||
| 225 | 225 | |
| 226 | 226 | SET nModified = ROW_COUNT(); |
| 227 | 227 | END;", |
| 228 | - strtoupper($lang . ',EN') |
|
| 228 | + strtoupper($lang.',EN') |
|
| 229 | 229 | ); |
| 230 | 230 | |
| 231 | 231 | // update found, last_found, notfound and note of stat_cache_logs, stat_caches and stat_user, |
@@ -909,7 +909,7 @@ discard block |
||
| 909 | 909 | SET @dont_update_listingdate=0; |
| 910 | 910 | END;", |
| 911 | 911 | $opt['logic']['waypoint_pool']['prefix'], |
| 912 | - '^' . $opt['logic']['waypoint_pool']['prefix'] . '[' . $opt['logic']['waypoint_pool']['valid_chars'] . ']{1,}$' |
|
| 912 | + '^'.$opt['logic']['waypoint_pool']['prefix'].'['.$opt['logic']['waypoint_pool']['valid_chars'].']{1,}$' |
|
| 913 | 913 | ); |
| 914 | 914 | |
| 915 | 915 | sql_dropTrigger('cachesAfterInsert'); |
@@ -8,8 +8,8 @@ discard block |
||
| 8 | 8 | * Load current stored procs and triggers into database. |
| 9 | 9 | ***************************************************************************/ |
| 10 | 10 | |
| 11 | -$opt['rootpath'] = __DIR__ . '/../../../'; |
|
| 12 | -require $opt['rootpath'] . 'lib2/cli.inc.php'; |
|
| 11 | +$opt['rootpath'] = __DIR__.'/../../../'; |
|
| 12 | +require $opt['rootpath'].'lib2/cli.inc.php'; |
|
| 13 | 13 | |
| 14 | 14 | if ($opt['db']['maintenance_user'] == '') { |
| 15 | 15 | die("ERROR: \$opt['db']['maintenance_user'] is not set in config2/settings.inc.php\n"); |
@@ -18,10 +18,10 @@ discard block |
||
| 18 | 18 | // retrieve DB password |
| 19 | 19 | if ($opt['db']['maintenance_password'] == '') { |
| 20 | 20 | if (in_array('--flush', $argv)) { |
| 21 | - echo "\nenter DB " . $opt['db']['maintenance_user'] . " password:\n"; |
|
| 21 | + echo "\nenter DB ".$opt['db']['maintenance_user']." password:\n"; |
|
| 22 | 22 | flush(); |
| 23 | 23 | } else { |
| 24 | - echo 'enter DB ' . $opt['db']['maintenance_user'] . ' password: '; |
|
| 24 | + echo 'enter DB '.$opt['db']['maintenance_user'].' password: '; |
|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | $fh = fopen('php://stdin', 'r'); |
@@ -44,13 +44,13 @@ discard block |
||
| 44 | 44 | // include the requested maintain version file |
| 45 | 45 | $dbsv = in_array('--dbsv', $argv); |
| 46 | 46 | if ($dbsv) { |
| 47 | - $versionfile = 'maintain-' . $argv[$dbsv + 1] . '.inc.php'; |
|
| 48 | - if (!file_exists(__DIR__ . '/' . $versionfile)) { |
|
| 49 | - die($versionfile . " not found\n"); |
|
| 47 | + $versionfile = 'maintain-'.$argv[$dbsv + 1].'.inc.php'; |
|
| 48 | + if (!file_exists(__DIR__.'/'.$versionfile)) { |
|
| 49 | + die($versionfile." not found\n"); |
|
| 50 | 50 | } else { |
| 51 | 51 | require $versionfile; |
| 52 | 52 | } |
| 53 | - @unlink($opt['rootpath'] . 'cache2/dbsv-running'); |
|
| 53 | + @unlink($opt['rootpath'].'cache2/dbsv-running'); |
|
| 54 | 54 | } else { |
| 55 | 55 | require 'maintain-current.inc.php'; |
| 56 | 56 | } |
@@ -5,7 +5,7 @@ discard block |
||
| 5 | 5 | * Unicode Reminder メモ |
| 6 | 6 | ***************************************************************************/ |
| 7 | 7 | |
| 8 | -require __DIR__ . '/lib2/web.inc.php'; |
|
| 8 | +require __DIR__.'/lib2/web.inc.php'; |
|
| 9 | 9 | |
| 10 | 10 | //get the article name to display |
| 11 | 11 | $article = ''; |
@@ -23,20 +23,20 @@ discard block |
||
| 23 | 23 | $tpl->redirect('index.php'); |
| 24 | 24 | } elseif (isset($_REQUEST['wiki'])) { |
| 25 | 25 | $tpl->redirect(helppageurl($article)); |
| 26 | -} elseif (!file_exists($opt['stylepath'] . '/articles/' . $language . '/' . $article . '.tpl')) { |
|
| 26 | +} elseif (!file_exists($opt['stylepath'].'/articles/'.$language.'/'.$article.'.tpl')) { |
|
| 27 | 27 | // does article exist in default-language? |
| 28 | - $file = $opt['stylepath'] . '/articles/' . $opt['template']['default']['article_locale'] . '/' . $article . '.tpl'; |
|
| 28 | + $file = $opt['stylepath'].'/articles/'.$opt['template']['default']['article_locale'].'/'.$article.'.tpl'; |
|
| 29 | 29 | if (file_exists($file)) { |
| 30 | 30 | $language = $opt['template']['default']['article_locale']; |
| 31 | - } elseif (file_exists($opt['stylepath'] . '/articles/EN/' . $article . '.tpl')) { |
|
| 31 | + } elseif (file_exists($opt['stylepath'].'/articles/EN/'.$article.'.tpl')) { |
|
| 32 | 32 | $language = 'EN'; |
| 33 | 33 | } else { |
| 34 | 34 | // use any |
| 35 | 35 | $language = false; |
| 36 | - if ($hDir = opendir($opt['stylepath'] . '/articles/')) { |
|
| 36 | + if ($hDir = opendir($opt['stylepath'].'/articles/')) { |
|
| 37 | 37 | while ((($sFile = readdir($hDir)) !== false) && ($language === false)) { |
| 38 | - if (($sFile != '.') && ($sFile != '..') && (is_dir($opt['stylepath'] . '/articles/' . $sFile))) { |
|
| 39 | - if (file_exists($opt['stylepath'] . '/articles/' . $sFile . '/' . $article . '.tpl')) { |
|
| 38 | + if (($sFile != '.') && ($sFile != '..') && (is_dir($opt['stylepath'].'/articles/'.$sFile))) { |
|
| 39 | + if (file_exists($opt['stylepath'].'/articles/'.$sFile.'/'.$article.'.tpl')) { |
|
| 40 | 40 | $language = $sFile; |
| 41 | 41 | } |
| 42 | 42 | } |
@@ -54,13 +54,13 @@ discard block |
||
| 54 | 54 | $tpl->name = 'articles'; |
| 55 | 55 | |
| 56 | 56 | $tpl->caching = true; |
| 57 | -$tpl->cache_id = 'articles|' . $language . '|' . $article; |
|
| 57 | +$tpl->cache_id = 'articles|'.$language.'|'.$article; |
|
| 58 | 58 | $tpl->cache_lifetime = 43200; |
| 59 | 59 | |
| 60 | 60 | $tpl->menuitem = sql_value( |
| 61 | 61 | "SELECT `id` FROM `sys_menu` WHERE `href`='&1' LIMIT 1", |
| 62 | 62 | 0, |
| 63 | - 'articles.php?page=' . urlencode($article) |
|
| 63 | + 'articles.php?page='.urlencode($article) |
|
| 64 | 64 | ); |
| 65 | 65 | if ($tpl->menuitem == 0) { |
| 66 | 66 | $tpl->redirect('index.php'); |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | /* prepare smarty vars for special pages ... |
| 75 | 75 | */ |
| 76 | 76 | if ($article == 'cacheinfo') { |
| 77 | - require_once $opt['rootpath'] . 'lib2/logic/attribute.class.php'; |
|
| 77 | + require_once $opt['rootpath'].'lib2/logic/attribute.class.php'; |
|
| 78 | 78 | $attributes = attribute::getSelectableAttrbutesListArray(true); |
| 79 | 79 | $tpl->assign('attributes', $attributes); |
| 80 | 80 | } |