[ Index ]
 

Code source de Serendipity 1.2

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/include/tpl/ -> config_local.inc.php (source)

   1  <?php # $Id: config_local.inc.php 1409 2006-08-23 13:51:56Z garvinhicking $
   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'         => 'dbPass',
  36                                            'title'       => INSTALL_DBPASS,
  37                                            'description' => INSTALL_DBPASS_DESC,
  38                                            'type'        => 'protected',
  39                                            'default'     => '',
  40                                            'permission'  => 'siteConfiguration',
  41                                            'flags'       => array('nosave', 'hideValue', 'simpleInstall')),
  42  
  43                                      array('var'         => 'dbName',
  44                                            'title'       => INSTALL_DBNAME,
  45                                            'description' => INSTALL_DBNAME_DESC,
  46                                            'type'        => 'string',
  47                                            'default'     => 'serendipity',
  48                                            'permission'  => 'siteConfiguration',
  49                                            'flags'       => array('nosave', 'simpleInstall')),
  50  
  51                                      array('var'         => 'dbPrefix',
  52                                            'title'       => INSTALL_DBPREFIX,
  53                                            'description' => INSTALL_DBPREFIX_DESC,
  54                                            'type'        => 'string',
  55                                            'default'     => 'serendipity_',
  56                                            'permission'  => 'siteConfiguration',
  57                                            'flags'       => array('nosave')),
  58  
  59                                      array('var'         => 'dbPersistent',
  60                                            'title'       => INSTALL_DBPERSISTENT,
  61                                            'description' => INSTALL_DBPERSISTENT_DESC,
  62                                            'type'        => 'bool',
  63                                            'default'     => false,
  64                                            'permission'  => 'siteConfiguration',
  65                                            'flags'       => array('nosave')),
  66  
  67                                      array('var'         => 'dbNames',
  68                                            'title'       => INSTAL_DB_UTF8,
  69                                            'description' => INSTAL_DB_UTF8_DESC,
  70                                            'type'        => 'bool',
  71                                            'default'     => true,
  72                                            'permission'  => 'siteConfiguration')
  73                                  ));
  74  
  75      $res['paths'] =
  76               array('title'          => INSTALL_CAT_PATHS,
  77                     'description'    => INSTALL_CAT_PATHS_DESC,
  78                     'items' => array(array('var'         => 'serendipityPath',
  79                                            'title'       => INSTALL_FULLPATH,
  80                                            'description' => INSTALL_FULLPATH_DESC,
  81                                            'type'        => 'string',
  82                                            'permission'  => 'siteConfiguration',
  83                                            'default'     => '/webroot/serendipity/'),
  84  
  85                                      array('var'         => 'uploadPath',
  86                                            'title'       => INSTALL_UPLOADPATH,
  87                                            'description' => INSTALL_UPLOADPATH_DESC,
  88                                            'type'        => 'string',
  89                                            'permission'  => 'siteConfiguration',
  90                                            'default'     => 'uploads/'),
  91  
  92                                      array('var'         => 'serendipityHTTPPath',
  93                                            'title'       => INSTALL_RELPATH,
  94                                            'description' => INSTALL_RELPATH_DESC,
  95                                            'type'        => 'string',
  96                                            'permission'  => 'siteConfiguration',
  97                                            'default'     => '/serendipity/'),
  98  
  99                                      array('var'         => 'templatePath',
 100                                            'title'       => INSTALL_RELTEMPLPATH,
 101                                            'description' => INSTALL_RELTEMPLPATH_DESC,
 102                                            'type'        => 'string',
 103                                            'permission'  => 'siteConfiguration',
 104                                            'default'     => 'templates/'),
 105  
 106                                      array('var'         => 'uploadHTTPPath',
 107                                            'title'       => INSTALL_RELUPLOADPATH,
 108                                            'description' => INSTALL_RELUPLOADPATH_DESC,
 109                                            'type'        => 'string',
 110                                            'permission'  => 'siteConfiguration',
 111                                            'default'     => 'uploads/'),
 112  
 113                                      array('var'         => 'baseURL',
 114                                            'title'       => INSTALL_URL,
 115                                            'description' => INSTALL_URL_DESC,
 116                                            'type'        => 'string',
 117                                            'permission'  => 'siteConfiguration',
 118                                            'default'     => 'http://www.example.com/serendipity/'),
 119  
 120                                      array('var'         => 'autodetect_baseURL',
 121                                            'title'       => INSTALL_AUTODETECT_URL,
 122                                            'description' => INSTALL_AUTODETECT_URL_DESC,
 123                                            'type'        => 'bool',
 124                                            'permission'  => 'siteConfiguration',
 125                                            'default'     => false),
 126  
 127                                      array('var'         => 'indexFile',
 128                                            'title'       => INSTALL_INDEXFILE,
 129                                            'description' => INSTALL_INDEXFILE_DESC,
 130                                            'type'        => 'string',
 131                                            'permission'  => 'siteConfiguration',
 132                                            'default'     => 'index.php'),
 133                                  ));
 134  
 135  
 136      $res['permalinks'] =
 137               array('title'          => INSTALL_CAT_PERMALINKS,
 138                     'description'    => INSTALL_CAT_PERMALINKS_DESC,
 139                     'items' => array(
 140                                      array('var'         => 'permalinkStructure',
 141                                            'title'       => INSTALL_PERMALINK,
 142                                            'description' => INSTALL_PERMALINK_DESC,
 143                                            'type'        => 'string',
 144                                            'default'     => 'archives/%id%-%title%.html',
 145                                            'permission'  => 'siteConfiguration',
 146                                            'flags'       => array('ifEmpty')),
 147  
 148                                      array('var'         => 'permalinkAuthorStructure',
 149                                            'title'       => INSTALL_PERMALINK_AUTHOR,
 150                                            'description' => INSTALL_PERMALINK_AUTHOR_DESC,
 151                                            'type'        => 'string',
 152                                            'default'     => 'authors/%id%-%realname%',
 153                                            'permission'  => 'siteConfiguration',
 154                                            'flags'       => array('ifEmpty')),
 155  
 156                                      array('var'         => 'permalinkCategoryStructure',
 157                                            'title'       => INSTALL_PERMALINK_CATEGORY,
 158                                            'description' => INSTALL_PERMALINK_CATEGORY_DESC,
 159                                            'type'        => 'string',
 160                                            'default'     => 'categories/%id%-%name%',
 161                                            'permission'  => 'siteConfiguration',
 162                                            'flags'       => array('ifEmpty')),
 163  
 164                                      array('var'         => 'permalinkFeedCategoryStructure',
 165                                            'title'       => INSTALL_PERMALINK_FEEDCATEGORY,
 166                                            'description' => INSTALL_PERMALINK_FEEDCATEGORY_DESC,
 167                                            'type'        => 'string',
 168                                            'default'     => 'feeds/categories/%id%-%name%.rss',
 169                                            'permission'  => 'siteConfiguration',
 170                                            'flags'       => array('ifEmpty')),
 171  
 172                                      array('var'         => 'permalinkFeedAuthorStructure',
 173                                            'title'       => INSTALL_PERMALINK_FEEDAUTHOR,
 174                                            'description' => INSTALL_PERMALINK_FEEDAUTHOR_DESC,
 175                                            'type'        => 'string',
 176                                            'default'     => 'feeds/authors/%id%-%realname%.rss',
 177                                            'permission'  => 'siteConfiguration',
 178                                            'flags'       => array('ifEmpty')),
 179  
 180                                      array('var'         => 'permalinkArchivesPath',
 181                                            'title'       => INSTALL_PERMALINK_ARCHIVESPATH,
 182                                            'description' => '',
 183                                            'type'        => 'string',
 184                                            'default'     => 'archives',
 185                                            'permission'  => 'siteConfiguration',
 186                                            'flags'       => array('ifEmpty')),
 187  
 188                                      array('var'         => 'permalinkArchivePath',
 189                                            'title'       => INSTALL_PERMALINK_ARCHIVEPATH,
 190                                            'description' => '',
 191                                            'type'        => 'string',
 192                                            'default'     => 'archive',
 193                                            'permission'  => 'siteConfiguration',
 194                                            'flags'       => array('ifEmpty')),
 195  
 196                                      array('var'         => 'permalinkCategoriesPath',
 197                                            'title'       => INSTALL_PERMALINK_CATEGORIESPATH,
 198                                            'description' => '',
 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' => '',
 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' => '',
 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' => '',
 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' => '',
 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' => '',
 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' => '',
 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' => '',
 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' => '',
 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' => '',
 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'        => 'protected',
 294                                            'default'     => 'john',
 295                                            'permission'  => 'siteConfiguration',
 296                                            'flags'       => array('installOnly', 'local', 'simpleInstall')),
 297  
 298                                      array('var'         => 'realname',
 299                                            'title'       => USERCONF_REALNAME,
 300                                            'description' => USERCONF_REALNAME_DESC,
 301                                            'type'        => 'string',
 302                                            'default'     => 'John Doe',
 303                                            'permission'  => 'siteConfiguration',
 304                                            'flags'       => array('installOnly', 'local', 'simpleInstall')),
 305  
 306                                      array('var'         => 'email',
 307                                            'title'       => INSTALL_EMAIL,
 308                                            'description' => INSTALL_EMAIL_DESC,
 309                                            'type'        => 'string',
 310                                            'default'     => 'john@example.com',
 311                                            'permission'  => 'siteConfiguration',
 312                                            'flags'       => array('installOnly', 'local', 'simpleInstall')),
 313  
 314                                      array('var'         => 'want_mail',
 315                                            'title'       => INSTALL_SENDMAIL,
 316                                            'description' => INSTALL_SENDMAIL_DESC,
 317                                            'type'        => 'bool',
 318                                            'default'     => true,
 319                                            'permission'  => 'siteConfiguration',
 320                                            'flags'       => array('installOnly', 'local')),
 321  
 322                                      array('var'         => 'allowSubscriptions',
 323                                            'title'       => INSTALL_SUBSCRIBE,
 324                                            'description' => INSTALL_SUBSCRIBE_DESC,
 325                                            'type'        => 'bool',
 326                                            'permission'  => 'siteConfiguration',
 327                                            'default'     => true),
 328  
 329                                      array('var'         => 'blogTitle',
 330                                            'title'       => INSTALL_BLOGNAME,
 331                                            'description' => INSTALL_BLOGNAME_DESC,
 332                                            'type'        => 'string',
 333                                            'default'     => 'John Doe\'s personal blog',
 334                                            'permission'  => 'blogConfiguration',
 335                                            'flags'       => array('simpleInstall')),
 336  
 337                                      array('var'         => 'blogDescription',
 338                                            'title'       => INSTALL_BLOGDESC,
 339                                            'description' => INSTALL_BLOGDESC_DESC,
 340                                            'type'        => 'string',
 341                                            'default'     => 'My little place on the web...',
 342                                            'permission'  => 'blogConfiguration',
 343                                            'flags'       => array('simpleInstall')),
 344  
 345                                      array('var'         => 'blogMail',
 346                                            'title'       => INSTALL_BLOG_EMAIL,
 347                                            'description' => INSTALL_BLOG_EMAIL_DESC,
 348                                            'type'        => 'string',
 349                                            'permission'  => 'blogConfiguration',
 350                                            'default'     => ''),
 351  
 352                                      array('var'         => 'lang',
 353                                            'title'       => INSTALL_LANG,
 354                                            'description' => INSTALL_LANG_DESC,
 355                                            'type'        => 'list',
 356                                            'default'     => $serendipity['languages'],
 357                                            'permission'  => 'siteConfiguration',
 358                                            'flags'       => array('simpleInstall')),
 359  
 360                                      array('var'         => 'charset',
 361                                            'title'       => INSTALL_CHARSET,
 362                                            'description' => INSTALL_CHARSET_DESC,
 363                                            'type'        => 'list',
 364                                            'default'     => $serendipity['charsets'],
 365                                            'permission'  => 'siteConfiguration'),
 366  
 367                                      array('var'         => 'calendar',
 368                                            'title'       => INSTALL_CAL,
 369                                            'description' => INSTALL_CAL_DESC,
 370                                            'type'        => 'list',
 371                                            'permission'  => 'blogConfiguration',
 372                                            'default'     => $serendipity['calendars']),
 373  
 374                                      array('var'         => 'lang_content_negotiation',
 375                                            'title'       => AUTOLANG,
 376                                            'description' => AUTOLANG_DESC,
 377                                            'type'        => 'bool',
 378                                            'default'     => false,
 379                                            'permission'  => 'blogConfiguration'),
 380  
 381                                      array('var'         => 'enablePluginACL',
 382                                            'title'       => PERMISSION_FORBIDDEN_ENABLE,
 383                                            'description' => PERMISSION_FORBIDDEN_ENABLE_DESC,
 384                                            'type'        => 'bool',
 385                                            'default'     => false,
 386                                            'permission'  => 'blogConfiguration'),
 387                              ));
 388  
 389      $res['display'] =
 390               array('title'          => INSTALL_CAT_DISPLAY,
 391                     'description'    => INSTALL_CAT_DISPLAY_DESC,
 392                     'items' => array(array('var'         => 'fetchLimit',
 393                                            'title'       => INSTALL_FETCHLIMIT,
 394                                            'description' => INSTALL_FETCHLIMIT_DESC,
 395                                            'type'        => 'int',
 396                                            'default'     => 15,
 397                                            'permission'  => 'blogConfiguration'),
 398  
 399                                      array('var'         => 'RSSfetchLimit',
 400                                            'title'       => INSTALL_RSSFETCHLIMIT,
 401                                            'description' => INSTALL_RSSFETCHLIMIT_DESC,
 402                                            'type'        => 'int',
 403                                            'default'     => 15,
 404                                            'permission'  => 'blogConfiguration'),
 405  
 406                                      array('var'         => 'enforce_RFC2616',
 407                                            'title'       => SYNDICATION_RFC2616,
 408                                            'description' => SYNDICATION_RFC2616_DESC,
 409                                            'type'        => 'bool',
 410                                            'default'     => false,
 411                                            'permission'  => 'blogConfiguration'),
 412  
 413                                      array('var'         => 'useGzip',
 414                                            'title'       => INSTALL_USEGZIP,
 415                                            'description' => INSTALL_USEGZIP_DESC,
 416                                            'type'        => 'bool',
 417                                            'permission'  => 'siteConfiguration',
 418                                            'default'     => false),
 419  
 420                                      array('var'         => 'wysiwyg',
 421                                            'title'       => INSTALL_WYSIWYG,
 422                                            'description' => INSTALL_WYSIWYG_DESC,
 423                                            'type'        => 'bool',
 424                                            'default'     => false,
 425                                            'permission'  => 'blogConfiguration',
 426                                            'flags'       => array('simpleInstall', 'installOnly')),
 427  
 428                                      array('var'         => 'enablePopup',
 429                                            'title'       => INSTALL_POPUP,
 430                                            'description' => INSTALL_POPUP_DESC,
 431                                            'type'        => 'bool',
 432                                            'default'     => false,
 433                                            'permission'  => 'blogConfiguration'),
 434  
 435                                      array('var'         => 'embed',
 436                                            'title'       => INSTALL_EMBED,
 437                                            'description' => INSTALL_EMBED_DESC,
 438                                            'type'        => 'bool',
 439                                            'permission'  => 'siteConfiguration',
 440                                            'default'     => 'false'),
 441  
 442                                      array('var'         => 'top_as_links',
 443                                            'title'       => INSTALL_SHOW_EXTERNAL_LINKS,
 444                                            'description' => INSTALL_SHOW_EXTERNAL_LINKS_DESC,
 445                                            'type'        => 'bool',
 446                                            'permission'  => 'siteConfiguration',
 447                                            'default'     => false),
 448  
 449                                      array('var'         => 'trackReferrer',
 450                                            'title'       => INSTALL_TRACKREF,
 451                                            'description' => INSTALL_TRACKREF_DESC,
 452                                            'type'        => 'bool',
 453                                            'default'     => true,
 454                                            'permission'  => 'blogConfiguration'),
 455  
 456                                      array('var'         => 'blockReferer',
 457                                            'title'       => INSTALL_BLOCKREF,
 458                                            'description' => INSTALL_BLOCKREF_DESC,
 459                                            'type'        => 'string',
 460                                            'default'     => ';',
 461                                            'permission'  => 'blogConfiguration'),
 462  
 463                                      array('var'         => 'rewrite',
 464                                            'title'       => INSTALL_REWRITE,
 465                                            'description' => INSTALL_REWRITE_DESC,
 466                                            'type'        => 'list',
 467                                            'default'     => array(),
 468                                            'permission'  => 'siteConfiguration',
 469                                            'flags'       => array('probeDefault')),
 470  
 471                                      array('var'         => 'serverOffsetHours',
 472                                            'title'       => INSTALL_OFFSET,
 473                                            'description' => INSTALL_OFFSET_DESC,
 474                                            'type'        => 'int',
 475                                            'default'     => 0,
 476                                            'permission'  => 'blogConfiguration',
 477                                            'flags'       => array('parseDescription')),
 478  
 479                                      array('var'         => 'showFutureEntries',
 480                                            'title'       => INSTALL_SHOWFUTURE,
 481                                            'description' => INSTALL_SHOWFUTURE_DESC,
 482                                            'type'        => 'bool',
 483                                            'default'     => false,
 484                                            'permission'  => 'blogConfiguration'),
 485  
 486                                      array('var'         => 'enableACL',
 487                                            'title'       => INSTALL_ACL,
 488                                            'description' => INSTALL_ACL_DESC,
 489                                            'type'        => 'bool',
 490                                            'default'     => true,
 491                                            'permission'  => 'blogConfiguration'),
 492                              ));
 493  
 494      $res['imagehandling'] =
 495               array('title' => INSTALL_CAT_IMAGECONV,
 496                     'description' => INSTALL_CAT_IMAGECONV_DESC,
 497                     'items' => array(array('var'         => 'magick',
 498                                            'title'       => INSTALL_IMAGEMAGICK,
 499                                            'description' => INSTALL_IMAGEMAGICK_DESC,
 500                                            'type'        => 'bool',
 501                                            'permission'  => 'siteConfiguration',
 502                                            'default'     => false),
 503  
 504                                      array('var'         => 'convert',
 505                                            'title'       => INSTALL_IMAGEMAGICKPATH,
 506                                            'description' => INSTALL_IMAGEMAGICKPATH_DESC,
 507                                            'type'        => 'string',
 508                                            'permission'  => 'siteConfiguration',
 509                                            'default'     => '/usr/local/bin/convert'),
 510  
 511                                      array('var'         => 'thumbSuffix',
 512                                            'title'       => INSTALL_THUMBSUFFIX,
 513                                            'description' => INSTALL_THUMBSUFFIX_DESC,
 514                                            'type'        => 'string',
 515                                            'permission'  => 'siteConfiguration',
 516                                            'default'     => 'serendipityThumb'),
 517  
 518                                      array('var'         => 'thumbSize',
 519                                            'title'       => INSTALL_THUMBWIDTH,
 520                                            'description' => INSTALL_THUMBWIDTH_DESC,
 521                                            'type'        => 'int',
 522                                            'permission'  => 'siteConfiguration',
 523                                            'default'     => 110),
 524  
 525                                      array('var'         => 'maxFileSize',
 526                                            'title'       => MEDIA_UPLOAD_SIZE,
 527                                            'description' => MEDIA_UPLOAD_SIZE_DESC,
 528                                            'type'        => 'int',
 529                                            'permission'  => 'blogConfiguration',
 530                                            'default'     => ''),
 531  
 532                                      array('var'         => 'maxImgWidth',
 533                                            'title'       => MEDIA_UPLOAD_MAXWIDTH,
 534                                            'description' => MEDIA_UPLOAD_MAXWIDTH_DESC,
 535                                            'type'        => 'int',
 536                                            'permission'  => 'blogConfiguration',
 537                                            'default'     => ''),
 538  
 539                                      array('var'         => 'maxImgHeight',
 540                                            'title'       => MEDIA_UPLOAD_MAXHEIGHT,
 541                                            'description' => MEDIA_UPLOAD_MAXHEIGHT_DESC,
 542                                            'type'        => 'int',
 543                                            'permission'  => 'blogConfiguration',
 544                                            'default'     => ''),
 545  
 546                                      array('var'         => 'onTheFlySynch',
 547                                            'title'       => ONTHEFLYSYNCH,
 548                                            'description' => ONTHEFLYSYNCH_DESC,
 549                                            'type'        => 'bool',
 550                                            'permission'  => 'siteConfiguration',
 551                                            'default'     => true),
 552  
 553                                      array('var'         => 'dynamicResize',
 554                                            'title'       => MEDIA_DYN_RESIZE,
 555                                            'description' => MEDIA_DYN_RESIZE_DESC,
 556                                            'type'        => 'bool',
 557                                            'permission'  => 'siteConfiguration',
 558                                            'default'     => false),
 559  
 560                                      array('var'         => 'mediaExif',
 561                                            'title'       => MEDIA_EXIF,
 562                                            'description' => MEDIA_EXIF_DESC,
 563                                            'type'        => 'bool',
 564                                            'permission'  => 'siteConfiguration',
 565                                            'default'     => true),
 566  
 567                                      array('var'         => 'mediaProperties',
 568                                            'title'       => MEDIA_PROP,
 569                                            'description' => MEDIA_PROP_DESC . MEDIA_PROP_MULTIDESC,
 570                                            'type'        => 'string',
 571                                            'permission'  => 'blogConfiguration',
 572                                            'default'     => 'DPI:IMAGE;RUN_LENGTH:VIDEO:AUDIO;DATE;COPYRIGHT;TITLE;COMMENT1:MULTI;COMMENT2:MULTI'),
 573  
 574                                      array('var'         => 'mediaKeywords',
 575                                            'title'       => MEDIA_KEYWORDS,
 576                                            'description' => MEDIA_KEYWORDS_DESC,
 577                                            'type'        => 'textarea',
 578                                            'permission'  => 'blogConfiguration',
 579                                            'default'     => ''),
 580                              ));
 581  
 582      return $res;
 583  ?>


Généré le : Sat Nov 24 09:00:37 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics