DefaultConfig.class.php (16581B)
1 <?php 2 // DO NOT MAKE ANY CHANGES IN THIS FILE, please edit the file 'config.yml' or 'config-<host>.yml' instead. 3 // This file should only be changed by developers. 4 5 namespace cms\base; 6 7 use cms\action\LanguageAction; 8 9 /** 10 * Default configuration. 11 */ 12 class DefaultConfig { 13 14 /** 15 * Gets the default configuration. 16 * @return array 17 */ 18 public static function get() 19 { 20 return 21 [ 22 'applications' => 23 [ 24 'phpmyadmin' => 25 [ 26 'name' => 'PHPYourAdmin', 27 'url' => 'https://example.com/anotherapplication/index.cgi', 28 'param' => 'ticketidforopenrat', 29 'group' => '0', 30 'description' => 'Your database administration', 31 ], 32 ], 33 'cache' => 34 [ 35 'conditional_get' => true, 36 'enable_cache' => false, 37 'tmp_dir' => '', 38 ], 39 'config' => 40 [ 41 'auto_reload' => true, 42 'session_destroy_on_config_reload' => true, 43 ], 44 'countries' => LanguageAction::LANGUAGE_LIST, 45 'database' => 46 [ 47 ], 48 'database-default' => 49 [ 50 'default-id' => '', 51 ], 52 'date' => 53 [ 54 'format' => 55 [ 56 'SHORT' => '', 57 'ISO8601SHORT' => 'Ymd', 58 'ISO8601' => 'Y-m-d', 59 'ISO8601BAS' => 'YmdTHis', 60 'ISO8601EXT' => 'Y-m-dTH:i:s', 61 'ISO8601FULL' => 'Y-m-dTH:i:sO', 62 'ISO8601WEEK' => 'YWW', 63 'GER1' => 'd.m.Y', 64 'GER2' => 'd.m.Y, H:i', 65 'GER3' => 'd.m.Y, H:i:s', 66 'GER4' => 'd. F Y, H:i:s', 67 'ENGLONG' => 'l dS of F Y h:i:s A', 68 'GMDATE' => 'D, d M Y H:i:s GMT', 69 'RFC822' => 'r', 70 'UNIX' => 'U', 71 'LONG' => 'F j, Y, g:i a', 72 ], 73 'timezone' => 74 [ 75 -6 => 'New York', 76 0 => 'UTC (GMT)', 77 60 => 'MET (Middle European Time)', 78 120 => 'MEST (Middle European Summertime)', 79 ], 80 ], 81 'editor' => 82 [ 83 'text-markup' => 84 [ 85 'strong-begin' => '*', 86 'strong-end' => '*', 87 'emphatic-begin' => '_', 88 'emphatic-end' => '_', 89 'image-begin' => '{', 90 'image-end' => '}', 91 'speech-begin' => 'QUOTE', 92 'speech-end' => 'QUOTE', 93 'code-begin' => '=', 94 'code-end' => '=', 95 'footnote-begin' => '[', 96 'footnote-end' => ']', 97 'pre-begin' => '=', 98 'pre-end' => '=', 99 'insert-begin' => '++', 100 'insert-end' => '++', 101 'remove-begin' => '--', 102 'remove-end' => '--', 103 'definition-sep' => '::', 104 'headline' => '+', 105 'headline_level1_underline' => '=', 106 'headline_level2_underline' => '-', 107 'headline_level3_underline' => '.', 108 'list-unnumbered' => '-', 109 'list-numbered' => '#', 110 'table-of-content' => '##TOC##', 111 'linkto' => '->', 112 'table-cell-sep' => '|', 113 'style-begin' => '\'', 114 'style-end' => '\'', 115 'quote' => '>', 116 'quote-line-begin' => '>', 117 'quote-line-end' => '>', 118 'macro-begin' => '<<', 119 'macro-end' => '>>', 120 'macro-attribute-quote' => '\'', 121 'macro-attribute-value-seperator' => '=', 122 ], 123 'html' => 124 [ 125 'tag_strong' => 'strong', 126 'tag_emphatic' => 'em', 127 'tag_teletype' => 'tt', 128 'tag_speech' => 'cite', 129 'override_speech' => false, 130 'override_speech_open' => '«', 131 'override_speech_close' => '»', 132 'rendermode' => 'xml', 133 'replace' => ['EUR:€'], 134 ], 135 'wiki' => 136 [ 137 'convert_html' => true, 138 'convert_bbcode' => true, 139 ], 140 'text' => 141 [ 142 'linelength' => '70', 143 ], 144 'calendar' => 145 [ 146 'weekday_offset' => '1', 147 ], 148 'macro' => 149 [ 150 'show_errors' => false, 151 ], 152 ], 153 'filename' => 154 [ 155 'edit' => true, 156 'default' => 'index', 157 'style' => 'short', 158 'url' => 'relative', 159 ], 160 'ftp' => 161 [ 162 'ascii' => 'html,htm,php', 163 ], 164 'help' => 165 [ 166 'enabled' => true, 167 'url' => 'http://help.openrat.de/', 168 'suffix' => '.html', 169 ], 170 'html' => 171 [ 172 'tag_teletype' => 'tt', 173 'tag_emphatic' => 'em', 174 'tag_strong' => 'strong', 175 'tag_speech' => 'cite', 176 'speech_open' => '&bdquo', 177 'speech_close' => '&rdquo', 178 ], 179 'i18n' => 180 [ 181 'use_http' => true, 182 'default' => 'de', 183 'available' => ['de','en','es','fr','it','ru','cn'], 184 'locale' => 185 [ 186 'de' => 'de_DE.utf8', 187 'en' => 'en_US.utf8', 188 ], 189 ], 190 'image' => 191 [ 192 'truecolor' => true, 193 ], 194 'interface' => 195 [ 196 'theme' => 'default', 197 'timeout' => '0', 198 'override_title' => '', 199 'style' => 200 [ 201 'default' => 'elastique', 202 ], 203 'config' => 204 [ 205 'file_manager_url' => '', 206 'enable' => true, 207 'show_system' => true, 208 'show_interpreter' => true, 209 'show_extensions' => true, 210 ], 211 'gravatar' => 212 [ 213 'enable' => true, 214 'size' => '80', 215 'default' => '404', 216 'rating' => 'g', 217 ], 218 'session' => 219 [ 220 'auto_extend' => true, 221 ], 222 ], 223 'login' => 224 [ 225 'motd' => '', 226 'nologin' => false, 227 'register' => false, 228 'send_password' => false, 229 'gpl' => 230 [ 231 'url' => 'http://www.gnu.org/licenses/old-licenses/gpl-2.0.html', 232 ], 233 'logo' => 234 [ 235 'enabled' => false, 236 'image' => './modules/cms-ui/themes/default/images/logo.jpg', 237 'url' => 'http://www.openrat.de', 238 ], 239 'start' => 240 [ 241 'start_lastchanged_object' => true, 242 'start_single_project' => true, 243 ], 244 ], 245 'log' => 246 [ 247 'file' => NULL, 248 'level' => 'warn', 249 'output' => 'plain', 250 'date_format' => 'M j H:i:s', 251 'ns_lookup' => false, 252 'format' => 253 [ 254 'time', 255 'level', 256 'host', 257 'user', 258 'action', 259 'text', 260 ], 261 ], 262 'mail' => 263 [ 264 'enabled' => true, 265 'from' => 'OpenRat <user@example.com>', 266 'signature' => '', 267 'cc' => '', 268 'bcc' => '', 269 'priority' => '', 270 'header_encoding' => 'Quoted-printable', 271 'client' => 'php', 272 'whitelist' => [], 273 'blacklist' => [], 274 'smtp' => 275 [ 276 'host' => 'localhost', 277 'port' => '25', 278 'auth_username' => '', 279 'auth_password' => '', 280 'timeout' => 45, 281 'localhost' => '', 282 'tls' => false, 283 'ssl' => false, 284 ], 285 ], 286 'publish' => 287 [ 288 'edit' => true, 289 'default' => 'index', 290 'format' => '{filename}{language_sep}{language}{type_sep}{type}', 291 'language_sep' => '.', 292 'type_sep' => '.', 293 'filename_language' => 'auto', 294 'filename_type' => 'always', 295 'style' => 'id', 296 'url' => 'relative', 297 'enable_php_in_page_content' => false, 298 'enable_php_in_file_content' => false, 299 'escape_8bit_characters' => false, 300 'encode_utf8_in_html' => true, 301 'negotiation' => 302 [ 303 'page_negotiate_type' => true, 304 'page_negotiate_language' => true, 305 'file_negotiate_type' => true, 306 ], 307 'filesystem' => 308 [ 309 'per_project' => true, 310 'directory' => '/var/www/', 311 ], 312 'command' => 313 [ 314 'per_project' => true, 315 'enable' => false, 316 'command' => '', 317 ], 318 'ftp' => 319 [ 320 'enable' => true, 321 'per_project' => true, 322 'port' => '21', 323 'host' => '', 324 'path' => '', 325 'user' => 'anonymous', 326 'pass' => 'mail@example.com', 327 ], 328 'set_modification_date' => true, 329 ], 330 'replace' => 331 [ 332 'euro' => 'EUR,€', 333 'copy' => '(c),©', 334 ], 335 'search' => 336 [ 337 'minlength' => 3, 338 'quicksearch' => 339 [ 340 'flag' => 341 [ 342 'id' => true, 343 'name' => true, 344 'filename' => true, 345 'description' => true, 346 'content' => false, 347 ], 348 ], 349 ], 350 'security' => 351 [ 352 'key' => 'OAp5M3GYvm2U7r1FEdvVhqDBxJjMTWgKvN8VfJrHLa7D9pVdrYkMyA', 353 'authorization' => [ 354 'basic' => true, 355 'bearer' => false, 356 ], 357 'cookie' => 358 [ 359 'secure' => false, 360 'httponly' => true, 361 'samesite' => 'Lax', 362 'expire' => 720, 363 ], 364 'readonly' => false, 365 'nopublish' => false, 366 'umask' => '0', 367 'chmod' => '0', 368 'chmod_dir' => '0', 369 '' => '0', 370 'disable_dynamic_code' => true, 371 'show_system_info' => true, 372 'use_post_token' => true, 373 'default' => 374 [ 375 'username' => '', 376 'password' => '', 377 ], 378 'guest' => 379 [ 380 'enable' => false, 381 'user' => 'guest', 382 ], 383 'login' => 384 [ 385 'type' => 'form', 386 ], 387 'auth' => 388 [ 389 'type' => 'database', 390 'userdn' => false, 391 ], 392 'authorize' => 393 [ 394 'type' => 'ldap', 395 ], 396 'autologin' => 397 [ 398 'modules' => 399 [ 400 'Remember', 401 'Guest', 402 'SingleSignon', 403 ], 404 ], 405 'preselect' => 406 [ 407 'modules' => 408 [ 409 'Ident', 410 'SSL', 411 'Cookie', 412 'DefaultUser' 413 ], 414 ], 415 'authenticate' => 416 [ 417 'modules' => 418 [ 419 'Database', 420 'Internal' 421 ], 422 ], 423 'newuser' => 424 [ 425 'autoadd' => true, 426 'autogroups' => '', 427 ], 428 'password' => 429 [ 430 'random_length' => 10, 431 'min_length' => 6, 432 'pepper' => '', 433 'deny_after_expiration_duration' => '3d', 434 'force_change_if_cleartext' => false, 435 ], 436 'http' => 437 [ 438 'url' => 'http://example.net/restricted-area', 439 ], 440 'authdb' => 441 [ 442 'enable' => false, 443 'type' => 'postgresql', 444 'user' => 'dbuser', 445 'password' => 'dbpassword', 446 'host' => '127.0.0.1', 447 'database' => 'dbname', 448 'persistent' => false, 449 'prepare' => false, 450 'sql' => 'select 1 from table where user={username} and password={password}', 451 'hash_algo' => 'md5', 452 'add' => true, 453 ], 454 'ssl' => 455 [ 456 'trust' => false, 457 'client_cert_dn_env' => 'SSL_CLIENT_S_DN_CN', 458 ], 459 'openid' => 460 [ 461 // Google has discontinued OpenID support as of July 22nd 2015 462 ], 463 'oidc' => 464 [ 465 // OpenID connect 466 'enabled' => true, 467 'provider' => [ 468 'google' => [ 469 'enabled' => false, 470 'label' => 'Google', 471 'url' => 'https://acounts.google.com', 472 'client_id' => 'xyz', 473 'client_secret' => 'mysecret' 474 ] 475 476 ], 477 'add'=>true 478 ], 479 'sso' => 480 [ 481 'enable' => false, 482 'url' => 'https://www.example.com/phpmyadmin/main.php?server=1', 483 'auth_param_name' => 'authid', 484 'auth_param_serialized' => true, 485 'cookie' => true, 486 'cookie_name' => '0', 487 'force' => true, 488 'expect' => '0', 489 'expect_regexp' => '/running on/', 490 'username_regexp' => '/running on localhost as ([a-z]+)@localhost/', 491 ], 492 'user' => 493 [ 494 'show_admin_mail' => true, 495 'show_mail' => false, 496 'send_message' => true, 497 ], 498 'content-security-policy' => true, 499 ], 500 'style' => // style key names max length is 64 chars 501 [ 502 /* 503 'earlgrey' => 504 [ 505 'name' => 'Earl grey', 506 'defaults' => [ 507 'main_title_background_color' => 'grey', 508 'main_title_text_color' => 'white', 509 'text_color' => 'black', 510 'background_color' => '#e9e9e9', 511 'inactive_background_color' => 'silver', 512 ] 513 ],*/ 514 'elastique' => 515 [ 516 'name' => 'Elastique', // Taken from roundcube's elastic theme 517 'schemes' => [ 518 'dark'=> [ 519 'main_title_background_color' => '#21292C', 520 'main_title_text_color' => '#C5D1D3', 521 'nav_title_background_color' => '#21292C', 522 'nav_title_text_color' => '#C5D1D3', 523 'text_color' => '#C5D1D3', 524 'background_color' => '#21292C', 525 'inactive_background_color' => '#21292C', 526 ], 527 'light'=> [ 528 'main_title_background_color' => '#FFFFFF', 529 'main_title_text_color' => '#2C363A', 530 'main_background_color' => '#E4E4E4', 531 'main_text_color' => '#2C363A', 532 'nav_background_color' => '#2F3A3F', 533 'nav_text_color' => '#FFFFFF', 534 'background_color' => '#E4E4E4', 535 'text_color' => '#2C363A', 536 'inactive_background_color' => '#44475a', 537 ] 538 ], 539 'defaults'=> [ 540 'image_color' => '#3687AD', 541 ] 542 ], 543 'elastiquedark' => 544 [ 545 'name' => 'Elastique dark', 546 'schemes' => [ 547 ], 548 'defaults'=> [ 549 'main_title_background_color' => '#21292C', 550 'main_title_text_color' => '#C5D1D3', 551 'nav_title_background_color' => '#21292C', 552 'nav_title_text_color' => '#C5D1D3', 553 'text_color' => '#C5D1D3', 554 'background_color' => '#21292C', 555 'inactive_background_color' => '#21292C', 556 'image_color' => '#3687AD', 557 ] 558 ], 559 /* 560 'moorweide' => 561 [ 562 'name' => 'Moorweide daylight', // Moorweide is a green place in hamburg city 563 'defaults' => [ 564 'main_title_background_color' => '#EDF6F2', 565 'main_title_text_color' => '#4D4C4C', 566 'text_color' => 'black', 567 'background_color' => 'white', 568 'inactive_background_color' => 'white', 569 'nav_background_color' => '#EDF6F2', 570 'nav_text_color' => '#4D4C4C', 571 'image_color' => '#00A075', 572 ] 573 ],*/ 574 'jawed' => 575 [ 576 'name' => 'Jawed', // Jawed Karim is one of the YT founders 577 'schemes' => [ 578 'dark'=> [ 579 'main_background_color' => '#181818', 580 'background_color' => '#202020', 581 'nav_background_color' => '#202020', 582 'text_color' => '#FFFFFF', 583 ], 584 'light'=> [ 585 'main_background_color' => '#F9F9F9', 586 'background_color' => '#FFFFFF', 587 'nav_background_color' => '#FFFFFF', 588 'text_color' => '#030303', 589 ] 590 ], 591 'defaults'=> [ 592 'image_color' => '#FF0000', 593 ] 594 ], 595 'dracula' => 596 [ 597 'name' => 'Dracula', 598 'defaults' => [ 599 'main_title_background_color' => '#44475a', 600 'main_title_text_color' => '#f8f8f2', 601 'nav_title_background_color' => '#44475a', 602 'nav_title_text_color' => '#f8f8f2', 603 'text_color' => '#f8f8f2', 604 'background_color' => '#282a36', 605 'inactive_background_color' => '#44475a', 606 'image_color' => 'orange', 607 ] 608 ], 609 /* 610 'modern' => 611 [ 612 'name' => 'Blue sky', 613 'defaults' => [ 614 'main_title_background_color' => '#3F6194', 615 'main_title_text_color' => 'white', 616 'nav_title_background_color' => '#79afd9', 617 'nav_background_color' => '#e1effa', 618 'text_color' => 'black', 619 'background_color' => '#F3F3F3', 620 'inactive_background_color' => '#CCCCCC', 621 ] 622 ],*/ 623 /* 624 'dark' => 625 [ 626 'name' => 'Dark night', 627 'defaults' => [ 628 'main_background_color' => '#232525', 629 'main_text_color' => '#a8b7c6', 630 'text_color' => '#afb1b3', 631 'background_color' => '#3c3f41', 632 'nav_text_color' => '#afb1b3', 633 'nav_background_color' => '#3c3f41', 634 'inactive_background_color' => '#313335', 635 'image_color' => '#3e86a0', 636 ] 637 ],*/ 638 /*'mono' => 639 [ 640 'name' => 'Monochrome', 641 'schemes' => [ 642 'dark'=> [ 643 'text_color' => 'white', 644 'background_color' => 'black', 645 ], 646 'light'=>[ 647 'text_color' => 'black', 648 'background_color' => 'white', 649 650 ], 651 ], 652 'defaults' => [ 653 'transition_duration' => '0' 654 ], 655 ],*/ 656 ], 657 'theme' => 658 [ 659 'favicon' => 'modules/cms/ui/themes/default/images/openrat-logo.ico', 660 ], 661 'wiki' => 662 [ 663 'convert_html' => true, 664 'convert_bbcode' => true, 665 'tag_strong' => '*', 666 'tag_emphatic' => '_', 667 ], 668 'application' => 669 [ 670 'name' => Startup::TITLE, 671 'version' => Startup::VERSION, 672 'operator' => '', 673 ], 674 'production' => true, 675 'ui' => 676 [ 677 'keybinding' => 678 [ 679 'method' => 680 [ 681 'prop' => 'F4', 682 'add' => 'F1', 683 'pub' => 'F8', 684 'archive' => '', 685 'rights' => '', 686 ], 687 'action' => 688 [ 689 'profile' => 'ALT+P', 690 ], 691 ], 692 ], 693 ]; 694 } 695 }