Completed
Push — development ( 1b87d2...43bb99 )
by Thomas
06:02
created

htdocs/config2/settings-dist.inc.php (4 issues)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
/***************************************************************************
3
 * for license information see LICENSE.md
4
 *
5
 *
6
 *  Default settings for all options in settings.inc.php
7
 *  Do not modify this file - use settings.inc.php!
8
 ***************************************************************************/
9
10
require_once __DIR__ . '/locale.inc.php';
11
require_once __DIR__ . '/settings-dist-common.inc.php';
12
13
/* PHP settings
14
 *
15
 * PHP_DEBUG_SKIP
16
 *
17
 *  don't use ini_set()
18
 *
19
 * PHP_DEBUG_OFF
20
 *
21
 *  use the following php.ini-settings
22
 *    display_errors = On
23
 *    error_reporting = E_ALL & ~E_NOTICE
24
 *    mysql.trace_mode = Off
25
 *
26
 *  strongly recommended settings
27
 *    register_globals = Off
28
 *
29
 * PHP_DEBUG_ON
30
 *
31
 *  use the following php.ini-settings
32
 *    display_errors = On
33
 *    error_reporting = E_ALL
34
 *    mysql.trace_mode = On
35
 */
36
$opt['php']['debug'] = PHP_DEBUG_SKIP;
37
$opt['php']['timezone'] = 'Europe/Berlin';
38
$opt['php']['semaphores'] = true;
39
40
// database connection
41
42
/* hostname or IP Address
43
 * to connect to mysql socket use ':/path/to/mysql.sock';
44
 */
45
$opt['db']['servername'] = 'localhost';
46
$opt['db']['username'] = '';
47
$opt['db']['password'] = '';
48
$opt['db']['pconnect'] = false;
49
50
/**
51
 * user for manual maintenance functions
52
 * needs all privileges except for GRANT
53
 *
54
 * Set the password ONLY ON DEVELOPER SYSTEMS !!
55
 */
56
$opt['db']['maintenance_user'] = '';
57
$opt['db']['maintenance_password'] = '';
58
59
// begin throotling when more than 80%
60
// of max_connections is reached on db server
61
$opt['db']['throttle_connection_count'] = 240;
62
63
// log the last N seconds for throttling
64
$opt['db']['throttle_access_time'] = 300;
65
66
// throttle users that have more than N access log
67
// entries in the last [throttle_access_time] seconds
68
$opt['db']['throttle_access_count'] = 200;
69
70
/* replicated slave databases
71
 */
72
$opt['db']['slaves'] = [];
73
74
/*
0 ignored issues
show
Unused Code Comprehensibility introduced by
45% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
75
    $opt['db']['slaves'][0]['server'] = 'slave-ip-or-socket';
76
77
    // if a slave is no active, the slave will not be tracked
78
    // by online-check or purge of master logs!
79
    // Therefore you might have to initialize the replication again,
80
    // after activating a slave.
81
    $opt['db']['slaves'][0]['active'] = true;
82
83
    // relative weight compared to other slaves
84
    // see doc2/replicaiton.txt (!)
85
    $opt['db']['slaves'][0]['weight'] = 100;
86
    $opt['db']['slaves'][0]['username'] = '';
87
    $opt['db']['slaves'][0]['password'] = '';
88
89
    $opt['db']['slaves'][1]...
90
*/
91
92
// maximum time (sec) a slave is allowed to be behind
93
// the state of the master database before no connection
94
// is redirected to this slave
95
$opt['db']['slave']['max_behind'] = 180;
96
97
// TODO: use this slave when a specific slave must be connected
98
// (e.g. xml-interface and mapserver-results)
99
// you can use -1 to use the master (not recommended, because replicated to slaves)
100
$opt['db']['slave']['primary'] = - 1;
101
102
// ... how long a query can take without warning (0 <= disabled)
103
$opt['db']['warn']['time'] = 0;
104
$opt['db']['warn']['mail'] = '[email protected]'; // set '' to disable
105
$opt['db']['warn']['subject'] = 'sql_warn';
106
107
// database placeholder
108
109
// productive database with opencaching-tables
110
$opt['db']['placeholder']['db'] = '';    // selected by default
111
112
// empty database for temporary table creation
113
$opt['db']['placeholder']['tmpdb'] = '';
114
115
// date format
116
$opt['db']['dateformat'] = 'Y-m-d H:i:s';
117
118
// email delivery processing from syslog-ng eventlog DB; all fields must be set
119
$opt['system']['maillog']['syslog_db_host'] = '';
120
$opt['system']['maillog']['syslog_db_name'] = '';
121
$opt['system']['maillog']['syslog_db_user'] = '';
122
$opt['system']['maillog']['syslog_db_password'] = '';
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'
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
132
133
/* cookie or session
134
 *
135
 * SAVE_COOKIE            = only use cookies
136
 * SAVE_SESSION           = use php sessions
137
 *
138
 * to use SESSIONS set php.ini to session default values:
139
 *
140
 * session.auto_start = 0
141
 * session.use_cookies = 1
142
 * session.use_only_cookies = 0
143
 * session.cookie_lifetime = 0
144
 * session.cookie_path = "/"
145
 * session.cookie_domain = ""
146
 * session.cookie_secure = off
147
 * session.use_trans_sid = 0
148
 *
149
 * set session.safe_path to a secure place
150
 *
151
 * other parameters may be customized
152
 */
