                                                                                                                                            
<?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

  * Introduction

     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.
 
     Please note that the 'webpad' system has not really been polished
     up for usage by the general public. If you are familiar with
     the concept of a 'wiki' http://c2.com/cgi/wiki then you should
     understand basically what is going on here. This system uses 
     transformations of normal text to create webpages. You should be
     able to use this system using nothing but your web-browser and
     an internet connection (or a local web-server). Also, you should
     be able to use this system very easily on a computer that doesnt
     run any type of 'windows' (whether they be of a Microsoft variety
     or not). If you are on a unix type of system, have a look under
     the heading -One good thing- in the document 'features'
     link:///refurb/docs/features.html .There is a small set of 
     documents currently available in the 'docs' link:///refurb/docs/
     directory including an 'faq' link:///refurb/docs/system-faq.html
     which attempt to explain some of the ways in which to use
     the system.

  * Document management
     a-
     'Choose a text file to edit through a web-browser interface'
     link://$WEBPADWEBFOLDER/select-document-folder.php
     -
     'View or Edit the document HTML templates'
     link://$WEBPADWEBFOLDER/webpad.php?file=/refurb/html-templates
     -
     '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 in the 'documents folder' 
    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;


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


                                                                                
                                                            