1<?php 2# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team) 3# All rights reserved. See LICENSE file for licensing details 4 5 // Here be dragons and NO application logic! 6 7 $res = array(); 8 $res['database'] = 9 array('title' => INSTALL_CAT_DB, 10 'description' => INSTALL_CAT_DB_DESC, 11 'items' => array(array('var' => 'dbType', 12 'title' => INSTALL_DBTYPE, 13 'description' => INSTALL_DBTYPE_DESC, 14 'type' => 'list', 15 'default' => array(), 16 'permission' => 'siteConfiguration', 17 'flags' => array('nosave', 'simpleInstall', 'probeDefault')), 18 19 array('var' => 'dbHost', 20 'title' => INSTALL_DBHOST, 21 'description' => INSTALL_DBHOST_DESC, 22 'type' => 'string', 23 'default' => 'localhost', 24 'permission' => 'siteConfiguration', 25 'flags' => array('nosave', 'simpleInstall')), 26 27 array('var' => 'dbUser', 28 'title' => INSTALL_DBUSER, 29 'description' => INSTALL_DBUSER_DESC, 30 'type' => 'string', 31 'default' => 'serendipity', 32 'permission' => 'siteConfiguration', 33 'flags' => array('nosave', 'simpleInstall')), 34 35 array('var' => 'ignore_password', 36 'title' => 'Ignore', 37 'description' => 'Ignore, just to catch the browser filling in the wrong password', 38 'type' => 'fullprotected', 39 'default' => '', 40 'permission' => 'siteConfiguration', 41 'flags' => array('nosave', 'hideValue', 'simpleInstall', 'ignore')), 42 43 array('var' => 'dbPass', 44 'title' => INSTALL_DBPASS, 45 'description' => INSTALL_DBPASS_DESC, 46 'type' => 'fullprotected', 47 'default' => '', 48 'permission' => 'siteConfiguration', 49 'flags' => array('nosave', 'hideValue', 'simpleInstall')), 50 51 array('var' => 'dbName', 52 'title' => INSTALL_DBNAME, 53 'description' => INSTALL_DBNAME_DESC, 54 'type' => 'string', 55 'default' => 'serendipity', 56 'permission' => 'siteConfiguration', 57 'flags' => array('nosave', 'simpleInstall')), 58 59 array('var' => 'dbPrefix', 60 'title' => INSTALL_DBPREFIX, 61 'description' => INSTALL_DBPREFIX_DESC, 62 'type' => 'string', 63 'default' => 'serendipity_', 64 'permission' => 'siteConfiguration', 65 'flags' => array('nosave')), 66 67 array('var' => 'dbPersistent', 68 'title' => INSTALL_DBPERSISTENT, 69 'description' => INSTALL_DBPERSISTENT_DESC, 70 'type' => 'bool', 71 'default' => false, 72 'permission' => 'siteConfiguration', 73 'flags' => array('nosave')), 74 75 array('var' => 'dbNames', 76 'title' => INSTAL_DB_UTF8, 77 'description' => INSTAL_DB_UTF8_DESC, 78 'type' => 'bool', 79 'default' => true, 80 'permission' => 'siteConfiguration') 81 )); 82 83 $res['paths'] = 84 array('title' => INSTALL_CAT_PATHS, 85 'description' => INSTALL_CAT_PATHS_DESC, 86 'items' => array(array('var' => 'serendipityPath', 87 'title' => INSTALL_FULLPATH, 88 'description' => INSTALL_FULLPATH_DESC, 89 'type' => 'string', 90 'permission' => 'siteConfiguration', 91 'default' => '/webroot/serendipity/'), 92 93 array('var' => 'uploadPath', 94 'title' => INSTALL_UPLOADPATH, 95 'description' => INSTALL_UPLOADPATH_DESC, 96 'type' => 'string', 97 'permission' => 'siteConfiguration', 98 'default' => 'uploads/'), 99 100 array('var' => 'serendipityHTTPPath', 101 'title' => INSTALL_RELPATH, 102 'description' => INSTALL_RELPATH_DESC, 103 'type' => 'string', 104 'permission' => 'siteConfiguration', 105 'default' => '/serendipity/'), 106 107 array('var' => 'templatePath', 108 'title' => INSTALL_RELTEMPLPATH, 109 'description' => INSTALL_RELTEMPLPATH_DESC, 110 'type' => 'string', 111 'permission' => 'siteConfiguration', 112 'default' => 'templates/'), 113 114 array('var' => 'uploadHTTPPath', 115 'title' => INSTALL_RELUPLOADPATH, 116 'description' => INSTALL_RELUPLOADPATH_DESC, 117 'type' => 'string', 118 'permission' => 'siteConfiguration', 119 'default' => 'uploads/'), 120 121 array('var' => 'defaultBaseURL', 122 'title' => INSTALL_URL, 123 'description' => INSTALL_URL_DESC, 124 'type' => 'string', 125 'permission' => 'siteConfiguration', 126 'default' => 'http://www.example.com/serendipity/'), 127 128 array('var' => 'autodetect_baseURL', 129 'title' => INSTALL_AUTODETECT_URL, 130 'description' => INSTALL_AUTODETECT_URL_DESC, 131 'type' => 'bool', 132 'permission' => 'siteConfiguration', 133 'default' => false), 134 135 array('var' => 'indexFile', 136 'title' => INSTALL_INDEXFILE, 137 'description' => INSTALL_INDEXFILE_DESC, 138 'type' => 'string', 139 'permission' => 'siteConfiguration', 140 'default' => 'index.php'), 141 )); 142 143 144 $res['permalinks'] = 145 array('title' => INSTALL_CAT_PERMALINKS, 146 'description' => INSTALL_CAT_PERMALINKS_DESC, 147 'items' => array( 148 array('var' => 'permalinkStructure', 149 'title' => INSTALL_PERMALINK, 150 'description' => INSTALL_PERMALINK_DESC, 151 'type' => 'string', 152 'default' => 'archives/%id%-%title%.html', 153 'permission' => 'siteConfiguration', 154 'flags' => array('ifEmpty')), 155 156 array('var' => 'permalinkAuthorStructure', 157 'title' => INSTALL_PERMALINK_AUTHOR, 158 'description' => INSTALL_PERMALINK_AUTHOR_DESC, 159 'type' => 'string', 160 'default' => 'authors/%id%-%realname%', 161 'permission' => 'siteConfiguration', 162 'flags' => array('ifEmpty')), 163 164 array('var' => 'permalinkCategoryStructure', 165 'title' => INSTALL_PERMALINK_CATEGORY, 166 'description' => INSTALL_PERMALINK_CATEGORY_DESC, 167 'type' => 'string', 168 'default' => 'categories/%id%-%name%', 169 'permission' => 'siteConfiguration', 170 'flags' => array('ifEmpty')), 171 172 array('var' => 'permalinkFeedCategoryStructure', 173 'title' => INSTALL_PERMALINK_FEEDCATEGORY, 174 'description' => INSTALL_PERMALINK_FEEDCATEGORY_DESC, 175 'type' => 'string', 176 'default' => 'feeds/categories/%id%-%name%.rss', 177 'permission' => 'siteConfiguration', 178 'flags' => array('ifEmpty')), 179 180 array('var' => 'permalinkFeedAuthorStructure', 181 'title' => INSTALL_PERMALINK_FEEDAUTHOR, 182 'description' => INSTALL_PERMALINK_FEEDAUTHOR_DESC, 183 'type' => 'string', 184 'default' => 'feeds/authors/%id%-%realname%.rss', 185 'permission' => 'siteConfiguration', 186 'flags' => array('ifEmpty')), 187 188 array('var' => 'permalinkArchivesPath', 189 'title' => INSTALL_PERMALINK_ARCHIVESPATH, 190 'description' => CONFIG_PERMALINK_PATH_DESC, 191 'type' => 'string', 192 'default' => 'archives', 193 'permission' => 'siteConfiguration', 194 'flags' => array('ifEmpty')), 195 196 array('var' => 'permalinkCategoriesPath', 197 'title' => INSTALL_PERMALINK_CATEGORIESPATH, 198 'description' => CONFIG_PERMALINK_PATH_DESC, 199 'type' => 'string', 200 'default' => 'categories', 201 'permission' => 'siteConfiguration', 202 'flags' => array('ifEmpty')), 203 204 array('var' => 'permalinkAuthorsPath', 205 'title' => INSTALL_PERMALINK_AUTHORSPATH, 206 'description' => CONFIG_PERMALINK_PATH_DESC, 207 'type' => 'string', 208 'default' => 'authors', 209 'permission' => 'siteConfiguration', 210 'flags' => array('ifEmpty')), 211 212 array('var' => 'permalinkUnsubscribePath', 213 'title' => INSTALL_PERMALINK_UNSUBSCRIBEPATH, 214 'description' => CONFIG_PERMALINK_PATH_DESC, 215 'type' => 'string', 216 'default' => 'unsubscribe', 217 'permission' => 'siteConfiguration', 218 'flags' => array('ifEmpty')), 219 220 array('var' => 'permalinkDeletePath', 221 'title' => INSTALL_PERMALINK_DELETEPATH, 222 'description' => CONFIG_PERMALINK_PATH_DESC, 223 'type' => 'string', 224 'default' => 'delete', 225 'permission' => 'siteConfiguration', 226 'flags' => array('ifEmpty')), 227 228 array('var' => 'permalinkApprovePath', 229 'title' => INSTALL_PERMALINK_APPROVEPATH, 230 'description' => CONFIG_PERMALINK_PATH_DESC, 231 'type' => 'string', 232 'default' => 'approve', 233 'permission' => 'siteConfiguration', 234 'flags' => array('ifEmpty')), 235 236 array('var' => 'permalinkFeedsPath', 237 'title' => INSTALL_PERMALINK_FEEDSPATH, 238 'description' => CONFIG_PERMALINK_PATH_DESC, 239 'type' => 'string', 240 'default' => 'feeds', 241 'permission' => 'siteConfiguration', 242 'flags' => array('ifEmpty')), 243 244 array('var' => 'permalinkPluginPath', 245 'title' => INSTALL_PERMALINK_PLUGINPATH, 246 'description' => CONFIG_PERMALINK_PATH_DESC, 247 'type' => 'string', 248 'default' => 'plugin', 249 'permission' => 'siteConfiguration', 250 'flags' => array('ifEmpty')), 251 252 array('var' => 'permalinkAdminPath', 253 'title' => INSTALL_PERMALINK_ADMINPATH, 254 'description' => CONFIG_PERMALINK_PATH_DESC, 255 'type' => 'string', 256 'default' => 'admin', 257 'permission' => 'siteConfiguration', 258 'flags' => array('ifEmpty')), 259 260 array('var' => 'permalinkSearchPath', 261 'title' => INSTALL_PERMALINK_SEARCHPATH, 262 'description' => CONFIG_PERMALINK_PATH_DESC, 263 'type' => 'string', 264 'default' => 'search', 265 'permission' => 'siteConfiguration', 266 'flags' => array('ifEmpty')), 267 268 array('var' => 'permalinkCommentsPath', 269 'title' => INSTALL_PERMALINK_COMMENTSPATH, 270 'description' => CONFIG_PERMALINK_PATH_DESC, 271 'type' => 'string', 272 'default' => 'comments', 273 'permission' => 'siteConfiguration', 274 'flags' => array('ifEmpty')), 275 276 ) 277 ); 278 279 $res['settings'] = 280 array('title' => INSTALL_CAT_SETTINGS, 281 'description' => INSTALL_CAT_SETTINGS_DESC, 282 'items' => array(array('var' => 'user', 283 'title' => INSTALL_USERNAME, 284 'description' => INSTALL_USERNAME_DESC, 285 'type' => 'string', 286 'default' => 'John Doe', 287 'permission' => 'siteConfiguration', 288 'flags' => array('installOnly', 'local', 'simpleInstall')), 289 290 array('var' => 'pass', 291 'title' => INSTALL_PASSWORD, 292 'description' => INSTALL_PASSWORD_DESC, 293 'type' => 'fullprotected', 294 'default' => 'john', 295 'permission' => 'siteConfiguration', 296 'flags' => array('installOnly', 'local', 'simpleInstall')), 297 298 array('var' => 'pass2', 299 'title' => INSTALL_PASSWORD2, 300 'description' => INSTALL_PASSWORD2_DESC, 301 'type' => 'fullprotected', 302 'default' => 'john', 303 'permission' => 'siteConfiguration', 304 'flags' => array('installOnly', 'local', 'simpleInstall')), 305 306 array('var' => 'realname', 307 'title' => USERCONF_REALNAME, 308 'description' => USERCONF_REALNAME_DESC, 309 'type' => 'string', 310 'default' => 'John Doe', 311 'permission' => 'siteConfiguration', 312 'flags' => array('installOnly', 'local', 'simpleInstall')), 313 314 array('var' => 'email', 315 'title' => INSTALL_EMAIL, 316 'description' => INSTALL_EMAIL_DESC, 317 'type' => 'string', 318 'default' => 'john@example.com', 319 'permission' => 'siteConfiguration', 320 'flags' => array('installOnly', 'local', 'simpleInstall')), 321 322 array('var' => 'want_mail', 323 'title' => INSTALL_SENDMAIL, 324 'description' => INSTALL_SENDMAIL_DESC, 325 'type' => 'bool', 326 'default' => true, 327 'permission' => 'siteConfiguration', 328 'flags' => array('installOnly', 'local')), 329 330 array('var' => 'blogTitle', 331 'title' => INSTALL_BLOGNAME, 332 'description' => INSTALL_BLOGNAME_DESC, 333 'type' => 'string', 334 'default' => 'John Doe\'s personal blog', 335 'permission' => 'blogConfiguration', 336 'flags' => array('simpleInstall')), 337 338 array('var' => 'blogDescription', 339 'title' => INSTALL_BLOGDESC, 340 'description' => INSTALL_BLOGDESC_DESC, 341 'type' => 'string', 342 'default' => 'My little place on the web...', 343 'permission' => 'blogConfiguration', 344 'flags' => array('simpleInstall')), 345 346 array('var' => 'blogMail', 347 'title' => INSTALL_BLOG_EMAIL, 348 'description' => INSTALL_BLOG_EMAIL_DESC, 349 'type' => 'string', 350 'permission' => 'blogConfiguration', 351 'default' => ''), 352 353 array('var' => 'allowSubscriptions', 354 'title' => INSTALL_SUBSCRIBE, 355 'description' => INSTALL_SUBSCRIBE_DESC, 356 'type' => 'list', 357 'default' => array('fulltext' => FULL_COMMENT_TEXT, 'true' => YES, 'false' => NO), 358 'permission' => 'siteConfiguration'), 359 360 array('var' => 'allowSubscriptionsOptIn', 361 'title' => INSTALL_SUBSCRIBE_OPTIN, 362 'description' => INSTALL_SUBSCRIBE_OPTIN_DESC, 363 'type' => 'bool', 364 'default' => true, 365 'permission' => 'siteConfiguration'), 366 367 array('var' => 'useCommentTokens', 368 'title' => COMMENT_TOKENS, 369 'description' => COMMENT_TOKENS_DESC, 370 'type' => 'bool', 371 'default' => false, 372 'permission' => 'blogConfiguration'), 373 374 array('var' => 'lang', 375 'title' => INSTALL_LANG, 376 'description' => INSTALL_LANG_DESC, 377 'type' => 'list', 378 'default' => $serendipity['languages'], 379 'permission' => 'siteConfiguration', 380 'flags' => array('simpleInstall')), 381 382 array('var' => 'charset', 383 'title' => INSTALL_CHARSET, 384 'description' => INSTALL_CHARSET_DESC, 385 'type' => 'list', 386 'default' => $serendipity['charsets'], 387 'permission' => 'siteConfiguration'), 388 389 array('var' => 'calendar', 390 'title' => INSTALL_CAL, 391 'description' => INSTALL_CAL_DESC, 392 'type' => 'list', 393 'permission' => 'blogConfiguration', 394 'default' => $serendipity['calendars']), 395 396 array('var' => 'lang_content_negotiation', 397 'title' => AUTOLANG, 398 'description' => AUTOLANG_DESC, 399 'type' => 'bool', 400 'default' => false, 401 'permission' => 'blogConfiguration'), 402 403 array('var' => 'enablePluginACL', 404 'title' => PERMISSION_FORBIDDEN_ENABLE, 405 'description' => PERMISSION_FORBIDDEN_ENABLE_DESC, 406 'type' => 'bool', 407 'default' => false, 408 'permission' => 'blogConfiguration'), 409 410 array('var' => 'updateCheck', 411 'title' => UPDATE_NOTIFICATION, 412 'description' => UPDATE_NOTIFICATION_DESC, 413 'type' => 'list', 414 'default' => array('stable' => UPDATE_STABLE, 'beta' => UPDATE_BETA, 'false' => NO), 415 'permission' => 'blogConfiguration'), 416 417 array('var' => 'logLevel', 418 'title' => LOG_LEVEL, 419 'description' => LOG_LEVEL_DESC, 420 'type' => 'list', 421 'default' => array('Off' => NO, 'error' => ERROR, 'debug' => DEBUG), 422 'permission' => 'blogConfiguration'), 423 424 array('var' => 'useInternalCache', 425 'title' => USE_CACHE, 426 'description' => USE_CACHE_DESC, 427 'type' => 'bool', 428 'default' => true, 429 'permission' => 'siteConfiguration'), 430 )); 431 432 $res['display'] = 433 array('title' => INSTALL_CAT_DISPLAY, 434 'description' => INSTALL_CAT_DISPLAY_DESC, 435 'items' => array(array('var' => 'fetchLimit', 436 'title' => INSTALL_FETCHLIMIT, 437 'description' => INSTALL_FETCHLIMIT_DESC, 438 'type' => 'int', 439 'default' => 15, 440 'permission' => 'blogConfiguration'), 441 442 array('var' => 'RSSfetchLimit', 443 'title' => INSTALL_RSSFETCHLIMIT, 444 'description' => INSTALL_RSSFETCHLIMIT_DESC, 445 'type' => 'int', 446 'default' => 15, 447 'permission' => 'blogConfiguration'), 448 449 array('var' => 'archiveSortStable', 450 'title' => ARCHIVE_SORT_STABLE, 451 'description' => ARCHIVE_SORT_STABLE_DESC, 452 'type' => 'bool', 453 'default' => true, 454 'permission' => 'blogConfiguration'), 455 456 array('var' => 'searchsort', 457 'title' => QUICKSEARCH_SORT, 458 'description' => '', 459 'type' => 'list', 460 'default' => array('timestamp' => DATE, 'relevance' => QUICKSEARCH_SORT_RELEVANCE), 461 'permission' => 'blogConfiguration'), 462 463 array('var' => 'enforce_RFC2616', 464 'title' => SYNDICATION_RFC2616, 465 'description' => SYNDICATION_RFC2616_DESC, 466 'type' => 'bool', 467 'default' => false, 468 'permission' => 'blogConfiguration'), 469 470 array('var' => 'useGzip', 471 'title' => INSTALL_USEGZIP, 472 'description' => INSTALL_USEGZIP_DESC, 473 'type' => 'bool', 474 'permission' => 'siteConfiguration', 475 'default' => false), 476 477 array('var' => 'enablePopup', 478 'title' => INSTALL_POPUP, 479 'description' => INSTALL_POPUP_DESC, 480 'type' => 'bool', 481 'default' => false, 482 'permission' => 'blogConfiguration'), 483 484 array('var' => 'embed', 485 'title' => INSTALL_EMBED, 486 'description' => INSTALL_EMBED_DESC, 487 'type' => 'bool', 488 'permission' => 'siteConfiguration', 489 'default' => 'false'), 490 491 array('var' => 'top_as_links', 492 'title' => INSTALL_SHOW_EXTERNAL_LINKS, 493 'description' => INSTALL_SHOW_EXTERNAL_LINKS_DESC, 494 'type' => 'bool', 495 'permission' => 'siteConfiguration', 496 'default' => false), 497 498 array('var' => 'trackReferrer', 499 'title' => INSTALL_TRACKREF, 500 'description' => INSTALL_TRACKREF_DESC, 501 'type' => 'bool', 502 'default' => true, 503 'permission' => 'blogConfiguration'), 504 505 array('var' => 'blockReferer', 506 'title' => INSTALL_BLOCKREF, 507 'description' => INSTALL_BLOCKREF_DESC, 508 'type' => 'string', 509 'default' => ';', 510 'permission' => 'blogConfiguration'), 511 512 array('var' => 'rewrite', 513 'title' => INSTALL_REWRITE, 514 'description' => INSTALL_REWRITE_DESC, 515 'type' => 'list', 516 'default' => array(), 517 'permission' => 'siteConfiguration', 518 'flags' => array('probeDefault')) 519 )); 520 521 if(function_exists('date_default_timezone_set')) { 522 $res['display']['items'][] = array('var' => 'useServerOffset', 523 'title' => INSTALL_OFFSET_ON_SERVER_TIME, 524 'description' => INSTALL_OFFSET_ON_SERVER_TIME_DESC, 525 'type' => 'bool', 526 'default' => true, 527 'permission' => 'blogConfiguration' 528 ); 529 } 530 531 array_push( $res['display']['items'], 532 array('var' => 'serverOffsetHours', 533 'title' => INSTALL_OFFSET, 534 'description' => INSTALL_OFFSET_DESC, 535 'type' => 'int', 536 'default' => 0, 537 'permission' => 'blogConfiguration', 538 'flags' => array('parseDescription')), 539 540 array('var' => 'showFutureEntries', 541 'title' => INSTALL_SHOWFUTURE, 542 'description' => INSTALL_SHOWFUTURE_DESC, 543 'type' => 'bool', 544 'default' => false, 545 'permission' => 'blogConfiguration'), 546 547 array('var' => 'enableACL', 548 'title' => INSTALL_ACL, 549 'description' => INSTALL_ACL_DESC, 550 'type' => 'bool', 551 'default' => true, 552 'permission' => 'blogConfiguration') 553 ); 554 555 $res['feeds'] = 556 array('title' => INSTALL_CAT_FEEDS, 557 'description' => INSTALL_CAT_FEEDS_DESC, 558 'items' => array( 559 array('var' => 'feedFull', 560 'title' => SYNDICATION_PLUGIN_FULLFEED, 561 'description' => '', 562 'type' => 'list', 563 'default' => array(false => NO, true => YES, 'client' => 'Client'), 564 'permission' => 'siteConfiguration'), 565 566 array('var' => 'feedBannerURL', 567 'title' => SYNDICATION_PLUGIN_BANNERURL, 568 'description' => SYNDICATION_PLUGIN_BANNERURL_DESC, 569 'type' => 'string', 570 'default' => '', 571 'permission' => 'blogConfiguration'), 572 573 array('var' => 'feedBannerWidth', 574 'title' => SYNDICATION_PLUGIN_BANNERWIDTH, 575 'description' => SYNDICATION_PLUGIN_BANNERWIDTH_DESC, 576 'type' => 'string', 577 'default' => '', 578 'permission' => 'blogConfiguration'), 579 580 array('var' => 'feedBannerHeight', 581 'title' => SYNDICATION_PLUGIN_BANNERHEIGHT, 582 'description' => SYNDICATION_PLUGIN_BANNERHEIGHT_DESC, 583 'type' => 'string', 584 'default' => '', 585 'permission' => 'blogConfiguration'), 586 587 array('var' => 'feedShowMail', 588 'title' => SYNDICATION_PLUGIN_SHOW_MAIL, 589 'description' => '', 590 'type' => 'bool', 591 'default' => false, 592 'permission' => 'blogConfiguration'), 593 594 array ('var' => 'feedManagingEditor', 595 'title' => SYNDICATION_PLUGIN_MANAGINGEDITOR, 596 'description' => SYNDICATION_PLUGIN_MANAGINGEDITOR_DESC, 597 'type' => 'string', 598 'default' => '', 599 'permission' => 'blogConfiguration'), 600 601 array ('var' => 'feedWebmaster', 602 'title' => SYNDICATION_PLUGIN_WEBMASTER, 603 'description' => SYNDICATION_PLUGIN_WEBMASTER_DESC, 604 'type' => 'string', 605 'default' => '', 606 'permission' => 'blogConfiguration'), 607 608 array ('var' => 'feedTtl', 609 'title' => SYNDICATION_PLUGIN_TTL, 610 'description' => SYNDICATION_PLUGIN_TTL_DESC, 611 'type' => 'string', 612 'default' => '', 613 'permission' => 'blogConfiguration'), 614 615 array ('var' => 'feedPubDate', 616 'title' => SYNDICATION_PLUGIN_PUBDATE, 617 'description' => SYNDICATION_PLUGIN_PUBDATE_DESC, 618 'type' => 'bool', 619 'default' => true, 620 'permission' => 'blogConfiguration'), 621 622 array ('var' => 'feedCustom', 623 'title' => FEED_CUSTOM, 624 'description' => FEED_CUSTOM_DESC, 625 'type' => 'string', 626 'default' => '', 627 'permission' => 'blogConfiguration'), 628 629 array ('var' => 'feedForceCustom', 630 'title' => FEED_FORCE, 631 'description' => FEED_FORCE_DESC, 632 'type' => 'bool', 633 'default' => false, 634 'permission' => 'blogConfiguration') 635 )); 636 637 $res['imagehandling'] = 638 array('title' => INSTALL_CAT_IMAGECONV, 639 'description' => INSTALL_CAT_IMAGECONV_DESC, 640 'items' => array(array('var' => 'magick', 641 'title' => INSTALL_IMAGEMAGICK, 642 'description' => INSTALL_IMAGEMAGICK_DESC, 643 'type' => 'bool', 644 'permission' => 'siteConfiguration', 645 'default' => false), 646 647 array('var' => 'convert', 648 'title' => INSTALL_IMAGEMAGICKPATH, 649 'description' => INSTALL_IMAGEMAGICKPATH_DESC, 650 'type' => 'string', 651 'permission' => 'siteConfiguration', 652 'default' => '/usr/local/bin/convert'), 653 654 array('var' => 'thumbSuffix', 655 'title' => INSTALL_THUMBSUFFIX, 656 'description' => INSTALL_THUMBSUFFIX_DESC, 657 'type' => 'string', 658 'permission' => 'siteConfiguration', 659 'default' => 'serendipityThumb'), 660 661 array('var' => 'thumbSize', 662 'title' => INSTALL_THUMBWIDTH, 663 'description' => INSTALL_THUMBWIDTH_DESC, 664 'type' => 'int', 665 'permission' => 'siteConfiguration', 666 'default' => 400), 667 668 array('var' => 'thumbConstraint', 669 'title' => INSTALL_THUMBDIM, 670 'description' => INSTALL_THUMBDIM_DESC, 671 'type' => 'list', 672 'permission' => 'siteConfiguration', 673 'default' => array( 674 'largest' => INSTALL_THUMBDIM_LARGEST, 675 'width' => INSTALL_THUMBDIM_WIDTH, 676 'height' => INSTALL_THUMBDIM_HEIGHT)), 677 678 array('var' => 'maxFileSize', 679 'title' => MEDIA_UPLOAD_SIZE, 680 'description' => MEDIA_UPLOAD_SIZE_DESC, 681 'type' => 'int', 682 'permission' => 'blogConfiguration', 683 'default' => ''), 684 685 array('var' => 'maxImgWidth', 686 'title' => MEDIA_UPLOAD_MAXWIDTH, 687 'description' => MEDIA_UPLOAD_MAXWIDTH_DESC, 688 'type' => 'int', 689 'permission' => 'blogConfiguration', 690 'default' => ''), 691 692 array('var' => 'maxImgHeight', 693 'title' => MEDIA_UPLOAD_MAXHEIGHT, 694 'description' => MEDIA_UPLOAD_MAXHEIGHT_DESC, 695 'type' => 'int', 696 'permission' => 'blogConfiguration', 697 'default' => ''), 698 699 array('var' => 'uploadResize', 700 'title' => MEDIA_UPLOAD_RESIZE, 701 'description' => MEDIA_UPLOAD_RESIZE_DESC, 702 'type' => 'bool', 703 'permission' => 'siteConfiguration', 704 'default' => false), 705 706 array('var' => 'onTheFlySynch', 707 'title' => ONTHEFLYSYNCH, 708 'description' => ONTHEFLYSYNCH_DESC, 709 'type' => 'bool', 710 'permission' => 'siteConfiguration', 711 'default' => true), 712 713 array('var' => 'dynamicResize', 714 'title' => MEDIA_DYN_RESIZE, 715 'description' => MEDIA_DYN_RESIZE_DESC, 716 'type' => 'bool', 717 'permission' => 'siteConfiguration', 718 'default' => false), 719 720 array('var' => 'mediaExif', 721 'title' => MEDIA_EXIF, 722 'description' => MEDIA_EXIF_DESC, 723 'type' => 'bool', 724 'permission' => 'siteConfiguration', 725 'default' => true), 726 727 array('var' => 'mediaProperties', 728 'title' => MEDIA_PROP, 729 'description' => MEDIA_PROP_DESC . MEDIA_PROP_MULTIDESC, 730 'type' => 'string', 731 'permission' => 'blogConfiguration', 732 'default' => 'DPI:IMAGE;RUN_LENGTH:VIDEO:AUDIO;DATE;COPYRIGHT;TITLE;COMMENT1:MULTI;COMMENT2:MULTI;ALT'), 733 734 array('var' => 'mediaKeywords', 735 'title' => MEDIA_KEYWORDS, 736 'description' => MEDIA_KEYWORDS_DESC, 737 'type' => 'textarea', 738 'permission' => 'blogConfiguration', 739 'default' => ''), 740 741 array('var' => 'allowLocalURL', 742 'title' => CONFIG_ALLOW_LOCAL_URL, 743 'description' => CONFIG_ALLOW_LOCAL_URL_DESC, 744 'type' => 'bool', 745 'permission' => 'siteConfiguration', 746 'default' => false), 747 )); 748 749 return $res; 750?> 751