                                                                                                                                
<?php
//-->-->-->-->-->-->-->-->-->-->-->-->-->-->
   include_once "/home/waggacwc/public_html/refurb/RETRO-GLOBALS.php";
   include_once "$LIBRARYPATH/RETROVOX-CONSTANT-VARIABLES.php";
   include_once "$LIBRARYPATH/fnMessageToHtml.php";
   include_once "$LIBRARYPATH/fnListBlockToHtml.php";
   include_once "$LIBRARYPATH/fnCodeBlockToHtml.php";
   include_once "$LIBRARYPATH/fnCodeBlockFromHtml.php";

   include_once "$LIBRARYPATH/fnHyperlinkPlainText.php";
   include_once "$LIBRARYPATH/fnFillWebTemplate.php";

   $sSelfEditUrl = 
     "/refurb/manage/notepad/retrovox-notepad.php?file=%2Fhome%2Fwaggacwc%2Fpublic_html%2Frefurb%2Fwebpad%2Fcontrol.php";

   $sFilePath = $_GET['file'];
   
   $sAdminTemplateContents = "";
   $aaTextLines = file($DOCUMENTTEMPLATE);
   $sAdminTemplateContents = implode('', $aaTextLines);

    $sPageTitle = "Document maintainance for the $ORGANISATIONNAME site";
    $sPageContent = "
          = Document maintainance for the $ORGANISATIONNAME site

     This page allows you to create and maintain documents which can then 
     be published as web-pages or in other formats. This page will also allow
     you to rename and otherwise manage existing documents.
 

  * Document management
     a-
     'Choose a text file to edit through a web-browser interface'
     link://$WEBPADWEBFOLDER/select-document-folder.php
     -
     'Copy / Rename a server file'
     link://$MANAGEMENTWEBFOLDER/move-file-form.php
     -
     'Create a new directory on the server'
     link://$MANAGEMENTWEBFOLDER/move-file-form.php
     -
     'Create a ZIP file from a server directory'
     link://$MANAGEMENTWEBFOLDER/backup-directory-form.php
     -
     'Find a file on the server'
     link://$MANAGEMENTWEBFOLDER/find-file-form.php

  * More Information

    The 'webpad' system is a way of maintaining a set of
    webpages without having to code any HTML and without
    having to use a 'wysiwyg' web-page editor. The system
    allows you to type text normally using your web-browser
    and then when you save your changes, the system 
    automatically transforms what you have typed into 
    HTML or into another format. For example, if you type
    something that looks like a link to another web-page
    then the system will turn that into an HTML hyperlink
    in the transformed page. At the moment, the webpad
    system is still under-development, so you will probably
    find some quite 'rough' areas where you may not be 
    sure how to use it. There are some rudimentary documents
    about the system at 
    link://webpad.php?file=/refurb/docs/ and you are 
    welcome to improve these documents yourself, by 
    clicking on the links which say something like
    'edit this document'.
  
    Some parts of this web-site are only editable by an
    'administrator' where as other parts can be changed by
    anybody. At the moment the only directory which the
    entire world can change is the link:///refurb/docs/ 
    directory, but more sections should be included soon,
    depending on how much work I do.

     '[!]' link://$sSelfEditUrl
     
     ";

    $sPageContent = fnMessageToHtml($sPageContent);

    $sResultPage = fnFillWebTemplate(
      $sAdminTemplateContents, $sPageContent, $sPageTitle);   
    echo $sResultPage;


//--<--<--<--<--<--<--<--<--<--<--<--<--<--<
?>


                                                                                
                                                