ok - this make sense. HostGator sent me an email 2 weeks after the hacking. In the email they mentioned index.php in the MemberPhotos folder. All that is in that folder normally would be images. There should never be any pages. I deleted the other pages immediately - pages like the home page. They had uploaded one of those black pages with the ugly guy telling us we've been hacked. And I could see on the server anything else that had been changed by the date/time. So I just deleted and put back my good pages from my local files.
I hadn't noticed anything in the MemberPhotos folder and I don't remember if I found index.php there after HG emailed me.
I don't change your code. I can usually figure out what is happening with the code but beyond that, I don't know enough about PHP to make changes. This has all been working fine for 3-4 years now. I did have trouble with spammers on the registration from but then changed the name so it's harder to guess and we've been fine. The reg page is not visible on the website. The new member has to join, pay through paypal and then they are taken back to the registration page. So that makes me wonder more how the hacker found the reg page and how they got into my site to make changes to other pages.
I'm going to paste the bit of code that is probably what I need to make sure is correct - to not allow anything but images. Please tell me if I should change any of this. Thank you!
<?php
// WA_UploadResult1 Params Start
$WA_UploadResult1_Params = array();
// WA_UploadResult1_1 Start
$WA_UploadResult1_Params["WA_UploadResult1_1"] = array(
'UploadFolder' => "MemberPhotos",
'FileName' => "[FileName]",
'DefaultFileName' => "",
'ResizeType' => "0",
'ResizeWidth' => "0",
'ResizeHeight' => "0",
'ResizeFillColor' => "" );
// WA_UploadResult1_1 End
// WA_UploadResult1 Params End
?>
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if(isset($_POST["Insert"]) || isset($_POST["Insert_x"])){
WA_DFP_UploadFiles("WA_UploadResult1", "photo", "0", "", "false", $WA_UploadResult1_Params);
}
?>