153
$opt['session']['mode'] = SAVE_COOKIE;     // don't change - other option "SAVE_SESSION" is not implemented properly
154
$opt['session']['cookiename'] = 'ocvagrant'; // only with SAVE_COOKIE
155
$opt['session']['path'] = '/';
156
$opt['session']['domain'] = '';    // may be overwritten by $opt['domain'][...]['cookiedomain']
0 ignored issues
show
Unused Code Comprehensibility introduced by
53% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
157
158
/* maximum session lifetime
159
 */
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
162
163
/* If the Referer was sent by the client and the substring was not found,
164
 * the embedded session id will be marked as invalid.
165
 * Only used with session.mode = SAVE_SESSION
166
 */
167
$opt['session']['check_referer'] = true;
168
169
$opt['session']['login_statistics'] = false;
170
171
/* Debug level (combine with OR | )
172
 *  DEBUG_NO              = productive use
173
 *  DEBUG_DEVELOPER       = developer system
174
 *  DEBUG_TEMPLATES       = no template caching; makes some templates very slow!
175
 *  DEBUG_OUTOFSERVICE    = only admin login (includes DEBUG_TEMPLATES)
176
 *  DEBUG_TESTING         = display warning (includes DEBUG_TEMPLATES)
177
 *  DEBUG_SQLDEBUGGER     = sql debugger (use &sqldebug=1 when calling the site)
178
 *  DEBUG_TRANSLATE       = read translate messages (use &trans=1 when calling the site, includes DEBUG_TEMPLATES)
179
 *  DEBUG_FORCE_TRANSLATE = force read of translate messages (includes DEBUG_TRANSLATE)
180
 *  DEBUG_CLI             = print debug messages of cli scripts
181
 */
182
$opt['debug'] = DEBUG_DEVELOPER;
183
184
/* other template options
185
 *
186
 */
187
$opt['page']['origin_url'] = 'https://www.opencaching.de/';  // production installation for this OC site
188
$opt['page']['develsystem'] = false;
189
$opt['page']['teampic_url'] = 'https://www.opencaching.de/images/team/';
190
$opt['page']['teammember_url'] = 'https://www.opencaching.de/';
191
192
/*
193
 * configure infos on 404.php
194
 */
