Hi,
I am sorry I think I had allready found the answer to my question in an other entry some days ago.
But right now I am not able to find it 😟
I would like to check the IP adress of the sender and if it is not in a defined range I'd like to refuse it.
regards tom
I am sorry I think I had allready found the answer to my question in an other entry some days ago.
But right now I am not able to find it 😟
I would like to check the IP adress of the sender and if it is not in a defined range I'd like to refuse it.
regards tom
Hi tom,
There's some basic code in this post. You'll need to re-write it to permist a range rather than block individual addresses.
Bob
There's some basic code in this post. You'll need to re-write it to permist a range rather than block individual addresses.
Bob
Hi Bob,
thanks for your help that was what I was looking for. But now I am directly in front of the next problem.
I'd like to include a php-file and open a data file to run the Server Side Validation but it doesnt work. I guess it is a path problem.
If my files are stored under joomla/components/com_chronocontact/myfolder/myfile.php how should the include look like. Or is it not possible to include files ?
regards tom
thanks for your help that was what I was looking for. But now I am directly in front of the next problem.
I'd like to include a php-file and open a data file to run the Server Side Validation but it doesnt work. I guess it is a path problem.
If my files are stored under joomla/components/com_chronocontact/myfolder/myfile.php how should the include look like. Or is it not possible to include files ?
regards tom
Hi tom,
You can include in all of the ChronoForms textareas I think. I have a macro set up to paste this
You only need the isSite() line in the 3.1 release Form HTML box; change the path to match your requirements.
Bob
You can include in all of the ChronoForms textareas I think. I have a macro set up to paste this
<?php
if ( !$mainframe->isSite() ) { return; }
$formname =& JRequest::getString('chronoformname', '', 'get');
include (JPATH_SITE.DS.'components'.DS.'com_chronocontact'.DS.'includes'.DS.$formname.DS.'formhtml.php');
?>You only need the isSite() line in the 3.1 release Form HTML box; change the path to match your requirements.
Bob
This topic is locked and no more replies can be posted.
