...

Please post your suggestions or any hacks you have made here

...

Postby cuhuak on Fri Apr 11, 2008 5:55 pm

hi!
i'm noob but...
chronocontact.php -> function uploadandmail -> string ~284
Code: Select all
   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
Code: Select all
    $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
cuhuak
Fresh Boarder
 
Posts: 10
Joined: Fri Apr 11, 2008 8:39 am

Return to ChronoForms Suggestions & Hacks

Who is online

Users browsing this forum: No registered users and 3 guests