[ Index ]
 

Code source de Serendipity 1.2

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

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

   1  <?php # $Id: config_personal.inc.php 1654 2007-03-22 10:27:18Z 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['personal'] =
   9               array('title' => USERCONF_CAT_PERSONAL,
  10                     'description' => USERCONF_CAT_PERSONAL_DESC,
  11                     'items' => array(array('var'         => 'username',
  12                                            'title'       => USERCONF_USERNAME,
  13                                            'description' => USERCONF_USERNAME_DESC,
  14                                            'type'        => 'string',
  15                                            'default'     => 'johndoe',
  16                                            'permission'  => 'personalConfiguration'),
  17  
  18                                      array('var'         => 'password',
  19                                            'title'       => USERCONF_PASSWORD,
  20                                            'description' => USERCONF_PASSWORD_DESC,
  21                                            'type'        => 'protected',
  22                                            'default'     => '',
  23                                            'permission'  => 'personalConfiguration'),
  24  
  25                                      array('var'         => 'check_password',
  26                                            'title'       => USERCONF_CHECK_PASSWORD,
  27                                            'description' => USERCONF_CHECK_PASSWORD_DESC,
  28                                            'type'        => 'protected',
  29                                            'default'     => '',
  30                                            'permission'  => 'personalConfiguration'),
  31  
  32                                      array('var'         => 'realname',
  33                                            'title'       => USERCONF_REALNAME,
  34                                            'description' => USERCONF_REALNAME_DESC,
  35                                            'type'        => 'string',
  36                                            'default'     => 'John Doe',
  37                                            'permission'  => 'personalConfiguration'),
  38  
  39                                      array('var'         => 'userlevel',
  40                                            'title'       => USERCONF_USERLEVEL,
  41                                            'description' => USERCONF_USERLEVEL_DESC . "\n" . USERLEVEL_OBSOLETE,
  42                                            'type'        => 'list',
  43                                            'default'     => $serendipity['permissionLevels'],
  44                                            'permission'  => 'personalConfigurationUserlevel',
  45                                            'view'        => 'dangerous'),
  46  
  47                                      array('var'         => 'groups',
  48                                            'title'       => USERCONF_GROUPS,
  49                                            'description' => USERCONF_GROUPS_DESC,
  50                                            'type'        => 'multilist',
  51                                            'permission'  => array('adminUsersMaintainOthers', 'adminUsersMaintainSame'),
  52                                            'perm_mode'   => 'or',
  53                                            'default'     => serendipity_getAllGroups(),
  54                                            'flags'       => array('groups'),
  55                                            'view'        => 'dangerous'),
  56  
  57                                      array('var'         => 'email',
  58                                            'title'       => USERCONF_EMAIL,
  59                                            'description' => USERCONF_EMAIL_DESC,
  60                                            'type'        => 'string',
  61                                            'default'     => 'john@example.com',
  62                                            'permission'  => 'personalConfiguration'),
  63  
  64                                      array('var'         => 'lang',
  65                                            'title'       => INSTALL_LANG,
  66                                            'description' => INSTALL_LANG_DESC,
  67                                            'type'        => 'list',
  68                                            'default'     => $serendipity['languages'],
  69                                            'permission'  => 'personalConfiguration',
  70                                            'flags'       => array('config')),
  71  
  72                                      array('var'         => 'wysiwyg',
  73                                            'title'       => INSTALL_WYSIWYG,
  74                                            'description' => INSTALL_WYSIWYG_DESC,
  75                                            'type'        => 'bool',
  76                                            'default'     => false,
  77                                            'permission'  => 'personalConfiguration',
  78                                            'flags'       => array('config')),
  79  
  80                                      array('var'         => 'eyecandy',
  81                                            'title'       => PREFERENCE_USE_JS,
  82                                            'description' => PREFERENCE_USE_JS_DESC,
  83                                            'type'        => 'bool',
  84                                            'default'     => true,
  85                                            'permission'  => 'personalConfiguration',
  86                                            'flags'       => array('config')),
  87  
  88                                      array('var'         => 'mail_comments',
  89                                            'title'       => USERCONF_SENDCOMMENTS,
  90                                            'description' => USERCONF_SENDCOMMENTS_DESC,
  91                                            'type'        => 'bool',
  92                                            'default'     => true,
  93                                            'permission'  => 'personalConfiguration'),
  94  
  95                                      array('var'         => 'mail_trackbacks',
  96                                            'title'       => USERCONF_SENDTRACKBACKS,
  97                                            'description' => USERCONF_SENDTRACKBACKS_DESC,
  98                                            'type'        => 'bool',
  99                                            'default'     => true,
 100                                            'permission'  => 'personalConfiguration'),
 101  
 102                                      array('var'         => 'no_create',
 103                                            'title'       => USERCONF_CREATE,
 104                                            'description' => USERCONF_CREATE_DESC,
 105                                            'type'        => 'bool',
 106                                            'default'     => false,
 107                                            'permission'  => 'personalConfigurationNoCreate',
 108                                            'flags'       => array('config'),
 109                                            'view'        => 'dangerous'),
 110  
 111                                      array('var'         => 'right_publish',
 112                                            'title'       => USERCONF_ALLOWPUBLISH,
 113                                            'description' => USERCONF_ALLOWPUBLISH_DESC,
 114                                            'type'        => 'bool',
 115                                            'default'     => true,
 116                                            'permission'  => 'personalConfigurationRightPublish',
 117                                            'view'        => 'dangerous')
 118                              ));
 119  
 120      $res['defaults'] =
 121               array('title' => USERCONF_CAT_DEFAULT_NEW_ENTRY,
 122                     'description' => '',
 123                     'items' => array(
 124                                      array('var'         => 'moderateCommentsDefault',
 125                                            'title'       => COMMENTS_MODERATE,
 126                                            'description' => '',
 127                                            'type'        => 'bool',
 128                                            'default'     => false,
 129                                            'permission'  => 'personalConfiguration',
 130                                            'flags'       => array('config')),
 131  
 132                                      array('var'         => 'allowCommentsDefault',
 133                                            'title'       => COMMENTS_ENABLE,
 134                                            'description' => '',
 135                                            'type'        => 'bool',
 136                                            'default'     => true,
 137                                            'permission'  => 'personalConfiguration',
 138                                            'flags'       => array('config')),
 139  
 140                                      array('var'         => 'publishDefault',
 141                                            'title'       => NEW_ENTRY,
 142                                            'description' => '',
 143                                            'type'        => 'list',
 144                                            'default'     => array('publish' => PUBLISH, 'draft' => DRAFT),
 145                                            'permission'  => 'personalConfiguration',
 146                                            'flags'       => array('config')),
 147  
 148                                      array('var'         => 'showMediaToolbar',
 149                                            'title'       => SHOW_MEDIA_TOOLBAR,
 150                                            'description' => '',
 151                                            'type'        => 'bool',
 152                                            'default'     => false,
 153                                            'permission'  => 'personalConfiguration',
 154                                            'flags'       => array('config')),
 155                              ));
 156  
 157      return $res;


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