195
$opt['page']['404']['www.opencaching.de'] = [
196
    'blog' => [
197
        'show' => false,
198
        'feedurl' => '',
199
        'url' => '',
200
        'timeout' => null,
201
        'urlname' => '',
202
    ],
203
    'forum' => [
204
        'show' => false,
205
        'feedurl' => '',
206
        'url' => '',
207
        'timeout' => null,
208
        'urlname' => '',
209
    ],
210
    'wiki' => [
211
        'show' => false,
212
        'feedurl' => '',
213
        'url' => '',
214
        'timeout' => null,
215
        'urlname' => '',
216
    ],
217
218
    'newcaches' => [
219
        'show' => true,
220
        'url' => 'https://www.opencaching.de',
221
        'urlname' => '',  // optional: show other name than the url-domain
222
    ],
223
];
224
225
/* Well known node id's - required for synchronization
226
 *  1 Opencaching Deutschland (www.opencaching.de)
227
 *  2 Opencaching Polen (opencaching.pl)
228
 *  3 Opencaching Tschechien (www.opencaching.cz)
229
 *  4 Local Development
230
 *  5 Opencaching Entwicklung Deutschland (devel.opencaching.de)
231
 *  6 Opencaching Schweden (www.opencaching.se)
232
 *  7 Opencaching Großbritannien (opencache.uk)
233
 *  8 Opencaching Norwegen (www.opencaching.no)
234
 *  9 Opencaching Lettland (?)
235
 * 10 Opencaching USA (www.opencaching.us)
236
 * 11 Opencaching Japan (eingestellt)
237
 * 12 Opencaching Russland  (?)
238
 * 13 Garmin (www.opencaching.com)
239
 * 14 Opencaching Niederlande (www.opencaching.nl)
240
 * 16 Opencaching Rumänien (www.opencaching.ro)
241
 */
242
$opt['logic']['node']['id'] = 0;
243
244
/* settings for business layer
245
 *
246
 */
247
$opt['logic']['rating']['topdays_mainCountry'] = 30;
248
$opt['logic']['rating']['topdays_otherCountry'] = 180;
249
250
/*
251
 * count of identical logs (date and text) that shows a warning message on
252
 * next log
253
 */
254
$opt['logic']['masslog']['count'] = 20;
255
256
/* location of uploaded images
257
 */
258
$opt['logic']['pictures']['maxsize'] = 15000 * 1024;
259
$opt['logic']['pictures']['unchg_size'] = 250 * 1024;
260
if (extension_loaded('imagick')) {
261
    $opt['logic']['pictures']['extensions'] = 'jpg;jpeg;gif;png;bmp;tif;psd;pcx;svg;xpm';
262
} else {
263
    $opt['logic']['pictures']['extensions'] = 'jpg;jpeg;gif;png';
264
}
265
266
/* Thumbnail sizes
267
 */
268
$opt['logic']['pictures']['thumb_max_width'] = 175;
269
$opt['logic']['pictures']['thumb_max_height'] = 175;
270
$opt['logic']['pictures']['listing_thumbs_per_row'] = 4;
271
272
/* Defaults for picture replacement on declined license
273
 *
274
 * replacement picture must be square sized
275
 */
276
$opt['logic']['pictures']['dummy']['bgcolor'] = [255, 255, 255];
277
$opt['logic']['pictures']['dummy']['text'] = '';
278
$opt['logic']['pictures']['dummy']['textcolor'] = [0, 0, 0];
279
$opt['logic']['pictures']['dummy']['replacepic'] = $opt['rootpath'] . 'images/';
280
281
/* cachemaps (obsolete)
282
 */
283
/*
284
    $opt['logic']['cachemaps']['url'] = 'images/cachemaps/';
285
    $opt['logic']['cachemaps']['dir'] = $opt['rootpath'] . $opt['logic']['cachemaps']['url'];
286
    $opt['logic']['cachemaps']['wmsurl'] = 'cachemaps.php?wp={wp_oc}';
287
    $opt['logic']['cachemaps']['size']['lat'] = 0.2;
288
    $opt['logic']['cachemaps']['size']['lon'] = 0.2;
289
    $opt['logic']['cachemaps']['pixel']['y'] = 200;
290
    $opt['logic']['cachemaps']['pixel']['x'] = 200;
291
*/
292
293
/* cachemaps (new)
294
 * how to display the cache map on viewcache.php (200x200 pixel)
295
 *
296
 * option 1) via <img> tag (e.g. google maps)
297
 *        2) via <iframe> tag (e.g. own mapserver)
298
 *
299
 * placeholders:
300
 * {userzoom} = user zoomlevel (see myprofile.php)
301
 * {latitude} = latitude of the cache
302
 * {longitude} = longitude of the cache
303
* {gmkey} = google maps key for current domain
304
 */
