| 1 | <?php if (!defined('PmWiki')) exit(); |
| 2 | |
| 3 | $EnablePathInfo = 1; # in fact works with apache rewrite, name is misleading |
| 4 | $EnableGUIButtons = 1; |
| 5 | $EnableUpload = 1; |
| 6 | $LinkWikiWords = 0; # disable WikiWord links |
| 7 | $EnableIMSCaching = 1; # allow browser caching |
| 8 | |
| 9 | $ScriptUrl = '.'; #\ |
| 10 | $UploadUrlFmt = './uploads'; # } works thanks to the <base /> in skin |
| 11 | $PubDirUrl = './wiki'; #/ |
| 12 | |
| 13 | $WorkDir = '../spool/wiki.d'; |
| 14 | $WikiDir = new PageStore('$FarmD/'.$WorkDir.'/$FullName'); |
| 15 | $InterMapFiles[] = $globals->spoolroot.'plugins/pmwiki.intermap.txt'; |
| 16 | |
| 17 | $Skin = 'empty'; |
| 18 | |
| 19 | XLSDV('en', array('EnterAttributes' => |
| 20 | "Entre ici les différents droit pour la page. Les champs laissés en blanc ne seront pas modifiés. |
| 21 | Pour enlever une restriction ou une autorisation entre <strong>clear</strong>. |
| 22 | Les différentes restrictions possibles sont : |
| 23 | <ul> |
| 24 | <li><strong>public:</strong> (pour tout le monde)</li> |
| 25 | <li><strong>logged:</strong> (pour ceux qui ont rentré leur mot de passe ou qui ont un cookie permanent)</li> |
| 26 | <li><strong>identified:</strong> (exige une identification par mot de passe)</li> |
| 27 | <li><strong>has_perms:</strong> (pour les administrateurs de la page)</li> |
| 28 | </ul> |
| 29 | Le <strong>:</strong> à la fin de chaque mot clef est important. Tu peux également combiner plusieurs mots clefs avec <strong>and:</strong> |
| 30 | ou des espaces (qui remplace le <em>ou</em> logique)<br/>")); |
| 31 | |
| 32 | include_once($globals->spoolroot."/plugins/pmwiki.platalAuth.php"); |
| 33 | @include_once("$FarmD/cookbook/e-protect.php"); |
| 34 | |
| 35 | $DefaultPasswords['read'] = 'logged:'; |
| 36 | $DefaultPasswords['edit'] = 'has_perms:'; |
| 37 | $DefaultPasswords['attr'] = 'has_perms: and: identified:'; |
| 38 | $DefaultPasswords['admin'] = 'has_perms: and: identified:'; |
| 39 | $DefaultPasswords['upload'] = 'has_perms: and: identified:'; |
| 40 | |
| 41 | // Theme-ing {{{ |
| 42 | |
| 43 | ## The following lines make additional editing buttons appear in the |
| 44 | ## edit page for subheadings, lists, tables, etc. |
| 45 | $GUIButtons['h2'] = array(400, '\\n!! ', '\\n', '$[Heading]', |
| 46 | '$GUIButtonDirUrlFmt/h2.gif"$[Heading]"'); |
| 47 | $GUIButtons['h3'] = array(402, '\\n!!! ', '\\n', '$[Subheading]', |
| 48 | '$GUIButtonDirUrlFmt/h3.gif"$[Subheading]"'); |
| 49 | $GUIButtons['indent'] = array(500, '\\n->', '\\n', '$[Indented text]', |
| 50 | '$GUIButtonDirUrlFmt/indent.gif"$[Indented text]"'); |
| 51 | $GUIButtons['outdent'] = array(510, '\\n-<', '\\n', '$[Hanging indent]', |
| 52 | '$GUIButtonDirUrlFmt/outdent.gif"$[Hanging indent]"'); |
| 53 | $GUIButtons['ol'] = array(520, '\\n# ', '\\n', '$[Ordered list]', |
| 54 | '$GUIButtonDirUrlFmt/ol.gif"$[Ordered (numbered) list]"'); |
| 55 | $GUIButtons['ul'] = array(530, '\\n* ', '\\n', '$[Unordered list]', |
| 56 | '$GUIButtonDirUrlFmt/ul.gif"$[Unordered (bullet) list]"'); |
| 57 | $GUIButtons['hr'] = array(540, '\\n----\\n', '', '', |
| 58 | '$GUIButtonDirUrlFmt/hr.gif"$[Horizontal rule]"'); |
| 59 | $GUIButtons['table'] = array(600, |
| 60 | '||border=1 width=80%\\n||!Hdr ||!Hdr ||!Hdr ||\\n|| || || ||\\n|| || || ||\\n', '', '', |
| 61 | '$GUIButtonDirUrlFmt/table.gif"$[Table]"'); |
| 62 | |
| 63 | // set default author |
| 64 | $Author = $_SESSION['forlife'].'|'.$_SESSION['prenom'].' '.$_SESSION['nom']; |
| 65 | |
| 66 | $InputTags['e_form'] = array( |
| 67 | ':html' => "<form action='{\$PageUrl}?action=edit' method='post'><div><input |
| 68 | type='hidden' name='action' value='edit' /><input |
| 69 | type='hidden' name='n' value='{\$FullName}' /><input |
| 70 | type='hidden' name='basetime' value='\$EditBaseTime' /></div>"); |
| 71 | |
| 72 | // set profiles to point to plat/al fiche |
| 73 | Markup('[[~platal', '<[[~', '/\[\[~([^|\]]*)\|([^\]]*)\]\]/e', |
| 74 | 'PreserveText("=", \'<a href="profile/$1" class="popup2">$2</a>\', "")'); |
| 75 | |
| 76 | // prevent restorelinks before block apply (otherwise [[Sécurité]] will give |
| 77 | // .../S<span class='e9curit'>e9'>Sécurité</a> |
| 78 | Markup('restorelinks','<%%',"//", ''); |
| 79 | |
| 80 | ## [[#anchor]] in standard XHTML |
| 81 | Markup('[[#','<[[','/(?>\\[\\[#([A-Za-z][-.:\\w]*))\\]\\]/e', |
| 82 | "Keep(\"<a id='$1'></a>\",'L')"); |
| 83 | |
| 84 | Markup('tablebicol', '<block', '/\(:tablebicol ?([a-z_]+)?:\)/e', 'doBicol("$1")'); |
| 85 | Markup('pairrows', '_end', '/class=\'pair\_pmwiki\_([0-9]+)\'/e', |
| 86 | "($1 == 1)?'':('class=\"'.(($1 % 2 == 0)?'impair':'pair').'\"')"); |
| 87 | Markup('noclassth', '_end', '/<th class=\'[a-z_]+\'/', '<th'); |
| 88 | |
| 89 | Markup('div', '<links', '/\(:div([^:]*):([^\)]*):\)/i', '<div$1>$2</div>'); |
| 90 | |
| 91 | function doBicol($column=false) |
| 92 | { |
| 93 | global $TableRowIndexMax, $TableRowAttrFmt, $TableCellAttrFmt; |
| 94 | $TableRowAttrFmt = "class='pair_pmwiki_\$TableRowCount'"; |
| 95 | if ($column) { |
| 96 | $TableCellAttrFmt = "class='$column'"; |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | // }}} |
| 101 | ?> |