                                                                                                                                                
<?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/fnHtmlAsciiMenuItems.php";

   include_once "$LIBRARYPATH/fnListBlockToHtml.php";
   include_once "$LIBRARYPATH/fnCodeBlockToHtml.php";
   include_once "$LIBRARYPATH/fnHyperlinkPlainText.php";
   include_once "$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
   
     u--
     [ascii-menu-item:copy-file]
     Copy / Rename a server file
     -
     [ascii-menu-item:search]
     Find a file on the server
     -
     [ascii-menu-item:file-edit]
     Choose a text file to edit through a web-browser interface
     - 
     [ascii-menu-item:browse-folders]
     Browse a server directory
     -
     '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
     -
     'Remove a server directory tree'
     link://$MANAGEMENTWEBFOLDER/remove-directory-tree-form.php
     -
     'Register a file for monitoring'
     link://$MANAGEMENTWEBFOLDER/add-registration-form.php
     -
     'Check all registered files'
     link://$MANAGEMENTWEBFOLDER/check-registrations.php

     '(!)' http://wagga-cwc.org.au/refurb/manage/notepad/retrovox-notepad.php?file=%2Fhome%2Fwaggacwc%2Fpublic_html%2Frefurb%2Fmanage%2Fadmin.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);   

    $sResultPage = 
      fnHtmlAsciiMenuItems(
      $sResultPage, 
      "home/waggacwc/public_html/refurb/manage/admin.php",
      $MANAGEMENTWEBFOLDER);


    echo $sResultPage;


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


                                                                                
                                                                