| [ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 /**************************************************************************\ 3 * eGroupWare - Setup * 4 * http://www.eGroupWare.org * 5 * -------------------------------------------- * 6 * This program is free software; you can redistribute it and/or modify it * 7 * under the terms of the GNU General Public License as published by the * 8 * Free Software Foundation; either version 2 of the License, or (at your * 9 * option) any later version. * 10 \**************************************************************************/ 11 12 /* $Id: default_records.inc.php 22178 2006-07-28 17:35:08Z ralfbecker $ */ 13 14 $time = time(); 15 $oProc->query("DELETE FROM egw_wiki_pages"); 16 foreach(array( 17 'RecentChanges' => '[[! *]]', 18 'eGroupWare' => "Welcome to '''Wiki''' - the eGroupWare Version of '''WikkiTikkiTavi'''. Wikis are a revolutionary new form of collaboration and online community. 19 20 '''eGroupWare''' is the groupware suite you are useing right now. For further information see http://www.eGroupWare.org", 21 'WikkiTikkiTavi' => "= WikkiTikkiTavi = 22 23 WikkiTikkiTavi is the original version of this documentation system. Their [http://tavi.sourceforge.net documentation] is usable for the eGroupWare '''Wiki''' too. 24 25 '''Learn about Wiki formatting:''' 26 ---- 27 SmashWordsTogether to create a page link. Click on the ? to edit the new page. 28 29 You can also create ((free links)) that aren't WordsSmashedTogether. Type them like this: {{```((free links))```}}. 30 ---- 31 {{```''italic text''```}} becomes ''italic text'' 32 ---- 33 {{```'''bold text'''```}} becomes '''bold text''' 34 ---- 35 {{```{{monospace text}}```}} becomes {{monospace text}} 36 ---- 37 {{```----```}} becomes a horizontal rule: 38 ---- 39 Create a remote link simply by typing its URL: http://www.egroupware.org 40 41 If you like, enclose it in brackets to create a numbered reference and avoid cluttering the page; {{```[http://www.php.net]```}} becomes [http://www.php.net]. 42 43 Or you can have a description instead of a numbered reference; {{```[http://www.php.net/manual/en/ PHP Manual]```}} becomes [http://www.php.net/manual/en/ PHP Manual] 44 ---- 45 You can put a picture in a page by typing the URL to the picture (it must end in gif, jpg, or png). For example, {{```http://www.egroupware.org/egroupware/phpgwapi/templates/idots/images/logo.png```}} becomes 46 http://www.egroupware.org/egroupware/phpgwapi/templates/idots/images/logo.png 47 ---- 48 There are 2 possibilities for '''code formatting''': 49 {{'''{{\$is_admin = \$GLOBALS['phpgw_info']['user']['apps']['admin'];}}'''}} 50 or 51 {{<code>}} 52 if (\$_POST['add']) 53 { 54 do_something(); 55 } 56 {{</code>}} 57 becomes 58 59 {{\$GLOBALS['phpgw_info']['user']['apps']['admin']}} 60 or 61 <code> 62 if (\$_POST['add']) 63 { 64 do_something(); 65 } 66 </code> 67 ---- 68 You can indent by starting a paragraph with one or more colons. 69 70 {{```:Indent me!```}} 71 {{```::Me too!```}} 72 becomes 73 74 :Indent me 75 ::Me too! 76 ---- 77 You can create bullet lists by starting a paragraph with one or more asterisks. 78 79 {{```*Bullet one```}} 80 {{```**Sub-bullet```}} 81 becomes 82 83 *Bullet one 84 **Sub-bullet 85 ---- 86 You can create a description list by starting a paragraph with the following syntax 87 88 {{```*;Item 1: Something```}} 89 {{```*;Item 2: Something else```}} 90 91 which gives 92 93 *;Item 1: Something 94 *;Item 2: Something else 95 ---- 96 Similarly, you can create numbered lists by starting a paragraph with one or more hashes. 97 98 {{```#Numero uno```}} 99 {{```#Number two```}} 100 {{```##Sub-item```}} 101 becomes 102 103 #Numero uno 104 #Number two 105 ##Sub-item 106 ---- 107 You can mix and match list types: 108 109 <code> 110 #Number one 111 #*Bullet 112 #Number two 113 </code> 114 #Number one 115 #*Bullet 116 #Number two 117 ---- 118 You can make various levels of heading by putting = signs before and after the text = 119 = Level 1 heading = 120 == Level 2 heading == 121 === Level 3 heading === 122 ==== Level 4 heading ==== 123 ===== Level 5 heading ===== 124 ====== Level 6 heading ====== 125 <code> 126 = Level 1 heading = 127 == Level 2 heading == 128 === Level 3 heading === 129 ==== Level 4 heading ==== 130 ===== Level 5 heading ===== 131 ====== Level 6 heading ====== 132 </code> 133 ---- 134 You can create tables using pairs of vertical bars: 135 136 ||cell one || cell two || 137 |||| big ol' line || 138 || cell four || cell five || 139 || cell six || here's a very long cell || 140 141 <code> 142 ||cell one || cell two || 143 |||| big ol' line || 144 || cell four || cell five || 145 || cell six || here's a very long cell || 146 </code> 147 ", 148 ) as $name => $body) 149 { 150 $oProc->insert('egw_wiki_pages',array( 151 'wiki_id' => 0, 152 'wiki_name' => $name, 153 'wiki_lang' => 'en', 154 'wiki_version' => 1, 155 'wiki_time' => $time, 156 'wiki_supercede' => $time, 157 'wiki_readable' => 0, 158 'wiki_writable' => 0, 159 'wiki_username' => 'setup', 160 'wiki_hostname' => 'localhost', 161 'wiki_title' => $name, 162 'wiki_body' => $body, 163 'wiki_comment' => 'added by setup', 164 ),false,__LINE__,__FILE__,'wiki'); 165 } 166 167
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
| Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |