We have a PHP Include on one of the sites we did for a client. It's been working awesome for a good month, today I tried to add a new page and when you go to the page it's blank!
The page I created is: http://toledohba.com/index.php?act=designservices3
Which when you go to it, it's completely blank even though I clearly did put words on it. I duplicated it from another page on the site, so I know I copied all of the code right.
The script is:
CODE
<?PHP
error_reporting(0);
$pages = array( 'home'=> './index.php',
'home'=> './home.php',
'foundation'=> './foundation.php',
'officers'=> './officers.php',
'ethics'=> './ethics.php',
'missionstatement'=> './missionstatement.php',
'committees_councils'=> './committees_councils.php',
'directory'=> './directory.php',
'contactus'=> './contactus.php',
'thelevel'=> './thelevel.php',
'staff'=> './staff.php',
'benefits'=> './benefits.php',
'committeescouncils'=> './committeescouncils.php',
'grievance_ethics'=> './grievance_ethics.php',
'builderfaq'=> './builderfaq.php',
'samawards'=> './samawards.php',
'other_events'=> './other_events.php',
'paradeofhomes'=> './paradeofhomes.php',
'hbanews'=> './hbanews.php',
'designservices2'=> './designservices2.php',
'designservices3'=> './designservices3.php',
'permitreport'=> './permitreport.php',
'mortgagebasics'=> './mortgagebasics.php',
'designservices'=> './designservices.php',
'buildpac'=> './buildpac.php',
'seminars'=> './seminars.php',
'certifications'=> './certifications.php',
'builders'=> './builders.php',
'suppliers'=> './suppliers.php',
'greeninfo'=> './greeninfo.php',
'members'=> './members.php',
'calendar'=> './calendar.php',
'industrynews'=> './industrynews.php',
'warranties'=> './warranties.php',
'testlogin'=> './testlogin.php',
'helpfullinks'=> './helpfullinks.php',
'application'=> './application.php',
'hbalogo'=> './hbalogo.php',
'marketing'=> './marketing.php',
'benefitsofmembership'=> './benefitsofmembership.php',
'classifieds'=> './classifieds.php',
'helpwanted'=> './helpwanted.php',
'forsale'=> './forsale.php',
'whatshappening'=> './whatshappening.php',
'articles'=> './articles.php',
'housekeys'=> './housekeys.php',
'househomeshow'=> './househomeshow.php',
'login' => './uPanel/index.php',
'upanel' => './uPanel/home.php',
'signin' => './uPanel/login.php',
'logout' => './uPanel/logout.php',
'save' => './uPanel/member.php',
'addcustomer' => './uPanel/home.php',
'editcustomers' => './uPanel/home.php',
'editcustomer' => './uPanel/home.php',
'savecustomer' => './uPanel/home.php',
'search' => './uPanel/home.php',
'addadmin' => './uPanel/home.php',
'admin' => './uPanel/home.php',
'editadmin' => './uPanel/home.php',
'restricted' => './restricted.php');
$act = $_GET[ 'act' ];
if( ! isset( $pages[ $act ] ) ) {
$act = 'home';
} include( $pages[ $act ] );
?>
error_reporting(0);
$pages = array( 'home'=> './index.php',
'home'=> './home.php',
'foundation'=> './foundation.php',
'officers'=> './officers.php',
'ethics'=> './ethics.php',
'missionstatement'=> './missionstatement.php',
'committees_councils'=> './committees_councils.php',
'directory'=> './directory.php',
'contactus'=> './contactus.php',
'thelevel'=> './thelevel.php',
'staff'=> './staff.php',
'benefits'=> './benefits.php',
'committeescouncils'=> './committeescouncils.php',
'grievance_ethics'=> './grievance_ethics.php',
'builderfaq'=> './builderfaq.php',
'samawards'=> './samawards.php',
'other_events'=> './other_events.php',
'paradeofhomes'=> './paradeofhomes.php',
'hbanews'=> './hbanews.php',
'designservices2'=> './designservices2.php',
'designservices3'=> './designservices3.php',
'permitreport'=> './permitreport.php',
'mortgagebasics'=> './mortgagebasics.php',
'designservices'=> './designservices.php',
'buildpac'=> './buildpac.php',
'seminars'=> './seminars.php',
'certifications'=> './certifications.php',
'builders'=> './builders.php',
'suppliers'=> './suppliers.php',
'greeninfo'=> './greeninfo.php',
'members'=> './members.php',
'calendar'=> './calendar.php',
'industrynews'=> './industrynews.php',
'warranties'=> './warranties.php',
'testlogin'=> './testlogin.php',
'helpfullinks'=> './helpfullinks.php',
'application'=> './application.php',
'hbalogo'=> './hbalogo.php',
'marketing'=> './marketing.php',
'benefitsofmembership'=> './benefitsofmembership.php',
'classifieds'=> './classifieds.php',
'helpwanted'=> './helpwanted.php',
'forsale'=> './forsale.php',
'whatshappening'=> './whatshappening.php',
'articles'=> './articles.php',
'housekeys'=> './housekeys.php',
'househomeshow'=> './househomeshow.php',
'login' => './uPanel/index.php',
'upanel' => './uPanel/home.php',
'signin' => './uPanel/login.php',
'logout' => './uPanel/logout.php',
'save' => './uPanel/member.php',
'addcustomer' => './uPanel/home.php',
'editcustomers' => './uPanel/home.php',
'editcustomer' => './uPanel/home.php',
'savecustomer' => './uPanel/home.php',
'search' => './uPanel/home.php',
'addadmin' => './uPanel/home.php',
'admin' => './uPanel/home.php',
'editadmin' => './uPanel/home.php',
'restricted' => './restricted.php');
$act = $_GET[ 'act' ];
if( ! isset( $pages[ $act ] ) ) {
$act = 'home';
} include( $pages[ $act ] );
?>
Any idea's @ all would def help!
Thanks,
Eric