                                                        
<?php
//-->-->-->-->-->-->-->-->-->-->-->-->-->-->
//--Description:
//--  The purpose of this script is to provide an interface to 
//--  move a directory tree (by which
//--  I mean a directory and all sub-directories) to the garbage directory
//--  which should be located in the system folder.
//--
//--Author:
//--  

   include_once "/home/waggacwc/public_html/refurb/RETRO-GLOBALS.php";

   include_once "$LIBRARYPATH/RETROVOX-CONSTANT-VARIABLES.php";
   include_once "$LIBRARYPATH/fnDirectoryTreeHtmlSelect.php";
   include_once "$LIBRARYPATH/fnMessageToHtml.php";
   include_once "$LIBRARYPATH/fnListBlockToHtml.php";
   include_once "$LIBRARYPATH/fnHyperlinkPlainText.php";
   include_once "$LIBRARYPATH/fnFillWebTemplate.php";


   $sAdminTemplateContents = "";
   $aaTextLines = file($ADMINTEMPLATE);
   $sAdminTemplateContents = implode('', $aaTextLines);

   $sFolderPath = $_GET['folder'];
   $sPageContent = "
    <p>You can use this page to remove a directory on the server, including
        all its subdirectoires. USE THIS WITH CAUTION. The directory tree
        is zipped and placed in the garbage directory, so it may be
        retrievable if the garbage directory is not emptied.
        </p>
    <form action = 'remove-directory-tree.php' 
          method = 'get'>
    <br>
    <em>Select the name of a directory (folder) to backup</em>
    <br>".fnDirectoryTreeHtmlSelect("$WEBROOT")."<br>
    <input   type = 'submit'  value = 'Backup This Folder'>
    </form>";

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

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



                                                        