305
$opt['logic']['cachemaps']['url'] = 'http://maps.google.com/maps/api/staticmap?center={latitude},{longitude}&zoom={userzoom}&size=200x200&maptype=hybrid&markers=color:blue|label:|{latitude},{longitude}&sensor=false&key={gmkey}';
306
$opt['logic']['cachemaps']['iframe'] = false;
307
308
/* Minimap for the new-caches list on the front page.
309
 * If the url string is empty, no minimap is displayed on the front page.
310
 *
311
 * Coordinates of new caches are appended to the url.
312
 */
313
$opt['logic']['minimapurl'] = 'http://maps.googleapis.com/maps/api/staticmap?sensor=false&key={gmkey}&size=220x220&maptype=roadmap&markers=color:blue|size:small';
314
315
/* target vars
316
 * all _REQUEST-vars that identifiy the current page for target redirection after login
317
 */
318
$opt['logic']['targetvars'] = [
319
    'cacheid',
320
    'userid',
321
    'logid',
322
    'desclang',
323
    'descid',
324
    'wp',
325
    'uuid',
326
    'id',
327
    'action',
328
    'rid',
329
    'ownerid',
330
];
331
332
/* cracklib-check for users passwords enabled?
333
 * (requires php extension crack_check)
334
 */
335
$opt['logic']['cracklib'] = false;
336
337
/* password authentication method
338
 * (true means extra hash on the digested password)
339
 */
340
$opt['logic']['password_hash'] = false;
341
342
/* password salt
343
 * is a random generated String that is appended to the password
344
 */
345
$opt['logic']['password_salt'] = '';
346
347
/* new lows style
348
 */
349
$opt['logic']['new_logs_per_country'] = true;
350
351
/* search engines
352
 * will be excluded from cache visitor count
353
 * current active bots on www.opencaching.de in 03/2013:
354
 *
355
 * (I added this and then noticed that is may be unnecessary, as the
356
 * visit counter function is special javascript code which probably is not
357
 * executed by search engines.  -- following)
358
 */
359
$opt['logic']['search_engines'] = 'AcoonBot;AhrefsBot;Baiduspider;bingbot;Exabot;Ezooms;Googlebot;Googlebot-mobile;ia_archiver,Linguee Bot;Mail.RU_Bot;MJ12bot;msnbot;SISTRIX Crawler;Sophora Linkchecker;TweetmemeBot;WBSearchBot;Yahoo! Slurp;YandexBot';
360
361
/* default maximum of OConly-81 ranklist members
362
 */
363
$opt['logic']['oconly81']['default_maxusers'] = 60;
364
365
/* opencaching prefixes in database available to search for
366
 */
367
$opt['logic']['ocprefixes'] = 'oc';
368
369
/* Username for cronjobs or CLI tools
370
 * is used e.g. for cache auto-archiving and auto-publishing
371
 */
372
$opt['logic']['systemuser']['user'] = '';
373
374
/* Purge log files - age in days (0 = keep infinite)
375
 */
376
$opt['logic']['logs']['purge_email'] = 30;
377
$opt['logic']['logs']['purge_userdata'] = 14;
378
379
/* license-related functions
380
 */
381
$opt['logic']['license']['newusers'] = 2;  // see license constants in lib2/logic/const.inc.php
382
$opt['logic']['license']['admin'] = true;
383
$opt['logic']['license']['disclaimer'] = false;
384
$opt['logic']['license']['terms'] = 'articles.php?page=impressum#datalicense';
385
// 'disclaimer' and 'terms' also in lib/settings.inc.php
386
387
/* optional APIs
388
 */
389
$opt['logic']['api']['email_problems']['key'] = '';   // must be set to enable
390
$opt['logic']['api']['user_inactivity']['key'] = '';  // must be set to enable
391
392
/* cache report info settings
393
 */
