You’ve got me stumped...only other thing I would do at this point is really look at the server and the hosting company, check and make sure that you aren’t FTP-ing into a dev folder by accident, and make sure that things are being edited onto the root. You may need to talk to your friend about giving you uninhibited access to his hosting account to make sure. Sometimes people develop in a subfolder and then move it to the root. That would explain why you are editing the files and not seeing the edits showing up online. Nothing else makes sense to me right now....
"Great spirits have always encountered violent opposition from mediocre minds." -Albert Einstein
The index.php file should not be hacked - the age checking code should be in a snippet or snippets and included in the html template(s) - the splash page should be a resource (like the other pages)
I would probably have at least two snippets - one would be on all pages to check for the ’age cookie’. An second would be for the php code for the age entry form, cookie creation etc.
I would not bother to find out what is going - just go back and "do it right" - of course if that doesn’t work then you will have to figure out what is going on!
It goes without saying - Back Up First.
Edit - goonz posted while I was posting and what he says about not seeing edits makes sense - if so doing as I suggest and getting rid of the hacked index.php, and the other index files will make no difference!
I understand that the OP inherited the site - and hence has to figure out what is going on.
But the way it was designed or perhaps implemented does matter since it should easy and obvious how to change the logo on the splash page - and it is apparent that the OP should be quite capable of doing so.
I just think that the ’age code’ could be easily spit into two parts and incorporated in a more standard way without hacking the index.php which is a not a good idea. Getting rid of the old index files, redoing things, and clearing cache just might fix things and make it easier to deal with in the future.
However I think that probably this won’t help because:
Given the code/html in the index.php and what has been tried - and that I see the logo.gif in the location that is linked to in the index.php code - I think that the index.php that was edited is not the one being ’served up’. Quite a mystery!
Quote from: lucas at May 09, 2011, 12:35 PM
Man, this is confusing. Would love to dig into your ftp account and see what’s going on!
Are you absolutely certain that this is not a duplicate in some way of the live site? It’s weird that none of the changes are having an effect. Delete the ’index.htm’ file we created as it’s not having any effect. I guess you could find out for sure that you’re editing the right site - that it’s not actually a dev site - by renaming both ’index.html’ and ’index.php’ just for a minute and trying to access the home page. It’s a bad thing to do, but if the site breaks at least you know you are in the right server/folder.
Also, has this site been moved to a new server since the dispute? I’m wondering if the domain name could perhaps still be pointing to the original server....
Quote from: whistlemaker at May 09, 2011, 02:00 PM
However I think that probably this won’t help because:
Given what the code/html in the index.php and what has been tried - and that I see the logo.gif in the location that is linked to in the index.php code - I think that the index.php that was edited is not the one being ’served up’. Quite a mystery!
Yep, that’s where I’m at also. Glad to see my debugging process and skills are following the norm and still up to par

. Had client one time that the files weren’t coming through in email, and kept telling me that it was because I’m using a Mac. I kept trying to tell him that was ridiculous, and that the problem was somewhere else, between his email and his computer. Nope, its cause you have a mac. Finally I logged into his webmail, and re-sent the files, and guess what showed up? The files - and he still told me it was because I use a mac. I had to shout over him and tell him to shut down his outlook and go online and he would have the files, and finally he said ’Oh. But my computer has to be working.’ In the end it was some weird glitch in Outlook that fixed itself. What some people will believe....
"Great spirits have always encountered violent opposition from mediocre minds." -Albert Einstein