@@ -11,7 +11,7 @@ |
||
| 11 | 11 | * language specific vars |
| 12 | 12 | ****************************************************************************/ |
| 13 | 13 | |
| 14 | - $error_wrong_node = t('this description was created on another Opencaching-webserver and can only be deleted there.'); |
|
| 14 | + $error_wrong_node = t('this description was created on another Opencaching-webserver and can only be deleted there.'); |
|
| 15 | 15 | |
| 16 | - $commit = t('the cache description has been deleted'); |
|
| 17 | - $commit_title = t('delete this cache-description'); |
|
| 16 | + $commit = t('the cache description has been deleted'); |
|
| 17 | + $commit_title = t('delete this cache-description'); |
|
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | <?php |
| 154 | 154 | foreach ($opt['template']['locales'] as $k => $lang) { |
| 155 | 155 | if ($lang['status'] == OC_LOCALE_ACTIVE) { |
| 156 | - echo '<a style="text-decoration: none;" href="'.$langUrl . $k . '"><img src="' . $lang['flag'] . |
|
| 156 | + echo '<a style="text-decoration: none;" href="' . $langUrl . $k . '"><img src="' . $lang['flag'] . |
|
| 157 | 157 | '" alt="' . $lang['name'] . '" title="' . $lang['name'] . '" width="24px" height="18px" /></a> '; |
| 158 | 158 | } |
| 159 | 159 | } |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | } |
| 183 | 183 | $nLastGroup = $tpl_usercountries[$i]['group']; |
| 184 | 184 | |
| 185 | - echo '<option value="' . htmlspecialchars($tpl_usercountries[$i]['country'], ENT_COMPAT, 'UTF-8') . '"' . (($sUserCountry==$tpl_usercountries[$i]['country']) ? ' selected="selected"' : '') . '>' . htmlspecialchars($tpl_usercountries[$i]['name'], ENT_COMPAT, 'UTF-8') . '</option>'; |
|
| 185 | + echo '<option value="' . htmlspecialchars($tpl_usercountries[$i]['country'], ENT_COMPAT, 'UTF-8') . '"' . (($sUserCountry == $tpl_usercountries[$i]['country']) ? ' selected="selected"' : '') . '>' . htmlspecialchars($tpl_usercountries[$i]['name'], ENT_COMPAT, 'UTF-8') . '</option>'; |
|
| 186 | 186 | } |
| 187 | 187 | ?> |
| 188 | 188 | </select> |
@@ -43,11 +43,11 @@ discard block |
||
| 43 | 43 | |
| 44 | 44 | //get the posted data |
| 45 | 45 | $show_all_langs = isset($_POST['show_all_langs']) ? $_POST['show_all_langs'] : 0; |
| 46 | - $short_desc = isset($_POST['short_desc']) ? $_POST['short_desc'] : ''; // Ocprop |
|
| 46 | + $short_desc = isset($_POST['short_desc']) ? $_POST['short_desc'] : ''; // Ocprop |
|
| 47 | 47 | |
| 48 | - $hints = isset($_POST['hints']) ? $_POST['hints'] : ''; // Ocprop |
|
| 49 | - $sel_lang = isset($_POST['desc_lang']) ? $_POST['desc_lang'] : $default_lang; // Ocprop |
|
| 50 | - $desc = isset($_POST['desc']) ? $_POST['desc'] : ''; // Ocprop |
|
| 48 | + $hints = isset($_POST['hints']) ? $_POST['hints'] : ''; // Ocprop |
|
| 49 | + $sel_lang = isset($_POST['desc_lang']) ? $_POST['desc_lang'] : $default_lang; // Ocprop |
|
| 50 | + $desc = isset($_POST['desc']) ? $_POST['desc'] : ''; // Ocprop |
|
| 51 | 51 | |
| 52 | 52 | // read descMode; if not set, initialize from user profile |
| 53 | 53 | if (isset($_POST['descMode'])) { // Ocprop |
@@ -212,8 +212,7 @@ discard block |
||
| 212 | 212 | tpl_set_var('name', htmlspecialchars($cache_record['name'], ENT_COMPAT, 'UTF-8')); |
| 213 | 213 | tpl_set_var('cacheid', htmlspecialchars($cache_id, ENT_COMPAT, 'UTF-8')); |
| 214 | 214 | |
| 215 | - tpl_set_var('lang_message', $desc_lang_exists ? $lang_message : |
|
| 216 | - (isset($_POST['submitform']) && $sel_lang == '0' ? $error_no_lang_selected : '')); |
|
| 215 | + tpl_set_var('lang_message', $desc_lang_exists ? $lang_message : (isset($_POST['submitform']) && $sel_lang == '0' ? $error_no_lang_selected : '')); |
|
| 217 | 216 | |
| 218 | 217 | tpl_set_var('show_all_langs', $show_all_langs); |
| 219 | 218 | tpl_set_var('show_all_langs_submit', ($show_all_langs == 0) ? $show_all_langs_submit : ''); |
@@ -235,7 +234,7 @@ discard block |
||
| 235 | 234 | $headers .= '<script language="javascript" type="text/javascript" src="' . editorJsPath() . '"></script>' . "\n"; |
| 236 | 235 | tpl_set_var('htmlheaders', $headers); |
| 237 | 236 | |
| 238 | - tpl_set_var('reset', $reset); // obsolete |
|
| 237 | + tpl_set_var('reset', $reset); // obsolete |
|
| 239 | 238 | tpl_set_var('submit', $submit); |
| 240 | 239 | } |
| 241 | 240 | } else { |
@@ -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 | |
@@ -13,13 +13,13 @@ |
||
| 13 | 13 | * !! See also lib/login.class.php. !! |
| 14 | 14 | ***************************************************************************/ |
| 15 | 15 | |
| 16 | -define('LOGIN_UNKNOWN_ERROR', -1); // unkown error occured |
|
| 17 | -define('LOGIN_OK', 0); // login succeeded |
|
| 18 | -define('LOGIN_BADUSERPW', 1); // bad username or password |
|
| 19 | -define('LOGIN_TOOMUCHLOGINS', 2); // too many logins in short time |
|
| 20 | -define('LOGIN_USERNOTACTIVE', 3); // the useraccount locked |
|
| 16 | +define('LOGIN_UNKNOWN_ERROR', -1); // unkown error occured |
|
| 17 | +define('LOGIN_OK', 0); // login succeeded |
|
| 18 | +define('LOGIN_BADUSERPW', 1); // bad username or password |
|
| 19 | +define('LOGIN_TOOMUCHLOGINS', 2); // too many logins in short time |
|
| 20 | +define('LOGIN_USERNOTACTIVE', 3); // the useraccount locked |
|
| 21 | 21 | define('LOGIN_EMPTY_USERPASSWORD', 4); // given username/password was empty |
| 22 | -define('LOGIN_LOGOUT_OK', 5); // logout was successfull |
|
| 22 | +define('LOGIN_LOGOUT_OK', 5); // logout was successfull |
|
| 23 | 23 | |
| 24 | 24 | // login times in seconds |
| 25 | 25 | define('LOGIN_TIME', 60 * 60); |
@@ -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 | |
@@ -7,8 +7,8 @@ discard block |
||
| 7 | 7 | * Do not modify this file - use settings.inc.php! |
| 8 | 8 | ***************************************************************************/ |
| 9 | 9 | |
| 10 | -require_once __DIR__. '/locale.inc.php'; |
|
| 11 | -require_once __DIR__. '/settings-dist-common.inc.php'; |
|
| 10 | +require_once __DIR__ . '/locale.inc.php'; |
|
| 11 | +require_once __DIR__ . '/settings-dist-common.inc.php'; |
|
| 12 | 12 | |
| 13 | 13 | /* PHP settings |
| 14 | 14 | * |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | // database placeholder |
| 108 | 108 | |
| 109 | 109 | // productive database with opencaching-tables |
| 110 | -$opt['db']['placeholder']['db'] = ''; // selected by default |
|
| 110 | +$opt['db']['placeholder']['db'] = ''; // selected by default |
|
| 111 | 111 | |
| 112 | 112 | // empty database for temporary table creation |
| 113 | 113 | $opt['db']['placeholder']['tmpdb'] = ''; |
@@ -121,14 +121,14 @@ discard block |
||
| 121 | 121 | $opt['system']['maillog']['syslog_db_user'] = ''; |
| 122 | 122 | $opt['system']['maillog']['syslog_db_password'] = ''; |
| 123 | 123 | $opt['system']['maillog']['syslog_db_table'] = ''; |
| 124 | -$opt['system']['maillog']['syslog_oc_host'] = ''; // 'host_name' column in syslog DB |
|
| 125 | -$opt['system']['maillog']['syslog_mta'] = 'postfix/smtp%'; // 'program' column in syslog DB |
|
| 126 | -$opt['system']['maillog']['column']['id'] = 'id'; // 'ID' |
|
| 127 | -$opt['system']['maillog']['column']['created'] = 'created'; // 'ReceivedAt' |
|
| 124 | +$opt['system']['maillog']['syslog_oc_host'] = ''; // 'host_name' column in syslog DB |
|
| 125 | +$opt['system']['maillog']['syslog_mta'] = 'postfix/smtp%'; // 'program' column in syslog DB |
|
| 126 | +$opt['system']['maillog']['column']['id'] = 'id'; // 'ID' |
|
| 127 | +$opt['system']['maillog']['column']['created'] = 'created'; // 'ReceivedAt' |
|
| 128 | 128 | $opt['system']['maillog']['column']['host_name'] = 'host_name'; // 'FromHost' |
| 129 | -$opt['system']['maillog']['column']['message'] = 'message'; // 'Message' |
|
| 130 | -$opt['system']['maillog']['column']['program'] = 'program'; // 'SysLogTag' |
|
| 131 | -$opt['system']['maillog']['inactivity_warning'] = 30; // warn after N days without new entries |
|
| 129 | +$opt['system']['maillog']['column']['message'] = 'message'; // 'Message' |
|
| 130 | +$opt['system']['maillog']['column']['program'] = 'program'; // 'SysLogTag' |
|
| 131 | +$opt['system']['maillog']['inactivity_warning'] = 30; // warn after N days without new entries |
|
| 132 | 132 | |
| 133 | 133 | /* cookie or session |
| 134 | 134 | * |
@@ -150,15 +150,15 @@ discard block |
||
| 150 | 150 | * |
| 151 | 151 | * other parameters may be customized |
| 152 | 152 | */ |
| 153 | -$opt['session']['mode'] = SAVE_COOKIE; // don't change - other option "SAVE_SESSION" is not implemented properly |
|
| 153 | +$opt['session']['mode'] = SAVE_COOKIE; // don't change - other option "SAVE_SESSION" is not implemented properly |
|
| 154 | 154 | $opt['session']['cookiename'] = 'ocvagrant'; // only with SAVE_COOKIE |
| 155 | 155 | $opt['session']['path'] = '/'; |
| 156 | -$opt['session']['domain'] = ''; // may be overwritten by $opt['domain'][...]['cookiedomain'] |
|
| 156 | +$opt['session']['domain'] = ''; // may be overwritten by $opt['domain'][...]['cookiedomain'] |
|
| 157 | 157 | |
| 158 | 158 | /* maximum session lifetime |
| 159 | 159 | */ |
| 160 | 160 | $opt['session']['expire']['cookie'] = 31536000; // when cookies used (default 1 year) |
| 161 | -$opt['session']['expire']['url'] = 1800; // when no cookies used (default 30 min since last call), attention to session.js |
|
| 161 | +$opt['session']['expire']['url'] = 1800; // when no cookies used (default 30 min since last call), attention to session.js |
|
| 162 | 162 | |
| 163 | 163 | /* If the Referer was sent by the client and the substring was not found, |
| 164 | 164 | * the embedded session id will be marked as invalid. |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | /* other template options |
| 185 | 185 | * |
| 186 | 186 | */ |
| 187 | -$opt['page']['origin_url'] = 'http://www.opencaching.de/'; // production installation for this OC site |
|
| 187 | +$opt['page']['origin_url'] = 'http://www.opencaching.de/'; // production installation for this OC site |
|
| 188 | 188 | $opt['page']['develsystem'] = false; |
| 189 | 189 | $opt['page']['teampic_url'] = 'http://www.opencaching.de/images/team/'; |
| 190 | 190 | $opt['page']['teammember_url'] = 'http://www.opencaching.de/'; |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | 'newcaches' => [ |
| 219 | 219 | 'show' => true, |
| 220 | 220 | 'url' => 'http://www.opencaching.de', |
| 221 | - 'urlname' => '', // optional: show other name than the url-domain |
|
| 221 | + 'urlname' => '', // optional: show other name than the url-domain |
|
| 222 | 222 | ], |
| 223 | 223 | ]; |
| 224 | 224 | |
@@ -377,7 +377,7 @@ discard block |
||
| 377 | 377 | |
| 378 | 378 | /* license-related functions |
| 379 | 379 | */ |
| 380 | -$opt['logic']['license']['newusers'] = 2; // see license constants in lib2/logic/const.inc.php |
|
| 380 | +$opt['logic']['license']['newusers'] = 2; // see license constants in lib2/logic/const.inc.php |
|
| 381 | 381 | $opt['logic']['license']['admin'] = true; |
| 382 | 382 | $opt['logic']['license']['disclaimer'] = false; |
| 383 | 383 | $opt['logic']['license']['terms'] = 'articles.php?page=impressum#datalicense'; |
@@ -385,18 +385,18 @@ discard block |
||
| 385 | 385 | |
| 386 | 386 | /* optional APIs |
| 387 | 387 | */ |
| 388 | -$opt['logic']['api']['email_problems']['key'] = ''; // must be set to enable |
|
| 389 | -$opt['logic']['api']['user_inactivity']['key'] = ''; // must be set to enable |
|
| 388 | +$opt['logic']['api']['email_problems']['key'] = ''; // must be set to enable |
|
| 389 | +$opt['logic']['api']['user_inactivity']['key'] = ''; // must be set to enable |
|
| 390 | 390 | |
| 391 | 391 | /* cache report info settings |
| 392 | 392 | */ |
| 393 | 393 | $opt['logic']['cache_reports']['delaydays'] = 2; |
| 394 | -$opt['logic']['cache_reports']['min_processperday'] = 5; // set to 0 to disable |
|
| 395 | -$opt['logic']['cache_reports']['max_processperday'] = 20; // set to 0 to disable |
|
| 394 | +$opt['logic']['cache_reports']['min_processperday'] = 5; // set to 0 to disable |
|
| 395 | +$opt['logic']['cache_reports']['max_processperday'] = 20; // set to 0 to disable |
|
| 396 | 396 | |
| 397 | 397 | /* cronjob |
| 398 | 398 | */ |
| 399 | -$opt['cron']['username'] = 'apache'; // system username for cronjobs |
|
| 399 | +$opt['cron']['username'] = 'apache'; // system username for cronjobs |
|
| 400 | 400 | |
| 401 | 401 | /* phpbb news integration (index.php, outdated) |
| 402 | 402 | * |