394
$opt['logic']['cache_reports']['delaydays'] = 2;
395
$opt['logic']['cache_reports']['min_processperday'] = 5;   // set to 0 to disable
396
$opt['logic']['cache_reports']['max_processperday'] = 20;  // set to 0 to disable
397
398
/* cronjob
399
 */
400
$opt['cron']['username'] = 'apache';   // system username for cronjobs
401
402
/* generate sitemap.xml and upload to search engines
403
 *
404
 * NOTE
405
 *
406
 * testing server: disbale submit and add OC-source-directory to robots.txt (disallow /)
407
 * productive server: enable submit and add "Sitemap: sitemap.xml" to you robots.txt
408
 */
409
$opt['cron']['sitemaps']['generate'] = true;
410
$opt['cron']['sitemaps']['submit'] = false;
411
412
/* other cronjobs
413
 */
414
415
$opt['cron']['geokrety']['run'] = true;
416
$opt['cron']['geokrety']['xml_archive'] = false;
417
$opt['cron']['autoarchive']['run'] = false;
418
$opt['cron']['gcwp']['sources'] = [];
419
$opt['cron']['gcwp']['fulllist'] = '';
420
$opt['cron']['gcwp']['report'] = '';
421
$opt['cron']['replicate']['delete_hidden_caches']['url'] = '';
422
423
/* E-Mail settings
424
 *
425
 */
426
427
// outgoing mails
428
$opt['mail']['from'] = '[email protected]';
429
$opt['mail']['subject'] = '[devel.opencaching.de] ';
430
431
// email address for user contact emails
432
// has to be an autoresponder informing about wrong mail usage
433
$opt['mail']['usermail'] = '[email protected]';
434
435
// contact address
436
$opt['mail']['contact'] = '[email protected]';
437
438
// blog news on start page
439
$opt['news']['include'] = '';
440
$opt['news']['count'] = 3;
441
$opt['news']['timeout'] = 20;
442
443
/* current forum topcis on start page
444
 * requires url to be a vaild rss feed
445
 * -> show the number of 'count' topics from rss feed
446
 */
447
$opt['forum']['url'] = '';
448
$opt['forum']['count'] = 5;
449
$opt['forum']['timeout'] = 20;
450
$opt['forum']['url'] = '';
451
$opt['forum']['name'] = '';
452
453
// settings for Wiki news on the 404 page
454
$opt['wikinews']['url'] = 'http://wiki.opencaching.de/index.php/Spezial:Neue_Seiten?feed=rss';
455
$opt['wikinews']['count'] = 5;
456
$opt['wikinews']['timeout'] = 20;
457
458
// 3rd party library options
459
// developer.what3words.com API key
460
$opt['lib']['w3w']['apikey'] = 'YOURAPIKEY';
461
462
// Google Maps API key
463
// https://developers.google.com/maps/documentation/static-maps/?hl=de
464
$opt['lib']['google']['mapkey'] = [];
465
//$opt['lib']['google']['mapkey']['www.opencaching.xy'] = 'EEFFGGHH...';
0 ignored issues
show
Unused Code Comprehensibility introduced by
84% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
466
467
/* config of map.php
468
 */
469
470
// search result cache behaviour
471
$opt['map']['maxcacheage'] = 3600;
472
473
// execute cleanup when the size of table map2_data is greater than maxcachesize (in bytes)
474
$opt['map']['maxcachesize'] = 20 * 1048576; // = 20MB
475
476
// cache size after deleting old entries
477
$opt['map']['maxcachereducedsize'] = 10 * 1048576; // = 10MB
478
479
// max number of caches displayed in google maps
480
if (isset($_SERVER['HTTP_USER_AGENT'])) {
481
    $user_agent = ' ' . $_SERVER['HTTP_USER_AGENT'];
482
    if (strpos($user_agent, 'MSIE') && !strpos($user_agent, 'Opera')) {
483
        $opt['map']['maxrecords'] = 200;
484
    } else {
485
        $opt['map']['maxrecords'] = 2500;
486
    }
487
} else {
488
    $opt['map']['maxrecords'] = 200;
489
}
490
// ... selectable by user:
491
$opt['map']['min_maxrecords'] = 100;
492
$opt['map']['max_maxrecords'] = 4000;
493
494
/*
495
 * OKAPI
496
 */
