From 6882d697aa6b81ffe22fc668f0f1baa2f218de39 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Mon, 28 Nov 2016 16:01:44 -0500 Subject: [PATCH] Update for php Replacing =& new calls with = new --- admin/Contact/contact_setup.inc | 384 +-- admin/Contact/emails.php | 6 +- admin/Contact/update_inquiry.phtml | 44 +- admin/packages/addPackage.php | 4 +- admin/packages/index.php | 6 +- admin/packages/index.save.php | 207 -- admin/packages/orderForm.php | 2 +- admin/packages/test.php | 20 +- classes/class_contact_form.inc | 180 +- classes/class_template.inc | 4162 ++++++++++++++-------------- member/index.php | 8 +- member/login.php | 4 +- member/logout.php | 4 +- order-form.php | 6 +- setup.phtml | 2 +- 15 files changed, 2412 insertions(+), 2627 deletions(-) delete mode 100755 admin/packages/index.save.php diff --git a/admin/Contact/contact_setup.inc b/admin/Contact/contact_setup.inc index 6da7dcd..3c4539b 100644 --- a/admin/Contact/contact_setup.inc +++ b/admin/Contact/contact_setup.inc @@ -1,16 +1,16 @@ $value) - { - $template = str_replace( "", $value, $template ); - } - } + { + function template_replacement($template,$fieldarr) + { + if(is_array($fieldarr)) + { + foreach($fieldarr as $key=>$value) + { + $template = str_replace( "", $value, $template ); + } + } - return $template; - } - } + return $template; + } + } if(!function_exists("add_image")) - { - function add_image($image,$align) - { - if($image != "") - { - return('
'); - } - } - } + { + function add_image($image,$align) + { + if($image != "") + { + return('
'); + } + } + } // Navigation array $nav = array( - "Report Builder" => "index.phtml", - "Add Contact" => "edit_contact.phtml", - "List Contacts" => "list_contact.phtml", - "Contact Inquiry Fields" => "contact_inquiry.phtml", - "HTML Emails" => "emails.php", - "Saved Reports" => "list_query.phtml", - ); + "Report Builder" => "index.phtml", + "Add Contact" => "edit_contact.phtml", + "List Contacts" => "list_contact.phtml", + "Contact Inquiry Fields" => "contact_inquiry.phtml", + "HTML Emails" => "emails.php", + "Saved Reports" => "list_query.phtml", + ); $navWidth = 7; $query = "select * from contact_inq order by pos;"; $cData = $DB->db_auto_get_data($query); if( is_array( $cData ) ) { - foreach( $cData as $key => $value ) - { - $int_array[$value['id']] = $value['header']; - } + foreach( $cData as $key => $value ) + { + $int_array[$value['id']] = $value['header']; + } } function search_where( $name, $search_where ) { - $out = ' - +