If you keep your template files up-to-date with your current version of ZC, then in ZC 1.5.5 there is now a notifier in the file identified by schoolboy (notifier somewhat works like an old style gosub (basic language programming construct/area of code) or depending on the content within the observer it could cause the action to turn into a goto, never to return).
The notifier can be observed (Those are two key words notifier/observer that are becoming more frequently used to minimize changes to the code itself and are discussed in the FAQ/Wiki) and the observer can "insert" your McAfee information.
Assuming (it is far more helpful to your situation whatever it may be to provide more information than less as long as that information isn't specifically business sensitive or insecure) that you are using ZC 1.5.3 or higher the observer could be constructed like so:
New file:
/includes/classes/observers/auto.mcafee_script.php
With the following content as a minimum.
PHP Code:
<?php
/**
* Observer to support using the McAfree Script that was provided from:
* and by writing to/going to here: I can get an updated copy of this.
* The reason I have this installed is to/so:
* I am documenting this so that I understand why this file is here, so that in the future when I upgrade I can make
* a more informed decision about keeping it. Also if I search for something in here, I know why I have kept it.
*
* Observer template file provided by mc12345678 17-02-03 (YY-MM-DD)
*
**/
class zcObserverMcafeeScript extends base
{
public function __construct()
{
$observeThis = array(); // Define variable as an array so that PHP will not generate myDebug logs in the logs directory.
$observeThis[] = 'NOTIFY_FOOTER_END'; //Notifier to be observed. Additional notifiers can be added by in a similar method.
$this->attach($this, $observeThis); // function to call to allow the code to be triggered when the notifier(s) are reached.
}
// Function that is supported in ZC 1.5.3 without additional code being copied to the store by use of update + Camel_Case of notifier: NOTIFY_FOOTER_END
public function updateNotifyFooterEnd(&$notifierClass, $notifier)
{
?>YOUR SCRIPT/CODE<?php // Substitution of information into YOUR SCRIPT/CODE operates the same as placing html just before the </body> tag.
/* Or if you are supposed to use php to say echo something then uncomment the next line (remove the two forward slashes) and incorporate your script text that has not been provided to us to make this easier */
// echo 'The information requested to be echoed (displayed to user) but with appropriate quote escape as applicable';
}
}
Note, there is no space or other character before the first <?php. That set of characters should be the first thing in the file.
Bookmarks