497
$opt['okapi']['var_dir'] = $opt['rootpath'] . 'var/okapi';
498
$opt['okapi']['github_access_token'] = null;
499
500
/* Opencaching Node Daemon
501
 *
502
 */
503
// temporary file to collect status info of all child forks
504
$opt['ocnd']['statusfile'] = '/tmp/ocndaemon.tmp';
505
506
// polling behaviour of status option
507
$opt['ocnd']['timeout'] = 10; // seconds
508
509
// IP address to listen
510
$opt['ocnd']['ip'] = '0.0.0.0';
511
// TCP port to listen
512
$opt['ocnd']['port'] = 15000;
513
// maximum connects buffer (see php manual of socket_listen() )
514
$opt['ocnd']['connectbuffer'] = 10;
515
// print out every line sent and received
516
$opt['ocnd']['debugtcp'] = true;
517
// do not check openssl version (version check is available in php 5.2+)
518
$opt['ocnd']['noopensslcheck'] = false;
519
520
/* owner and group of files created by apache daemon
521
 * (used to change ownership in shell scripts)
522
 */
523
$opt['httpd']['user'] = 'apache';
524
$opt['httpd']['group'] = 'apache';
525
526
/*
527
 * small map town list default settings (adjusted for OC.de)
528
 *
529
 * set zoom to 0 to disable a town
530
 */
531
$opt['map']['towns']['enable'] = true;
532
$opt['map']['towns']['DE']['enable'] = true;
533
$opt['map']['towns']['DE']['zoom'] = 11;
534
$opt['map']['towns']['AT']['enable'] = true;
535
$opt['map']['towns']['AT']['zoom'] = 10;
536
$opt['map']['towns']['CH']['enable'] = true;
537
$opt['map']['towns']['CH']['zoom'] = 10;
538
$opt['map']['towns']['IT']['enable'] = true;
539
$opt['map']['towns']['IT']['zoom'] = 8;
540
$opt['map']['towns']['IT']['Bolzano']['zoom'] = 9;
541
$opt['map']['towns']['IT']['Udine']['zoom'] = 9;
542
$opt['map']['towns']['ES']['enable'] = true;
543
$opt['map']['towns']['ES']['zoom'] = 9;
544
$opt['map']['towns']['FR']['enable'] = true;
545
$opt['map']['towns']['FR']['zoom'] = 9;
546
$opt['map']['towns']['FR']['Strasbourg']['zoom'] = 10;
547
548
// example for completely overriding small-map town list for a country:
0 ignored issues
show
Unused Code Comprehensibility introduced by
55% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
549
/*
550
    $opt['map']['towns']['IT']['enable'] = false;
551
    $mapmenu = 2001;
552
    $menuitem[$mapmenu+0] = array('title' => 'Bologna',
553
                                  'menustring' => 'Bologna',
554
                                  'authlevel' => 0,
555
                                  'href' => 'map2.php?mode=normalscreen&lat=44.497&lon=11.343&zoom=8',
556
                                  'visible' => 1,
557
                                  'sublevel' => 1,
558
                                  'parent' => MNU_MAP
559
                                  );
560
    $menuitem[$mapmenu+1] = array('title' => 'Bolzano',
561
                                  'menustring' => 'Bolzano',
562
                                  'authlevel' => 0,
563
                                  'href' => 'map2.php?lat=46.502&lon=11.354&zoom=10',
564
                                  'visible' => 1,
565
                                  'sublevel' => 1,
566
                                  'parent' => MNU_MAP
567
                                  );
568
    $menuitem[MNU_MAP]['subitems'][] = $mapmenu+0;
569
    $menuitem[MNU_MAP]['subitems'][] = $mapmenu+1;
570
*/
571