Hi
I have taken over the maintenance of a website, but unfortunately I am having trouble restoring the site to proper working order.
I have attached my "index.php" file which as far as I can tell is separating each section (between '/') between the current URL path into an array, and then working out exactly what page you are requesting to display the correct combination of HTML and PHP pages.
The directory structure is as follows:
index.php - attached
index - exact copy of index.php without the extension ??
details.php - database configuration
menu.php - code for the menubar
te.php - "template engine" sorts lists from what I can tell
directories:
/actions/ - administrative actions like adding site entries
/image/
/layout/ - default HTML files for layout purposes I assume
/library/ - global definitions
/screen_code/ - php files for the active content of the pages
/screens/ - HTML files for the fixed content
Now the code seems to look for /index/page/xxxx-yyyy
Where xxxx and yyyy are within layout, screen_code and screens.
index or page does not exist and this is really confusing me.
If I was to ignore the /index/page/xxxx-yyyy and look into my directory structure I can find the following:
/screen_code/xxxx/yyyy.php and
/screens/xxxx/yyyy.html
So the index.php is somehow combining screens & screen_code but masking it with /index/page/ and changing xxxx/yyyy.zzz to xxxx-yyyy so obviously the "Page Cannot Be Displayed" which is the annoying error I keep on receiving...!
Can anyone understand what the attached index.php is trying to do?
Many Thanks for your help.