The custom-inc.asp allows some personalizations of the CMS functions without weaken the retro-compatibility of the system.
This file is inside the folder named /includes; it allows to personalize the functions which have been made available inside the CMS thanks to an easy procedure.
All is based on the priority of inclusion of the files of which the ASP language is focused on. That is, if two functions have the same name, ASP will consider only the written function or, in this case, later included. For this reason the custom-inc is included inside the clearitall-inc.asp, which is actually the last file to be included in each page.
Let’s see how this system works by making an example. Let’s hypothesize that inside CMS is present the following function:
Operazione = numero1 + numero2
If we wanted to customize this function, having the subtraction between these two numbers, instead of the addition, it’s enough to copy this function from the CMS file in which it lays and paste it in the file custom-inc which is present in the /includes folder, and modify it this way:
Operazione = numero1 - numero2
This way, the ASP engine could include both the functions, as they have the same name; as the customized function is included, anyway, at the end this would have the prevalence on the one included first.
So, if we would intend to print as video the result of this operation through the line of command:
we would not get 9 (the addition), but 5 (the subtraction).
Personalizing the functions this way, instead of acting directly on the general code of the site, it’s possible to maintain the absolute compatibility with the following releases of Zenukers.