[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/wiki/lib/ -> defaults.php (source)

   1  <?php
   2  // $Id: defaults.php 20295 2006-02-15 12:31:25Z  $
   3  
   4  //**********************************************************************
   5  // DO NOT EDIT THIS FILE.
   6  //
   7  // This file contains configuration defaults for 'Tavi that are over-
   8  // written on installation.  Instead, you should edit 'config.php' to
   9  // re-set these options, or use the 'configure.pl' script to create a
  10  // 'config.php' for yourself.
  11  //
  12  // If you see options in here that are not present in 'config.php',
  13  // you can safely copy them to 'config.php' and set them to a new
  14  // value.  This will override the default set here.
  15  //**********************************************************************
  16  
  17  // The following variables establish the format for WikiNames in this wiki.
  18  //   Note that changing this might require a change to parse/transforms.php so
  19  //   that parse_wikiname knows how many parentheses are included in $LinkPtn.
  20  // the original settings do not work with utf-8, as they interpret multibyte chars wrong
  21  $UpperPtn = "[A-Z]";
  22  $LowerPtn = "[a-z]";
  23  $AlphaPtn = "[A-Za-z]";
  24  
  25  $LinkPtn = $UpperPtn . $AlphaPtn . '*' . $LowerPtn . '+' .
  26                       $UpperPtn . $AlphaPtn . '*(\\/' . $UpperPtn . $AlphaPtn . '*)?';
  27  
  28  // $UrlPtn establishes the format for URLs in this wiki.
  29  //   Note that changing this requires a change to parse/transforms.php so
  30  //   that parse_hyperlinkxxx know how many parentheses are included in $UrlPtn.
  31  $UrlPtn  = "(http:|mailto:|https:|ftp:|gopher:|news:|irc:|egw:|vfs:)" .
  32                       "([^ \\/\"\']*\\/)*[^ \\t\\n\\/\"\']*[A-Za-z0-9\\/?=&~_]";
  33  
  34  // $InterWikiPtn establishes the format for InterWiki links in this wiki.
  35  //   Note that changing this requires a change to parse/transforms.php so
  36  //   that parse_interwiki knows how many parentheses are in $InterwikiPtn.
  37  $InterwikiPtn = "([A-Za-z0-9]+):" .
  38                                  "(([^ \\/\"\']*\\/)*[^ \\t\\n\\/\"\']*[\\/=&~A-Za-z0-9])";
  39  
  40  // !!!WARNING!!!
  41  // If $AdminEnabled is set to 1, the script admin/index.php will be accessible.
  42  //   This allows administrators to lock pages and block IP addresses.  If you
  43  //   want to use this feature, YOU SHOULD FIRST BLOCK ACCESS TO THE admin/
  44  //   DIRECTORY BY OTHER MEANS, such as Apache's authorization directives.
  45  //   If you do not do so, any visitor to your wiki will be able to lock pages
  46  //   and block others from accessing the wiki.
  47  // If $AdminEnabled is set to 0, administrator control will be disallowed.
  48  $AdminEnabled = 0;
  49  
  50  // Old versions of pages will be deleted after $ExpireLen days.  If $ExpireLen
  51  //   is set to 0, old versions of pages (and pages set to empty) will never
  52  //   be removed from the database.
  53  $ExpireLen = 14;
  54  
  55  // Set $Charset to indicate the character set used for storage, editing,
  56  //   and display in your wiki.  The default is "ISO-8859-1" (Latin-1).
  57  //   "utf-8" is supported, and is recommended for international text;
  58  //   however you should be cautioned that Netscape does not behave correctly
  59  //   when editing utf-8 text.  Hence, "utf-8" is not currently the default.
  60  // eGW will set this later to its active charset, cant be done here as eGW is not yet initialised
  61  $Charset = 'ISO-8859-1';
  62  
  63  // $SeparateTitleWords determines whether spaces should be inserted in page
  64  //   titles.  If nonzero, the page title (but not header) of WikiName would
  65  //   show 'Wiki Name' instead.  Pages that have free link titles will not
  66  //   be changed.
  67  $SeparateTitleWords = 1;
  68  
  69  // $SeparateHeaderWords determines whether spaces should be inserted in page
  70  //   headers.  If nonzero, the page header of WikiName would show 'Wiki Name'
  71  //   instead.  Pages that have free link names would not have changed headers.
  72  $SeparateHeaderWords = 0;
  73  
  74  // $SeparateLinkWords determines whether spaces should be inserted in links
  75  //   to pages.  If nonzero, all links to pages such as WikiName would display
  76  //   as 'Wiki Name'.  Pages that have free link names would not have changed
  77  //   links.
  78  $SeparateLinkWords = 0;
  79  
  80  // $CookieName determines the name of the cookie that browser preferences
  81  //   (like user name, etc.) are stored in.
  82  $CookieName = 'prefs';
  83  
  84  // $EditRows and $EditCols determine the default dimensions of the wiki edit
  85  //   box for users that have not set their preferences.
  86  $EditRows = 20;
  87  $EditCols = 65;
  88  
  89  // Initialize the default user name to empty.
  90  $UserName = '';
  91  
  92  // Default time zone offset (in minutes) for visitors who haven't yet set their
  93  //   preferences.
  94  $TimeZoneOff = 0;
  95  
  96  // $AuthorDiff indicates whether history pages should show a diff for the last
  97  //   edit (zero), or for all edits made by the same author (not zero).  The
  98  //   default here is used if the user has not set their preferences.
  99  $AuthorDiff = 1;
 100  
 101  // $DayLimit determines how many days worth of changes show in a category list.
 102  //   This default is used if the user has not set their preferences.
 103  $DayLimit = 14;
 104  
 105  // $MinEntries determines the absolute minimum size of a category list (unless
 106  //   there are fewer pages *in* the category).  This default is used if the
 107  //   user has not set their preferences.
 108  $MinEntries = 20;
 109  
 110  // $HistMax determines the maximum number of entries on a page's history list.
 111  //   This default is used if the user has not set their preferences.
 112  $HistMax = 8;
 113  
 114  // $RatePeriod determines how many seconds of time to record a visitor's access
 115  //   to the site.  If it is set to zero, ALL RATE CHECKING AND IP ADDRESS
 116  //   BLOCKING WILL BE DISABLED.
 117  $RatePeriod = 300;
 118  
 119  // $RateView determines how many pages a visitor can view in $RatePeriod
 120  //   amount of time.
 121  $RateView   = 100;
 122  
 123  // $RateSearch determines how many processor-intensive operations (search,
 124  //   diff, etc.) a visitor can perform in $RatePeriod amount of time.
 125  $RateSearch = 50;
 126  
 127  // $RateEdit determines how many edits a visitor can make in $RatePeriod
 128  //   amount of time.
 129  $RateEdit   = 20;
 130  
 131  // $TempDir determines the location of temp files used for computing diffs.
 132  $TempDir = '/tmp';
 133  
 134  // $DiffCmd determines what command to run to compute diffs.
 135  $DiffCmd = '/usr/bin/diff';
 136  
 137  // $MaxPostLen determines the size, in bytes, of the largest edit allowed.
 138  $MaxPostLen = 204800;
 139  
 140  // $MaxNesting determines the maximum allowed nesting of lists.
 141  $MaxNesting = 20;
 142  
 143  // $MaxHeading determines the maximum allowed heading level in headings.
 144  $MaxHeading = 6;
 145  
 146  // $ParseEngine indicates what parsing rules will be run when displaying a
 147  //   wiki page.  To disable a particular rule, you can place a comment at the
 148  //   beginning of its line.  The order of this list is important.
 149  // Note that free links and wiki names are disabled above, using config
 150  //   variables.  This is because wiki names are parsed in other places than
 151  //   just the wiki page.
 152  // Raw HTML parsing is turned off by default, since this is a potential
 153  //   security hole.
 154  $ParseEngine = array(
 155                                   'parse_elem_flag',
 156                   'parse_remove_script',
 157                   'parse_htmlisms_outside_html',
 158  //                 'parse_raw_html',
 159  //                 'parse_htmlisms',
 160                                   'parse_code',
 161                                   'parse_nowiki',
 162                                   'parse_hyperlink_ref',
 163                                   'parse_hyperlink_description',
 164                                   'parse_hyperlink',
 165                                   'parse_macros',
 166                                   'parse_transclude',
 167                                   'parse_freelink',
 168                                   'parse_interwiki',
 169                                   'parse_wikiname',
 170                                   'parse_bold',
 171                                   'parse_italic',
 172                                   'parse_teletype',
 173                                   'parse_heading',
 174                                   'parse_table',
 175                                   'parse_horiz',
 176                                   'parse_indents',
 177                                   'parse_newline',
 178                                   'parse_elements'
 179                               );
 180  
 181  // convert wiki syntax to html, without any links!
 182  $ConvertEngine = array(
 183                                   'parse_elem_flag',
 184                   'parse_remove_script',
 185                   'parse_htmlisms_outside_html',
 186  //                 'parse_raw_html',
 187  //                 'parse_htmlisms',
 188                                   'parse_code',
 189                                   'parse_nowiki',
 190  //                 'parse_hyperlink_ref',
 191  //                 'parse_hyperlink_description',
 192  //                 'parse_hyperlink',
 193  //                 'parse_macros',
 194  //                 'parse_transclude',
 195  //                 'parse_freelink',
 196  //                 'parse_interwiki',
 197  //                 'parse_wikiname',
 198                                   'parse_bold',
 199                                   'parse_italic',
 200                                   'parse_teletype',
 201                                   'parse_heading',
 202                                   'parse_table',
 203                                   'parse_horiz',
 204                                   'parse_indents',
 205                                   'parse_newline',
 206                                   'parse_elements'
 207                               );
 208  
 209  // $DiffEngine indicates what parsing rules will be run to display differences
 210  //   between versions.  This should be a shorter list than $ParseEngine,
 211  //   since we just want minimal things like bold and italic and wiki links.
 212  $DiffEngine = array(
 213                                  'parse_elem_flag',
 214                                  'parse_diff_skip',
 215                                  'parse_diff_message',
 216                                  'parse_diff_color',
 217                                  'parse_htmlisms',
 218                                  'parse_nowiki',
 219                                  'parse_hyperlink_ref',
 220                                  'parse_hyperlink_description',
 221                                  'parse_hyperlink',
 222                                  'parse_freelink',
 223                                  'parse_interwiki',
 224                                  'parse_wikiname',
 225                                  'parse_bold',
 226                                  'parse_italic',
 227                                  'parse_teletype',
 228                                  'parse_newline',
 229                                  'parse_elements'
 230                              );
 231  
 232  // $DisplayEngine indicates what functions will be used to translate wiki
 233  //   markup elements into actual HTML.  See parse/html.php
 234  $DisplayEngine = array(
 235                                       'bold_start'   => 'html_bold_start',
 236                                       'bold_end'     => 'html_bold_end',
 237                                       'italic_start' => 'html_italic_start',
 238                                       'italic_end'   => 'html_italic_end',
 239                                       'tt_start'     => 'html_tt_start',
 240                                       'tt_end'       => 'html_tt_end',
 241                                       'head_start'   => 'html_head_start',
 242                                       'head_end'     => 'html_head_end',
 243                                       'newline'      => 'html_newline',
 244                                       'ref'          => 'html_ref',
 245                                       'url'          => 'html_url',
 246                                       'interwiki'    => 'html_interwiki',
 247                                       'raw'          => 'html_raw',
 248                                       'code'         => 'html_code',
 249                                       'hr'           => 'html_hr',
 250                                       'nowiki'       => 'html_nowiki',
 251                                       'anchor'       => 'html_anchor',
 252                                       'bullet_list_start'   => 'html_ul_start',
 253                                       'bullet_list_end'     => 'html_ul_end',
 254                                       'bullet_item_start'   => 'html_li_start',
 255                                       'bullet_item_end'     => 'html_li_end',
 256                                       'indent_list_start'   => 'html_dl_start',
 257                                       'indent_list_end'     => 'html_dl_end',
 258                                       'indent_item_start'   => 'html_dd_start',
 259                                       'indent_item_end'     => 'html_dd_end',
 260                                       'term_item_start'     => 'html_dt_start',
 261                                       'term_item_end'       => 'html_dt_end',
 262                                       'numbered_list_start' => 'html_ol_start',
 263                                       'numbered_list_end'   => 'html_ol_end',
 264                                       'numbered_item_start' => 'html_li_start',
 265                                       'numbered_item_end'   => 'html_li_end',
 266                                       'diff_old_start'      => 'html_diff_old_start',
 267                                       'diff_old_end'        => 'html_diff_end',
 268                                       'diff_new_start'      => 'html_diff_new_start',
 269                                       'diff_new_end'        => 'html_diff_end',
 270                                       'diff_change'         => 'html_diff_change',
 271                                       'diff_add'            => 'html_diff_add',
 272                                       'diff_delete'         => 'html_diff_delete'
 273                                   );
 274  
 275  // $ViewMacroEngine determines what macro names will be processed when
 276  //   displaying a page.  For each name, a function must be provided.
 277  //   See parse/macros.php
 278  $ViewMacroEngine = array(
 279                                           '!'             => 'view_macro_category',
 280                                           'Anchor'        => 'view_macro_anchor',
 281                                           'Transclude'    => 'view_macro_transclude',
 282                                           'PageSize'      => 'view_macro_pagesize',
 283                                           'LinkTable'     => 'view_macro_linktab',
 284                                           'OrphanedPages' => 'view_macro_orphans',
 285                                           'WantedPages'   => 'view_macro_wanted',
 286                                           'PageLinks'     => 'view_macro_outlinks',
 287                                           'PageRefs'      => 'view_macro_refs'
 288                                       );
 289  
 290  // $SaveMacroEngine determines what save macros will be called after a
 291  //   page is saved.  See parse/save.php
 292  $SaveMacroEngine = array(
 293                                           'parse_define_interwiki',
 294                                           'parse_define_sisterwiki',
 295                                           'parse_define_links'
 296                                       );
 297  ?>


Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7