Changeset 808

Show
Ignore:
Timestamp:
09/16/07 23:04:26 (2 years ago)
Author:
WanWizard
Message:

first attempt at an image upload for the wiki editor
lots of 'updates' due to a global dos2unix conversion of the PHP files

Location:
merge/infusions/PLi-Templated
Files:
2 added
13 modified

Legend:

Unmodified
Added
Removed
  • merge/infusions/PLi-Templated/shoutbox_panel/php-files/modules/shoutbox_panel/locale/Greek.php

    r786 r808  
    11<?php 
    2 $locale['400'] = "��� ���� 
    3 $locale['401'] = "� ������; 
     2$locale['400'] = "��� ����$locale['401'] = "� ������; 
    43$locale['402'] = "��� � ��� �Shoutbox"; 
    5 $locale['403'] = "��� � ������ 
    6 $locale['404'] = "��� ��"; 
     4$locale['403'] = "��� � ������$locale['404'] = "��� ��"; 
    75$locale['405'] = "� ������ 
    86// Edit Shout 
     
    1311$locale['430'] = "��� ����� ���"; 
    1412$locale['431'] = " ��; 
    15 $locale['432'] = "��� ��� 
    16 // Current Shouts 
     13$locale['432'] = "��� ���// Current Shouts 
    1714$locale['440'] = "�����"; 
    1815$locale['441'] = "����"; 
  • merge/infusions/PLi-Templated/shoutbox_panel/php-files/modules/shoutbox_panel/locale/Lithuanian.php

    r786 r808  
    1212// Prune Shoutbox 
    1313$locale['430'] = "Trinti �inutes, senesnes nei"; 
    14 $locale['431'] = " dien�$locale['432'] = "Trinti �inutes"; 
     14$locale['431'] = " dien�locale['432'] = "Trinti �inutes"; 
    1515// Current Shouts 
    1616$locale['440'] = "Esamos �inut�; 
  • merge/infusions/PLi-Templated/shoutbox_panel/php-files/modules/shoutbox_panel/locale/Polish.php

    r786 r808  
    1717$locale['440'] = "Obecne Wpisy"; 
    1818$locale['441'] = "Edycja"; 
    19 $locale['442'] = "Usu� 
    20 $locale['443'] = "IP U�ytkownika: "; 
     19$locale['442'] = "Usu�$locale['443'] = "IP U�ytkownika: "; 
    2120$locale['444'] = "Brak Wpis�; 
    2221?> 
  • merge/infusions/PLi-Templated/shoutbox_panel/php-files/modules/shoutbox_panel/locale/Russian.php

    r786 r808  
    1111$locale['422'] = "���"; 
    1212// Prune Shoutbox 
    13 $locale['430'] = "������ �� 
    14 $locale['431'] = " �� 
     13$locale['430'] = "������ ��$locale['431'] = " �� 
    1514$locale['432'] = "��� 
    1615// Current Shouts 
  • merge/infusions/PLi-Templated/wiki/php-files/modules/wiki/actions/footer.php

    r806 r808  
    77    echo "<a href=\"".$this->href("history")."\" title=\"Click to view recent edits to this page\">Page History</a> |\n"; 
    88    echo $this->GetPageTime() ? "<a href=\"".$this->href("revisions")."\" title=\"Click to view recent revisions list for this page\">".$this->GetPageTime()."</a> |\n" : ""; 
    9     echo ($this->GetUser() ? "<a href='".$this->href("referrers")."' title='Click to view a list of URLs referring to this page.'>Referrers</a> |" : ""); 
     9    echo ($this->GetUser() ? "<a href='".$this->href("referrers")."' title='Click to view a list of URLs referring to this page.'>Referrers</a> |\n" : ""); 
    1010    // if this page exists 
    1111    if ($this->page) 
     
    5050</tr> 
    5151</table> 
    52 <table> 
     52<table width='100%'> 
    5353<tr> 
    5454    <td width='1%'> 
    5555<?php  
    56 echo $this->GetPageTime() ? " <a href=\"".$this->href("revisions.xml")."\" title=\"Click to view recent page revisions in XML format.\"><img src=\"images/xml.png\" width=\"36\" height=\"14\" align=\"bottom\" style=\"border : 0px;\" alt=\"XML\" /></a>\n" : ""; 
     56echo $this->GetPageTime() ? " <a href=\"".$this->href("revisions.xml")."\" title=\"Click to view recent page revisions in XML format.\"><img src=\"images/xml.png\" width=\"36\" height=\"14\" align=\"bottom\" style=\"border : 0px;\" alt=\"XML\" /></a>\n" : "&nbsp;"; 
    5757?> 
    5858    </td> 
    59     <td> 
     59    <td width='99%' align='right'> 
    6060        <div class="smallprint"> 
    6161        <?php echo $this->Link("http://validator.w3.org/check/referer", "", "Valid XHTML 1.0 Transitional") ?> | 
  • merge/infusions/PLi-Templated/wiki/php-files/modules/wiki/actions/stub.php

    r806 r808  
    99    * DavePreston (www.davepreston.me.uk) 
    1010    */ 
    11     $stub = "===Be the first to edit this page!===\n"; 
    12     $stub .= "==This page is a [[Stub]]==\nIf you are a member of this website, you can help to make this Wiki more useful by adding information to it.\nJust click on the \"Edit page\" link at the bottom left of the page or double-click on the page text.\n\n"; 
    13     $stub .= "If this is the first time you add information to this Wiki, please make sure you are familiar with the WikiFormat and the WikiRules, that will save as a lot of editing.\n\n"; 
     11    $stub = ">>@@This page is a **WikiStub**@@>>"; 
     12    $stub .= "===Be the first to edit this page!===\n\n\n"; 
     13    $stub .= "If you are a member of this website, you can help to make this Wiki more useful by adding information to it.\n\nJust click on the \"Edit page\" link at the bottom left of the page or double-click on the page text.\n\n"; 
     14    $stub .= "If this is the first time you add information to this Wiki, please make sure you are familiar with the WikiRules and the FormattingRules, that will save us a lot of editing.\n\n"; 
    1415    $stub .= "Thank you for your efforts in making this Wiki grow!"; 
    1516     
  • merge/infusions/PLi-Templated/wiki/php-files/modules/wiki/css/wikka.css

    r806 r808  
    77 
    88.searchbox { 
    9     // border: none; 
    109    border: 1px solid #CCCCAA; 
    1110    padding: 0px; 
     
    4241    border: 1px #bbb solid; 
    4342    height: 100%; 
     43} 
     44 
     45.page a { 
     46    text-decoration: none; 
     47} 
     48 
     49.page a:hover { 
     50    color: #993333; 
     51    text-decoration: underline; 
    4452} 
    4553 
     
    133141    font-weight: bold; 
    134142    color: green; 
    135     background-color: antiquewhite; 
     143    background-color: white; 
    136144} 
    137145 
     
    271279.additions {background-color: #ccffcc;} 
    272280 
    273 .deletions {color: #876; background-color: #FFCC99;} 
    274  
    275 .recentchanges {font-size: 0.9em;} 
     281.deletions {background-color: #EFA4A4;} 
     282 
     283.recentchanges { } 
    276284 
    277285.pagenote {color: #888;} 
     
    279287.smaller {font-size: smaller;} 
    280288 
    281 .smallprint {font-size: 0.8em; color: #777; padding-right: 0.5%; text-align: right;} 
     289.smallprint {font-size: 0.9em; color: #777; } 
    282290 
    283291.smallprint a { 
     
    482490.editornamecss { background-color:#CCCCFF; font-size: 18px; padding: 0 10px; } 
    483491 
    484 /* 
    485 p, td, li, input, select, textarea { 
    486     font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif; 
    487     line-height: 20px; 
    488     font-size: 13px; 
    489 } 
    490  
    491492form, h1, h2, h3, h4, h5 { 
    492493    margin: 0px; 
    493494    padding: 0px; 
    494 } 
    495  
    496 body { 
    497     font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif; font-size: 13px; 
    498 //  text-align: justify;            // comment out this line if you really need justified text  
    499     line-height: 20px; 
    500     color: #000000; 
    501     background-color: #F8F8F8; 
    502 } 
    503  
    504 a { 
    505     color: #333399; 
    506     text-decoration: none; 
    507 } 
    508  
    509 a:visited { 
    510     text-decoration: none; 
    511 } 
    512  
    513 a:hover { 
    514     color: #993333; 
    515 } 
    516  
    517 a:active { 
    518     text-decoration: none; 
    519495} 
    520496 
     
    531507    position: relative; 
    532508    bottom: 0.5ex; 
    533 } 
    534  
    535  
    536 .page a { 
    537     text-decoration: none; 
    538 } 
    539  
    540 .page a:hover { 
    541     color: #993333; 
    542     text-decoration: underline; 
    543509} 
    544510 
     
    562528} 
    563529 
    564  
     530/* 
    565531input[type=submit], input[type=button] { 
    566532    font-family: Arial, Helvetica, sans-serif; 
     
    574540    border-bottom: 2px solid #336; 
    575541} 
    576  
     542*/ 
    577543input[type=submit]:hover, input[type=button]:hover { 
    578544    background-color: #66C; 
  • merge/infusions/PLi-Templated/wiki/php-files/modules/wiki/handlers/page/delete.php

    r806 r808  
    2828        <table border="0" cellspacing="0" cellpadding="0"> 
    2929            <tr> 
    30                 <td>Completely delete this page, including all comments?</td> 
     30                <td> 
     31                    Completely delete this page, including all comments?<br /><br /> 
     32                </td> 
    3133            </tr> 
    3234            <tr> 
    33                 <td> <!-- nonsense input so form submission works with rewrite mode --><input type="hidden" value="" name="null"><input type="submit" value="Delete Page"  style="width: 120px"   /> 
     35                <td> <!-- nonsense input so form submission works with rewrite mode --> 
     36                <input type="hidden" value="" name="null"> 
     37                <input type="submit" class="button" value="Delete Page"  style="width: 120px"   /> 
    3438                <input type="button" class="button" value="Cancel" onclick="history.back();" style="width: 120px" /></td> 
    3539            </tr> 
  • merge/infusions/PLi-Templated/wiki/php-files/modules/wiki/handlers/page/history.php

    r806 r808  
    5454 
    5555                        if ($c == 2) { 
    56                             $output .= '<strong>'.sprintf(MOST_RECENT_EDIT, '<a href="'.$this->Href('', '', 'time='.urlencode($pageA['time'])).'">'.$pageA['time'].'</a>', $EditedByUser).'</strong> <span class="pagenote smaller">'.$note."</span><br />\n"; 
     56                            $output .= '<strong>'.sprintf(MOST_RECENT_EDIT, '<a href="'.$this->Href('', '', 'time='.urlencode($pageA['time'])).'">'.$pageA['time'].'</a>', $EditedByUser).'</strong> '.($note==""?'':('<span class="pagenote smaller">'.$note.'</span>'))."<br />\n"; 
    5757                        } 
    5858                        else { 
    59                             $output .= '<strong>'.sprintf(EDITED_ON,        '<a href="'.$this->Href('', '', 'time='.urlencode($pageA['time'])).'">'.$pageA['time'].'</a>', $EditedByUser).'</strong> <span class="pagenote smaller">'.$note."</span><br />\n"; 
     59                            $output .= '<strong>'.sprintf(EDITED_ON,        '<a href="'.$this->Href('', '', 'time='.urlencode($pageA['time'])).'">'.$pageA['time'].'</a>', $EditedByUser).'</strong> '.($note==""?'':('<span class="pagenote smaller">'.$note.'</span>'))."<br />\n"; 
    6060                        } 
    6161 
     
    8787            } 
    8888        } 
    89   $output .= '<strong>'.sprintf(OLDEST_VERSION_EDITED_ON_BY, '<a href="'.$this->href('', '', 'time='.urlencode($pageB['time'])).'">'.$pageB['time'].'</a>', $EditedByUser).'</strong> <span class="pagenote smaller">['.$this->htmlspecialchars_ent($page['note'])."]</span></strong><br />\n"; 
     89        $output .= '<strong>'.sprintf(OLDEST_VERSION_EDITED_ON_BY, '<a href="'.$this->href('', '', 'time='.urlencode($pageB['time'])).'">'.$pageB['time'].'</a>', $EditedByUser).'</strong> <span class="pagenote smaller">['.$this->htmlspecialchars_ent($page['note'])."]</span><br />\n"; 
    9090        $output .= '<div class="revisioninfo">'.HISTORY_PAGE_VIEW.'</div>'.$this->Format(implode("\n", $bodyB)); 
    9191        print($output); 
  • merge/infusions/PLi-Templated/wiki/php-files/modules/wiki/handlers/page/revisions.xml.php

    r806 r808  
    3838 
    3939$xml = '<?xml version="1.0" encoding="'.I18N_ENCODING_UTF8.'"?>'."\n"; 
     40$xml .= '<?xml-stylesheet type="text/css" href="css/xml.css"?>'."\n"; 
    4041$xml .= '<rss version="'.RSS_REVISIONS_VERSION.'">'."\n"; 
    4142$xml .= "<channel>\n"; 
  • merge/infusions/PLi-Templated/wiki/php-files/modules/wiki/index.php

    r806 r808  
    88require_once dirname(__FILE__)."/../../includes/core_functions.php"; 
    99require_once PATH_ROOT."/includes/theme_functions.php"; 
     10 
     11/*---------------------------------------------------+ 
     12| Image uploads - handling and preparation           | 
     13+----------------------------------------------------*/ 
     14$variables[] = array(); 
     15 
     16// load the locale for this module 
     17include PATH_LOCALE.LOCALESET."admin/image_uploads.php"; 
     18 
     19$variables['image_cats'][] = array('folder' => "wiki", 'name' => 'Wiki', 'path' => PATH_IMAGES."wiki/", 'selected' => true); 
     20$ufolder = IMAGES."wiki/"; 
     21$afolder = PATH_IMAGES."wiki/"; 
     22 
     23if (isset($status)) { 
     24    if ($status == "upn") { 
     25        $title = $locale['420']; 
     26        $variables['message'] = $locale['425']; 
     27    } elseif ($status == "upy") { 
     28        $title = $locale['420']; 
     29        $variables['message'] = "<img src='".$ufolder.$img."' alt='$img' /><br /><br />".$locale['426']; 
     30    } 
     31    // define the message panel variables 
     32    $variables['bold'] = true; 
     33    $template_panels[] = array('type' => 'body', 'name' => 'wiki.upload.status', 'title' => $title, 'template' => '_message_table_panel.tpl'); 
     34    $template_variables['wiki.upload.status'] = $variables; 
     35    $variables = array(); 
     36} 
     37 
     38// if a file is uploaded, process it 
     39if (isset($_POST['uploadimage'])) { 
     40    $error = ""; 
     41    $image_types = array( 
     42        ".gif", 
     43        ".GIF", 
     44        ".jpeg", 
     45        ".JPEG", 
     46        ".jpg", 
     47        ".JPG", 
     48        ".png", 
     49        ".PNG" 
     50    ); 
     51    $imgext = strrchr($_FILES['myfile']['name'], "."); 
     52    $imgname = $_FILES['myfile']['name']; 
     53    $imgsize = $_FILES['myfile']['size']; 
     54    $imgtemp = $_FILES['myfile']['tmp_name']; 
     55    if (!in_array($imgext, $image_types)) { 
     56        redirect(FUSION_REQUEST); 
     57    } elseif (is_uploaded_file($imgtemp)){ 
     58        include PATH_INCLUDES."photo_functions_include.php"; 
     59        $imgname = image_exists($afolder, substr("000000".$userdata['user_id'],-6).'_'.$imgname); 
     60        move_uploaded_file($imgtemp, $afolder.$imgname); 
     61        chmod($afolder.$imgname,0644); 
     62        redirect(FUSION_REQUEST); 
     63    } 
     64} 
    1065 
    1166/*---------------------------------------------------+ 
     
    374429 */ 
    375430if (substr($_SERVER["QUERY_STRING"], -4) == ".xml") { 
     431 
    376432    echo $page_output; 
     433 
    377434} else { 
     435 
    378436    $variables['html'] = $page_output; 
    379437    $template_panels[] = array('type' => 'body', 'title' => $wakkaConfig['wakka_name'], 'name' => 'wiki', 'template' => '_custom_html.tpl'); 
    380438    $template_variables['wiki'] = $variables; 
     439 
     440    // in edit mode? Allow image uploads 
     441    if (iMEMBER && $method == "edit") { 
     442        $variables['ifolder'] = $ifolder; 
     443        $variables['view'] = isset($view) ? $view : ""; 
     444 
     445        if (isset($view)) { 
     446            $image_ext = strrchr($afolder.$view,"."); 
     447            if (in_array($image_ext, array(".gif",".GIF",".jpg",".JPG",".jpeg",".JPEG",".png",".PNG"))) { 
     448                $variables['view_image'] = $ufolder.$view; 
     449            } else { 
     450                $variables['view_image'] = ""; 
     451            } 
     452        } else { 
     453            $variables['image_list'] = makefilelist($afolder, ".|..|imagelist.js|index.php", true); 
     454        } 
     455        $template_panels[] = array('type' => 'body', 'name' => 'modules.wiki.upload', 'template' => 'modules.wiki.upload.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/image_uploads.php"); 
     456        $template_variables['modules.wiki.upload'] = $variables; 
     457    } 
    381458     
    382459    require_once PATH_THEME."/theme.php"; 
    383460} 
    384461?> 
     462<?php 
     463die(); 
     464/*---------------------------------------------------+ 
     465| PLi-Fusion Content Management System               | 
     466+----------------------------------------------------+ 
     467| Copyright 2007 WanWizard (wanwizard@gmail.com)     | 
     468| http://www.pli-images.org/pli-fusion               | 
     469+----------------------------------------------------+ 
     470| Some portions copyright ? 2002 - 2006 Nick Jones   | 
     471| http://www.php-fusion.co.uk/                       | 
     472| Released under the terms & conditions of v2 of the | 
     473| GNU General Public License. For details refer to   | 
     474| the included gpl.txt file or visit http://gnu.org  | 
     475+----------------------------------------------------*/ 
     476require_once dirname(__FILE__)."/../includes/core_functions.php"; 
     477require_once PATH_ROOT."/includes/theme_functions.php"; 
     478 
     479// load the locale for this module 
     480include PATH_LOCALE.LOCALESET."admin/image_uploads.php"; 
     481 
     482// temp storage for template variables 
     483$variables = array(); 
     484 
     485//check if the user has a right to be here. If not, bail out 
     486if (!checkrights("IM") || !defined("iAUTH") || $aid != iAUTH) fallback(BASEDIR."index.php"); 
     487 
     488// set a default if the selected folder is not given 
     489if (!isset($ifolder)) $ifolder = "images"; 
     490 
     491// include the TinyMCE buildlist code if regeneration of the list is requested 
     492if (isset($action) && $action = "update") include PATH_INCLUDES."buildlist.php"; 
     493 
     494// build the list of available image categories (skip internal CMS image subdirectories) 
     495$variables['image_cats'] = array(); 
     496$dirlist = makefilelist(PATH_IMAGES, ".|..|advertising|avatars|flags|smiley", true, 'folders'); 
     497$variables['image_cats'][] = array('folder' => "images", 'name' => $locale['422'], 'path' => PATH_IMAGES, 'selected' => ($ifolder == "images")); 
     498foreach($dirlist as $entry) { 
     499    $name = ucwords(str_replace("_", " ", $entry)); 
     500    $variables['image_cats'][] = array('folder' => $entry, 'name' => $name, 'path' => PATH_IMAGES.$entry."/", 'selected' => ($ifolder == $entry)); 
     501} 
     502$ufolder = IMAGES.($ifolder == "images" ? "" : $ifolder."/"); 
     503$afolder = PATH_IMAGES.($ifolder == "images" ? "" : $ifolder."/"); 
     504 
     505if (isset($status)) { 
     506    if ($status == "del") { 
     507        $title = $locale['400']; 
     508        $variables['message'] = $locale['401']; 
     509    } elseif ($status == "upn") { 
     510        $title = $locale['420']; 
     511        $variables['message'] = $locale['425']; 
     512    } elseif ($status == "upy") { 
     513        $title = $locale['420']; 
     514        $variables['message'] = "<img src='".$ufolder.$img."' alt='$img' /><br /><br />".$locale['426']; 
     515    } 
     516    // define the message panel variables 
     517    $variables['bold'] = true; 
     518    $template_panels[] = array('type' => 'body', 'name' => 'admin.forums.status', 'title' => $title, 'template' => '_message_table_panel.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/forums.php"); 
     519    $template_variables['admin.forums.status'] = $variables; 
     520    $variables = array(); 
     521} 
     522 
     523if (isset($del)) { 
     524    unlink($afolder."$del"); 
     525    if ($settings['tinymce_enabled'] == 1) include PATH_INCLUDES."buildlist.php"; 
     526    redirect(FUSION_SELF.$aidlink."&status=del&ifolder=$ifolder"); 
     527} else if (isset($_POST['uploadimage'])) { 
     528} else { 
     529    $variables['ifolder'] = $ifolder; 
     530    $variables['view'] = isset($view) ? $view : ""; 
     531 
     532    if (isset($view)) { 
     533        $image_ext = strrchr($afolder.$view,"."); 
     534        if (in_array($image_ext, array(".gif",".GIF",".jpg",".JPG",".jpeg",".JPEG",".png",".PNG"))) { 
     535            $variables['view_image'] = $ufolder.$view; 
     536        } else { 
     537            $variables['view_image'] = ""; 
     538        } 
     539    } else { 
     540        $variables['image_list'] = makefilelist($afolder, ".|..|imagelist.js|index.php", true); 
     541    } 
     542} 
     543 
     544// define the admin body panel 
     545$template_panels[] = array('type' => 'body', 'name' => 'admin.images', 'template' => 'admin.images.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/image_uploads.php"); 
     546$template_variables['admin.images'] = $variables; 
     547 
     548// Call the theme code to generate the output for this webpage 
     549require_once PATH_THEME."/theme.php"; 
     550?> 
  • merge/infusions/PLi-Templated/wiki/php-files/modules/wiki/module_installer.php

    r806 r808  
    125125) ENGINE=MyISAM;"); 
    126126 
    127 $mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (1, 'HomePage', now(), '{{image url=\"images/wikka_logo.jpg\" alt=\"wikka logo\" title=\"Welcome to this Wikka Wiki!\"}}\n\nThis site is running on version ##{{wikkaversion}}## (see WikkaReleaseNotes). \nYou need to double-click on any page or click on the \"Edit page\" link at the bottom to get started. \n\nFor more information, visit the [[Wikka:HomePage WikkaWiki website]]! \n\nUseful pages: FormattingRules, WikkaDocumentation, OrphanedPages, WantedPages, TextSearch.', '###WEBMASTER###', 'WikkaInstaller', 'Y', '', 'page')"); 
    128 $mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (2, 'RecentChanges', now(), '{{RecentChanges}}{{nocomments}}\n\n\n----\nCategoryWiki', '(Public)', 'WikkaInstaller', 'Y', '', 'page')"); 
    129 $mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (3, 'RecentlyCommented', now(), '{{RecentlyCommented}}{{nocomments}}\n\n\n----\nCategoryWiki', '(Public)', 'WikkaInstaller', 'Y', '', 'page')"); 
    130 $mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (4, 'UserSettings', now(), '{{UserSettings}}{{nocomments}}\n\n\n----\nCategoryWiki', '(Public)', 'WikkaInstaller', 'Y', '', 'page')"); 
    131 $mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (5, 'PageIndex', now(), '{{PageIndex}}{{nocomments}}\n\n\n----\nCategoryWiki', '(Public)', 'WikkaInstaller', 'Y', '', 'page')"); 
    132 $mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (6, 'WikkaReleaseNotes', now(), '{{wikkachanges}}{{nocomments}}\n\n\n----\nCategoryWiki', '(Public)', 'WikkaInstaller', 'Y', '', 'page')"); 
    133 $mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (7, 'WikkaDocumentation', now(), '=====Wikka Documentation=====\n\nComprehensive and up-to-date documentation on Wikka Wiki can be found on the [[http://wikkawiki.org/WikkaDocumentation main Wikka server]].', '(Public)', 'WikkaInstaller', 'Y', '', 'page')"); 
    134 $mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (8, 'WantedPages', now(), '{{WantedPages}}{{nocomments}}\n\n\n----\nCategoryWiki', '(Public)', 'WikkaInstaller', 'Y', '', 'page')"); 
    135 $mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (9, 'OrphanedPages', now(), '====Orphaned Pages====\n\nThe following list shows those pages held in the Wiki that are not linked to on any other pages.\n\n{{OrphanedPages}}{{nocomments}}\n\n\n----\nCategoryWiki', '(Public)', 'WikkaInstaller', 'Y', '', 'page')"); 
    136 $mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (10, 'TextSearch', now(), '{{TextSearch}}{{nocomments}}\n\n\n----\nCategoryWiki', '(Public)', 'WikkaInstaller', 'Y', '', 'page')"); 
    137 $mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (11, 'TextSearchExpanded', now(), '{{textsearchexpanded}}{{nocomments}}\n\n\n----\nCategoryWiki', '(Public)', 'WikkaInstaller', 'Y', '', 'page')"); 
    138 $mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (12, 'MyPages', now(), '{{MyPages}}{{nocomments}}\n\n\n----\nCategoryWiki', '(Public)', 'WikkaInstaller', 'Y', '', 'page')"); 
    139 $mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (13, 'MyChanges', now(), '{{MyChanges}}{{nocomments}}\n\n\n----\nCategoryWiki', '(Public)', 'WikkaInstaller', 'Y', '', 'page')"); 
    140 $mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (14, 'InterWiki', now(), '{{interwikilist}}\n\n\n----\nCategoryWiki', '(Public)', 'WikkaInstaller', 'Y', '', 'page')"); 
    141 $mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (15, 'PasswordForgotten', now(), '{{emailpassword}}\n\n\n----\nCategoryWiki', '(Public)', 'WikkaInstaller', 'N', '', 'page')"); 
    142 $mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (16, 'WikiCategory', now(), '===This wiki is using a very flexible but simple categorizing system to keep everything properly organized.===\n\n{{Category page=\"/\"  col=\"10\"}}\n==Here''s how it works :==\n~- The master list of the categories is **Category Category** (//without the space//) which will automatically list all known maincategories, and should never be edited. This list is easily accessed from the Wiki''s top navigation bar. (Categories).\n~- Each category has a WikiName name of the form \"\"CategoryName\"\" for example CategoryWiki etc. (see list of maincategories above)\n~- Pages can belong to zero or more categories. Including a page in a category is done by simply mentioning the \"\"CategoryName\"\" on the page (by convention at the very end of the page).\n~- The system allows to build hierarchies of categories by referring to the parent category in the subcategory page. The parent category page will then automatically include the subcategory page in its list.\n~- A special kind of category is **\"\"Category Users\"\"** (//without the space//) to group the userpages, so your Wiki homepage should include it at the end to be included in the category-driven userlist.\n~- New categories can be created (think very hard before doing this though, we don''t need too much of them) by creating a \"\"CategoryName\"\" page, including \"\"{{Category}}\"\" in it and placing it in the **Category Category** (//without the space//) category (for a main category or another parent category in case you want to create a subcategory).\n\n**Please help to keep this place organized by including the relevant categories in new and existing pages !**\n\n**Notes:** \n~- The above bold items above //include spaces// to prevent this page from showing up in the mentioned categories. This page only belongs in CategoryWiki (which can be safely mentioned) after all !\n~- In order to avoid accidental miscategorization you should **avoid** mentioning a non-related \"\"CategoryName\"\" on a page. This is a side-effect of how the categorizing system works: it''s based on a textsearch and is not restricted to the footer convention.\n~- Don''t be put of by the name of this page (WikiCategory) which is a logical name (it''s about the Wiki and explains Category) but doesn''t have any special role in the Categorizing system.\n~- To end with this is the **standard convention** to include the categories (both the wiki code and the result):\n\n%%==Categories==\nCategoryWiki%%\n\n==Categories==\nCategoryWiki', '(Public)', 'WikkaInstaller', 'Y', '', 'page')"); 
    143 $mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (17, 'CategoryWiki', now(), '===Wiki Related Category===\nThis Category will contain links to pages talking about Wikis and Wikis specific topics. When creating such pages, be sure to include CategoryWiki at the bottom of each page, so that page shows listed.\n\n\n----\n\n{{Category col=\"3\"}}\n\n\n----\n[[CategoryCategory List of all categories]]', '(Public)', 'WikkaInstaller', 'Y', '', 'page')"); 
    144 $mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (18, 'CategoryCategory', now(), '===List of All Categories===\nBelow is the list of all Categories existing on this Wiki, granted that users did things right when they created their pages or new Categories. See WikiCategory for how the system works.\n\n----\n\n{{Category}}', '(Public)', 'WikkaInstaller', 'Y', '', 'page')"); 
    145 $mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (19, 'FormattingRules', now(), '======Wikka Formatting Guide======\n\n<<**Note:** Anything between 2 sets of double-quotes is not formatted.<<::c::\nOnce you have read through this, test your formatting skills in the SandBox.\n----\n===1. Text Formatting===\n\n~##\"\"**I''m bold**\"\"##\n~**I''m bold **\n\n~##\"\"//I''m italic text!//\"\"##\n~//I''m italic text!//\n\n~##\"\"And I''m __underlined__!\"\"##\n~And I''m __underlined__!\n\n~##\"\"##monospace text##\"\"##\n~##monospace text##\n\n~##\"\"''''highlight text''''\"\"## (using 2 single-quotes)\n~''''highlight text''''\n\n~##\"\"++Strike through text++\"\"##\n~++Strike through text++\n\n~##\"\"Press #%ANY KEY#%\"\"##\n~Press #%ANY KEY#%\n\n~##\"\"@@Center text@@\"\"##\n~@@Center text@@\n\n===2. Headers===\n\nUse between five ##=## (for the biggest header) and two ##=## (for the smallest header) on both sides of a text to render it as a header.\n\n~##\"\"====== Really big header ======\"\"##\n~====== Really big header ======\n  \n~##\"\"===== Rather big header =====\"\"##\n~===== Rather big header =====\n\n~##\"\"==== Medium header ====\"\"##\n~==== Medium header ====\n\n~##\"\"=== Not-so-big header ===\"\"##\n~=== Not-so-big header ===\n\n~##\"\"== Smallish header ==\"\"##\n~== Smallish header ==\n\n===3. Horizontal separator===\n~##\"\"----\"\"##\n----\n\n===4. Forced line break===\n~##\"\"---\"\"##\n---\n\n===5. Lists and indents===\n\nYou can indent text using a **~**, a **tab** or **4 spaces** (which will auto-convert into a tab).\n\n##\"\"~This text is indented<br />~~This text is double-indented<br />&nbsp;&nbsp;&nbsp;&nbsp;This text is also indented\"\"##\n\n~This text is indented\n~~This text is double-indented\n   This text is also indented\n\nTo create bulleted/ordered lists, use the following markup (you can always use 4 spaces instead of a ##**~**##):\n\n**Bulleted lists**\n##\"\"~- Line one\"\"##\n##\"\"~- Line two\"\"##\n\n- Line one\n- Line two\n\n**Numbered lists**\n##\"\"~1) Line one\"\"##\n##\"\"~1) Line two\"\"##\n\n1) Line one\n1) Line two\n\n**Ordered lists using uppercase characters**\n##\"\"~A) Line one\"\"##\n##\"\"~A) Line two\"\"##\n\nA) Line one\nA) Line two\n\n**Ordered lists using lowercase characters**\n##\"\"~a) Line one\"\"##\n##\"\"~a) Line two\"\"##\n\na) Line one\na) Line two\n\n**Ordered lists using roman numerals**\n##\"\"~I) Line one\"\"##\n##\"\"~I) Line two\"\"##\n\n   I) Line one\nI) Line two\n\n**Ordered lists using lowercase roman numerals**\n##\"\"~i) Line one\"\"##\n##\"\"~i) Line two\"\"##\n\n i) Line one\ni) Line two\n\n===6. Inline comments===\n\nTo format some text as an inline comment, use an indent ( **~**, a **tab** or **4 spaces**) followed by a **\"\"&amp;\"\"**.\n\n**Example:**\n\n##\"\"~&amp; Comment\"\"##\n##\"\"~~&amp; Subcomment\"\"##\n##\"\"~~~&amp; Subsubcomment\"\"##\n\n~& Comment\n~~& Subcomment\n~~~& Subsubcomment\n\n===7. Images===\n\nTo place images on a Wiki page, you can use the ##image## action.\n\n**Example:**\n\n~##\"\"{{image class=\"center\" alt=\"DVD logo\" title=\"An Image Link\" url=\"images/dvdvideo.gif\" link=\"RecentChanges\"}}\"\"##\n~{{image class=\"center\" alt=\"dvd logo\" title=\"An Image Link\" url=\"images/dvdvideo.gif\" link=\"RecentChanges\"}}\n\nLinks can be external, or internal Wiki links. You don''t need to enter a link at all, and in that case just an image will be inserted. You can use the optional classes ##left## and ##right## to float images left and right. You don''t need to use all those attributes, only ##url## is required while ##alt## is recommended for accessibility.\n\n===8. Links===\n\nTo create a **link to a wiki page** you can use any of the following options: ---\n~1) type a ##\"\"WikiName\"\"##: --- --- ##\"\"FormattingRules\"\"## --- FormattingRules --- ---\n~1) add a forced link surrounding the page name by ##\"\"[[\"\"## and ##\"\"]]\"\"## (everything after the first space will be shown as description): --- --- ##\"\"[[SandBox Test your formatting skills]]\"\"## --- [[SandBox Test your formatting skills]] --- --- ##\"\"[[SandBox &#27801;&#31665;]]\"\"## --- [[SandBox &#27801;&#31665;]] --- ---\n~1) add an image with a link (see instructions above).\n\nTo **link to external pages**, you can do any of the following: ---\n~1) type a URL inside the page: --- --- ##\"\"http://www.example.com\"\"## --- http://www.example.com --- --- \n~1) add a forced link surrounding the URL by ##\"\"[[\"\"## and ##\"\"]]\"\"## (everything after the first space will be shown as description): --- --- ##\"\"[[http://example.com/jenna/ Jenna''s Home Page]]\"\"## --- [[http://example.com/jenna/ Jenna''s Home Page]] --- --- ##\"\"[[mail@example.com Write me!]]\"\"## --- [[mail@example.com Write me!]] --- ---\n~1) add an image with a link (see instructions above);\n~1) add an interwiki link (browse the [[InterWiki list of available interwiki tags]]): --- --- ##\"\"WikiPedia:WikkaWiki\"\"## --- WikiPedia:WikkaWiki --- --- ##\"\"Google:CSS\"\"## --- Google:CSS --- --- ##\"\"Thesaurus:Happy\"\"## --- Thesaurus:Happy --- ---\n\n===9. Tables===\n\nTo create a table, you can use the ##table## action.\n\n**Example:**\n\n~##\"\"{{table columns=\"3\" cellpadding=\"1\" cells=\"BIG;GREEN;FROGS;yes;yes;no;no;no;###\"}}\"\"##\n\n~{{table columns=\"3\" cellpadding=\"1\" cells=\"BIG;GREEN;FROGS;yes;yes;no;no;no;###\"}}\n\nNote that ##\"\"###\"\"## must be used to indicate an empty cell.\nComplex tables can also be created by embedding HTML code in a wiki page (see instructions below).\n\n===10. Colored Text===\n\nColored text can be created using the ##color## action:\n\n**Example:**\n\n~##\"\"{{color c=\"blue\" text=\"This is a test.\"}}\"\"##\n~{{color c=\"blue\" text=\"This is a test.\"}}\n\nYou can also use hex values:\n\n**Example:**\n\n~##\"\"{{color hex=\"#DD0000\" text=\"This is another test.\"}}\"\"##\n~{{color hex=\"#DD0000\" text=\"This is another test.\"}}\n\nAlternatively, you can specify a foreground and background color using the ##fg## and ##bg## parameters (they accept both named and hex values):\n\n**Examples:**\n\n~##\"\"{{color fg=\"#FF0000\" bg=\"#000000\" text=\"This is colored text on colored background\"}}\"\"##\n~{{color fg=\"#FF0000\" bg=\"#000000\" text=\"This is colored text on colored background\"}}\n\n~##\"\"{{color fg=\"lightgreen\" bg=\"black\" text=\"This is colored text on colored background\"}}\"\"##\n~{{color fg=\"lightgreen\" bg=\"black\" text=\"This is colored text on colored background\"}}\n\n\n===11. Floats===\n\nTo create a **left floated box**, use two ##<## characters before and after the block.\n\n**Example:**\n\n~##\"\"&lt;&lt;Some text in a left-floated box hanging around&lt;&lt; Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler.\"\"##\n\n<<Some text in a left-floated box hanging around<<Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler.\n\n::c::To create a **right floated box**, use two ##>## characters before and after the block.\n\n**Example:**\n\n~##\"\">>Some text in a right-floated box hanging around>> Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler.\"\"##\n\n   >>Some text in a right-floated box hanging around>>Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler.\n\n::c:: Use ##\"\"::c::\"\"##  to clear floated blocks.\n\n===12. Code formatters===\n\nYou can easily embed code blocks in a wiki page using a simple markup. Anything within a code block is displayed literally. \nTo create a **generic code block** you can use the following markup:\n\n~##\"\"%% This is a code block %%\"\"##. \n\n%% This is a code block %%\n\nTo create a **code block with syntax highlighting**, you need to specify a //code formatter// (see below for a list of available code formatters). \n\n~##\"\"%%(\"\"{{color c=\"red\" text=\"php\"}}\"\")<br />&lt;?php<br />echo \"Hello, World!\";<br />?&gt;<br />%%\"\"##\n\n%%(php)\n<?php\necho \"Hello, World!\";\n?>\n%%\n\nYou can also specify an optional //starting line// number.\n\n~##\"\"%%(php;\"\"{{color c=\"red\" text=\"15\"}}\"\")<br />&lt;?php<br />echo \"Hello, World!\";<br />?&gt;<br />%%\"\"##\n\n%%(php;15)\n<?php\necho \"Hello, World!\";\n?>\n%%\n\nIf you specify a //filename//, this will be used for downloading the code.\n\n~##\"\"%%(php;15;\"\"{{color c=\"red\" text=\"test.php\"}}\"\")<br />&lt;?php<br />echo \"Hello, World!\";<br />?&gt;<br />%%\"\"##\n\n%%(php;15;test.php)\n<?php\necho \"Hello, World!\";\n?>\n%%\n\n**List of available code formatters:**\n{{table columns=\"6\" cellpadding=\"1\" cells=\"LANGUAGE;FORMATTER;LANGUAGE;FORMATTER;LANGUAGE;FORMATTER;Actionscript;actionscript;ADA;ada;Apache Log;apache;AppleScript; applescript;ASM;asm;ASP;asp;AutoIT;autoit;Bash;bash;BlitzBasic;blitzbasic;BNF;bnf;C;c;C for Macs;c_mac;c#;csharp;C++;cpp;C++ (QT extensions);cpp-qt;CAD DCL;caddcl;CadLisp;cadlisp;CFDG;cfdg;ColdFusion;cfm; CSS;css;D;d;Delphi;delphi;Diff-Output;diff;DIV; div;DOS;dos;Eiffel;eiffel;Fortran;fortran;FreeBasic;freebasic;GML;gml;Groovy;groovy;HTML;html4strict;INI;ini;IO;io;Inno Script;inno;Java 5;java5;Java;java;Javascript;javascript;LaTeX;latex;Lisp;lisp;Lua;lua;Matlab;matlab;Microchip Assembler;mpasm;Microsoft Registry;reg;mIRC;mirc;MySQL;mysql;NSIS;nsis;Objective C;objc;OpenOffice BASIC;oobas;Objective Caml;ocaml;Objective Caml (brief);ocaml-brief;Oracle 8;oracle8;Pascal;pascal;Perl;perl;PHP;php;PHP (brief);php-brief;PL/SQL;plsql;Python;phyton;Q(uick)BASIC;qbasic;robots.txt;robots;Ruby;ruby;SAS;sas;Scheme;scheme;sdlBasic;sdlbasic;SmallTalk;smalltalk;Smarty;smarty;SQL;sql;TCL/iTCL;tcl;T-SQL;tsql;Text;text;thinBasic;thinbasic;Unoidl;idl;VB.NET;vbnet;VHDL;vhdl;Visual BASIC;vb;Visual Fox Pro;visualfoxpro;WinBatch;winbatch;XML;xml;ZiLOG Z80;z80\"}}\n\n===13. Mindmaps===\n\nWikka has native support for [[Wikka:FreeMind mindmaps]]. There are two options for embedding a mindmap in a wiki page.\n\n**Option 1:** Upload a \"\"FreeMind\"\" file to a webserver, and then place a link to it on a wikka page:\n  ##\"\"http://yourdomain.com/freemind/freemind.mm\"\"##\nNo special formatting is necessary.\n\n**Option 2:** Paste the \"\"FreeMind\"\" data directly into a wikka page:\n~- Open a \"\"FreeMind\"\" file with a text editor.\n~- Select all, and copy the data.\n~- Browse to your Wikka site and paste the Freemind data into a page. \n\n===14. Embedded HTML===\n\nYou can easily paste HTML in a wiki page by wrapping it into two sets of doublequotes. \n\n~##&quot;&quot;[html code]&quot;&quot;##\n\n**Examples:**\n\n~##&quot;&quot;y = x<sup>n+1</sup>&quot;&quot;##\n~\"\"y = x<sup>n+1</sup>\"\"\n\n~##&quot;&quot;<acronym title=\"Cascade Style Sheet\">CSS</acronym>&quot;&quot;##\n~\"\"<acronym title=\"Cascade Style Sheet\">CSS</acronym>\"\"\n\nBy default, some HTML tags are removed by the \"\"SafeHTML\"\" parser to protect against potentially dangerous code.  The list of tags that are stripped can be found on the Wikka:SafeHTML page.\n\nIt is possible to allow //all// HTML tags to be used, see Wikka:UsingHTML for more information.\n\n----\nCategoryWiki', '(Public)', 'WikkaInstaller', 'Y', '', 'page')"); 
    146 $mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (20, 'OwnedPages', now(), '{{ownedpages}}{{nocomments}}These numbers merely reflect how many pages you have created, not how much content you have contributed or the quality of your contributions. To see how you rank with other members, you may be interested in checking out the HighScores. \n\n\n----\nCategoryWiki', '(Public)', 'WikkaInstaller', 'Y', '', 'page')"); 
    147 $mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (21, 'SandBox', now(), 'Test your formatting skills here.\n\n\n\n\n----\nCategoryWiki', '(Public)', 'WikkaInstaller', 'Y', '', 'page')"); 
    148 $mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (22, 'SysInfo', now(), '===== System Information =====\n\n~-Wikka version: ##{{wikkaversion}}##\n~-PHP version: ##{{phpversion}}##\n~-\"\"MySQL\"\" version: ##{{mysqlversion}}##\n~-\"\"GeSHi\"\" version: ##{{geshiversion}}##\n~-Server:\n~~-Host: ##{{system show=\"host\"}}##\n~~-Operative System: ##{{system show=\"os\"}}##\n~~-Machine: ##{{system show=\"machine\"}}##\n\n----\nCategoryWiki', '(Public)', 'WikkaInstaller', 'Y', '', 'page')"); 
     127$mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (1, 'HomePage', now(), '{{image url=\"images/wikka_logo.jpg\" alt=\"wikka logo\" title=\"Welcome to this Wikka Wiki!\"}}\n\nThis site is running on version ##{{wikkaversion}}## (see WikkaReleaseNotes). \nYou need to double-click on any page or click on the \"Edit page\" link at the bottom to get started. \n\nFor more information, visit the [[Wikka:HomePage WikkaWiki website]]! \n\nUseful pages: FormattingRules, WikkaDocumentation, OrphanedPages, WantedPages, TextSearch.', '###WEBMASTER###', '##WEBMASTER##', 'Y', '', 'page')"); 
     128$mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (2, 'RecentChanges', now(), '{{RecentChanges}}{{nocomments}}\n\n\n----\nCategoryWiki', '(Public)', '##WEBMASTER##', 'Y', '', 'page')"); 
     129$mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (3, 'RecentlyCommented', now(), '{{RecentlyCommented}}{{nocomments}}\n\n\n----\nCategoryWiki', '(Public)', '##WEBMASTER##', 'Y', '', 'page')"); 
     130$mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (4, 'UserSettings', now(), '{{UserSettings}}{{nocomments}}\n\n\n----\nCategoryWiki', '(Public)', '##WEBMASTER##', 'Y', '', 'page')"); 
     131$mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (5, 'PageIndex', now(), '{{PageIndex}}{{nocomments}}\n\n\n----\nCategoryWiki', '(Public)', '##WEBMASTER##', 'Y', '', 'page')"); 
     132$mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (6, 'WikkaReleaseNotes', now(), '{{wikkachanges}}{{nocomments}}\n\n\n----\nCategoryWiki', '(Public)', '##WEBMASTER##', 'Y', '', 'page')"); 
     133$mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (7, 'WikkaDocumentation', now(), '=====Wikka Documentation=====\n\nComprehensive and up-to-date documentation on Wikka Wiki can be found on the [[http://wikkawiki.org/WikkaDocumentation main Wikka server]].', '(Public)', '##WEBMASTER##', 'Y', '', 'page')"); 
     134$mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (8, 'WantedPages', now(), '{{WantedPages}}{{nocomments}}\n\n\n----\nCategoryWiki', '(Public)', '##WEBMASTER##', 'Y', '', 'page')"); 
     135$mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (9, 'OrphanedPages', now(), '====Orphaned Pages====\n\nThe following list shows those pages held in the Wiki that are not linked to on any other pages.\n\n{{OrphanedPages}}{{nocomments}}\n\n\n----\nCategoryWiki', '(Public)', '##WEBMASTER##', 'Y', '', 'page')"); 
     136$mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (10, 'TextSearch', now(), '{{TextSearch}}{{nocomments}}\n\n\n----\nCategoryWiki', '(Public)', '##WEBMASTER##', 'Y', '', 'page')"); 
     137$mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (11, 'TextSearchExpanded', now(), '{{textsearchexpanded}}{{nocomments}}\n\n\n----\nCategoryWiki', '(Public)', '##WEBMASTER##', 'Y', '', 'page')"); 
     138$mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (12, 'MyPages', now(), '{{MyPages}}{{nocomments}}\n\n\n----\nCategoryWiki', '(Public)', '##WEBMASTER##', 'Y', '', 'page')"); 
     139$mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (13, 'MyChanges', now(), '{{MyChanges}}{{nocomments}}\n\n\n----\nCategoryWiki', '(Public)', '##WEBMASTER##', 'Y', '', 'page')"); 
     140$mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (14, 'InterWiki', now(), '{{interwikilist}}\n\n\n----\nCategoryWiki', '(Public)', '##WEBMASTER##', 'Y', '', 'page')"); 
     141$mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (15, 'PasswordForgotten', now(), '{{emailpassword}}\n\n\n----\nCategoryWiki', '(Public)', '##WEBMASTER##', 'N', '', 'page')"); 
     142$mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (16, 'WikiCategory', now(), '===This wiki is using a very flexible but simple categorizing system to keep everything properly organized.===\n\n{{Category page=\"/\"  col=\"10\"}}\n==Here''s how it works :==\n~- The master list of the categories is **Category Category** (//without the space//) which will automatically list all known maincategories, and should never be edited. This list is easily accessed from the Wiki''s top navigation bar. (Categories).\n~- Each category has a WikiName name of the form \"\"CategoryName\"\" for example CategoryWiki etc. (see list of maincategories above)\n~- Pages can belong to zero or more categories. Including a page in a category is done by simply mentioning the \"\"CategoryName\"\" on the page (by convention at the very end of the page).\n~- The system allows to build hierarchies of categories by referring to the parent category in the subcategory page. The parent category page will then automatically include the subcategory page in its list.\n~- A special kind of category is **\"\"Category Users\"\"** (//without the space//) to group the userpages, so your Wiki homepage should include it at the end to be included in the category-driven userlist.\n~- New categories can be created (think very hard before doing this though, we don''t need too much of them) by creating a \"\"CategoryName\"\" page, including \"\"{{Category}}\"\" in it and placing it in the **Category Category** (//without the space//) category (for a main category or another parent category in case you want to create a subcategory).\n\n**Please help to keep this place organized by including the relevant categories in new and existing pages !**\n\n**Notes:** \n~- The above bold items above //include spaces// to prevent this page from showing up in the mentioned categories. This page only belongs in CategoryWiki (which can be safely mentioned) after all !\n~- In order to avoid accidental miscategorization you should **avoid** mentioning a non-related \"\"CategoryName\"\" on a page. This is a side-effect of how the categorizing system works: it''s based on a textsearch and is not restricted to the footer convention.\n~- Don''t be put of by the name of this page (WikiCategory) which is a logical name (it''s about the Wiki and explains Category) but doesn''t have any special role in the Categorizing system.\n~- To end with this is the **standard convention** to include the categories (both the wiki code and the result):\n\n%%==Categories==\nCategoryWiki%%\n\n==Categories==\nCategoryWiki', '(Public)', '##WEBMASTER##', 'Y', '', 'page')"); 
     143$mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (17, 'CategoryWiki', now(), '===Wiki Related Category===\nThis Category will contain links to pages talking about Wikis and Wikis specific topics. When creating such pages, be sure to include CategoryWiki at the bottom of each page, so that page shows listed.\n\n\n----\n\n{{Category col=\"3\"}}\n\n\n----\n[[CategoryCategory List of all categories]]', '(Public)', '##WEBMASTER##', 'Y', '', 'page')"); 
     144$mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (18, 'CategoryCategory', now(), '===List of All Categories===\nBelow is the list of all Categories existing on this Wiki, granted that users did things right when they created their pages or new Categories. See WikiCategory for how the system works.\n\n----\n\n{{Category}}', '(Public)', '##WEBMASTER##', 'Y', '', 'page')"); 
     145$mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (19, 'FormattingRules', now(), '======Wikka Formatting Guide======\n\n<<**Note:** Anything between 2 sets of double-quotes is not formatted.<<::c::\nOnce you have read through this, test your formatting skills in the SandBox.\n----\n===1. Text Formatting===\n\n~##\"\"**I''m bold**\"\"##\n~**I''m bold **\n\n~##\"\"//I''m italic text!//\"\"##\n~//I''m italic text!//\n\n~##\"\"And I''m __underlined__!\"\"##\n~And I''m __underlined__!\n\n~##\"\"##monospace text##\"\"##\n~##monospace text##\n\n~##\"\"''''highlight text''''\"\"## (using 2 single-quotes)\n~''''highlight text''''\n\n~##\"\"++Strike through text++\"\"##\n~++Strike through text++\n\n~##\"\"Press #%ANY KEY#%\"\"##\n~Press #%ANY KEY#%\n\n~##\"\"@@Center text@@\"\"##\n~@@Center text@@\n\n===2. Headers===\n\nUse between five ##=## (for the biggest header) and two ##=## (for the smallest header) on both sides of a text to render it as a header.\n\n~##\"\"====== Really big header ======\"\"##\n~====== Really big header ======\n  \n~##\"\"===== Rather big header =====\"\"##\n~===== Rather big header =====\n\n~##\"\"==== Medium header ====\"\"##\n~==== Medium header ====\n\n~##\"\"=== Not-so-big header ===\"\"##\n~=== Not-so-big header ===\n\n~##\"\"== Smallish header ==\"\"##\n~== Smallish header ==\n\n===3. Horizontal separator===\n~##\"\"----\"\"##\n----\n\n===4. Forced line break===\n~##\"\"---\"\"##\n---\n\n===5. Lists and indents===\n\nYou can indent text using a **~**, a **tab** or **4 spaces** (which will auto-convert into a tab).\n\n##\"\"~This text is indented<br />~~This text is double-indented<br />&nbsp;&nbsp;&nbsp;&nbsp;This text is also indented\"\"##\n\n~This text is indented\n~~This text is double-indented\n   This text is also indented\n\nTo create bulleted/ordered lists, use the following markup (you can always use 4 spaces instead of a ##**~**##):\n\n**Bulleted lists**\n##\"\"~- Line one\"\"##\n##\"\"~- Line two\"\"##\n\n- Line one\n- Line two\n\n**Numbered lists**\n##\"\"~1) Line one\"\"##\n##\"\"~1) Line two\"\"##\n\n1) Line one\n1) Line two\n\n**Ordered lists using uppercase characters**\n##\"\"~A) Line one\"\"##\n##\"\"~A) Line two\"\"##\n\nA) Line one\nA) Line two\n\n**Ordered lists using lowercase characters**\n##\"\"~a) Line one\"\"##\n##\"\"~a) Line two\"\"##\n\na) Line one\na) Line two\n\n**Ordered lists using roman numerals**\n##\"\"~I) Line one\"\"##\n##\"\"~I) Line two\"\"##\n\n   I) Line one\nI) Line two\n\n**Ordered lists using lowercase roman numerals**\n##\"\"~i) Line one\"\"##\n##\"\"~i) Line two\"\"##\n\n i) Line one\ni) Line two\n\n===6. Inline comments===\n\nTo format some text as an inline comment, use an indent ( **~**, a **tab** or **4 spaces**) followed by a **\"\"&amp;\"\"**.\n\n**Example:**\n\n##\"\"~&amp; Comment\"\"##\n##\"\"~~&amp; Subcomment\"\"##\n##\"\"~~~&amp; Subsubcomment\"\"##\n\n~& Comment\n~~& Subcomment\n~~~& Subsubcomment\n\n===7. Images===\n\nTo place images on a Wiki page, you can use the ##image## action.\n\n**Example:**\n\n~##\"\"{{image class=\"center\" alt=\"DVD logo\" title=\"An Image Link\" url=\"images/dvdvideo.gif\" link=\"RecentChanges\"}}\"\"##\n~{{image class=\"center\" alt=\"dvd logo\" title=\"An Image Link\" url=\"images/dvdvideo.gif\" link=\"RecentChanges\"}}\n\nLinks can be external, or internal Wiki links. You don''t need to enter a link at all, and in that case just an image will be inserted. You can use the optional classes ##left## and ##right## to float images left and right. You don''t need to use all those attributes, only ##url## is required while ##alt## is recommended for accessibility.\n\n===8. Links===\n\nTo create a **link to a wiki page** you can use any of the following options: ---\n~1) type a ##\"\"WikiName\"\"##: --- --- ##\"\"FormattingRules\"\"## --- FormattingRules --- ---\n~1) add a forced link surrounding the page name by ##\"\"[[\"\"## and ##\"\"]]\"\"## (everything after the first space will be shown as description): --- --- ##\"\"[[SandBox Test your formatting skills]]\"\"## --- [[SandBox Test your formatting skills]] --- --- ##\"\"[[SandBox &#27801;&#31665;]]\"\"## --- [[SandBox &#27801;&#31665;]] --- ---\n~1) add an image with a link (see instructions above).\n\nTo **link to external pages**, you can do any of the following: ---\n~1) type a URL inside the page: --- --- ##\"\"http://www.example.com\"\"## --- http://www.example.com --- --- \n~1) add a forced link surrounding the URL by ##\"\"[[\"\"## and ##\"\"]]\"\"## (everything after the first space will be shown as description): --- --- ##\"\"[[http://example.com/jenna/ Jenna''s Home Page]]\"\"## --- [[http://example.com/jenna/ Jenna''s Home Page]] --- --- ##\"\"[[mail@example.com Write me!]]\"\"## --- [[mail@example.com Write me!]] --- ---\n~1) add an image with a link (see instructions above);\n~1) add an interwiki link (browse the [[InterWiki list of available interwiki tags]]): --- --- ##\"\"WikiPedia:WikkaWiki\"\"## --- WikiPedia:WikkaWiki --- --- ##\"\"Google:CSS\"\"## --- Google:CSS --- --- ##\"\"Thesaurus:Happy\"\"## --- Thesaurus:Happy --- ---\n\n===9. Tables===\n\nTo create a table, you can use the ##table## action.\n\n**Example:**\n\n~##\"\"{{table columns=\"3\" cellpadding=\"1\" cells=\"BIG;GREEN;FROGS;yes;yes;no;no;no;###\"}}\"\"##\n\n~{{table columns=\"3\" cellpadding=\"1\" cells=\"BIG;GREEN;FROGS;yes;yes;no;no;no;###\"}}\n\nNote that ##\"\"###\"\"## must be used to indicate an empty cell.\nComplex tables can also be created by embedding HTML code in a wiki page (see instructions below).\n\n===10. Colored Text===\n\nColored text can be created using the ##color## action:\n\n**Example:**\n\n~##\"\"{{color c=\"blue\" text=\"This is a test.\"}}\"\"##\n~{{color c=\"blue\" text=\"This is a test.\"}}\n\nYou can also use hex values:\n\n**Example:**\n\n~##\"\"{{color hex=\"#DD0000\" text=\"This is another test.\"}}\"\"##\n~{{color hex=\"#DD0000\" text=\"This is another test.\"}}\n\nAlternatively, you can specify a foreground and background color using the ##fg## and ##bg## parameters (they accept both named and hex values):\n\n**Examples:**\n\n~##\"\"{{color fg=\"#FF0000\" bg=\"#000000\" text=\"This is colored text on colored background\"}}\"\"##\n~{{color fg=\"#FF0000\" bg=\"#000000\" text=\"This is colored text on colored background\"}}\n\n~##\"\"{{color fg=\"lightgreen\" bg=\"black\" text=\"This is colored text on colored background\"}}\"\"##\n~{{color fg=\"lightgreen\" bg=\"black\" text=\"This is colored text on colored background\"}}\n\n\n===11. Floats===\n\nTo create a **left floated box**, use two ##<## characters before and after the block.\n\n**Example:**\n\n~##\"\"&lt;&lt;Some text in a left-floated box hanging around&lt;&lt; Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler.\"\"##\n\n<<Some text in a left-floated box hanging around<<Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler.\n\n::c::To create a **right floated box**, use two ##>## characters before and after the block.\n\n**Example:**\n\n~##\"\">>Some text in a right-floated box hanging around>> Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler.\"\"##\n\n   >>Some text in a right-floated box hanging around>>Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler.\n\n::c:: Use ##\"\"::c::\"\"##  to clear floated blocks.\n\n===12. Code formatters===\n\nYou can easily embed code blocks in a wiki page using a simple markup. Anything within a code block is displayed literally. \nTo create a **generic code block** you can use the following markup:\n\n~##\"\"%% This is a code block %%\"\"##. \n\n%% This is a code block %%\n\nTo create a **code block with syntax highlighting**, you need to specify a //code formatter// (see below for a list of available code formatters). \n\n~##\"\"%%(\"\"{{color c=\"red\" text=\"php\"}}\"\")<br />&lt;?php<br />echo \"Hello, World!\";<br />?&gt;<br />%%\"\"##\n\n%%(php)\n<?php\necho \"Hello, World!\";\n?>\n%%\n\nYou can also specify an optional //starting line// number.\n\n~##\"\"%%(php;\"\"{{color c=\"red\" text=\"15\"}}\"\")<br />&lt;?php<br />echo \"Hello, World!\";<br />?&gt;<br />%%\"\"##\n\n%%(php;15)\n<?php\necho \"Hello, World!\";\n?>\n%%\n\nIf you specify a //filename//, this will be used for downloading the code.\n\n~##\"\"%%(php;15;\"\"{{color c=\"red\" text=\"test.php\"}}\"\")<br />&lt;?php<br />echo \"Hello, World!\";<br />?&gt;<br />%%\"\"##\n\n%%(php;15;test.php)\n<?php\necho \"Hello, World!\";\n?>\n%%\n\n**List of available code formatters:**\n{{table columns=\"6\" cellpadding=\"1\" cells=\"LANGUAGE;FORMATTER;LANGUAGE;FORMATTER;LANGUAGE;FORMATTER;Actionscript;actionscript;ADA;ada;Apache Log;apache;AppleScript; applescript;ASM;asm;ASP;asp;AutoIT;autoit;Bash;bash;BlitzBasic;blitzbasic;BNF;bnf;C;c;C for Macs;c_mac;c#;csharp;C++;cpp;C++ (QT extensions);cpp-qt;CAD DCL;caddcl;CadLisp;cadlisp;CFDG;cfdg;ColdFusion;cfm; CSS;css;D;d;Delphi;delphi;Diff-Output;diff;DIV; div;DOS;dos;Eiffel;eiffel;Fortran;fortran;FreeBasic;freebasic;GML;gml;Groovy;groovy;HTML;html4strict;INI;ini;IO;io;Inno Script;inno;Java 5;java5;Java;java;Javascript;javascript;LaTeX;latex;Lisp;lisp;Lua;lua;Matlab;matlab;Microchip Assembler;mpasm;Microsoft Registry;reg;mIRC;mirc;MySQL;mysql;NSIS;nsis;Objective C;objc;OpenOffice BASIC;oobas;Objective Caml;ocaml;Objective Caml (brief);ocaml-brief;Oracle 8;oracle8;Pascal;pascal;Perl;perl;PHP;php;PHP (brief);php-brief;PL/SQL;plsql;Python;phyton;Q(uick)BASIC;qbasic;robots.txt;robots;Ruby;ruby;SAS;sas;Scheme;scheme;sdlBasic;sdlbasic;SmallTalk;smalltalk;Smarty;smarty;SQL;sql;TCL/iTCL;tcl;T-SQL;tsql;Text;text;thinBasic;thinbasic;Unoidl;idl;VB.NET;vbnet;VHDL;vhdl;Visual BASIC;vb;Visual Fox Pro;visualfoxpro;WinBatch;winbatch;XML;xml;ZiLOG Z80;z80\"}}\n\n===13. Mindmaps===\n\nWikka has native support for [[Wikka:FreeMind mindmaps]]. There are two options for embedding a mindmap in a wiki page.\n\n**Option 1:** Upload a \"\"FreeMind\"\" file to a webserver, and then place a link to it on a wikka page:\n  ##\"\"http://yourdomain.com/freemind/freemind.mm\"\"##\nNo special formatting is necessary.\n\n**Option 2:** Paste the \"\"FreeMind\"\" data directly into a wikka page:\n~- Open a \"\"FreeMind\"\" file with a text editor.\n~- Select all, and copy the data.\n~- Browse to your Wikka site and paste the Freemind data into a page. \n\n===14. Embedded HTML===\n\nYou can easily paste HTML in a wiki page by wrapping it into two sets of doublequotes. \n\n~##&quot;&quot;[html code]&quot;&quot;##\n\n**Examples:**\n\n~##&quot;&quot;y = x<sup>n+1</sup>&quot;&quot;##\n~\"\"y = x<sup>n+1</sup>\"\"\n\n~##&quot;&quot;<acronym title=\"Cascade Style Sheet\">CSS</acronym>&quot;&quot;##\n~\"\"<acronym title=\"Cascade Style Sheet\">CSS</acronym>\"\"\n\nBy default, some HTML tags are removed by the \"\"SafeHTML\"\" parser to protect against potentially dangerous code.  The list of tags that are stripped can be found on the Wikka:SafeHTML page.\n\nIt is possible to allow //all// HTML tags to be used, see Wikka:UsingHTML for more information.\n\n----\nCategoryWiki', '(Public)', '##WEBMASTER##', 'Y', '', 'page')"); 
     146$mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (20, 'OwnedPages', now(), '{{ownedpages}}{{nocomments}}These numbers merely reflect how many pages you have created, not how much content you have contributed or the quality of your contributions. To see how you rank with other members, you may be interested in checking out the HighScores. \n\n\n----\nCategoryWiki', '(Public)', '##WEBMASTER##', 'Y', '', 'page')"); 
     147$mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (21, 'SandBox', now(), 'Test your formatting skills here.\n\n\n\n\n----\nCategoryWiki', '(Public)', '##WEBMASTER##', 'Y', '', 'page')"); 
     148$mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##wiki_pages (id, tag, time, body, owner, user, latest, note, handler) VALUES (22, 'SysInfo', now(), '===== System Information =====\n\n~-Wikka version: ##{{wikkaversion}}##\n~-PHP version: ##{{phpversion}}##\n~-\"\"MySQL\"\" version: ##{{mysqlversion}}##\n~-\"\"GeSHi\"\" version: ##{{geshiversion}}##\n~-Server:\n~~-Host: ##{{system show=\"host\"}}##\n~~-Operative System: ##{{system show=\"os\"}}##\n~~-Machine: ##{{system show=\"machine\"}}##\n\n----\nCategoryWiki', '(Public)', '##WEBMASTER##', 'Y', '', 'page')"); 
    149149 
    150150// wiki_referrer_blacklist 
  • merge/infusions/PLi-Templated/wiki/php-files/modules/wiki/wikka.config.php

    r806 r808  
    3737    'admin_users' => '', 
    3838    'admin_email' => $settings['siteemail'], 
    39     'upload_path' => 'uploads', 
     39    'upload_path' => IMAGES."wiki", 
    4040    'mime_types' => 'mime_types.txt', 
    4141    'geshi_header' => 'div',