File modules/cms/base/DefaultConfig.class.php
Last commit: Sat Dec 7 20:34:52 2024 +0100 Jan Dankert UI: New Selection for user color scheme.
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 246 'mail' => 247 [ 248 'enabled' => true, 249 'from' => 'OpenRat <user@example.com>', 250 'signature' => '', 251 'cc' => '', 252 'bcc' => '', 253 'priority' => '', 254 'header_encoding' => 'Quoted-printable', 255 'client' => 'php', 256 'whitelist' => [], 257 'blacklist' => [], 258 'smtp' => 259 [ 260 'host' => 'localhost', 261 'port' => '25', 262 'auth_username' => '', 263 'auth_password' => '', 264 'timeout' => 45, 265 'localhost' => '', 266 'tls' => false, 267 'ssl' => false, 268 ], 269 ], 270 'publish' => 271 [ 272 'edit' => true, 273 'default' => 'index', 274 'format' => '{filename}{language_sep}{language}{type_sep}{type}', 275 'language_sep' => '.', 276 'type_sep' => '.', 277 'filename_language' => 'auto', 278 'filename_type' => 'always', 279 'style' => 'id', 280 'url' => 'relative', 281 'enable_php_in_page_content' => false, 282 'enable_php_in_file_content' => false, 283 'escape_8bit_characters' => false, 284 'encode_utf8_in_html' => true, 285 'negotiation' => 286 [ 287 'page_negotiate_type' => true, 288 'page_negotiate_language' => true, 289 'file_negotiate_type' => true, 290 ], 291 'filesystem' => 292 [ 293 'per_project' => true, 294 'directory' => '/var/www/', 295 ], 296 'command' => 297 [ 298 'per_project' => true, 299 'enable' => false, 300 'command' => '', 301 ], 302 'ftp' => 303 [ 304 'enable' => true, 305 'per_project' => true, 306 'port' => '21', 307 'host' => '', 308 'path' => '', 309 'user' => 'anonymous', 310 'pass' => 'mail@example.com', 311 ], 312 'set_modification_date' => true, 313 ], 314 'replace' => 315 [ 316 'euro' => 'EUR,€', 317 'copy' => '(c),©', 318 ], 319 'search' => 320 [ 321 'minlength' => 3, 322 'quicksearch' => 323 [ 324 'flag' => 325 [ 326 'id' => true, 327 'name' => true, 328 'filename' => true, 329 'description' => true, 330 'content' => false, 331 ], 332 ], 333 ], 334 'security' => 335 [ 336 'key' => 'OAp5M3GYvm2U7r1FEdvVhqDBxJjMTWgKvN8VfJrHLa7D9pVdrYkMyA', 337 'authorization' => [ 338 'basic' => true, 339 'bearer' => false, 340 ], 341 'cookie' => 342 [ 343 'secure' => false, 344 'httponly' => true, 345 'samesite' => 'Lax', 346 'expire' => 720, 347 ], 348 'readonly' => false, 349 'nopublish' => false, 350 'umask' => '0', 351 'chmod' => '0', 352 'chmod_dir' => '0', 353 '' => '0', 354 'disable_dynamic_code' => true, 355 'show_system_info' => true, 356 'use_post_token' => true, 357 'default' => 358 [ 359 'username' => '', 360 'password' => '', 361 ], 362 'guest' => 363 [ 364 'enable' => false, 365 'user' => 'guest', 366 ], 367 'login' => 368 [ 369 'type' => 'form', 370 ], 371 'auth' => 372 [ 373 'type' => 'database', 374 'userdn' => false, 375 ], 376 'authorize' => 377 [ 378 'type' => 'ldap', 379 ], 380 'autologin' => 381 [ 382 'modules' => 383 [ 384 'Remember', 385 'Guest', 386 'SingleSignon', 387 ], 388 ], 389 'preselect' => 390 [ 391 'modules' => 392 [ 393 'Ident', 394 'SSL', 395 'Cookie', 396 'DefaultUser' 397 ], 398 ], 399 'authenticate' => 400 [ 401 'modules' => 402 [ 403 'Database', 404 'Internal' 405 ], 406 ], 407 'newuser' => 408 [ 409 'autoadd' => true, 410 'autogroups' => '', 411 ], 412 'password' => 413 [ 414 'random_length' => 10, 415 'min_length' => 6, 416 'pepper' => '', 417 'deny_after_expiration_duration' => '3d', 418 'force_change_if_cleartext' => false, 419 ], 420 'http' => 421 [ 422 'url' => 'http://example.net/restricted-area', 423 ], 424 'authdb' => 425 [ 426 'enable' => false, 427 'type' => 'postgresql', 428 'user' => 'dbuser', 429 'password' => 'dbpassword', 430 'host' => '127.0.0.1', 431 'database' => 'dbname', 432 'persistent' => false, 433 'prepare' => false, 434 'sql' => 'select 1 from table where user={username} and password={password}', 435 'hash_algo' => 'md5', 436 'add' => true, 437 ], 438 'ssl' => 439 [ 440 'trust' => false, 441 'client_cert_dn_env' => 'SSL_CLIENT_S_DN_CN', 442 ], 443 'openid' => 444 [ 445 // Google has discontinued OpenID support as of July 22nd 2015 446 ], 447 'oidc' => 448 [ 449 // OpenID connect 450 'enabled' => true, 451 'provider' => [ 452 'google' => [ 453 'enabled' => false, 454 'label' => 'Google', 455 'url' => 'https://acounts.google.com', 456 'client_id' => 'xyz', 457 'client_secret' => 'mysecret' 458 ] 459 460 ], 461 'add'=>true 462 ], 463 'sso' => 464 [ 465 'enable' => false, 466 'url' => 'https://www.example.com/phpmyadmin/main.php?server=1', 467 'auth_param_name' => 'authid', 468 'auth_param_serialized' => true, 469 'cookie' => true, 470 'cookie_name' => '0', 471 'force' => true, 472 'expect' => '0', 473 'expect_regexp' => '/running on/', 474 'username_regexp' => '/running on localhost as ([a-z]+)@localhost/', 475 ], 476 'user' => 477 [ 478 'show_admin_mail' => true, 479 'show_mail' => false, 480 'send_message' => true, 481 ], 482 'content-security-policy' => true, 483 ], 484 'style' => // style key names max length is 64 chars 485 [ 486 'earlgrey' => 487 [ 488 'name' => 'Earl grey', 489 'schemes' => [ 490 'dark'=> [ 491 'main_background_color' => '#232525', 492 'main_text_color' => '#a8b7c6', 493 'text_color' => '#afb1b3', 494 'background_color' => '#3c3f41', 495 'nav_text_color' => '#afb1b3', 496 'nav_background_color' => '#3c3f41', 497 'inactive_background_color' => '#313335', 498 'image_color' => '#3e86a0', 499 ], 500 'light'=> [ 501 'main_title_background_color' => 'grey', 502 'main_title_text_color' => 'white', 503 'text_color' => 'black', 504 'background_color' => '#e9e9e9', 505 'inactive_background_color' => 'silver', 506 ], 507 ], 508 'defaults' => [ 509 ] 510 ], 511 'elastique' => 512 [ 513 'name' => 'Elastique', // Taken from roundcube's elastic theme 514 'schemes' => [ 515 'dark'=> [ 516 'main_title_background_color' => '#21292C', 517 'main_title_text_color' => '#C5D1D3', 518 'nav_title_background_color' => '#21292C', 519 'nav_title_text_color' => '#C5D1D3', 520 'text_color' => '#C5D1D3', 521 'background_color' => '#21292C', 522 'inactive_background_color' => '#21292C', 523 ], 524 'light'=> [ 525 'main_title_background_color' => '#FFFFFF', 526 'main_title_text_color' => '#2C363A', 527 'main_background_color' => '#E4E4E4', 528 'main_text_color' => '#2C363A', 529 'nav_background_color' => '#2F3A3F', 530 'nav_text_color' => '#FFFFFF', 531 'background_color' => '#E4E4E4', 532 'text_color' => '#2C363A', 533 'inactive_background_color' => '#44475a', 534 ] 535 ], 536 'defaults'=> [ 537 'image_color' => '#3687AD', 538 ] 539 ], 540 'moorweide' => 541 [ 542 'name' => 'Moorweide', // Moorweide is a green place in hamburg city 543 'schemes' => [ 544 'dark' => [ 545 'main_title_background_color' => '#44475a', 546 'main_title_text_color' => '#f8f8f2', 547 'nav_title_background_color' => '#44475a', 548 'nav_title_text_color' => '#f8f8f2', 549 'text_color' => '#f8f8f2', 550 'background_color' => '#282a36', 551 'inactive_background_color' => '#44475a', 552 ], 553 'light'=> [ 554 'main_title_background_color' => '#EDF6F2', 555 'main_title_text_color' => '#4D4C4C', 556 'text_color' => 'black', 557 'background_color' => 'white', 558 'inactive_background_color' => 'white', 559 'nav_background_color' => '#EDF6F2', 560 'nav_text_color' => '#4D4C4C', 561 ], 562 ], 563 564 'defaults' => [ 565 'image_color' => '#00A075', 566 ] 567 ], 568 'jawed' => 569 [ 570 'name' => 'Jawed', // Jawed Karim is one of the YT founders 571 'schemes' => [ 572 'dark'=> [ 573 'main_background_color' => '#181818', 574 'background_color' => '#202020', 575 'nav_background_color' => '#202020', 576 'text_color' => '#FFFFFF', 577 ], 578 'light'=> [ 579 'main_background_color' => '#F9F9F9', 580 'background_color' => '#FFFFFF', 581 'nav_background_color' => '#FFFFFF', 582 'text_color' => '#030303', 583 ] 584 ], 585 'defaults'=> [ 586 'image_color' => '#FF0000', 587 ] 588 ], 589 'dracula' => 590 [ 591 'name' => 'Dracula', 592 'schemes' => [ 593 'dark' => [ 594 'main_title_background_color' => '#44475a', 595 'main_title_text_color' => '#f8f8f2', 596 'nav_title_background_color' => '#44475a', 597 'nav_title_text_color' => '#f8f8f2', 598 'text_color' => '#f8f8f2', 599 'background_color' => '#282a36', 600 'inactive_background_color' => '#44475a', 601 ], 602 'light'=> [ 603 'main_title_background_color' => '#FFFFFF', 604 'main_title_text_color' => '#2C363A', 605 'main_background_color' => '#E4E4E4', 606 'main_text_color' => '#2C363A', 607 'nav_title_background_color' => '#44475a', 608 'nav_title_text_color' => '#f8f8f2', 609 'background_color' => '#E4E4E4', 610 'text_color' => '#2C363A', 611 'inactive_background_color' => '#44475a', 612 ], 613 ], 614 'defaults' => [ 615 'image_color' => 'orange', 616 ] 617 ], 618 'modern' => 619 [ 620 'name' => 'Blue sky', 621 'schemes' => [ 622 'light' => [ 623 'main_title_background_color' => '#3F6194', 624 'main_title_text_color' => 'white', 625 'nav_title_background_color' => '#79afd9', 626 'nav_background_color' => '#e1effa', 627 'text_color' => 'black', 628 'background_color' => '#F3F3F3', 629 'inactive_background_color' => '#CCCCCC', 630 ], 631 'dark' => [ 632 'main_background_color' => '#232525', 633 'main_text_color' => '#a8b7c6', 634 'text_color' => '#afb1b3', 635 'background_color' => '#3c3f41', 636 'nav_text_color' => '#afb1b3', 637 'nav_background_color' => '#3c3f41', 638 'inactive_background_color' => '#313335', 639 'image_color' => '#3e86a0', 640 ], 641 ], 642 ], 643 'mono' => 644 [ 645 'name' => 'Monochrome', 646 'schemes' => [ 647 'dark'=> [ 648 'text_color' => 'white', 649 'background_color' => 'black', 650 ], 651 'light'=>[ 652 'text_color' => 'black', 653 'background_color' => 'white', 654 655 ], 656 ], 657 'defaults' => [ 658 'transition_duration' => '0' 659 ], 660 ], 661 ], 662 'theme' => 663 [ 664 'favicon' => 'modules/cms/ui/themes/default/images/openrat-logo.ico', 665 ], 666 'wiki' => 667 [ 668 'convert_html' => true, 669 'convert_bbcode' => true, 670 'tag_strong' => '*', 671 'tag_emphatic' => '_', 672 ], 673 'application' => 674 [ 675 'name' => Startup::TITLE, 676 'version' => Startup::VERSION, 677 'operator' => '', 678 ], 679 'production' => true, 680 'ui' => 681 [ 682 'keybinding' => 683 [ 684 'method' => 685 [ 686 'prop' => 'F4', 687 'add' => 'F1', 688 'pub' => 'F8', 689 'archive' => '', 690 'rights' => '', 691 ], 692 'action' => 693 [ 694 'profile' => 'ALT+P', 695 ], 696 ], 697 ], 698 ]; 699 } 700 }
Downloadmodules/cms/base/DefaultConfig.class.php
History Sat, 7 Dec 2024 20:34:52 +0100 Jan Dankert UI: New Selection for user color scheme. Thu, 16 Feb 2023 22:57:35 +0100 Jan Dankert New: More functions (adding, deleting) for tags. Thu, 28 Apr 2022 00:28:24 +0200 Jan Dankert New: Login with Json webtoken (JWT) Wed, 1 Dec 2021 00:34:06 +0100 dankert Removed 2 themes: Dark, Moorweide. Mon, 29 Nov 2021 22:30:24 +0100 Jan Dankert New: New Themes "Jawed" (YT clone) and removed some older themes. Mon, 29 Nov 2021 01:22:40 +0100 Jan Dankert New: Themes may contain multiple color schemes (for now only "dark" and "light"), modern browsers are selecting the right scheme. Sun, 28 Nov 2021 23:18:53 +0100 Jan Dankert Refactoring: Extracting default config to action class (do not know if this is good) Tue, 9 Nov 2021 00:35:42 +0100 Jan Dankert Fixes: Reading and writing template sources with the new content table. Wed, 27 Oct 2021 02:27:59 +0200 Jan Dankert Refactoring: Splitted the mail client into a.) sendmail and b.) smtp. Wed, 21 Apr 2021 21:15:17 +0200 Jan Dankert New: Accept human readable values for durations and memory sizes in the configuration. Mon, 22 Feb 2021 23:51:21 +0100 Jan Dankert Better look of styles. Fri, 12 Feb 2021 00:43:08 +0100 Jan Dankert New: Style colors; Fix: Mobile navigation, global search. Wed, 10 Feb 2021 23:05:46 +0100 Jan Dankert Moving the search form upon the navigation, because the search is more like a navigation. Wed, 10 Feb 2021 22:04:26 +0100 Jan Dankert Provide the theme configuration through a class. Thu, 12 Nov 2020 01:12:45 +0100 Jan Dankert Fix: Workflow for changing the users email adress; Mail sending; Forwarding forms Wed, 11 Nov 2020 20:53:45 +0100 Jan Dankert Cleaned up some view. Tue, 10 Nov 2020 00:35:56 +0100 Jan Dankert Navigation gets same color as the view. Sun, 1 Nov 2020 03:08:55 +0100 Jan Dankert Replaced the calls to "Configuration::rawConfig()" with the OO style calls; Cleanup LoginAction. Sun, 1 Nov 2020 00:36:50 +0100 Jan Dankert Refactoring: Only using the configuration object. Sat, 31 Oct 2020 00:43:29 +0100 Jan Dankert New: Support for OpenId Connect; Removed: Support for LDAP. Sat, 24 Oct 2020 00:23:19 +0200 Jan Dankert Fix: Do not set strict cookies (as they are not send on the first request); Using new configuraton class. Fri, 23 Oct 2020 23:09:52 +0200 Jan Dankert Refactoring: Using the new config classes. Fri, 23 Oct 2020 15:58:08 +0200 Jan Dankert Fix: database port needs a default value. Fri, 23 Oct 2020 10:31:36 +0200 Jan Dankert If the PDO DSN is not configured, it is generated. Wed, 14 Oct 2020 23:49:54 +0200 Jan Dankert Refactoring: Creating the target instance with a Factory (Java style); Asynchronous publishing of files. Fri, 2 Oct 2020 23:11:48 +0200 Jan Dankert Cleanup: No '.inputholder' any more, notices with links to objects. Tue, 29 Sep 2020 23:29:40 +0200 Jan Dankert Cleanup the 'moorweide'-theme. Tue, 29 Sep 2020 01:13:54 +0200 Jan Dankert Fix: The search function now finds objects id with a length less than 3. Sat, 26 Sep 2020 18:46:36 +0200 Jan Dankert Now compatible with PHP 5.4 again. Sat, 26 Sep 2020 13:11:23 +0200 Jan Dankert Refactoring: No global variables any more. All constants are capsulated by classes. Sat, 26 Sep 2020 00:08:15 +0200 Jan Dankert Faster implementation for the defaultl config - only 1 statement. Fri, 25 Sep 2020 23:59:08 +0200 Jan Dankert Refactoring: capsulate the default config in a class.