<?php
    $siteURL = "https://vpnconf.ccsitx.com/";
    $siteName = $_GET["site"];
    $fileExt = $_GET["file"];
    $returnFile = glob($siteName . "/*." . $fileExt);
    //echo $returnFile[0];
    //echo "test";
    //echo basename($returnFile[0]);
    if ($returnFile[0] == NULL) {
        $returnString = "SiteNotFound";
    }
    else{
        $returnString = basename($returnFile[0]);
    }
    echo $returnString;
?>