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

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

    $sPageTitle = "$ORGANISATIONNAME Administration";
    $sPageContent = "
          = $ORGANISATIONNAME Administration

* Introduction

     This page provides links to pages and scripts which allow you to
     administer the data and files which are on the $ORGANISATIONNAME 
     site. You can edit any text file which is located on the server 
     using a web-browser interface (The 'Web Notepad').

     
* General file and directory management functions
   
     a- 
     'Choose a text file to edit through a web-browser interface'
     link://$NOTEPADWEBFOLDER/retrovox-notepad-choose-file.php
     - 
     'Browse a server directory'
     link://$MANAGEMENTWEBFOLDER/select-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
     -
     'Backup a server directory'
     link://$MANAGEMENTWEBFOLDER/backup-directory-form.php
     -
     'Backup the code and data directories'
     link://$MANAGEMENTWEBFOLDER/code-and-data-backup.php
     -
     'Find a file on the server'
     link://$MANAGEMENTWEBFOLDER/find-file-form.php
     -
     'Register a file for monitoring'
     link://$MANAGEMENTWEBFOLDER/add-registration-form.php
     -
     'Check all registered files'
     link://$MANAGEMENTWEBFOLDER/check-registrations.php
     
";

  $sPageContent = fnMessageToHtml($sPageContent);

  /*
  $sPageContent = $sPageContent."
  <h3>$ORGANISATIONNAME Catalogue Management functions</h3>
  <ol type = 'a'> 
     <li>
     <a href = '/'>
     $ORGANISATIONNAME Home Page</a></li>
     <li>
     <a href = '$MANAGEMENTWEBFOLDER/add-product-form.php'>
     Add a product to the $ORGANISATIONNAME database</a></li>
     <li>
     <a href = '$MANAGEMENTWEBFOLDER/edit-product-form.php'>
     Edit the data for a product in the <?=$ORGANISATIONNAME?> database</a></li>
     <li>
     <a href = '$MANAGEMENTWEBFOLDER/manage-categories.php'>
     Manage the item category system</a></li>
     <li>
         <form action = '/product-data/search-for-product.php'
               method = 'get'>
         Search for a catalogue item
         <input type = 'text' size = '20' name = 'search'>
         </form>    
     </li>
  </ol>";
  */

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


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


                                                                                
                                