From d3fc8f75d9258a42a09ac9e98634f3d77814a7c9 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Mon, 28 Nov 2016 15:20:47 -0500 Subject: [PATCH] Updates for php Removing calls to deprecated functions ereg eregi ereg_relpace session_register session_unregister --- admin/Contact/index.phtml | 64 +- admin/Contact/mailout.phtml | 32 +- admin/Contact/query_contact.phtml | 66 +- .../plugins/ImageManager/Classes/NetPBM.php | 22 +- .../ImageManager/Classes/Transform.php | 14 +- classes/glm-Events-calendar-2-0.phtml | 118 +-- setup.phtml | 684 +++++++++--------- 7 files changed, 501 insertions(+), 499 deletions(-) diff --git a/admin/Contact/index.phtml b/admin/Contact/index.phtml index 50e776d..9012fb8 100755 --- a/admin/Contact/index.phtml +++ b/admin/Contact/index.phtml @@ -1,23 +1,25 @@ -db_exec($qs); $total = pg_result($res,0,'total'); @@ -29,26 +31,26 @@ html_nav_table($nav,$navWidth); There 1) + elseif($total > 1) { echo "are $total contacts"; } - else + else { echo "is $total contact"; } ?> in the database. - + Search: - + Search records for:
@@ -78,8 +80,8 @@ html_nav_table($nav,$navWidth); if(all == 0) { if(ping == 0) { errors += '-You must select a search type\n'; - } - } + } + } for(var i=0;i<;i++) { if(this.ifields.options[i].selected) { @@ -92,29 +94,29 @@ html_nav_table($nav,$navWidth); this.rfvalue.value += ':' + this.return_fields.options[i].value; } } - + for(var i=0;i<1;i++) { if(this.dates.options[i].selected) { this.rdvalue.value += ':' + this.dates.options[i].value; } } - + if(all == 0) { if(this.fvalue.value == '') { errors += '-You must select at least one field to search in\n'; } } - + if(this.rfvalue.value == '') { errors += '-You must select at least one field for output\n'; } - + if(all == 1) { if(errors == '') { return(true); } } - + if(errors == '') { return(true); } @@ -124,7 +126,7 @@ html_nav_table($nav,$navWidth); msg += 'the following and resubmit\n\n'; msg += errors + '\n\n'; msg += '_______________________________________\n\n'; - + alert(msg); return(false); } @@ -188,8 +190,8 @@ html_nav_table($nav,$navWidth); ?>
Search Type:
@@ -213,7 +215,7 @@ html_nav_table($nav,$navWidth); $res = db_auto_get_data($qs); if(is_array($res)) { - foreach($res as $i=>$data) + foreach($res as $i=>$data) { ?>