                                                        
<?php
//-->-->-->-->-->-->-->-->-->-->-->-->-->-->
 
   include "/home/waggacwc/public_html/refurb/RETRO-GLOBALS.php";

   //include "$LIBRARYPATH/RETROVOX-CONSTANT-VARIABLES.php";
   //require "$LIBRARYPATH/fnRetrovoxStartHtml.php";

   include "$LIBRARYPATH/fnFillWebTemplate.php";
   include "$LIBRARYPATH/fnMessageToHtml.php";
   include "$LIBRARYPATH/fnHyperlinkPlainText.php";

   $sFilePath = "";
   $sResultPage = "";

   $sFilePath = $_GET['file'];
   $sFilePath = str_replace('\\', '/', $sFilePath);
   $sFilePath = preg_replace('#[/]+#', '/', $sFilePath);

   $aaTextLines = file($ERRORTEMPLATE);
   $sErrorTemplateContents = implode('', $aaTextLines);

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

   $sPageContent = "
    <p>You can use this page to search for a file on the server 
    </p>
    <form action = '$MANAGEMENTWEBFOLDER/find-file.php" 
          method = "get">
    <br>
    <em>Enter the name or part of a file name to search for</em>
    <br>
    <input  type = 'text'    name  = 'file'  size = '70'
           value = '$sFilePath'><br>
    <input   type = 'submit'  value = 'Search for File'>
    </form>
    <ul>
    <li><a href = '$MANAGEMENTWEBFOLDER/admin.php'>
    Go to the Administration page</a></li>
    </ul>";

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

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


                                                        