hi!
i'm noob but...
chronocontact.php -> function uploadandmail -> string ~284
chronocontact.php -> function showform -> string ~65
That is more simple, i think.
and what about utf8 file encoding?
sorry for my baaaaad english🙂
Post edited by: cuhuak, at: 2008/04/11 14:00<br><br>Post edited by: GreyHead, at: 2008/04/11 15:05
i'm noob but...
chronocontact.php -> function uploadandmail -> string ~284
if ( ($rows[0]->emailresults != 0) && !$error_found ) {
/**
* Clean the list of fields to be omitted from the results email
*/
if ( trim($paramsvalues->omittedfields ) != '' ) {
$omittedlist = explode(",", $paramsvalues->omittedfields);
}
$htmlstring = $rows[0]->html;
/**
* Find all the 'name's in the html-string and add to the $matches array
*/
preg_match_all('/name=("|\')(.*?)("|\')/i', $htmlstring, $matches); //edited!!!
/**
* clean the matches array
*/
$names = array();
foreach ( $matches[2] as $name ) { //edited!!!
// $name = preg_replace('/name=("|\')/i', '', $name); //deleted
// $name = preg_replace('/("|\')/', '', $name); //deleted
// $name = preg_replace('/name=("|\')/', '', $name); //deleted
// $name = preg_replace('/name=("|\')/', '', $name); //deleted
chronocontact.php -> function showform -> string ~65
$query = "
SELECT *
FROM #__chrono_contact
WHERE name = '$formname'";
$database->setQuery( $query );
$rows = $database->loadObjectList();
if (!$rows) {echo 'No such form';return;} //ads!!! respose will be faster
That is more simple, i think.
and what about utf8 file encoding?
sorry for my baaaaad english🙂
Post edited by: cuhuak, at: 2008/04/11 14:00<br><br>Post edited by: GreyHead, at: 2008/04/11 15:05
This topic is locked and no more replies can be posted.