/includes/modules/pages/page/header_php.php
At the top of the file, find this```php
// This should be first line of the script:
$zco_notifier->notify('NOTIFY_HEADER_START_EZPAGE');
$ezpage_id = (int)$_GET['id'];
if ($ezpage_id == 0) zen_redirect(zen_href_link(FILENAME_DEFAULT));
$chapter_id = (int)$_GET['chapter'];
and insert the test to get thisphp
// This should be first line of the script:
$zco_notifier->notify('NOTIFY_HEADER_START_EZPAGE');
$ezpage_id = (int)$_GET['id'];
if ($ezpage_id == 0) zen_redirect(zen_href_link(FILENAME_DEFAULT));
if($ezpage_id == xx and !$_SESSION['customer_id']) {
//code to go to login page or output message
}else{
$chapter_id = (int)$_GET['chapter'];
//code to go to login page or output message
At the bottom of the file,add a }```php
// This should be last line of the script:
$zco_notifier->notify('NOTIFY_HEADER_END_EZPAGE');
?>
```to get this```php
}
// This should be last line of the script:
$zco_notifier->notify('NOTIFY_HEADER_END_EZPAGE');
?>
Note that this file is not overrideable; you will have to modify it in the original location. Save a copy renamed as header_php.bak in case of problems.