diff --git a/www/vicidial/admin.php b/www/vicidial/admin.php index c797c3fb..f24b0e39 100644 --- a/www/vicidial/admin.php +++ b/www/vicidial/admin.php @@ -6094,12 +6094,13 @@ if ($SSscript_remove_js > 0) # 230810-1617 - Added force_per_call_notes campaign setting # 230810-2005 - Added third_alert_trigger features # 230830-1059 - Changed settings-outbound_calls_per_second max to allow up to 1000 CPS +# 230926-0849 - Added camp_lead_order_random options.php setting # # make sure you have added a user to the vicidial_users MySQL table with at least user_level 9 to access this page the first time -$admin_version = '2.14-895a'; -$build = '230830-1059'; +$admin_version = '2.14-896a'; +$build = '230926-0849'; $STARTtime = date("U"); $SQLdate = date("Y-m-d H:i:s"); @@ -6118,6 +6119,7 @@ $modify_footer_refresh=0; $check_time = ($STARTtime - 86400); $SSanswer_transfer_agent = '8368'; $add_copy_disabled=0; +$camp_lead_order_random=1; $month_old = mktime(0, 0, 0, date("m")-1, date("d"), date("Y")); $past_month_date = date("Y-m-d H:i:s",$month_old); @@ -26778,111 +26780,218 @@ if ($ADD==31) } else { - echo "$NWB#campaigns-lead_order$NWE\n"; + if (file_exists('options.php')) + {require('options.php');} + if ($camp_lead_order_random > 0) + { + echo "$NWB#campaigns-lead_order$NWE\n"; + } + else + { + echo "$NWB#campaigns-lead_order$NWE\n"; + } } echo "\n"; @@ -30137,111 +30246,218 @@ if ($ADD==34) } else { - echo "$NWB#campaigns-lead_order$NWE"; + if (file_exists('options.php')) + {require('options.php');} + if ($camp_lead_order_random > 0) + { + echo "$NWB#campaigns-lead_order$NWE"; + } + else + { + echo "$NWB#campaigns-lead_order$NWE"; + } } echo "\n"; diff --git a/www/vicidial/options-example.php b/www/vicidial/options-example.php index 697ac55c..c19863ed 100644 --- a/www/vicidial/options-example.php +++ b/www/vicidial/options-example.php @@ -37,6 +37,7 @@ # 230407-1040 - Added include_sales_in_TPD_report option # 230421-0220 - Added RS_AGENTlatency option # 230421-1645 - Added RS_UGlatencyRESTRICT option +# 230926-0849 - Added camp_lead_order_random option # # used by the realtime_report.php script @@ -147,6 +148,9 @@ $audio_store_GSM_allowed=0; # Include sale statuses in Team Performance Detail report $include_sales_in_TPD_report=0; +# Allow for RANDOM list orders to be used in the Modify Campaign screens +$camp_lead_order_random=1; + # CORS settings: (to enable, customize the variables below, and uncomment the "require_once('adminCORS.php');" line at the bottom) # (NOTE: The first 3 variables must be set for these features to be active) $CORS_allowed_origin = ''; # if multiple origins allowed, separate them by a pipe (also allows PHP preg syntax)