Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php goto x2Wqy; uPz87: $groups_to_print = mysqli_num_rows($rslt); goto EqMB6; u_hZ_: $c..

Decoded Output download

<?php 
goto x2Wqy; uPz87: $groups_to_print = mysqli_num_rows($rslt); goto EqMB6; u_hZ_: $container_stmt = "select container_entry from vicidial_settings_containers where container_id='REALTIME_REPORT_TIMES'"; goto CaoWw; TiZFt: $LOGast_admin_access = $row[16]; goto Q7o3X; OR6TI: $LOGdelete_filters = $row[29]; goto bzUiI; RShFS: if ($DB) { echo "{$stmt}
"; } goto ZR3je; DWtqU: $CUSTINFOdisplay = preg_replace("/[^-_0-9a-zA-Z]/", '', $CUSTINFOdisplay); goto o5xjL; odo_1: $rt_report_times["dead_short_time"] = 10; goto iSy3L; seea7: $RS_agentWAIT = 3; goto RkvvL; vm2JD: $PHONEdisplay = preg_replace("/[^-_0-9a-zA-Z]/", '', $PHONEdisplay); goto zskBH; H51Oo: $LOGuser_group = $row[1]; goto qdB9t; jRkvj: $vmLOGadmin_viewable_groupsSQL = ''; goto o2Rzj; lNp_D: $rslt = mysql_to_mysqli($stmt, $link); goto uPz87; joV7a: $LOGadmin_hide_phone_data = $row[3]; goto KEMSE; ASQrG: header("Content-type: text/html; charset=utf-8"); goto q3omr; j3Axv: $LISTnames = array(); goto G8Jic; BjwA_: $rt_report_times["paused_long_time"] = 300; goto JxgLk; EPE7d: $groups[0] = preg_replace("/[^-_0-9a-zA-Z]/", '', $groups[0]); goto BnnVt; TFYEv: if (!isset($DB)) { $DB = 0; } goto H9vcf; CzTO4: $PHP_SELF = preg_replace("/\.php.*/i", ".php", $PHP_SELF); goto MsRa9; ETsxQ: $stmtPr = "SELECT * from pixiscrm_users_privilege where user='{$PHP_AUTH_USER}';"; goto H6Rxc; f4dII: $rt_report_times["paused_long_time15"] = 900; goto g0DdS; iw7VC: if (strlen($group) > 1 and strlen($groups[0]) < 1) { $groups[0] = $group; $RR = 1; } else { $group = $groups[0]; } goto Sm7Bt; tm1xh: if (!isset($CUSTINFOdisplay)) { $CUSTINFOdisplay = 0; } goto aUoaU; LqDtW: $LOGdelete_campaigns = $row[11]; goto hWHL_; jFId3: $LOGadmin_viewable_groupsSQL = ''; goto SU_YG; Jn7iB: if (!isset($PHONEdisplay)) { $PHONEdisplay = 0; } goto ptsap; EsuCp: $LOGdelete_call_times = $row[32]; goto nSwAQ; Jhcos: $qm_conf_ct = mysqli_num_rows($rslt); goto oe29M; fBDyB: $LOGuser_group = $row[5]; goto UGSnY; gjdJH: $rt_report_times["paused_medium_time"] = 60; goto BjwA_; bvLgr: $load_ave = get_server_load(true); goto q7yf2; BnnVt: $usergroup = preg_replace("/[^-_0-9a-zA-Z]/", '', $usergroup); goto rmSmI; ZR3je: $row = mysqli_fetch_row($rslt); goto HiXXe; VJxs0: $LOGmodify_phones = $row[73]; goto NGlzW; SU_YG: $valLOGadmin_viewable_groupsSQL = ''; goto jRkvj; U9nkn: $LOGmodify_statuses = $row[76]; goto ne7FA; iE58L: $LOGmodify_audiostore = $row[78]; goto c2lkP; HiXXe: $monitor_phone = $row[0]; goto CgbaV; MixOJ: $LOGdelete_dids = $row[57]; goto DiIIt; CgbaV: $stmt = "SELECT realtime_block_user_info,user_group,admin_hide_lead_data,admin_hide_phone_data from vicidial_users where user='{$PHP_AUTH_USER}';"; goto NPjmN; ku10C: $rt_report_times["waiting_long_time"] = 300; goto VGB4_; ZfxD3: $LOGdelete_scripts = $row[18]; goto OR6TI; Rs51j: $rslt = mysql_to_mysqli($stmt, $link); goto RShFS; RmZb6: session_start(); goto XOYwM; Thx1Q: $timeONEminuteAGO = date("Y-m-d H:i:s", $epochONEminuteAGO); goto A4HUc; H2usg: if ($CUSTPHONEdisplay == 1) { $CUSTINFOdisplay = 0; } goto Jiq_M; cib6J: if (!isset($CALLSdisplay)) { $CALLSdisplay = 1; } goto Jn7iB; ne7FA: $LOGmodify_voicemail = $row[77]; goto iE58L; uNSiY: $admin_auth = 0; goto MQft_; bekmF: if (strlen($slave_db_server) > 5 and preg_match("/{$report_name}/", $reports_use_slave_db)) { mysqli_close($link); $use_slave_server = 1; $db_source = "S"; require "dbconnect_mysqli.php"; } goto Ndf2X; Jiq_M: if (!isset($PAUSEcodes)) { $PAUSEcodes = "N"; } goto gmU51; Q2XZ5: $LOGforce_change_password = $row[71]; goto ymgL8; ohCyt: require "functions.php"; goto RXb1q; o5xjL: if ($CUSTINFOdisplay == 1) { $CUSTPHONEdisplay = 0; } goto sL3zg; SFUG6: $LOGdelete_remote_agents = $row[13]; goto y2Weu; loa6k: $LOGcallcard_admin = $row[70]; goto Q2XZ5; KD01q: $rt_report_times["paused_short_time"] = 10; goto gjdJH; sL3zg: if ($CUSTPHONEdisplay == 1) { $CUSTINFOdisplay = 0; } goto lqbIo; BRVmS: $LOGadmin_viewable_call_times = $row[3]; goto jFId3; UVocE: $NOW_HOUR = date("H:i:s"); goto JVJCV; NGlzW: $LOGmodify_carriers = $row[74]; goto sNw2G; JxgLk: $rt_report_times["paused_long_time10"] = 600; goto f4dII; hnODT: if (!isset($user_group_filter)) { $user_group_filter = array(); } goto Tw2mQ; RZX4j: $allow_usergroup = "1=1"; goto au4LP; ymgL8: $LOGmodify_shifts = $row[72]; goto VJxs0; qGrtZ: $RR = preg_replace("/[^0-9]/", '', $RR); goto VRXRP; h5i5B: $LOGallowed_reports = "{$row["1"]}|{$row["2"]}"; goto MRgsz; uy_wz: $LOGadmin_viewable_groups = $row[2]; goto BRVmS; HdQPo: $NOW_DAY = date("Y-m-d"); goto UVocE; VGB4_: $rt_report_times["incall_short_time"] = 10; goto b_P72; oe29M: if ($qm_conf_ct > 0) { $row = mysqli_fetch_row($rslt); $outbound_autodial_active = $row[1]; $slave_db_server = $row[2]; $reports_use_slave_db = $row[3]; $allow_chats = $row[7]; $cache_carrier_stats_realtime = $row[8]; $SSofcom_uk_drop_calc = $row[10]; $SSenable_pause_code_limits = $row[11]; $SStimeclock_end_of_day = $row[12]; $SSallow_web_debug = $row[13]; } goto JOwoQ; zMQla: $kk = 0; goto nUcA0; ylQNv: $allactivecampaigns .= "''"; goto zMQla; hWHL_: $LOGdelete_ingroups = $row[12]; goto SFUG6; TptnY: if (!isset($orderby)) { $orderby = "userA"; } goto TZ8ry; YEoyp: if ($auth_message == "GOOD" or $auth_message == "2FA") { $auth = 1; if ($auth_message == "2FA") { header("Content-type: text/html; charset=utf-8"); echo _QXZ("Your session is expired") . ". <a href="/">" . _QXZ("Click here to log in") . "</a>.\xa"; die; } } goto BrERS; KnSRu: $LOGallowed_campaignsSQL = ''; goto EbJSM; xW0iy: $LOGdelete_from_dnc = $row[65]; goto loa6k; XOYwM: require "dbconnect_mysqli.php"; goto ohCyt; Ujz7P: $stmt = "SELECT campaign_id,campaign_name from vicidial_campaigns where campaign_id != 'pixis' and active='Y' {$LOGallowed_campaignsSQL} and {$allow_usergroup} order by order_cam asc;"; goto lNp_D; Vw_du: $timeFIFTEENminutesAGO = date("Y-m-d H:i:s", $epochFIFTEENminutesAGO); goto LlWFf; GqHXt: $timeSIXhoursAGO = date("Y-m-d H:i:s", $epochSIXhoursAGO); goto U4ls2; aUoaU: if ($CUSTINFOdisplay == 1) { $CUSTPHONEdisplay = 0; } goto H2usg; Sm7Bt: function get_server_load($windows = false) { $os = strtolower(PHP_OS); if (strpos($os, "win") === false) { if (file_exists("/proc/loadavg")) { $load = file_get_contents("/proc/loadavg"); $load = explode(" ", $load); return $load[0] . " " . $load[1] . " " . $load[2]; } elseif (function_exists("shell_exec")) { $load = explode(" ", `uptime`); return $load[count($load) - 3] . " " . $load[count($load) - 2] . " " . $load[count($load) - 1]; } else { return false; } } elseif ($windows) { if (class_exists("COM")) { $wmi = new COM("WinMgmts:\\."); $cpus = $wmi->InstancesOf("Win32_Processor"); $cpuload = 0; $i = 0; while ($cpu = $cpus->Next()) { $cpuload += $cpu->LoadPercentage; $i++; } $cpuload = round(MathZDC($cpuload, $i), 2); return "{$cpuload}%"; } else { return false; } } } goto bvLgr; Q7o3X: $LOGast_delete_phones = $row[17]; goto ZfxD3; Mypz7: $row = mysqli_fetch_row($rslt); goto kh709; nSwAQ: $LOGmodify_call_times = $row[33]; goto ZFGKl; U4ls2: $epochTWENTYFOURhoursAGO = $STARTtime - 86400; goto c7Kgq; uUnQX: $profil = "admin"; goto RZX4j; DTxB_: $LOGfull_name = $row[3]; goto EaIJ1; TkbWX: $LOGview_reports = $row[43]; goto Qd7RM; bleKD: $realtime_block_user_info = $row[0]; goto H51Oo; btWXt: $epochFIFTEENminutesAGO = $STARTtime - 900; goto Vw_du; kh709: $LOGallowed_campaigns = $row[0]; goto LOUUC; i1RIx: $row = mysqli_fetch_row($rslt); goto vpDWj; rFHsX: $LOGmodify_ingroups = $row[39]; goto yMet5; kYtFP: $UGdisplay = preg_replace("/[^-_0-9a-zA-Z]/", '', $UGdisplay); goto C6ceK; A4HUc: $epochFIVEminutesAGO = $STARTtime - 300; goto bFmO6; HjTe5: if (!isset($UGdisplay)) { $UGdisplay = 0; } goto cWjbn; rz01g: $LOGcampaign_detail = $row[15]; goto TiZFt; wQPBL: $rowPr = mysqli_fetch_assoc($rsltPr); goto uUnQX; bzUiI: $LOGalter_agent_interface = $row[30]; goto EsuCp; CaoWw: $container_rslt = mysql_to_mysqli($container_stmt, $link); goto TRUm8; o2Rzj: if (!preg_match("/\-\-ALL\-\-/i", $LOGadmin_viewable_groups) and strlen($LOGadmin_viewable_groups) > 3) { $rawLOGadmin_viewable_groupsSQL = preg_replace("/ -/", '', $LOGadmin_viewable_groups); $rawLOGadmin_viewable_groupsSQL = preg_replace("/ /", "','", $rawLOGadmin_viewable_groupsSQL); $LOGadmin_viewable_groupsSQL = "and user_group IN('---ALL---','{$rawLOGadmin_viewable_groupsSQL}')"; $whereLOGadmin_viewable_groupsSQL = "where user_group IN('---ALL---','{$rawLOGadmin_viewable_groupsSQL}')"; $valLOGadmin_viewable_groupsSQL = "and val.user_group IN('---ALL---','{$rawLOGadmin_viewable_groupsSQL}')"; $vmLOGadmin_viewable_groupsSQL = "and vm.user_group IN('---ALL---','{$rawLOGadmin_viewable_groupsSQL}')"; } else { $admin_viewable_groupsALL = 1; } goto ETsxQ; msAwU: $db_source = "M"; goto y2LRO; RIMzA: $reports_auth = 0; goto uNSiY; xS5Bw: $LOGmodify_servers = $row[42]; goto TkbWX; xXGf6: $rt_report_times["incall_long_time"] = 300; goto KD01q; G1hpD: $rslt = mysql_to_mysqli($stmt, $link); goto Jhcos; TZ8ry: if (!isset($SERVdisplay)) { $SERVdisplay = 0; } goto cib6J; qdB9t: $LOGadmin_hide_lead_data = $row[2]; goto joV7a; EbJSM: $whereLOGallowed_campaignsSQL = ''; goto G_c08; c7Kgq: $timeTWENTYFOURhoursAGO = date("Y-m-d H:i:s", $epochTWENTYFOURhoursAGO); goto QVGnT; H9vcf: if (!isset($RR)) { $RR = 1; } goto aIv9G; EaIJ1: $LOGuser_level = $row[4]; goto fBDyB; AcVcO: $LOGmodify_contacts = $row[81]; goto ZQhvi; SjSzc: $i++; goto j4uQp; G_c08: if (!preg_match("/ALL-/", $LOGallowed_campaigns)) { $rawLOGallowed_campaignsSQL = preg_replace("/ -/", '', $LOGallowed_campaigns); $rawLOGallowed_campaignsSQL = preg_replace("/ /", "','", $rawLOGallowed_campaignsSQL); $LOGallowed_campaignsSQL = "and campaign_id IN('{$rawLOGallowed_campaignsSQL}')"; $whereLOGallowed_campaignsSQL = "where campaign_id IN('{$rawLOGallowed_campaignsSQL}')"; } goto vgDEL; NPjmN: $rslt = mysql_to_mysqli($stmt, $link); goto xldUO; Im32u: $LISTgroups = array(); goto j3Axv; Uth1C: $timeONEhourAGO = date("Y-m-d H:i:s", $epochONEhourAGO); goto nhesB; DiIIt: $LOGmanager_shift_enforcement_override = $row[61]; goto jN3IZ; n50ET: $LOGmodify_tts = $row[80]; goto AcVcO; c2lkP: $LOGmodify_moh = $row[79]; goto n50ET; b_P72: $rt_report_times["incall_medium_time"] = 60; goto xXGf6; KEMSE: $stmt = "SELECT allowed_campaigns,allowed_reports,allowed_custom_reports from vicidial_user_groups where user_group='{$LOGuser_group}';"; goto IMEPW; OYnR2: $auth = 0; goto RIMzA; FLaxT: $rslt = mysql_to_mysqli($stmt, $link); goto Mypz7; C6ceK: $UidORname = preg_replace("/[^-_0-9a-zA-Z]/", '', $UidORname); goto AtABl; EqMB6: $i = 0; goto Im32u; JuUhe: $RS_DIDdesc = 0; goto TFYEv; EtaoE: while ($kk < count($ay_groupes)) { $groups = array(); $groups[0] = $ay_groupes[$kk]; $i = 0; $group_string = "|"; $group_ct = count($groups); while ($i < $group_ct) { $groups[$i] = preg_replace("/'|"|\\|;/", '', $groups[$i]); if (preg_match("/ {$groups[$i]} /", $regexLOGallowed_campaigns) or preg_match("/ALL-/", $LOGallowed_campaigns)) { $group_string .= "{$groups[$i]}|"; $group_SQL = "'{$groups[$i]}',"; $groupQS = "&groups[]={$groups[$i]}"; } $i++; } $group_SQL = preg_replace("/,$/i", '', $group_SQL); $i = 0; $user_group_string = "|"; $user_group_ct = count($user_group_filter); while ($i < $user_group_ct) { $user_group_filter[$i] = preg_replace("/'|"|\\|;/", '', $user_group_filter[$i]); $user_group_string .= "{$user_group_filter[$i]}|"; $user_group_SQL .= "'{$user_group_filter[$i]}',"; $usergroupQS .= "&user_group_filter[]={$user_group_filter[$i]}"; $i++; } $user_group_SQL = preg_replace("/,$/i", '', $user_group_SQL); $i = 0; $ingroup_string = "|"; $ingroup_ct = count($ingroup_filter); while ($i < $ingroup_ct) { $ingroup_filter[$i] = preg_replace("/[^-_0-9a-zA-Z]/", '', $ingroup_filter[$i]); $ingroup_string .= "{$ingroup_filter[$i]}|"; $ingroup_SQL .= "'{$ingroup_filter[$i]}',"; $ingroupQS .= "&ingroup_filter[]={$ingroup_filter[$i]}"; $i++; } $ingroup_SQL = preg_replace("/,$/i", '', $ingroup_SQL); if ($group_ct < 1 or strlen($group_string) < 2) { $groups[0] = "ALL-ACTIVE"; $group_string = "|ALL-ACTIVE|"; $group = "ALL-ACTIVE"; $groupQS .= "&groups[]=ALL-ACTIVE"; } if ($user_group_ct < 1 or strlen($user_group_string) < 2) { $user_group_filter[0] = "ALL-GROUPS"; $user_group_string = "|ALL-GROUPS|"; $usergroupQS .= "&user_group_filter[]=ALL-GROUPS"; } $ingroup_none = 0; if ($ingroup_ct < 1 or strlen($ingroup_string) < 2) { $ingroup_filter[0] = "ALL-INGROUPS"; $ingroup_string = "|ALL-INGROUPS|"; $ingroupQS .= "&ingroup_filter[]=ALL-INGROUPS"; $ingroup_none = 1; } if (preg_match("/\s\-\-NONE\-\-\s/", $group_string) or $group_ct < 1) { $all_active = 0; $group_SQL = "''"; $group_SQLand = "and FALSE"; $group_SQLwhere = "where FALSE"; } elseif (preg_match("/ALL\-ACTIVE/i", $group_string)) { $all_active = 1; $group_SQL = $allactivecampaigns; $group_SQLand = "and campaign_id IN({$allactivecampaigns})"; $group_SQLwhere = "where campaign_id IN({$allactivecampaigns})"; } else { $all_active = 0; $group_SQLand = "and campaign_id IN({$group_SQL})"; $group_SQLwhere = "where campaign_id IN({$group_SQL})"; } if (preg_match("/\s\-\-NONE\-\-\s/", $user_group_string) or $user_group_ct < 1) { $all_active_groups = 0; $user_group_SQL = "''"; } elseif (preg_match("/ALL\-GROUPS/i", $user_group_string)) { $all_active_groups = 1; $user_group_SQL = "'{$rawLOGadmin_viewable_groupsSQL}'"; } else { $all_active_groups = 0; } if (preg_match("/\s\-\-NONE\-\-\s/", $ingroup_string) or $ingroup_ct < 1) { $all_active_ingroups = 0; $ingroup_SQL = "''"; } elseif (preg_match("/ALL\-INGROUPS/i", $ingroup_string)) { $all_active_ingroups = 1; $ingroup_SQL = "'{$rawLOGadmin_viewable_groupsSQL}'"; $ingroup_SQLand = "and campaign_id IN({$rawLOGadmin_viewable_groupsSQL})"; $ingroup_SQLwhere = "where campaign_id IN({$rawLOGadmin_viewable_groupsSQL})"; } else { $all_active_ingroups = 0; } $stmt = "SELECT user_group from vicidial_user_groups {$whereLOGadmin_viewable_groupsSQL} order by user_group;"; $rslt = mysql_to_mysqli($stmt, $link); $usergroups_to_print = mysqli_num_rows($rslt); $i = 0; $usergroups = array(); $usergroupnames = array(); $usergroups[$i] = "ALL-GROUPS"; $usergroupnames[$i] = "All user groups"; $i++; $usergroups_to_print++; while ($i < $usergroups_to_print) { $row = mysqli_fetch_row($rslt); $usergroups[$i] = $row[0]; $i++; } $stmt = "select group_id,group_name from vicidial_inbound_groups {$whereLOGadmin_viewable_groupsSQL} order by group_id;"; $rslt = mysql_to_mysqli($stmt, $link); $ingroups_to_print = mysqli_num_rows($rslt); $i = 0; $LISTingroups = array(); $LISTingroup_names = array(); $LISTingroups[$i] = "ALL-INGROUPS"; $i++; $ingroups_to_print++; $ingroups_string = "|"; while ($i < $ingroups_to_print) { $row = mysqli_fetch_row($rslt); $LISTingroups[$i] = $row[0]; $LISTingroup_names[$i] = $row[1]; $ingroups_string .= "{$LISTingroups[$i]}|"; $i++; } if (isset($RS_CUSTINFOminUL)) { $CUSTINFOminUL = $RS_CUSTINFOminUL; } else { $CUSTINFOminUL = 9; } if ($LOGuser_level < $CUSTINFOminUL) { $CUSTINFOdisplay = 0; } $stmt = "SELECT count(*) from vicidial_campaigns where campaign_id != 'pixis' and active='Y' and campaign_allow_inbound='Y' {$group_SQLand};"; $rslt = mysql_to_mysqli($stmt, $link); $row = mysqli_fetch_row($rslt); $campaign_allow_inbound = $row[0]; if ($group) { $multi_drop = 0; $stmt = "SELECT group_id from vicidial_inbound_groups;"; $rslt = mysql_to_mysqli($stmt, $link); $ingroups_to_print = mysqli_num_rows($rslt); $c = 0; while ($ingroups_to_print > $c) { $row = mysqli_fetch_row($rslt); $ALLcloser_campaignsSQL .= "'{$row["0"]}',"; $c++; } $ALLcloser_campaignsSQL = preg_replace("/,$/", '', $ALLcloser_campaignsSQL); if (strlen($ALLcloser_campaignsSQL) < 2) { $ALLcloser_campaignsSQL = "''"; } if ($DB > 0) { echo "
|{$ALLcloser_campaignsSQL}|{$stmt}|
"; } if ((preg_match("/Y/", $with_inbound) or preg_match("/O/", $with_inbound)) and $campaign_allow_inbound > 0) { $closer_campaignsSQL = ''; $stmt = "SELECT closer_campaigns from vicidial_campaigns where campaign_id != 'pixis' and active='Y' {$group_SQLand};"; $rslt = mysql_to_mysqli($stmt, $link); $ccamps_to_print = mysqli_num_rows($rslt); $c = 0; while ($ccamps_to_print > $c) { $row = mysqli_fetch_row($rslt); $closer_campaigns = $row[0]; $closer_campaigns_STRING = preg_replace("/^ | -$/", '', $closer_campaigns); $closer_campaigns = preg_replace("/ /", "','", $closer_campaigns_STRING); $closer_campaignsSQL .= "'{$closer_campaigns}',"; $c++; } $filter_closer_campaigns_STRING = ''; if (!in_array("ALL-INGROUPS", $ingroup_filter)) { $filter_closer_campaigns = ''; for ($q = 0; $q < count($ingroup_filter); $q++) { if (preg_match("/\'{$ingroup_filter[$q]}\'/", $closer_campaignsSQL)) { $filter_closer_campaigns .= "'{$ingroup_filter[$q]}',"; if ($q < 1) { $filter_closer_campaigns_STRING .= " "; } $filter_closer_campaigns_STRING .= "{$ingroup_filter[$q]} "; } } $closer_campaignsSQL = $filter_closer_campaigns; } $closer_campaignsSQL = preg_replace("/,$/", '', $closer_campaignsSQL); } if (strlen($closer_campaignsSQL) < 2) { $closer_campaignsSQL = "''"; } $answersSQL = "sum(answers_today)"; $answers_singleSQL = "answers_today"; $answers_text = _QXZ("ANSWERED"); $ALLINGROUPstats = 1; if ($ALLINGROUPstats > 0 or preg_match("/O/", $with_inbound)) { $stmtB = "SELECT campaign_id from vicidial_campaign_stats where campaign_id IN ({$closer_campaignsSQL}) order by campaign_id;"; $r = 0; $rslt = mysql_to_mysqli($stmtB, $link); $ingroups_to_print = mysqli_num_rows($rslt); while ($ingroups_to_print > $r) { $row = mysqli_fetch_row($rslt); $ARYingroupdetail[$r] = $row[0]; $r++; } $r = 0; $drpctTODAYPP = 0; $dropsTODAYPP = 0; $answersTODAY = 0; while ($ingroups_to_print > $r) { $stmtB = "SELECT calls_today,drops_today,{$answers_singleSQL},status_category_1,status_category_count_1,status_category_2,status_category_count_2,status_category_3,status_category_count_3,status_category_4,status_category_count_4,hold_sec_stat_one,hold_sec_stat_two,hold_sec_answer_calls,hold_sec_drop_calls,hold_sec_queue_calls,campaign_id from vicidial_campaign_stats where campaign_id='{$ARYingroupdetail[$r]}';"; $rslt = mysql_to_mysqli($stmtB, $link); $ingroup_to_print = mysqli_num_rows($rslt); if ($ingroup_to_print > 0) { $row = mysqli_fetch_row($rslt); $callsTODAY = $row[0]; $dropsTODAY = $row[1]; $answersTODAY = $row[2]; $VSCcat1 = $row[3]; $VSCcat1tally = $row[4]; $VSCcat2 = $row[5]; $VSCcat2tally = $row[6]; $VSCcat3 = $row[7]; $VSCcat3tally = $row[8]; $VSCcat4 = $row[9]; $VSCcat4tally = $row[10]; $hold_sec_stat_one = $row[11]; $hold_sec_stat_two = $row[12]; $hold_sec_answer_calls = $row[13]; $hold_sec_drop_calls = $row[14]; $hold_sec_queue_calls = $row[15]; $ingroupdetail = $row[16]; } $drpctTODAY = MathZDC($dropsTODAY, $answersTODAY) * 100; $drpctTODAY = round($drpctTODAY, 2); $drpctTODAY = sprintf("%01.2f", $drpctTODAY); $AVGhold_sec_queue_calls = MathZDC($hold_sec_queue_calls, $callsTODAY); $AVGhold_sec_queue_calls = round($AVGhold_sec_queue_calls, 0); $AVGhold_sec_drop_calls = MathZDC($hold_sec_drop_calls, $dropsTODAY); $AVGhold_sec_drop_calls = round($AVGhold_sec_drop_calls, 0); $PCThold_sec_stat_one = MathZDC($hold_sec_stat_one, $answersTODAY) * 100; $PCThold_sec_stat_one = round($PCThold_sec_stat_one, 2); $PCThold_sec_stat_one = sprintf("%01.2f", $PCThold_sec_stat_one); $PCThold_sec_stat_two = MathZDC($hold_sec_stat_two, $answersTODAY) * 100; $PCThold_sec_stat_two = round($PCThold_sec_stat_two, 2); $PCThold_sec_stat_two = sprintf("%01.2f", $PCThold_sec_stat_two); $AVGhold_sec_answer_calls = MathZDC($hold_sec_answer_calls, $answersTODAY); $AVGhold_sec_answer_calls = round($AVGhold_sec_answer_calls, 0); $AVG_ANSWERagent_non_pause_sec = MathZDC($answersTODAY, 0) * 60; $AVG_ANSWERagent_non_pause_sec = round($AVG_ANSWERagent_non_pause_sec, 2); $AVG_ANSWERagent_non_pause_sec = sprintf("%01.2f", $AVG_ANSWERagent_non_pause_sec); $Dicbq_stmt = "SELECT count(*) from vicidial_inbound_callback_queue where icbq_status='LIVE' and group_id='{$ARYingroupdetail[$r]}';"; $Dicbq_rslt = mysql_to_mysqli($Dicbq_stmt, $link); $Dicbq_ct = mysqli_num_rows($Dicbq_rslt); $Dicbq_live = 0; if ($Dicbq_ct > 0) { $Dicbq_ARY = mysqli_fetch_row($Dicbq_rslt); if ($Dicbq_ARY[0] > 0) { $Dicbq_live = $Dicbq_ARY[0]; } } $drpctTODAYPP += $drpctTODAY; $dropsTODAYPP += $dropsTODAY; $answersTODAYPP += $answersTODAY; $r++; } if ($ingroups_to_print > 0) { $callsTODAY = $dropsTODAYPP + $answersTODAYPP; if ($callsTODAY > 0) { $traiteP = floor($answersTODAYPP * 100 / $callsTODAY); $drpctTODAYPP = 100 - $traiteP; } else { $traiteP = 0; $drpctTODAYPP = 0; } $ingroup_detail = "<div class="row">\xa                    <div class="col-xs-12 col-md-12">
                        <div class="ibox-title" style="padding: 10px 0 0 0;margin:20px -15px;height: 0;">
                            <div class="pull-left"><h5 style="color: #119125;">Trafic entrant</h5></div>\xa                        </div>\xa                    </div>\xa                    <div class="col-md-12 agents-count-status">\xa                        <span class="status-text">Appels re\xc3\xa7us</span>\xa                        <div class="pull-right"><span class="badge status-com">" . $callsTODAY . "</span></div>
                        <div class="bordered status-com"></div>\xa                    </div>\xa\xa                    <div class="col-md-12 agents-count-status">\xa                        <span class="status-text">Appels trait\xc3\xa9s (" . $answersTODAYPP . ")</span>\xa                        <div class="pull-right"><span class="badge status-appel">" . $traiteP . "%</span></div>\xa                        <div class="bordered status-appel"></div>
                    </div>\xa
                    <div class="col-md-12 agents-count-status">
                        <span class="status-text">Abandons (" . floor($dropsTODAYPP) . ")</span>\xa                        <div class="pull-right"><span class="badge status-aban">" . $drpctTODAYPP . "%</span></div>\xa                        <div class="bordered status-aban"></div>
                    </div>
                </div>"; } } } if (preg_match("/ALL\-ACTIVE/i", $group_string)) { $non_inboundSQL = ''; if (preg_match("/N/", $with_inbound)) { $non_inboundSQL = "and campaign_id NOT IN({$ALLcloser_campaignsSQL})"; } else { $non_inboundSQL = "and campaign_id IN({$group_SQL},{$closer_campaignsSQL})"; } $multi_drop++; $stmt = "SELECT avg(auto_dial_level),min(dial_status_a),min(dial_status_b),min(dial_status_c),min(dial_status_d),min(dial_status_e),min(lead_order),min(lead_filter_id),sum(hopper_level),min(dial_method),avg(adaptive_maximum_level),avg(adaptive_dropped_percentage),avg(adaptive_dl_diff_target),avg(adaptive_intensity),min(available_only_ratio_tally),min(adaptive_latest_server_time),min(local_call_time),avg(dial_timeout),min(dial_statuses),max(agent_pause_codes_active),max(list_order_mix),max(auto_hopper_level),max(ofcom_uk_drop_calc) from vicidial_campaigns WHERE campaign_id != 'pixis' and active='Y' {$group_SQLand};"; $stmtB = "SELECT sum(dialable_leads),sum(calls_today),sum(drops_today),avg(drops_answers_today_pct),avg(differential_onemin),avg(agents_average_onemin),sum(balance_trunk_fill),{$answersSQL},max(status_category_1),sum(status_category_count_1),max(status_category_2),sum(status_category_count_2),max(status_category_3),sum(status_category_count_3),max(status_category_4),sum(status_category_count_4),sum(agent_calls_today),sum(agent_wait_today),sum(agent_custtalk_today),sum(agent_acw_today),sum(agent_pause_today),sum(agenthandled_today),sum(park_calls_today),sum(park_sec_today) from vicidial_campaign_stats where calls_today > -1 {$non_inboundSQL};"; $stmtC = "SELECT count(*) from vicidial_campaigns WHERE campaign_id != 'pixis' and agent_pause_codes_active!='N' and active='Y' {$group_SQLand};"; } else { if (preg_match("/Y/", $with_inbound) and $campaign_allow_inbound > 0) { $multi_drop++; $stmt = "SELECT auto_dial_level,dial_status_a,dial_status_b,dial_status_c,dial_status_d,dial_status_e,lead_order,lead_filter_id,hopper_level,dial_method,adaptive_maximum_level,adaptive_dropped_percentage,adaptive_dl_diff_target,adaptive_intensity,available_only_ratio_tally,adaptive_latest_server_time,local_call_time,dial_timeout,dial_statuses,agent_pause_codes_active,list_order_mix,auto_hopper_level,ofcom_uk_drop_calc from vicidial_campaigns WHERE campaign_id != 'pixis' and campaign_id IN ({$group_SQL},{$closer_campaignsSQL});"; $stmtB = "SELECT sum(dialable_leads),sum(calls_today),sum(drops_today),avg(drops_answers_today_pct),avg(differential_onemin),avg(agents_average_onemin),sum(balance_trunk_fill),{$answersSQL},max(status_category_1),sum(status_category_count_1),max(status_category_2),sum(status_category_count_2),max(status_category_3),sum(status_category_count_3),max(status_category_4),sum(status_category_count_4),sum(agent_calls_today),sum(agent_wait_today),sum(agent_custtalk_today),sum(agent_acw_today),sum(agent_pause_today),sum(agenthandled_today),sum(park_calls_today),sum(park_sec_today) from vicidial_campaign_stats where campaign_id IN ({$group_SQL},{$closer_campaignsSQL});"; $stmtC = "SELECT count(*) from vicidial_campaigns WHERE campaign_id != 'pixis' and agent_pause_codes_active!='N' and active='Y' and campaign_id IN ({$group_SQL},{$closer_campaignsSQL});"; } else { $stmt = "SELECT avg(auto_dial_level),max(dial_status_a),max(dial_status_b),max(dial_status_c),max(dial_status_d),max(dial_status_e),max(lead_order),max(lead_filter_id),max(hopper_level),max(dial_method),max(adaptive_maximum_level),avg(adaptive_dropped_percentage),avg(adaptive_dl_diff_target),avg(adaptive_intensity),max(available_only_ratio_tally),max(adaptive_latest_server_time),max(local_call_time),max(dial_timeout),max(dial_statuses),max(agent_pause_codes_active),max(list_order_mix),max(auto_hopper_level),max(ofcom_uk_drop_calc) from vicidial_campaigns WHERE campaign_id != 'pixis' and campaign_id IN({$group_SQL});"; $stmtB = "SELECT sum(dialable_leads),sum(calls_today),sum(drops_today),avg(drops_answers_today_pct),avg(differential_onemin),avg(agents_average_onemin),sum(balance_trunk_fill),{$answersSQL},max(status_category_1),sum(status_category_count_1),max(status_category_2),sum(status_category_count_2),max(status_category_3),sum(status_category_count_3),max(status_category_4),sum(status_category_count_4),sum(agent_calls_today),sum(agent_wait_today),sum(agent_custtalk_today),sum(agent_acw_today),sum(agent_pause_today),sum(agenthandled_today),sum(park_calls_today),sum(park_sec_today) from vicidial_campaign_stats where campaign_id IN({$group_SQL});"; $stmtC = "SELECT count(*) from vicidial_campaigns WHERE campaign_id != 'pixis' and agent_pause_codes_active!='N' and active='Y' and campaign_id IN(".$group_SQL.")"; } } $rslt = mysql_to_mysqli($stmt, $link); $row = mysqli_fetch_row($rslt); $DIALlev = 12; $DIALstatusA = $row[1]; $DIALstatusB = $row[2]; $DIALstatusC = $row[3]; $DIALstatusD = $row[4]; $DIALstatusE = $row[5]; $DIALorder = $row[6]; $DIALfilter = $row[7]; $HOPlev = $row[8]; $DIALmethod = $row[9]; $maxDIALlev = $row[10]; $DROPmax = $row[11]; $targetDIFF = $row[12]; $ADAintense = $row[13]; $ADAavailonly = $row[14]; $TAPERtime = $row[15]; $CALLtime = $row[16]; $DIALtimeout = $row[17]; $DIALstatuses = $row[18]; $DIALmix = $row[20]; $AHOPlev = $row[21]; $UKocDROP = $row[22]; $rslt = mysql_to_mysqli($stmtC, $link); $row = mysqli_fetch_row($rslt); $agent_pause_codes_active = $row[0]; $stmt = "SELECT count(*) from vicidial_hopper {$group_SQLwhere};"; $rslt = mysql_to_mysqli($stmt, $link); $row = mysqli_fetch_row($rslt); $VDhop = $row[0]; $rslt = mysql_to_mysqli($stmtB, $link); $row = mysqli_fetch_row($rslt); $DAleads = $row[0]; $callsTODAY = $row[1]; $dropsTODAY = $row[2]; $drpctTODAY = $row[3]; $diffONEMIN = $row[4]; $agentsONEMIN = $row[5]; $balanceFILL = $row[6]; $answersTODAY = $row[7]; $VSCcat1 = $row[8]; $VSCcat1tally = $row[9]; $VSCcat2 = $row[10]; $VSCcat2tally = $row[11]; $VSCcat3 = $row[12]; $VSCcat3tally = $row[13]; $VSCcat4 = $row[14]; $VSCcat4tally = $row[15]; $VSCagentcalls = $row[16]; $VSCagentwait = $row[17]; $VSCagentcust = $row[18]; $VSCagentacw = $row[19]; $VSCagentpause = $row[20]; $AGNTansTODAY = $row[21]; $PARKcallTODAY = $row[22]; $PARKsecTODAY = $row[23]; if ($multi_drop > 0) { if ($SSofcom_uk_drop_calc > 0 and $UKocDROP == "Y") { $temp_AGNTansPLUSdrop = $AGNTansTODAY + $dropsTODAY; $drpctTODAY = MathZDC($dropsTODAY, $temp_AGNTansPLUSdrop) * 100; $drpctTODAY = round($drpctTODAY, 2); $drpctTODAY = sprintf("%01.2f", $drpctTODAY); } else { $drpctTODAY = MathZDC($dropsTODAY, $answersTODAY) * 100; $drpctTODAY = round($drpctTODAY, 2); $drpctTODAY = sprintf("%01.2f", $drpctTODAY); } } $diffpctONEMIN = MathZDC($diffONEMIN, $agentsONEMIN) * 100; $diffpctONEMIN = sprintf("%01.2f", $diffpctONEMIN); $stmt = "SELECT sum(local_trunk_shortage) from vicidial_campaign_server_stats {$group_SQLwhere};"; $rslt = mysql_to_mysqli($stmt, $link); $row = mysqli_fetch_row($rslt); $balanceSHORT = $row[0]; if (preg_match("/DISABLED/", $DIALmix)) { $DIALstatuses = preg_replace("/ -$|^ /", '', $DIALstatuses); $DIALstatuses = preg_replace("/\s/", ", ", $DIALstatuses); } else { $stmt = "SELECT vcl_id from vicidial_campaigns_list_mix where status='ACTIVE' {$group_SQLand} limit 1;"; $rslt = mysql_to_mysqli($stmt, $link); $Lmix_to_print = mysqli_num_rows($rslt); if ($Lmix_to_print > 0) { $row = mysqli_fetch_row($rslt); $DIALstatuses = _QXZ("List Mix") . ": {$row["0"]}"; $DIALorder = _QXZ("List Mix") . ": {$row["0"]}"; } } $DIALlev =12; $agentsONEMIN = sprintf("%01.2f", $agentsONEMIN); $diffONEMIN = sprintf("%01.2f", $diffONEMIN); if ($campaign_allow_inbound > 0) { if (preg_match("/ALL\-ACTIVE/i", $group_string)) { $stmt = "SELECT closer_campaigns from vicidial_campaigns WHERE campaign_id != 'pixis' and active='Y' {$group_SQLand}"; $rslt = mysql_to_mysqli($stmt, $link); $closer_campaigns = ''; while ($row = mysqli_fetch_row($rslt)) { $closer_campaigns .= "{$row["0"]}"; } $closer_campaigns = preg_replace("/^ | -$/", '', $closer_campaigns); $closer_campaigns = preg_replace("/ - /", " ", $closer_campaigns); $closer_campaigns = preg_replace("/ /", "','", $closer_campaigns); $closer_campaignsSQL = "'{$closer_campaigns}'"; } if (!in_array("ALL-INGROUPS", $ingroup_filter)) { $filter_closer_campaigns = ''; for ($q = 0; $q < count($ingroup_filter); $q++) { if (preg_match("/\'{$ingroup_filter[$q]}\'/", $closer_campaignsSQL)) { $filter_closer_campaigns .= "'{$ingroup_filter[$q]}',"; } } $closer_campaignsSQL = $filter_closer_campaigns; } $closer_campaignsSQL = preg_replace("/,$/", '', $closer_campaignsSQL); $stmtB = "from vicidial_auto_calls where status NOT IN('XFER') and ( (call_type='IN' and campaign_id IN({$closer_campaignsSQL})) or (call_type IN('OUT','OUTBALANCE') {$group_SQLand}) ) order by queue_priority desc,campaign_id,call_time;"; } else { $stmtB = "from vicidial_auto_calls where status NOT IN('XFER') {$group_SQLand} order by queue_priority desc,campaign_id,call_time;"; } if ($CALLSdisplay > 0) { $stmtA = "SELECT status,campaign_id,phone_number,server_ip,UNIX_TIMESTAMP(call_time),call_type,queue_priority,agent_only"; if ($allow_chats) { $chat_stmtA = "SELECT vlc.status,group_id as campaign_id,if(length(v.phone_number)=0 or v.phone_number is null, v.phone_number, '**NO PHONE**') as phone_number, '' as server_ip,UNIX_TIMESTAMP(chat_start_time), 'CHAT' as call_type, '' as queue_priority, '' as agent_only"; } } else { $stmtA = "SELECT status"; if ($allow_chats) { $chat_stmtA = "SELECT vlc.status"; } } $k = 0; $agentonlycount = 0; $out_total = 0; $out_ring = 0; $out_live = 0; $in_ivr = 0; $D_active_calls = 0; $CDstatus = array(); $CDcampaign_id = array(); $CDphone_number = array(); $CDserver_ip = array(); $CDcall_time = array(); $CDcall_type = array(); $CDqueue_priority = array(); $CDagent_only = array(); $stmt = "{$stmtA} {$stmtB}"; $rslt = mysql_to_mysqli($stmt, $link); $parked_to_print = mysqli_num_rows($rslt); if ($parked_to_print > 0) { $i = 0; $out_total = 0; $out_ring = 0; $out_live = 0; $in_ivr = 0; while ($i < $parked_to_print) { $row = mysqli_fetch_row($rslt); if ($LOGadmin_hide_phone_data != "0") { $phone_temp = $row[2]; if (strlen($phone_temp) > 0) { if ($LOGadmin_hide_phone_data == "4_DIGITS") { $row[2] = str_repeat("X", strlen($phone_temp) - 4) . substr($phone_temp, -4, 4); } elseif ($LOGadmin_hide_phone_data == "3_DIGITS") { $row[2] = str_repeat("X", strlen($phone_temp) - 3) . substr($phone_temp, -3, 3); } elseif ($LOGadmin_hide_phone_data == "2_DIGITS") { $row[2] = str_repeat("X", strlen($phone_temp) - 2) . substr($phone_temp, -2, 2); } else { $row[2] = preg_replace("/./", "X", $phone_temp); } } } if (preg_match("/LIVE/i", $row[0])) { $out_live++; if ($CALLSdisplay > 0) { $CDstatus[$k] = $row[0]; $CDcampaign_id[$k] = $row[1]; $CDphone_number[$k] = $row[2]; $CDserver_ip[$k] = $row[3]; $CDcall_time[$k] = $row[4]; $CDcall_type[$k] = $row[5]; $CDqueue_priority[$k] = $row[6]; $CDagent_only[$k] = $row[7]; if (strlen($CDagent_only[$k]) > 0) { $agentonlycount++; } $k++; } } else { if (preg_match("/IVR/i", $row[0])) { $in_ivr++; if ($CALLSdisplay > 0) { $CDstatus[$k] = $row[0]; $CDcampaign_id[$k] = $row[1]; $CDphone_number[$k] = $row[2]; $CDserver_ip[$k] = $row[3]; $CDcall_time[$k] = $row[4]; $CDcall_type[$k] = $row[5]; $CDqueue_priority[$k] = $row[6]; $CDagent_only[$k] = $row[7]; if (strlen($CDagent_only[$k]) > 0) { $agentonlycount++; } $k++; } } if (preg_match("/CLOSER/i", $row[0])) { $nothing = 1; } else { $out_ring++; } } $out_total++; $i++; } $D_active_calls = 1; } else { $D_active_calls = 0; } $D_active_chats = 0; $chats_waiting = 0; if ($allow_chats) { $chat_stmtB = " from vicidial_live_chats vlc, vicidial_list v where vlc.status='WAITING' and group_id IN({$closer_campaignsSQL}) and vlc.lead_id=v.lead_id "; $chat_stmt = "{$chat_stmtA} {$chat_stmtB}"; $chat_rslt = mysql_to_mysqli($chat_stmt, $link); $waiting_to_chat = mysqli_num_rows($chat_rslt); if ($waiting_to_chat > 0) { $i = 0; while ($i < $waiting_to_chat) { $chat_row = mysqli_fetch_row($chat_rslt); $chats_waiting++; if ($CALLSdisplay > 0) { $CDstatus[$k] = $chat_row[0]; $CDcampaign_id[$k] = $chat_row[1]; $CDphone_number[$k] = $chat_row[2]; $CDserver_ip[$k] = $chat_row[3]; $CDcall_time[$k] = $chat_row[4]; $CDcall_type[$k] = $chat_row[5]; $CDqueue_priority[$k] = $chat_row[6]; $CDagent_only[$k] = $chat_row[7]; if (strlen($CDagent_only[$k]) > 0) { $agentonlycount++; } $k++; } $i++; } $D_active_chats = 1; } else { $D_active_chats = 0; } } $icbq_stmt = "SELECT count(*) from vicidial_inbound_callback_queue where icbq_status='LIVE' and group_id IN({$closer_campaignsSQL});"; $icbq_rslt = mysql_to_mysqli($icbq_stmt, $link); $icbq_ct = mysqli_num_rows($icbq_rslt); if ($icbq_ct > 0) { $icbq_ARY = mysqli_fetch_row($icbq_rslt); $icbq_live = $icbq_ARY[0]; } $agent_incall = 0; $agent_indial = 0; $agent_ready = 0; $agent_paused = 0; $agent_dispo = 0; $agent_dead = 0; $agent_total = 0; if (isset($_POST["order"]) and $_POST["order"] != "undefined") { $orderby = $_POST["order"]; } else { $orderby = "SAyoub"; } $phoneord = $orderby; $userord = $orderby; $groupord = $orderby; $timeord = $orderby; $campaignord = $orderby; $statusord = $orderby; if ($phoneord == "phoneup") { $phoneord = "phonedown"; } else { $phoneord = "phoneup"; } if ($userord == "userup") { $userord = "userdown"; } else { $userord = "userup"; } if ($groupord == "groupup") { $groupord = "groupdown"; } else { $groupord = "groupup"; } if ($timeord == "timeup") { $timeord = "timedown"; } else { $timeord = "timeup"; } if ($campaignord == "campaignup") { $campaignord = "campaigndown"; } else { $campaignord = "campaignup"; } if ($statusord == "statusup") { $statusord = "statudown"; } else { $statusord = "statusup"; } $Aecho = "<div class="table-responsive"><table class="table table-condensed table-hover realtime-table">"; $Aecho .= "<thead><tr>\xa        <th class="hd-agent"><a href="javascript:ordering('" . $userord . "')" realtime_sort_field="user" realtime_sort_orientation="" class="realtime-sort ">Agent <i class="fa fa-sort" aria-hidden="true"></i></a></th>
        <th><a href="#" realtime_sort_field="extension" realtime_sort_orientation="" class="realtime-sort ">Type</a></th>\xa        <th class="hidden-xs hidden-md"><a href="#" realtime_sort_field="extension" realtime_sort_orientation="" class="realtime-sort ">Num</a></th>
        <th class="hd-status"><a href="javascript:ordering('" . $statusord . "')" realtime_sort_field="status" realtime_sort_orientation="" class="realtime-sort ">Statut <i class="fa fa-sort" aria-hidden="true"></i></a></th>\xa        <th class="hd-time"><a href="javascript:ordering('" . $timeord . "')" realtime_sort_field="temps" realtime_sort_orientation="" class="realtime-sort ">TMP <i class="fa fa-sort" aria-hidden="true"></i></a></th>
        <th class="hd-appels"> <a href="#" realtime_sort_field="calls_today" realtime_sort_orientation="" class="realtime-sort ">APLS</a></th>
        <th class="hd-liste"><a href="#" realtime_sort_field="list_name" realtime_sort_orientation="" class="realtime-sort ">T\xc3\xa9l\xc3\xa9</a></th>\xa        <th><a href="#" class="realtime-sort">Liste</a></th>
        <th class="hd-rdvs"><a href="#" realtime_sort_field="nbr_rdvs" realtime_sort_orientation="" class="realtime-sort ">Ventes</a></th>\xa        <th class="hd-actions" colspan="3">Actions</th>\xa    </tr></thead>"; if ($orderby == "SAyoub") { $orderSQL = "FIELD(vicidial_live_agents.status, "INCALL") DESC"; } if ($orderby == "statusup") { $orderSQL = "FIELD(vicidial_live_agents.status, "INCALL") ASC"; } if ($orderby == "statudown") { $orderSQL = "FIELD(vicidial_live_agents.status, "INCALL") DESC"; } if ($orderby == "userA") { $orderSQL = "user"; } if ($orderby == "timeup") { $orderSQL = "vicidial_live_agents.status,last_call_time"; } if ($orderby == "timedown") { $orderSQL = "vicidial_live_agents.status desc,last_call_time desc"; } if ($orderby == "campaignup") { $orderSQL = "vicidial_live_agents.campaign_id,vicidial_live_agents.status,last_call_time"; } if ($orderby == "campaigndown") { $orderSQL = "vicidial_live_agents.campaign_id desc,vicidial_live_agents.status desc,last_call_time desc"; } if ($orderby == "groupup") { $orderSQL = "user_group,vicidial_live_agents.status,last_call_time"; } if ($orderby == "groupdown") { $orderSQL = "user_group desc,vicidial_live_agents.status desc,last_call_time desc"; } if ($orderby == "phoneup") { $orderSQL = "extension,server_ip"; } if ($orderby == "phonedown") { $orderSQL = "extension desc,server_ip desc"; } if ($UidORname > 0) { if ($orderby == "userup") { $orderSQL = "full_name,status,last_call_time"; } if ($orderby == "userdown") { $orderSQL = "full_name desc,status desc,last_call_time desc"; } } else { if ($orderby == "userup") { $orderSQL = "vicidial_live_agents.user"; } if ($orderby == "userdown") { $orderSQL = "vicidial_live_agents.user desc"; } } if (!preg_match("/ALL-/", $LOGallowed_campaigns)) { $UgroupSQL = " and vicidial_live_agents.campaign_id IN({$group_SQL})"; } else { if (preg_match("/ALL\-ACTIVE/i", $group_string) and strlen($group_SQL) < 3) { $UgroupSQL = ''; } else { $UgroupSQL = " and vicidial_live_agents.campaign_id IN({$group_SQL})"; } } if (strlen($usergroup) < 1) { $usergroupSQL = ''; } else { $usergroupSQL = " and user_group='" . mysqli_real_escape_string($link, $usergroup) . "'"; } if (preg_match("/ALL\-GROUPS/i", $user_group_string) and strlen($user_group_SQL) < 3) { $user_group_filter_SQL = ''; } else { $user_group_filter_SQL = " and vicidial_users.user_group IN({$user_group_SQL})"; } $ring_agents = 0; $Aextension = array(); $Auser = array(); $Asessionid = array(); $Astatus = array(); $Aserver_ip = array(); $Acall_time = array(); $Acall_finish = array(); $Acall_server_ip = array(); $Acampaign_id = array(); $Auser_group = array(); $Afull_name = array(); $Acomments = array(); $Acalls_today = array(); $Acallerid = array(); $Alead_id = array(); $Astate_change = array(); $Aon_hook_agent = array(); $Aring_callerid = array(); $Aagent_log_id = array(); $Aring_note = array(); $VAClead_ids = array(); $VACphones = array(); if ($allow_usergroup != "1=1") { $allow_usergroup_sql = "and vicidial_users." . $allow_usergroup . ''; } else { $allow_usergroup_sql = ''; } $stmt = "SELECT extension,vicidial_live_agents.user,conf_exten,vicidial_live_agents.status,vicidial_live_agents.server_ip,UNIX_TIMESTAMP(last_call_time),UNIX_TIMESTAMP(last_call_finish),call_server_ip,vicidial_live_agents.campaign_id,vicidial_users.user_group,vicidial_users.full_name,vicidial_live_agents.comments,vicidial_live_agents.calls_today,vicidial_live_agents.callerid,lead_id,UNIX_TIMESTAMP(last_state_change),on_hook_agent,ring_callerid,agent_log_id,vicidial_live_agents.closer_campaigns from vicidial_live_agents,vicidial_users where vicidial_live_agents.user=vicidial_users.user and vicidial_users.user_hide_realtime='0' {$allow_usergroup_sql} {$UgroupSQL} {$usergroupSQL} {$user_group_filter_SQL} order by {$orderSQL};"; $rslt = mysql_to_mysqli($stmt, $link); $talking_to_print = mysqli_num_rows($rslt); if ($talking_to_print > 0) { $i = 0; $va = 0; while ($i < $talking_to_print) { $row = mysqli_fetch_row($rslt); $ingroup_pass = 1; if (strlen($ingroup_string) > 1 and !preg_match("/ALL-INGROUPS/", $ingroup_string)) { $ingroup_pass = 0; $fcc_ct = 0; $fcc_array = explode(" ", $filter_closer_campaigns_STRING); $fcc_array_ct = count($fcc_array); if (strlen($row[19]) > 2) { while ($fcc_array_ct > $fcc_ct) { $temp_fcc = $fcc_array[$fcc_ct]; if (preg_match("/ {$temp_fcc} /", $row[19])) { $ingroup_pass++; } $fcc_ct++; } } } $ingroup_pass = 1; if ($ingroup_pass > 0) { $Aextension[$va] = $row[0]; $Auser[$va] = $row[1]; $Asessionid[$va] = $row[2]; $Astatus[$va] = $row[3]; $Aserver_ip[$va] = $row[4]; $Acall_time[$va] = $row[5]; $Acall_finish[$va] = $row[6]; $Acall_server_ip[$va] = $row[7]; $Acampaign_id[$va] = $row[8]; $Auser_group[$va] = $row[9]; $Afull_name[$va] = $row[10]; $Acomments[$va] = $row[11]; $Acalls_today[$va] = $row[12]; $Acallerid[$va] = $row[13]; $Alead_id[$va] = $row[14]; $Astate_change[$va] = $row[15]; $Aon_hook_agent[$va] = $row[16]; $Aring_callerid[$va] = $row[17]; $Aagent_log_id[$va] = $row[18]; $Acloser_campaigns[$va] = $row[19]; $Aring_note[$va] = " "; if ($Aon_hook_agent[$va] == "Y") { $Aring_note[$va] = "*"; $ring_agents++; if (strlen($Aring_callerid[$va]) > 18) { $Astatus[$va] = "RING"; } } if ($Alead_id[$va] != 0) { $threewaystmt = "SELECT UNIX_TIMESTAMP(last_call_time) from vicidial_live_agents where lead_id='{$Alead_id[$va]}' and status='INCALL' order by UNIX_TIMESTAMP(last_call_time) desc"; $threewayrslt = mysql_to_mysqli($threewaystmt, $link); if (mysqli_num_rows($threewayrslt) > 1) { $Astatus[$va] = "3-WAY"; $srow = mysqli_fetch_row($threewayrslt); $Acall_mostrecent[$va] = $srow[0]; } } $va++; } $i++; } $talking_to_print = $va; $callerids = ''; $pausecode = ''; $stmt = "SELECT callerid,lead_id,phone_number from vicidial_auto_calls;"; $rslt = mysql_to_mysqli($stmt, $link); $calls_to_list = mysqli_num_rows($rslt); if ($calls_to_list > 0) { $i = 0; while ($i < $calls_to_list) { $row = mysqli_fetch_row($rslt); if ($LOGadmin_hide_phone_data != "0") { $phone_temp = $row[2]; if (strlen($phone_temp) > 0) { if ($LOGadmin_hide_phone_data == "4_DIGITS") { $row[2] = str_repeat("X", strlen($phone_temp) - 4) . substr($phone_temp, -4, 4); } elseif ($LOGadmin_hide_phone_data == "3_DIGITS") { $row[2] = str_repeat("X", strlen($phone_temp) - 3) . substr($phone_temp, -3, 3); } elseif ($LOGadmin_hide_phone_data == "2_DIGITS") { $row[2] = str_repeat("X", strlen($phone_temp) - 2) . substr($phone_temp, -2, 2); } else { $row[2] = preg_replace("/./", "X", $phone_temp); } } } $callerids .= "{$row["0"]}|"; $VAClead_ids[$i] = $row[1]; $VACphones[$i] = $row[2]; $i++; } } $i = 0; while ($i < $talking_to_print) { if (preg_match("/R\//i", $Aextension[$i])) { $protocol = "EXTERNAL"; $dialplan = preg_replace("/R\//i", '', $Aextension[$i]); $dialplan = preg_replace("/\@.*/i", '', $dialplan); $exten = "dialplan_number='{$dialplan}'"; } if (preg_match("/Local\//i", $Aextension[$i])) { $protocol = "EXTERNAL"; $dialplan = preg_replace("/Local\//i", '', $Aextension[$i]); $dialplan = preg_replace("/\@.*/i", '', $dialplan); $exten = "dialplan_number='{$dialplan}'"; } if (preg_match("/SIP\//i", $Aextension[$i])) { $protocol = "SIP"; $dialplan = preg_replace("/SIP\//i", '', $Aextension[$i]); $dialplan = preg_replace("/\-.*/i", '', $dialplan); $exten = "extension='{$dialplan}'"; } if (preg_match("/IAX2\//i", $Aextension[$i])) { $protocol = "IAX2"; $dialplan = preg_replace("/IAX2\//i", '', $Aextension[$i]); $dialplan = preg_replace("/\-.*/i", '', $dialplan); $exten = "extension='{$dialplan}'"; } if (preg_match("/Zap\//i", $Aextension[$i])) { $protocol = "Zap"; $dialplan = preg_replace("/Zap\//i", '', $Aextension[$i]); $exten = "extension='{$dialplan}'"; } if (preg_match("/DAHDI\//i", $Aextension[$i])) { $protocol = "Zap"; $dialplan = preg_replace("/DAHDI\//i", '', $Aextension[$i]); $exten = "extension='{$dialplan}'"; } $stmt = "SELECT login from phones where server_ip='{$Aserver_ip[$i]}' and {$exten} and protocol='{$protocol}';"; $rslt = mysql_to_mysqli($stmt, $link); $phones_to_print = mysqli_num_rows($rslt); if ($phones_to_print > 0) { $row = mysqli_fetch_row($rslt); $Alogin[$i] = "{$row["0"]}-----{$i}"; } else { $Alogin[$i] = "{$Aextension[$i]}-----{$i}"; } $i++; } if ($orderby == "phoneup") { sort($Alogin); } if ($orderby == "phonedown") { rsort($Alogin); } $j = 0; $agentcount = 0; $total_ventes = 0; $attentes = array(); while ($j < $talking_to_print) { $n = 0; $custphone = ''; $cust_state = ''; $cust_entrydate = ''; $cust_source = ''; while ($n < $calls_to_list) { if (preg_match("/{$VAClead_ids[$n]}/", $Alead_id[$j]) and strlen($VAClead_ids[$n]) == strlen($Alead_id[$j]) and strlen($VAClead_ids[$n] > 1)) { $custphone = $VACphones[$n]; } $n++; } $phone_split = explode("-----", $Alogin[$j]); $i = $phone_split[1]; if (preg_match("/READY|PAUSED/i", $Astatus[$i])) { $Acall_time[$i] = $Astate_change[$i]; if ($Alead_id[$i] > 0) { $Astatus[$i] = "DISPO"; $Lstatus = "DISPO"; $status = " Qualification"; } } $extension = preg_replace("/Local\//i", '', $Aextension[$i]); $CUSTINFOdisplay = 1; $list_name = ''; if ($CUSTINFOdisplay > 0 && $Alead_id[$j] > 0) { $custinfo_stmt = "select * from vicidial_list where lead_id='" . $Alead_id[$j] . "' and phone_number='" . $custphone . "'"; $custinfo_rslt = mysql_to_mysqli($custinfo_stmt, $link); $CIrow = mysqli_fetch_array($custinfo_rslt); $cust_state = $CIrow["state"]; $cust_entrydate = $CIrow["entry_date"]; $list_id = $CIrow["list_id"]; $cust_source = substr($CIrow["source_id"], 0, 20); $lists_stmt = "select * from vicidial_lists where lead_id='" . $list_id . "'"; $lists_rslt = mysql_to_mysqli($lists_stmt, $link); $lirow = mysqli_fetch_array($lists_rslt); $list_name = $lirow["list_name"]; } $phone = sprintf("%-18s", $phone_split[0]); $custphone = sprintf("%-11s", $custphone); $cust_state = sprintf("%-5s", $cust_state); $cust_entrydate = sprintf("%-19s", $cust_entrydate); $cust_source = sprintf("%-20s", $cust_source); $Luser = $Auser[$i]; $user = sprintf("%-20s", $Auser[$i]); $Lsessionid = $Asessionid[$i]; $sessionid = sprintf("%-9s", $Asessionid[$i]); $Lstatus = $Astatus[$i]; $status = sprintf("%-6s", $Astatus[$i]); $Lserver_ip = $Aserver_ip[$i]; $server_ip = sprintf("%-15s", $Aserver_ip[$i]); $call_server_ip = sprintf("%-15s", $Acall_server_ip[$i]); $campaign_id = sprintf("%-10s", $Acampaign_id[$i]); $comments = $Acomments[$i]; $calls_today = sprintf("%-5s", $Acalls_today[$i]); $pausecode = ''; if (preg_match("/INCALL/i", $Lstatus)) { $stmtP = "SELECT count(*) from parked_channels where channel_group='{$Acallerid[$i]}';"; $rsltP = mysql_to_mysqli($stmtP, $link); $rowP = mysqli_fetch_row($rsltP); $parked_channel = $rowP[0]; if ($parked_channel > 0) { $Astatus[$i] = "PARK"; $Lstatus = "PARK"; $status = " PARK "; } else { if (!preg_match("/{$Acallerid[$i]}\|/", $callerids) && !preg_match("/EMAIL/i", $comments) && !preg_match("/CHAT/i", $comments)) { $Acall_time[$i] = $Astate_change[$i]; $Astatus[$i] = "DEAD"; $Lstatus = "DEAD"; $status = " Raccrocher "; } else { if ($Acomments[$i] == "MANUAL") { $stmt = "SELECT uniqueid,channel from vicidial_auto_calls where callerid='{$Acallerid[$i]}' LIMIT 1;"; $rslt = mysql_to_mysqli($stmt, $link); $mandial_to_check = mysqli_num_rows($rslt); if ($mandial_to_check > 0) { $row = mysqli_fetch_row($rslt); if (strlen($row[0]) < 5 and strlen($row[1]) < 5) { $Astatus[$i] = "DIAL"; $Lstatus = "DIAL"; $status = " Manuel "; } } } } if (preg_match("/CHAT/i", $comments)) { $stmtCT = "SELECT chat_id from vicidial_live_chats where chat_creator='{$Auser[$i]}' and lead_id='{$Alead_id[$i]}' order by chat_start_time desc limit 1;"; $rsltCT = mysql_to_mysqli($stmtCT, $link); $chatting_to_print = mysqli_num_rows($rslt); if ($chatting_to_print > 0) { $rowCT = mysqli_fetch_row($rsltCT); $Achat_id = $rowCT[0]; $stmtCL = "SELECT count(*) from vicidial_chat_log where chat_id='{$Achat_id}' and message LIKE "%has left chat";"; $rsltCL = mysql_to_mysqli($stmtCL, $link); $rowCL = mysqli_fetch_row($rsltCL); $left_chat = $rowCL[0]; if ($left_chat > 0) { $Acall_time[$i] = $Astate_change[$i]; $Astatus[$i] = "DEAD"; $Lstatus = "DEAD"; $status = "DEAD C"; } } } } if (preg_match("/AUTO/i", $comments) or strlen($comments) < 1) { $CM = "A"; } else { if (preg_match("/INBOUND/i", $comments)) { $CM = "I"; } else { if (preg_match("/EMAIL/i", $comments)) { $CM = "E"; } else { $CM = "M"; } } } } else { $CM = " "; } if ($UGdisplay > 0) { $user_group = sprintf("%-12s", $Auser_group[$i]); } if ($UidORname > 0) { $user = sprintf("%-20s", $Afull_name[$i]); } if (!preg_match("/INCALL|DIAL|QUEUE|PARK|3-WAY/i", $Astatus[$i])) { $call_time_S = $STARTtime - $Astate_change[$i]; } else { if (preg_match("/3-WAY/i", $Astatus[$i])) { $call_time_S = $STARTtime - $Acall_mostrecent[$i]; } else { $call_time_S = $STARTtime - $Acall_time[$i]; } } if ($status == "READY ") { if ($call_time_S >= 30) { $call_time_S = $call_time_S - 20; } } $call_time_MS = sec_convert($call_time_S, "M"); $call_time_MS = sprintf("%7s", $call_time_MS); $call_time_MS = " {$call_time_MS}"; $tr_class = "status-incall"; if ($Lstatus == "INCALL" or $Lstatus == "PARK") { if ($comments == "CHAT") { $status = "CHAT"; $tr_class = "TRred"; } else { if ($comments == "EMAIL") { $status = "EMAIL"; $tr_class = "TRorange"; } else { if ($call_time_S >= $rt_report_times["incall_short_time"]) { $tr_class = "status-incall"; } if ($call_time_S >= $rt_report_times["incall_medium_time"]) { $tr_class = "status-incall"; } if ($call_time_S >= $rt_report_times["incall_long_time"]) { $tr_class = "status-incall"; } } } } if ($Lstatus == "3-WAY") { if ($call_time_S >= $rt_report_times["threeway_short_time"]) { $tr_class = "status-3way"; } } if ($Lstatus == "DEAD") { if ($call_time_S >= 21600) { $j++; continue; } else { $agent_dead++; $agent_total++; $tr_class = "status-dead"; if ($call_time_S >= $rt_report_times["dead_short_time"]) { $tr_class = "status-dead"; } } } if ($Lstatus == "DISPO") { if ($call_time_S >= 21600) { $j++; continue; } else { $agent_dispo++; $agent_total++; $tr_class = "status-dispo"; if ($call_time_S >= $rt_report_times["paused_short_time"]) { $tr_class = "status-dispo"; } if ($call_time_S >= $rt_report_times["paused_medium_time"]) { $tr_class = "status-dispo"; } if ($call_time_S >= $rt_report_times["paused_long_time"]) { $tr_class = "status-dispo"; } if ($call_time_S >= $rt_report_times["pause_limit"]) { $tr_class = "status-paused"; } } } $pausecodeName = ''; if ($Lstatus == "PAUSED") { if ($agent_pause_codes_active > 0) { $twentyfour_hours_ago = date("Y-m-d H:i:s", mktime(date("H") - 24, date("i"), date("s"), date("m"), date("d"), date("Y"))); $stmtC = "SELECT sub_status from vicidial_agent_log where agent_log_id >= "{$Aagent_log_id[$i]}" and user='{$Luser}' order by agent_log_id desc limit 1;"; $rsltC = mysql_to_mysqli($stmtC, $link); $rowC = mysqli_fetch_row($rsltC); $pausecode = sprintf("%-6s", $rowC[0]); if ($SSenable_pause_code_limits > 0) { $pause_limit_stmt = "SELECT time_limit from vicidial_pause_codes where campaign_id='{$Acampaign_id[$i]}' and pause_code='{$rowC["0"]}'"; $pause_limit_rslt = mysql_to_mysqli($pause_limit_stmt, $link); if (mysqli_num_rows($pause_limit_rslt) > 0) { $pause_limit_row = mysqli_fetch_row($pause_limit_rslt); $pause_limit = $pause_limit_row[0]; } else { $pause_limit = $rt_report_times["pause_limit"]; } } else { $pause_limit = "999999"; } $stmtCC = "SELECT pause_code_name from vicidial_pause_codes where pause_code = '{$pausecode}' and campaign_id='{$Acampaign_id[$i]}';"; $rsltCC = mysql_to_mysqli($stmtCC, $link); $rowCC = mysqli_fetch_row($rsltCC); $pausecodeName = $rowCC[0]; } else { $pausecode = ''; $pause_limit = "999999"; } if ($call_time_S >= 21600) { $j++; continue; } else { $agent_paused++; $agent_total++; $tr_class = "status-paused"; if ($call_time_S >= $rt_report_times["paused_short_time"]) { $tr_class = "status-paused"; } if ($call_time_S >= $rt_report_times["paused_medium_time"]) { $tr_class = "status-paused"; } if ($call_time_S >= $rt_report_times["paused_long_time"]) { $tr_class = "status-paused"; } if ($call_time_S >= $pause_limit) { $tr_class = "status-paused"; } } } if (preg_match("/INCALL|DIAL/i", $status) or preg_match("/QUEUE/i", $status) or preg_match("/3-WAY/i", $status) or preg_match("/PARK/i", $status)) { $agent_incall++; $agent_total++; } if (preg_match("/DIAL/i", $status)) { $agent_indial++; } if (preg_match("/READY/i", $status) or preg_match("/CLOSER/i", $status)) { $agent_ready++; $agent_total++; } if (preg_match("/READY/i", $status) or preg_match("/CLOSER/i", $status)) { if ($RS_agentWAIT == 4) { $tr_class = "status-ready"; if ($call_time_S >= $rt_report_times["waiting_short_time"]) { $tr_class = "status-ready"; } if ($call_time_S >= $rt_report_times["waiting_medium_time"]) { $tr_class = "status-ready"; } if ($call_time_S >= $rt_report_times["waiting_long_time"]) { $tr_class = "status-ready"; } } else { $tr_class = "status-ready"; if ($call_time_S >= $rt_report_times["waiting_medium_time"]) { $tr_class = "status-ready"; } if ($call_time_S >= $rt_report_times["waiting_long_time"]) { $tr_class = "status-ready"; } } } if ($Astatus[$i] == "RING") { $agent_total++; $tr_class = "status-ringing"; if ($call_time_S >= 0) { $tr_class = "status-ringing"; } } $filtered_ingroup = 1; $ecouter = ''; $souffler = ''; $monitor_active = "MONITOR|BARGE|WHISPER"; if (strlen($monitor_phone) > 1 and preg_match("/MONITOR|BARGE|WHISPER/", $monitor_active) and preg_match("/MONITOR/", $RS_ListenBarge)) { $ecouter = "<a href="#" id="ecouter_" . $Lsessionid . "" class="ecouter ajax-action-btn listen-to-me action-btn btn btn-white btn-xs" onclick="javascript:send_monitor('" . $Lsessionid . "','" . $Lserver_ip . "','MONITOR', '" . $PHP_AUTH_USER . "', '" . $PHP_AUTH_PW . "', " . $monitor_phone . ");" title="Ecoute de l'appel">
                <i class="fa fa-headphones"></i>
            </a>"; } if (strlen($monitor_phone) > 1 and preg_match("/BARGE|WHISPER/", $monitor_active) and preg_match("/BARGE/", $RS_ListenBarge)) { $BARGEstage = "BARGE"; if ($RS_BargeSwap > 0) { $BARGEstage = "BARGESWAP"; } $brave = "<a href="#" id="conf3_" . $Lsessionid . "" class="conf3 ajax-action-btn listen-to-me action-btn btn btn-white btn-xs"
               onclick="javascript:send_monitor('" . $Lsessionid . "','" . $Lserver_ip . "','" . $BARGEstage . "', '" . $PHP_AUTH_USER . "', '" . $PHP_AUTH_PW . "', " . $monitor_phone . ")" title="Conf\xc3\xa9rence \xc3\xa0 trois">
                <i class="fa fa-users"></i>
            </a>"; } if (strlen($monitor_phone) > 1 and preg_match("/WHISPER/", $monitor_active) and preg_match("/WHISPER/", $RS_ListenBarge)) { $souffler = "<a href="#" id="souffler_" . $Lsessionid . "" class="souffler ajax-action-btn listen-to-me action-btn btn btn-white btn-xs"
               onclick="javascript:send_monitor('" . $Lsessionid . "','" . $Lserver_ip . "','WHISPER', '" . $PHP_AUTH_USER . "', '" . $PHP_AUTH_PW . "', " . $monitor_phone . ")" title="Soufflage \xc3\xa0 l'agent">\xa                <i class="fa fa-bullhorn"></i>\xa            </a>"; } $vac_stage = ''; $vac_campaign = ''; $INGRP = ''; $INuniqueid = ''; $agentcount++; if ($filtered_ingroup == 1) { if ($status == "INCALL") { $status = "En appel"; } if ($status == "PAUSED") { $status = "<b>Pause " . $pausecodeName . "</b>"; } if ($status == "READY ") { $status = "En attente"; $attentes[] = $call_time_S; } if ($status == "DISPO ") { $status = "En qualif"; } if ($status == "QUEUE ") { $status = "En attente"; } if ($status == "CLOSER") { $status = "Mode R\303\251ception"; } if ($status == " PARK ") { $status = "Mise en attente"; } if ($status == " 3-WAY " or $status == "3-WAY " or $status == "3-WAY") { $status = "Conference \303\xa0 3"; } $typeA = ''; if ($CM == "I") { $typeA = "<span class="label label-call-direction label-success"> <i
                                        class="fa fa-arrow-circle-up fa-rotate-225"></i> R\xc3\xa9ception</span>"; } elseif ($CM == "M") { $typeA = "<span class="label label-call-direction label-warning"> <i\xa                                        class="fa fa-arrow-circle-up fa-rotate-90"></i> Manuel</span>"; } elseif ($CM == "A") { $typeA = "<span class="label label-call-direction label-primary"> <i
                                        class="fa fa-arrow-circle-up fa-rotate-45"></i> Emission</span>"; } $statusVente = getStatusSale(); $status_SQL = ''; foreach ($statusVente as $stVente) { $status_SQL .= "'{$stVente}',"; } $status_SQL = preg_replace("/,$/i", '', $status_SQL); $status_SQL = "and status IN({$status_SQL})"; $d1 = date("Y-m-d") . " 00:00:00.000000"; $d2 = date("Y-m-d") . " 23:59:59.000000"; $stmtV = "SELECT user from vicidial_agent_log where event_time <= '{$d2}' and event_time >= '{$d1}' {$status_SQL} and user = '{$Luser}'"; $rsltV = mysql_to_mysqli($stmtV, $link); $number_of_result = mysqli_num_rows($rsltV); $vente_A = 0; while ($rowV = mysqli_fetch_row($rsltV)) { $total_ventes += 1; $vente_A += 1; } $bbb_stmt = "select lists.list_name from vicidial_list as list LEFT JOIN vicidial_lists as lists ON lists.list_id = list.list_id where phone_number='" . $custphone . "'"; $bbb_rslt = mysql_to_mysqli($bbb_stmt, $link); $listeRow = mysqli_fetch_array($bbb_rslt); $Aecho .= "<tr class="" . $tr_class . "">\xa                <td><b>" . $user . "</b></td>\xa                <td>" . $typeA . "</td>
                <td class="hidden-xs hidden-md">" . $phone . "</td>
                <td class="agent-status td-status-text">" . $status . "</td>\xa                <td><strong>" . $call_time_MS . "</strong></td>
                <td><strong>" . $calls_today . "</strong></td>
                <td>" . $custphone . "</td>"; if ($listeRow["list_name"] != '') { $Aecho .= "<td><span class="label label-call-direction label-warning" alt="" . $listeRow["list_name"] . "" style="font-size:9px; padding-left:4px;">" . $listeRow["list_name"] . "</span></td>"; } else { $Aecho .= "<td> </td>"; } $vente_A = getTotalVentesToDay($campaign_id, $Luser); $Aecho .= "<td>" . $vente_A . "</td>
                <td class="hd-actions"> " . $ecouter . " " . $souffler . " " . $brave . "\xa                    <script>
                    $(document).ready(function () {
                        if($.cookie("ecouter")=='" . $Lsessionid . "') {
                            $("#ecouter_" . $Lsessionid . "").css("background","#ff0");\xa                        }\xa                        if($.cookie("souffler")=='" . $Lsessionid . "') {
                            $("#souffler_" . $Lsessionid . "").css("background","#ff0");
                        }
                    });
                    </script>
                </td>
                <td class="action-btn-chat">\xa                    <a href="javascript:openchat('" . $Luser . "','" . $user . "','" . $Acampaign_id[$i] . "')" title="Chat avec l'agent" class="ajax-action-btn action-btn btn btn-white btn-xs"><i\xa                                class="fa fa-wechat"></i></a></td>
                                <td class="action-btn-chat">
                    <a href="#" class="ajax-action-btn agent-deconnect btn btn-danger btn-xs" title="D\303\251connexion" onclick="deconnectAgent('" . $Luser . "')">
                    <i class="fa fa-sign-out"></i></a></td></tr>"; } $j++; } $Aecho .= "</tbody></table></div>\xa"; $AIDct = ''; $AIDtx = ''; if ($agent_indial > 0) { $AIDct = "/{$agent_indial}"; $AIDtx = " / " . _QXZ("dials"); } } $AIDct = ''; $AIDtx = ''; if ($agent_indial > 0) { $AIDct = " / {$agent_indial}"; $AIDtx = " / " . _QXZ("dials"); } if ($agent_total > 0) { echo "<div class="rt-campaign-details ibox float-e-margins ">"; echo "<div class="rt-campaign-info row ibox-title">\xa                <div class="col-md-6">
                    <div class="pull-left"><h4><i class="fa fa-folder-open" style="color:#000;"></i> Campagne : " . $ay_groupe_name[$kk] . "\xa                    </h4></div>"; if ($out_live > 0) { echo "<div class="label label-danger realtime-drop-notification">
                    " . $out_live . " Appel(s) en attente d'agent </div>"; } echo "</div><div class="col-md-6">\xa                            <span style="position:absolute; right:15px; top: 0;">\xa                                <a href="javascript:openchat('campaign',0,'" . $ay_groupes[$kk] . "','" . $ay_groupe_name[$kk] . "')" title="Chat" class="ajax-action-btn action-btn btn btn-primary btn-xs"><i class="fa fa-wechat"></i></a></span> \xa                <a href="#" class="btn btn-danger btn-xs" onclick="deconnectAll('" . $ay_groupes[$kk] . "')" style="float: right;margin-right: 40px;">D\303\xa9connecter tous les agents</a></div>\xa            </div>"; echo "<div class="rt-stat-wrapper row ibox-content">"; $attente = 0; $moyenne = 0; if (!empty($attentes)) { $attente = max($attentes); $moyenne = array_sum($attentes) / count($attentes); $moyenne = intval($moyenne); } $vitesse = $DIALlev * 100 / 12; echo "<div class="col-md-2 col-md-2-1">\xa                <div class="row">
                    <div class="col-xs-12 col-md-12">
                        <div class="ibox-title" style="padding: 0;border: 0;margin-left: -15px;margin-right: -10px;height: 0;">\xa                            <div class="pull-left"><h5 style="color: #0034ff;">Trafic sortant</h5></div>
                            <div class="pull-right">\xa                                <div class="average-wait-today label label-success">
                                    <i class="fa fa-clock-o"></i> \xa                                    <span class="font-bold">&nbsp;" . $attente . " s</span>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-12 agents-count-status">
                        <span class="status-text">Composition</span>\xa                        <div class="pull-right">\xa                        <span class="badge status-com">" . $out_total . "</span>\xa                        </div>
                        <div class="bordered status-com"></div>\xa                    </div>

                    <div class="col-md-12 agents-count-status">\xa                        <span class="status-text">Contacts disponibles</span>\xa                        <div class="pull-right">
                        <span class="badge status-disponible">" . $DAleads . "</span>
                        </div>\xa                        <div class="bordered status-disponible"></div>\xa                    </div>\xa
                    <div class="col-md-12 agents-count-status">
                        <span class="status-text">Appels</span>
                        <div class="pull-right"><span class="badge status-appel">" . $callsTODAY . "</span></div>
                        <div class="bordered status-appel"></div>\xa                    </div>

                    <div class="col-md-12 agents-count-status">
                        <span class="status-text">Abandons</span>
                        <div class="pull-right"><span class="badge status-aban">" . floor($drpctTODAY) . "%</span></div>\xa                        <div class="bordered status-aban"></div>
                    </div>\xa                    <div class="col-md-12 agents-count-status slider_div" style="margin-top: 15px;">\xa                            <div class="pull-left">Vitesse</div>\xa                            <div class="pull-right"><span class="badge status-vitesse" id="speed-percent-PIX65123">" . floor($vitesse) . " %</span></div>\xa                            <div class="m-t-md" style="width:100%;">
                            <input type="range" min="0" max="12" class="form-range slider_vitesse" data-compagne="" . $ay_groupes[$kk] . "" id="vitesse" . $ay_groupes[$kk] . "" value="" . ($DIALlev) . ""/>\xa                            </div>\xa                    </div>\xa            </div>"; echo $ingroup_detail; echo "</div>"; $total_ventes = getTotalVentesToDay($Acampaign_id[$i]); echo "<div class="col-md-10 col-md-10-1">\xa            <div class="container-fluid">
                <div id="agents-status" class="row">\xa                    <div class="col-xs-12 col-md-1 agents-count-status">
                        <span class="label status-total">" . $agent_total . "</span>
                        <span class="status-text">Agents</span>
                        <div class="bordered status-total"></div>\xa                    </div>

                    <div class="col-xs-12 col-md-2 agents-count-status">
                        <span class="label status-ready">" . $agent_ready . "</span>
                        <span class="status-text">Attente</span>\xa                        <div class="bordered status-ready"></div>\xa                    </div>
\xa                    <div class="col-xs-12 col-md-2 agents-count-status">\xa                        <span class="label status-incall">" . $agent_incall . "</span>
                        <span class="status-text">Appel</span>
                        <div class="bordered status-incall"></div>\xa                    </div>

                    <div class="col-xs-12 col-md-2 agents-count-status">
                        <span class="label status-paused">" . $agent_paused . "</span>
                        <span class="status-text">Pause</span>
                        <div class="bordered status-paused"></div>\xa                    </div>\xa
                    <div class="col-xs-12 col-md-2 agents-count-status">
                        <span class="label status-dispo">" . $agent_dispo . "</span>\xa                        <span class="status-text"> Qualification</span>\xa                        <div class="bordered status-dispo"></div>
                    </div>\xa\xa                    <div class="col-xs-12 col-md-2 agents-count-status">\xa                        <span class="label status-dead">" . $agent_dead . "</span>
                        <span class="status-text">Fin d'appel</span>
                        <div class="bordered status-dead"></div>
                    </div>
                    \xa                    <div class="col-xs-12 col-md-1 agents-count-status">\xa                        <span class="label status-vente">" . $total_ventes . "</span>\xa                        <span class="status-text">Ventes</span>\xa                        <div class="bordered status-vente"></div>
                    </div>\xa                </div>
            </div>\xa        </div>"; echo "<div class="col-md-10 col-md-10-1 m-t-xs">"; echo "{$Aecho}"; echo "</div>"; echo "<div class="col-md-3 m-t-xs realtime-sidebar">"; echo "</div>"; echo "</div>"; echo "</div>"; $displayAgent = 1; } $kk++; } goto vu1X3; u_I8A: $PHP_AUTH_USER = preg_replace("/[^-_0-9a-zA-Z]/", '', $PHP_AUTH_USER); goto xV6Gt; MQft_: $auth_message = user_authorization($PHP_AUTH_USER, $PHP_AUTH_PW, "REPORTS", 0, 0); goto YEoyp; aIv9G: if (!isset($group)) { $group = "ALL-ACTIVE"; } goto kvMbP; WwLuJ: $stmt = "SELECT allowed_campaigns,allowed_reports,admin_viewable_groups,admin_viewable_call_times from vicidial_user_groups where user_group='{$LOGuser_group}';"; goto FLaxT; g0DdS: $rt_report_times["threeway_short_time"] = 10; goto odo_1; xu7tG: $ay_groupes = array(); goto cCpCz; vpDWj: $LOGallowed_campaigns = $row[0]; goto h5i5B; OBNud: $LOGmodify_campaigns = $row[35]; goto FutOL; vgDEL: $regexLOGallowed_campaigns = " {$LOGallowed_campaigns} "; goto SLHVp; k2El3: $LOGmodify_remoteagents = $row[41]; goto xS5Bw; LOUUC: $LOGallowed_reports = $row[1]; goto uy_wz; aMbyJ: $PHP_AUTH_USER = $_SESSION["PHP_AUTH_USER"]; goto KeElM; Fp4Fn: if (!isset($usergroup)) { $usergroup = ''; } goto HjTe5; RWInm: $rt_report_times["waiting_medium_time"] = 60; goto ku10C; AtABl: $orderby = preg_replace("/[^-_0-9a-zA-Z]/", '', $orderby); goto xGBqQ; cCpCz: while ($i < $groups_to_print) { $row = mysqli_fetch_row($rslt); $ay_groupes[] = $row[0]; $ay_groupe_name[] = $row[1]; $LISTgroups[$i] = $row[0]; $LISTnames[$i] = $row[1]; $allactivecampaigns .= "'{$LISTgroups[$i]}',"; $i++; } goto ylQNv; kx8yc: $CALLSdisplay = preg_replace("/[^-_0-9a-zA-Z]/", '', $CALLSdisplay); goto vm2JD; RkvvL: $RS_INcolumnsHIDE = 0; goto JuUhe; sNw2G: $LOGmodify_labels = $row[75]; goto U9nkn; jN3IZ: $LOGexport_reports = $row[64]; goto xW0iy; Lnvq6: if (file_exists("options.php")) { require "options.php"; } goto ASQrG; VRXRP: $group = preg_replace("/[^-_0-9a-zA-Z]/", '', $group); goto EPE7d; xV6Gt: $PHP_AUTH_PW = preg_replace("/[^-_0-9a-zA-Z]/", '', $PHP_AUTH_PW); goto qGrtZ; MRgsz: if (!preg_match("/{$report_name}/", $LOGallowed_reports) and !preg_match("/ALL REPORTS/", $LOGallowed_reports)) { header("Location: /?error=deconnecter"); echo _QXZ("You are not allowed to view this report") . ": |{$PHP_AUTH_USER}|{$report_name}|" . _QXZ("{$report_name}") . "|
"; die; } goto KnSRu; ZFGKl: $LOGmodify_users = $row[34]; goto OBNud; PD0L1: $epochONEminuteAGO = $STARTtime - 60; goto Thx1Q; BrERS: if ($auth > 0) { $stmt = "SELECT count(*) from vicidial_users where user='{$PHP_AUTH_USER}' and user_level > 7 and view_reports='1';"; $rslt = mysql_to_mysqli($stmt, $link); $row = mysqli_fetch_row($rslt); $admin_auth = $row[0]; $stmt = "SELECT count(*) from vicidial_users where user='{$PHP_AUTH_USER}' and user_level > 6 and view_reports='1';"; if ($DB) { echo "|{$stmt}|
"; } $rslt = mysql_to_mysqli($stmt, $link); $row = mysqli_fetch_row($rslt); $reports_auth = $row[0]; if ($reports_auth < 1) { $VDdisplayMESSAGE = _QXZ("You are not allowed to view reports"); Header("Content-type: text/html; charset=utf-8"); echo "{$VDdisplayMESSAGE}: |{$PHP_AUTH_USER}|{$auth_message}|
"; die; } if ($reports_auth > 0 and $admin_auth < 1) { $ADD = 999999; $reports_only_user = 1; } } else { $VDdisplayMESSAGE = _QXZ("Login incorrect, please try again"); if ($auth_message == "LOCK") { $VDdisplayMESSAGE = _QXZ("Too many login attempts, try again in 15 minutes"); Header("Content-type: text/html; charset=utf-8"); echo "{$VDdisplayMESSAGE}: |{$PHP_AUTH_USER}|{$auth_message}|\xa"; die; } if ($auth_message == "IPBLOCK") { $VDdisplayMESSAGE = _QXZ("Your IP Address is not allowed") . ": {$ip}"; Header("Content-type: text/html; charset=utf-8"); echo "{$VDdisplayMESSAGE}: |{$PHP_AUTH_USER}|{$auth_message}|\xa"; die; } header("Location: /?error=deconnecter"); echo "{$VDdisplayMESSAGE}: |{$PHP_AUTH_USER}|{$PHP_AUTH_PW}|{$auth_message}|
"; die; } goto nu3F7; pHy1r: $LOGmodify_scripts = $row[37]; goto M19HA; zskBH: $CUSTPHONEdisplay = preg_replace("/[^-_0-9a-zA-Z]/", '', $CUSTPHONEdisplay); goto DWtqU; q7yf2: $NOW_TIME = date("Y-m-d H:i:s"); goto HdQPo; ywtE4: $stmt = "SELECT phone_login from vicidial_users where user='{$PHP_AUTH_USER}';"; goto Rs51j; M19HA: $LOGmodify_filters = $row[38]; goto rFHsX; y2LRO: $stmt = "SELECT use_non_latin,outbound_autodial_active,slave_db_server,reports_use_slave_db,enable_languages,language_method,agent_whisper_enabled,allow_chats,cache_carrier_stats_realtime,report_default_format,ofcom_uk_drop_calc,enable_pause_code_limits,timeclock_end_of_day,allow_web_debug FROM system_settings;"; goto G1hpD; j4uQp: $groups_to_print++; goto xu7tG; q3omr: $report_name = "Real-Time Main Report"; goto msAwU; iSy3L: $rt_report_times["pause_limit"] = 999999; goto u_hZ_; bFmO6: $timeFIVEminutesAGO = date("Y-m-d H:i:s", $epochFIVEminutesAGO); goto btWXt; kvMbP: if (!isset($groups)) { $groups = array(); } goto hnODT; z3ENo: $LOGdelete_user_groups = $row[9]; goto rsMbX; cWjbn: if (!isset($UidORname)) { $UidORname = 1; } goto TptnY; rmSmI: $DB = preg_replace("/[^0-9]/", '', $DB); goto kYtFP; FutOL: $LOGmodify_lists = $row[36]; goto pHy1r; RXb1q: $rt_report_times["waiting_short_time"] = 30; goto RWInm; JOwoQ: if ($SSallow_web_debug < 1) { $DB = 0; } goto bekmF; IMEPW: $rslt = mysql_to_mysqli($stmt, $link); goto i1RIx; boxsh: $rslt = mysql_to_mysqli($stmt, $link); goto iElM8; UGSnY: $LOGdelete_users = $row[8]; goto z3ENo; iElM8: $row = mysqli_fetch_row($rslt); goto DTxB_; xldUO: $row = mysqli_fetch_row($rslt); goto bleKD; MsRa9: $RS_BargeSwap = 0; goto Lnvq6; nu3F7: $stmt = "SELECT user_id,user,pass,full_name,user_level,user_group,phone_login,phone_pass,delete_users,delete_user_groups,delete_lists,delete_campaigns,delete_ingroups,delete_remote_agents,load_leads,campaign_detail,ast_admin_access,ast_delete_phones,delete_scripts,modify_leads,hotkeys_active,change_agent_campaign,agent_choose_ingroups,closer_campaigns,scheduled_callbacks,agentonly_callbacks,agentcall_manual,vicidial_recording,vicidial_transfers,delete_filters,alter_agent_interface_options,closer_default_blended,delete_call_times,modify_call_times,modify_users,modify_campaigns,modify_lists,modify_scripts,modify_filters,modify_ingroups,modify_usergroups,modify_remoteagents,modify_servers,view_reports,vicidial_recording_override,alter_custdata_override,qc_enabled,qc_user_level,qc_pass,qc_finish,qc_commit,add_timeclock_log,modify_timeclock_log,delete_timeclock_log,alter_custphone_override,vdc_agent_api_access,modify_inbound_dids,delete_inbound_dids,active,alert_enabled,download_lists,agent_shift_enforcement_override,manager_shift_enforcement_override,shift_override_flag,export_reports,delete_from_dnc,email,user_code,territory,allow_alerts,callcard_admin,force_change_password,modify_shifts,modify_phones,modify_carriers,modify_labels,modify_statuses,modify_voicemail,modify_audiostore,modify_moh,modify_tts,modify_contacts,modify_same_user_level from vicidial_users where user='{$PHP_AUTH_USER}';"; goto boxsh; BcPzF: $PHP_SELF = $_SERVER["PHP_SELF"]; goto CzTO4; lqbIo: $with_inbound = preg_replace("/[^-_0-9a-zA-Z]/", '', $with_inbound); goto OYnR2; vu1X3: if ($displayAgent == 0) { echo "<div class="alert alert-warning alert-dismissable">Aucun agent active</div></script>"; } goto MgMa1; y2Weu: $LOGload_leads = $row[14]; goto rz01g; H6Rxc: $rsltPr = mysql_to_mysqli($stmtPr, $link); goto wQPBL; au4LP: if (!empty($rowPr)) { $profil = "superviseur"; $crmgroup = explode(" ", $rowPr["crmgroup"]); $gg = "'---ALL---',"; foreach ($crmgroup as $cg) { $gg .= "'" . $cg . "',"; } $gg = substr_replace($gg, '', -1); $allow_usergroup = "user_group IN({$gg})"; } goto ywtE4; TRUm8: while ($crow = mysqli_fetch_row($container_rslt)) { $realtime_times = $crow[0]; $rt_times = explode("
", $realtime_times); for ($q = 0; $q < count($rt_times); $q++) { $rt_array = explode("=>", $rt_times[$q]); $var_name = trim($rt_array[0]); $var_value = preg_replace("/[^0-9]/", '', trim($rt_array[1])); $rt_report_times["{$var_name}"] = $var_value; } } goto aMbyJ; rsMbX: $LOGdelete_lists = $row[10]; goto LqDtW; LlWFf: $epochONEhourAGO = $STARTtime - 3600; goto Uth1C; JVJCV: $STARTtime = date("U"); goto PD0L1; nhesB: $epochSIXhoursAGO = $STARTtime - 21600; goto GqHXt; SLHVp: $allactivecampaigns = ''; goto Ujz7P; KeElM: $PHP_AUTH_PW = $_SESSION["PHP_AUTH_PW"]; goto BcPzF; QVGnT: $timeSIXhoursAGO = date("Y-m-d H:i:s", $epochSIXhoursAGO); goto u_I8A; nUcA0: $displayAgent = 0; goto EtaoE; x2Wqy: ob_start(); goto RmZb6; Ndf2X: $RS_ListenBarge = "MONITOR|BARGE|WHISPER"; goto seea7; Qd7RM: $LOGmodify_dids = $row[56]; goto MixOJ; ZQhvi: $LOGmodify_same_user_level = $row[82]; goto WwLuJ; xGBqQ: $SERVdisplay = preg_replace("/[^-_0-9a-zA-Z]/", '', $SERVdisplay); goto kx8yc; Tw2mQ: if (!isset($ingroup_filter)) { $ingroup_filter = array(); } goto Fp4Fn; yMet5: $LOGmodify_usergroups = $row[40]; goto k2El3; gmU51: if (!isset($with_inbound)) { if ($outbound_autodial_active > 0) { $with_inbound = "Y"; } else { $with_inbound = "O"; } } goto iw7VC; G8Jic: $LISTgroups[$i] = "ALL-ACTIVE"; goto SjSzc; ptsap: if (!isset($CUSTPHONEdisplay)) { $CUSTPHONEdisplay = 0; } goto tm1xh; MgMa1: ?> 
<script> 
    function _0x5337(){var _0x552964=['7652mzXpYX','data','campaign_id=','Content-Type','open','change_dial_level','change','send','.slider_vitesse','3720648svjiJV','708KUuBCR','onreadystatechange','responseText','246ITysMP','258alfYPN','ERROR:','3676kJZxtY','match','ready','310OATnPC','readyState','setRequestHeader','3629493aTKAaQ','POST','416878VvSpgn','20958GEdbJv','3025350QKYRjU','SUCCESS:','&vitesse='];_0x5337=function(){return _0x552964;};return _0x5337();}function _0x2ee2(_0x5b603a,_0x4523a1){var _0x53371e=_0x5337();return _0x2ee2=function(_0x2ee201,_0x57f610){_0x2ee201=_0x2ee201-0xcb;var _0x5ca2a9=_0x53371e[_0x2ee201];return _0x5ca2a9;},_0x2ee2(_0x5b603a,_0x4523a1);}var _0x111617=_0x2ee2;(function(_0x139131,_0x59bb37){var _0x148c9f=_0x2ee2,_0x510b36=_0x139131();while(!![]){try{var _0xa0d950=-parseInt(_0x148c9f(0xe6))/0x1*(-parseInt(_0x148c9f(0xcb))/0x2)+parseInt(_0x148c9f(0xe2))/0x3*(-parseInt(_0x148c9f(0xd8))/0x4)+-parseInt(_0x148c9f(0xd5))/0x5+parseInt(_0x148c9f(0xe5))/0x6*(-parseInt(_0x148c9f(0xd4))/0x7)+-parseInt(_0x148c9f(0xe1))/0x8+parseInt(_0x148c9f(0xd1))/0x9+parseInt(_0x148c9f(0xce))/0xa*(parseInt(_0x148c9f(0xd3))/0xb);if(_0xa0d950===_0x59bb37)break;else _0x510b36['push'](_0x510b36['shift']());}catch(_0x8efe03){_0x510b36['push'](_0x510b36['shift']());}}}(_0x5337,0x6398a),$(document)[_0x111617(0xcd)](function(){var _0x284b09=_0x111617;$(_0x284b09(0xe0))['on'](_0x284b09(0xde),function(){var _0x518e2f=_0x284b09,_0x408ffb=![];!_0x408ffb&&typeof XMLHttpRequest!='undefined'&&(_0x408ffb=new XMLHttpRequest());if(_0x408ffb){var _0x4e0abc=_0x518e2f(0xda)+$(this)[_0x518e2f(0xd9)]('compagne')+_0x518e2f(0xd7)+$(this)['val']();_0x408ffb[_0x518e2f(0xdc)](_0x518e2f(0xd2),_0x518e2f(0xdd)),_0x408ffb[_0x518e2f(0xd0)](_0x518e2f(0xdb),'application/x-www-form-urlencoded; charset=UTF-8'),_0x408ffb[_0x518e2f(0xdf)](_0x4e0abc),_0x408ffb[_0x518e2f(0xe3)]=function(){var _0x1d1489=_0x518e2f;if(_0x408ffb[_0x1d1489(0xcf)]==0x4&&_0x408ffb['status']==0xc8){var _0x477994=null;_0x477994=_0x408ffb['responseText'];var _0x284c51=new RegExp(_0x1d1489(0xe7),'g'),_0x20d9a3=new RegExp(_0x1d1489(0xd6),'g');_0x477994[_0x1d1489(0xcc)](_0x284c51)&&alert(_0x408ffb[_0x1d1489(0xe4)]),_0x477994[_0x1d1489(0xcc)](_0x20d9a3)&&alert('SUCCESS: calling'+monitor_phone);}},delete _0x408ffb;}});})); 
</script> 
<?php 
$stmtPr = "SELECT * from pixiscrm_users_privilege where user='$PHP_AUTH_USER';"; 
$rsltPr = mysql_to_mysqli($stmtPr, $link); 
$rowPr = mysqli_fetch_assoc($rsltPr); 
 
$profil = 'admin'; 
if (!empty($rowPr)) { 
    $profil = 'superviseur'; 
    $rowPr['crmgroup'] = explode(' ', $rowPr['crmgroup']); 
} 
 
if ($profil == 'superviseur' and !$rowPr['vitesse_campagne']) { 
    ?> 
    <script> 
        $(document).ready(function () { 
            $(".slider_div").hide(); 
            $(".slider_vitesse").hide(); 
        }); 
    </script> 
<?php 
} 
?>

Did this file decode correctly?

Original Code

<?php
goto x2Wqy; uPz87: $groups_to_print = mysqli_num_rows($rslt); goto EqMB6; u_hZ_: $container_stmt = "\163\x65\154\145\x63\164\40\x63\x6f\x6e\x74\x61\151\156\x65\x72\137\x65\x6e\164\162\171\40\x66\162\157\155\x20\166\151\143\x69\144\151\141\154\137\163\145\164\164\x69\156\147\x73\x5f\143\157\x6e\x74\141\151\x6e\x65\x72\163\40\x77\150\145\162\x65\x20\143\x6f\x6e\x74\x61\x69\156\145\162\x5f\x69\x64\x3d\47\122\x45\x41\x4c\x54\x49\x4d\105\137\x52\x45\x50\117\x52\x54\x5f\124\x49\115\105\123\x27"; goto CaoWw; TiZFt: $LOGast_admin_access = $row[16]; goto Q7o3X; OR6TI: $LOGdelete_filters = $row[29]; goto bzUiI; RShFS: if ($DB) { echo "{$stmt}\12"; } goto ZR3je; DWtqU: $CUSTINFOdisplay = preg_replace("\57\133\136\x2d\x5f\x30\55\71\141\55\x7a\x41\55\x5a\x5d\x2f", '', $CUSTINFOdisplay); goto o5xjL; odo_1: $rt_report_times["\x64\x65\141\144\137\x73\x68\157\162\164\137\164\x69\x6d\145"] = 10; goto iSy3L; seea7: $RS_agentWAIT = 3; goto RkvvL; vm2JD: $PHONEdisplay = preg_replace("\x2f\x5b\136\x2d\137\60\55\x39\x61\x2d\172\x41\x2d\132\x5d\57", '', $PHONEdisplay); goto zskBH; H51Oo: $LOGuser_group = $row[1]; goto qdB9t; jRkvj: $vmLOGadmin_viewable_groupsSQL = ''; goto o2Rzj; lNp_D: $rslt = mysql_to_mysqli($stmt, $link); goto uPz87; joV7a: $LOGadmin_hide_phone_data = $row[3]; goto KEMSE; ASQrG: header("\103\157\x6e\164\145\156\x74\55\x74\x79\x70\145\x3a\40\164\145\x78\164\57\x68\164\x6d\154\x3b\x20\x63\150\141\x72\x73\x65\164\75\x75\x74\x66\55\70"); goto q3omr; j3Axv: $LISTnames = array(); goto G8Jic; BjwA_: $rt_report_times["\x70\141\x75\163\x65\x64\137\x6c\157\x6e\x67\137\164\151\155\145"] = 300; goto JxgLk; EPE7d: $groups[0] = preg_replace("\57\133\136\55\x5f\60\x2d\71\x61\55\172\x41\x2d\x5a\x5d\57", '', $groups[0]); goto BnnVt; TFYEv: if (!isset($DB)) { $DB = 0; } goto H9vcf; CzTO4: $PHP_SELF = preg_replace("\x2f\x5c\56\160\x68\160\56\52\57\x69", "\56\160\x68\160", $PHP_SELF); goto MsRa9; ETsxQ: $stmtPr = "\x53\x45\114\x45\103\124\x20\52\x20\x66\x72\x6f\155\x20\x70\151\x78\151\163\143\x72\x6d\137\x75\163\x65\x72\163\137\160\x72\151\166\x69\x6c\x65\147\145\40\167\x68\x65\x72\x65\x20\x75\163\x65\x72\x3d\x27{$PHP_AUTH_USER}\x27\73"; goto H6Rxc; f4dII: $rt_report_times["\x70\141\165\163\x65\144\x5f\x6c\x6f\156\x67\137\x74\x69\155\x65\61\x35"] = 900; goto g0DdS; iw7VC: if (strlen($group) > 1 and strlen($groups[0]) < 1) { $groups[0] = $group; $RR = 1; } else { $group = $groups[0]; } goto Sm7Bt; tm1xh: if (!isset($CUSTINFOdisplay)) { $CUSTINFOdisplay = 0; } goto aUoaU; LqDtW: $LOGdelete_campaigns = $row[11]; goto hWHL_; jFId3: $LOGadmin_viewable_groupsSQL = ''; goto SU_YG; Jn7iB: if (!isset($PHONEdisplay)) { $PHONEdisplay = 0; } goto ptsap; EsuCp: $LOGdelete_call_times = $row[32]; goto nSwAQ; Jhcos: $qm_conf_ct = mysqli_num_rows($rslt); goto oe29M; fBDyB: $LOGuser_group = $row[5]; goto UGSnY; gjdJH: $rt_report_times["\x70\x61\x75\163\x65\x64\x5f\155\145\144\x69\165\x6d\137\x74\151\155\x65"] = 60; goto BjwA_; bvLgr: $load_ave = get_server_load(true); goto q7yf2; BnnVt: $usergroup = preg_replace("\x2f\x5b\136\x2d\x5f\x30\55\x39\x61\x2d\x7a\101\55\132\x5d\x2f", '', $usergroup); goto rmSmI; ZR3je: $row = mysqli_fetch_row($rslt); goto HiXXe; VJxs0: $LOGmodify_phones = $row[73]; goto NGlzW; SU_YG: $valLOGadmin_viewable_groupsSQL = ''; goto jRkvj; U9nkn: $LOGmodify_statuses = $row[76]; goto ne7FA; iE58L: $LOGmodify_audiostore = $row[78]; goto c2lkP; HiXXe: $monitor_phone = $row[0]; goto CgbaV; MixOJ: $LOGdelete_dids = $row[57]; goto DiIIt; CgbaV: $stmt = "\x53\105\114\105\103\x54\x20\x72\145\141\154\164\151\155\145\137\x62\x6c\x6f\143\x6b\137\165\x73\145\x72\x5f\x69\156\146\x6f\x2c\x75\163\x65\162\137\147\x72\157\165\160\54\x61\x64\x6d\151\156\137\150\151\144\145\x5f\154\145\x61\x64\137\x64\141\x74\x61\x2c\x61\x64\155\x69\x6e\x5f\150\x69\x64\x65\137\x70\x68\157\x6e\x65\x5f\144\141\164\141\40\x66\162\x6f\155\x20\166\151\x63\x69\x64\151\141\x6c\x5f\x75\x73\x65\162\x73\40\167\150\145\x72\x65\40\165\x73\x65\x72\x3d\47{$PHP_AUTH_USER}\47\73"; goto NPjmN; ku10C: $rt_report_times["\167\x61\x69\x74\x69\x6e\147\x5f\x6c\157\x6e\147\x5f\x74\151\155\145"] = 300; goto VGB4_; ZfxD3: $LOGdelete_scripts = $row[18]; goto OR6TI; Rs51j: $rslt = mysql_to_mysqli($stmt, $link); goto RShFS; RmZb6: session_start(); goto XOYwM; Thx1Q: $timeONEminuteAGO = date("\x59\x2d\155\55\x64\40\x48\72\x69\x3a\163", $epochONEminuteAGO); goto A4HUc; H2usg: if ($CUSTPHONEdisplay == 1) { $CUSTINFOdisplay = 0; } goto Jiq_M; cib6J: if (!isset($CALLSdisplay)) { $CALLSdisplay = 1; } goto Jn7iB; ne7FA: $LOGmodify_voicemail = $row[77]; goto iE58L; uNSiY: $admin_auth = 0; goto MQft_; bekmF: if (strlen($slave_db_server) > 5 and preg_match("\x2f{$report_name}\57", $reports_use_slave_db)) { mysqli_close($link); $use_slave_server = 1; $db_source = "\x53"; require "\x64\142\143\x6f\156\x6e\x65\x63\164\137\x6d\x79\x73\x71\x6c\x69\x2e\x70\150\x70"; } goto Ndf2X; Jiq_M: if (!isset($PAUSEcodes)) { $PAUSEcodes = "\x4e"; } goto gmU51; Q2XZ5: $LOGforce_change_password = $row[71]; goto ymgL8; ohCyt: require "\x66\165\156\143\x74\x69\157\x6e\x73\56\x70\150\160"; goto RXb1q; o5xjL: if ($CUSTINFOdisplay == 1) { $CUSTPHONEdisplay = 0; } goto sL3zg; SFUG6: $LOGdelete_remote_agents = $row[13]; goto y2Weu; loa6k: $LOGcallcard_admin = $row[70]; goto Q2XZ5; KD01q: $rt_report_times["\160\141\165\x73\145\x64\x5f\163\x68\x6f\162\x74\137\x74\x69\155\145"] = 10; goto gjdJH; sL3zg: if ($CUSTPHONEdisplay == 1) { $CUSTINFOdisplay = 0; } goto lqbIo; BRVmS: $LOGadmin_viewable_call_times = $row[3]; goto jFId3; UVocE: $NOW_HOUR = date("\110\72\x69\72\163"); goto JVJCV; NGlzW: $LOGmodify_carriers = $row[74]; goto sNw2G; JxgLk: $rt_report_times["\x70\141\x75\163\x65\x64\x5f\154\x6f\x6e\147\x5f\x74\x69\155\x65\61\60"] = 600; goto f4dII; hnODT: if (!isset($user_group_filter)) { $user_group_filter = array(); } goto Tw2mQ; RZX4j: $allow_usergroup = "\x31\75\61"; goto au4LP; ymgL8: $LOGmodify_shifts = $row[72]; goto VJxs0; qGrtZ: $RR = preg_replace("\x2f\133\x5e\x30\55\71\135\57", '', $RR); goto VRXRP; h5i5B: $LOGallowed_reports = "{$row["\x31"]}\174{$row["\x32"]}"; goto MRgsz; uy_wz: $LOGadmin_viewable_groups = $row[2]; goto BRVmS; HdQPo: $NOW_DAY = date("\131\x2d\x6d\x2d\x64"); goto UVocE; VGB4_: $rt_report_times["\x69\x6e\143\x61\154\154\137\x73\150\x6f\162\x74\137\x74\151\155\145"] = 10; goto b_P72; oe29M: if ($qm_conf_ct > 0) { $row = mysqli_fetch_row($rslt); $outbound_autodial_active = $row[1]; $slave_db_server = $row[2]; $reports_use_slave_db = $row[3]; $allow_chats = $row[7]; $cache_carrier_stats_realtime = $row[8]; $SSofcom_uk_drop_calc = $row[10]; $SSenable_pause_code_limits = $row[11]; $SStimeclock_end_of_day = $row[12]; $SSallow_web_debug = $row[13]; } goto JOwoQ; zMQla: $kk = 0; goto nUcA0; ylQNv: $allactivecampaigns .= "\x27\47"; goto zMQla; hWHL_: $LOGdelete_ingroups = $row[12]; goto SFUG6; TptnY: if (!isset($orderby)) { $orderby = "\x75\163\x65\162\x41"; } goto TZ8ry; YEoyp: if ($auth_message == "\x47\117\x4f\x44" or $auth_message == "\62\x46\x41") { $auth = 1; if ($auth_message == "\x32\x46\x41") { header("\103\157\156\164\145\156\x74\x2d\x74\x79\160\x65\72\40\164\x65\x78\164\x2f\150\x74\155\154\x3b\40\143\x68\x61\x72\x73\145\x74\75\165\x74\146\55\x38"); echo _QXZ("\131\x6f\165\162\x20\163\145\163\x73\x69\157\x6e\40\151\x73\40\x65\170\160\x69\162\x65\144") . "\x2e\x20\74\141\40\x68\162\145\146\x3d\42\57\42\x3e" . _QXZ("\103\154\x69\x63\153\x20\x68\x65\162\x65\40\x74\157\x20\x6c\x6f\147\40\x69\156") . "\74\57\x61\76\x2e\xa"; die; } } goto BrERS; KnSRu: $LOGallowed_campaignsSQL = ''; goto EbJSM; xW0iy: $LOGdelete_from_dnc = $row[65]; goto loa6k; XOYwM: require "\144\142\x63\x6f\156\x6e\x65\143\x74\x5f\155\171\163\161\154\151\56\x70\x68\x70"; goto ohCyt; Ujz7P: $stmt = "\123\x45\114\105\x43\x54\x20\x63\x61\x6d\x70\x61\x69\147\156\x5f\151\x64\54\x63\x61\x6d\x70\141\x69\147\156\x5f\156\141\x6d\x65\40\146\x72\x6f\155\x20\166\x69\x63\151\144\151\141\x6c\x5f\143\141\x6d\x70\141\151\x67\x6e\163\40\167\x68\x65\x72\145\40\x63\x61\155\160\x61\x69\x67\x6e\x5f\151\144\x20\41\x3d\40\x27\160\151\170\x69\x73\47\x20\141\x6e\144\40\141\x63\164\x69\166\145\75\47\x59\47\x20{$LOGallowed_campaignsSQL}\x20\141\x6e\144\x20{$allow_usergroup}\x20\157\162\144\145\162\40\x62\x79\40\157\x72\x64\x65\x72\x5f\x63\141\155\40\x61\x73\x63\x3b"; goto lNp_D; Vw_du: $timeFIFTEENminutesAGO = date("\131\x2d\155\55\144\x20\x48\72\151\72\x73", $epochFIFTEENminutesAGO); goto LlWFf; GqHXt: $timeSIXhoursAGO = date("\131\x2d\155\55\x64\40\110\x3a\151\x3a\x73", $epochSIXhoursAGO); goto U4ls2; aUoaU: if ($CUSTINFOdisplay == 1) { $CUSTPHONEdisplay = 0; } goto H2usg; Sm7Bt: function get_server_load($windows = false) { $os = strtolower(PHP_OS); if (strpos($os, "\167\x69\x6e") === false) { if (file_exists("\57\x70\x72\x6f\143\x2f\x6c\x6f\141\x64\x61\x76\147")) { $load = file_get_contents("\x2f\160\x72\157\143\x2f\x6c\157\x61\144\x61\166\x67"); $load = explode("\x20", $load); return $load[0] . "\x20" . $load[1] . "\x20" . $load[2]; } elseif (function_exists("\163\x68\145\154\x6c\137\x65\x78\145\143")) { $load = explode("\x20", `uptime`); return $load[count($load) - 3] . "\40" . $load[count($load) - 2] . "\x20" . $load[count($load) - 1]; } else { return false; } } elseif ($windows) { if (class_exists("\103\x4f\x4d")) { $wmi = new COM("\x57\x69\x6e\x4d\x67\x6d\x74\x73\72\x5c\x5c\x2e"); $cpus = $wmi->InstancesOf("\x57\151\x6e\x33\62\137\120\162\x6f\x63\145\x73\163\x6f\162"); $cpuload = 0; $i = 0; while ($cpu = $cpus->Next()) { $cpuload += $cpu->LoadPercentage; $i++; } $cpuload = round(MathZDC($cpuload, $i), 2); return "{$cpuload}\x25"; } else { return false; } } } goto bvLgr; Q7o3X: $LOGast_delete_phones = $row[17]; goto ZfxD3; Mypz7: $row = mysqli_fetch_row($rslt); goto kh709; nSwAQ: $LOGmodify_call_times = $row[33]; goto ZFGKl; U4ls2: $epochTWENTYFOURhoursAGO = $STARTtime - 86400; goto c7Kgq; uUnQX: $profil = "\x61\x64\x6d\151\x6e"; goto RZX4j; DTxB_: $LOGfull_name = $row[3]; goto EaIJ1; TkbWX: $LOGview_reports = $row[43]; goto Qd7RM; bleKD: $realtime_block_user_info = $row[0]; goto H51Oo; btWXt: $epochFIFTEENminutesAGO = $STARTtime - 900; goto Vw_du; kh709: $LOGallowed_campaigns = $row[0]; goto LOUUC; i1RIx: $row = mysqli_fetch_row($rslt); goto vpDWj; rFHsX: $LOGmodify_ingroups = $row[39]; goto yMet5; kYtFP: $UGdisplay = preg_replace("\x2f\x5b\x5e\55\137\60\x2d\x39\141\x2d\172\x41\55\132\135\57", '', $UGdisplay); goto C6ceK; A4HUc: $epochFIVEminutesAGO = $STARTtime - 300; goto bFmO6; HjTe5: if (!isset($UGdisplay)) { $UGdisplay = 0; } goto cWjbn; rz01g: $LOGcampaign_detail = $row[15]; goto TiZFt; wQPBL: $rowPr = mysqli_fetch_assoc($rsltPr); goto uUnQX; bzUiI: $LOGalter_agent_interface = $row[30]; goto EsuCp; CaoWw: $container_rslt = mysql_to_mysqli($container_stmt, $link); goto TRUm8; o2Rzj: if (!preg_match("\x2f\x5c\55\134\x2d\101\114\114\134\x2d\134\55\57\151", $LOGadmin_viewable_groups) and strlen($LOGadmin_viewable_groups) > 3) { $rawLOGadmin_viewable_groupsSQL = preg_replace("\x2f\x20\x2d\x2f", '', $LOGadmin_viewable_groups); $rawLOGadmin_viewable_groupsSQL = preg_replace("\x2f\x20\x2f", "\47\x2c\x27", $rawLOGadmin_viewable_groupsSQL); $LOGadmin_viewable_groupsSQL = "\141\x6e\144\x20\165\163\145\x72\137\147\162\157\165\x70\40\111\116\x28\47\55\x2d\x2d\x41\114\x4c\x2d\x2d\x2d\x27\x2c\47{$rawLOGadmin_viewable_groupsSQL}\47\51"; $whereLOGadmin_viewable_groupsSQL = "\167\x68\x65\x72\x65\40\165\163\145\162\137\147\162\157\x75\160\x20\111\116\50\47\x2d\x2d\55\x41\114\114\55\x2d\55\x27\x2c\47{$rawLOGadmin_viewable_groupsSQL}\x27\x29"; $valLOGadmin_viewable_groupsSQL = "\141\x6e\x64\40\166\141\154\56\165\163\145\162\137\x67\162\x6f\x75\x70\x20\x49\116\50\47\x2d\55\55\101\114\x4c\x2d\55\55\47\54\47{$rawLOGadmin_viewable_groupsSQL}\47\51"; $vmLOGadmin_viewable_groupsSQL = "\x61\x6e\x64\40\x76\155\56\x75\163\x65\x72\x5f\147\162\x6f\165\160\40\111\116\50\x27\x2d\x2d\55\x41\114\114\x2d\x2d\55\47\54\47{$rawLOGadmin_viewable_groupsSQL}\x27\51"; } else { $admin_viewable_groupsALL = 1; } goto ETsxQ; msAwU: $db_source = "\115"; goto y2LRO; RIMzA: $reports_auth = 0; goto uNSiY; xS5Bw: $LOGmodify_servers = $row[42]; goto TkbWX; xXGf6: $rt_report_times["\151\x6e\143\141\x6c\x6c\x5f\154\x6f\x6e\x67\137\164\x69\x6d\145"] = 300; goto KD01q; G1hpD: $rslt = mysql_to_mysqli($stmt, $link); goto Jhcos; TZ8ry: if (!isset($SERVdisplay)) { $SERVdisplay = 0; } goto cib6J; qdB9t: $LOGadmin_hide_lead_data = $row[2]; goto joV7a; EbJSM: $whereLOGallowed_campaignsSQL = ''; goto G_c08; c7Kgq: $timeTWENTYFOURhoursAGO = date("\x59\55\x6d\x2d\x64\x20\x48\x3a\151\x3a\163", $epochTWENTYFOURhoursAGO); goto QVGnT; H9vcf: if (!isset($RR)) { $RR = 1; } goto aIv9G; EaIJ1: $LOGuser_level = $row[4]; goto fBDyB; AcVcO: $LOGmodify_contacts = $row[81]; goto ZQhvi; SjSzc: $i++; goto j4uQp; G_c08: if (!preg_match("\x2f\101\x4c\x4c\55\57", $LOGallowed_campaigns)) { $rawLOGallowed_campaignsSQL = preg_replace("\x2f\40\55\57", '', $LOGallowed_campaigns); $rawLOGallowed_campaignsSQL = preg_replace("\57\x20\x2f", "\x27\54\x27", $rawLOGallowed_campaignsSQL); $LOGallowed_campaignsSQL = "\x61\156\144\x20\143\x61\155\x70\x61\151\147\x6e\137\x69\x64\40\111\x4e\x28\47{$rawLOGallowed_campaignsSQL}\x27\51"; $whereLOGallowed_campaignsSQL = "\x77\150\x65\162\145\40\143\x61\155\x70\x61\151\147\x6e\x5f\151\x64\x20\111\116\50\47{$rawLOGallowed_campaignsSQL}\x27\x29"; } goto vgDEL; NPjmN: $rslt = mysql_to_mysqli($stmt, $link); goto xldUO; Im32u: $LISTgroups = array(); goto j3Axv; Uth1C: $timeONEhourAGO = date("\131\55\x6d\x2d\144\x20\x48\72\x69\x3a\x73", $epochONEhourAGO); goto nhesB; DiIIt: $LOGmanager_shift_enforcement_override = $row[61]; goto jN3IZ; n50ET: $LOGmodify_tts = $row[80]; goto AcVcO; c2lkP: $LOGmodify_moh = $row[79]; goto n50ET; b_P72: $rt_report_times["\151\x6e\x63\x61\154\154\x5f\x6d\x65\144\x69\x75\x6d\x5f\164\x69\x6d\145"] = 60; goto xXGf6; KEMSE: $stmt = "\x53\105\114\105\103\x54\x20\x61\154\154\157\x77\x65\144\x5f\143\141\x6d\160\141\x69\147\156\x73\54\141\x6c\154\157\x77\145\144\137\162\x65\x70\x6f\162\164\163\54\141\x6c\x6c\157\x77\145\x64\137\143\x75\x73\x74\157\155\x5f\162\x65\160\157\162\x74\x73\40\146\162\x6f\155\40\x76\x69\143\x69\144\x69\x61\154\x5f\165\163\145\162\x5f\147\x72\157\165\160\163\40\167\150\x65\162\x65\40\x75\163\x65\162\x5f\147\162\x6f\165\160\x3d\x27{$LOGuser_group}\47\x3b"; goto IMEPW; OYnR2: $auth = 0; goto RIMzA; FLaxT: $rslt = mysql_to_mysqli($stmt, $link); goto Mypz7; C6ceK: $UidORname = preg_replace("\57\x5b\136\55\137\x30\55\x39\x61\x2d\172\x41\55\132\x5d\x2f", '', $UidORname); goto AtABl; EqMB6: $i = 0; goto Im32u; JuUhe: $RS_DIDdesc = 0; goto TFYEv; EtaoE: while ($kk < count($ay_groupes)) { $groups = array(); $groups[0] = $ay_groupes[$kk]; $i = 0; $group_string = "\174"; $group_ct = count($groups); while ($i < $group_ct) { $groups[$i] = preg_replace("\x2f\x27\x7c\x22\x7c\134\134\x7c\73\x2f", '', $groups[$i]); if (preg_match("\x2f\x20{$groups[$i]}\x20\x2f", $regexLOGallowed_campaigns) or preg_match("\57\101\x4c\114\55\x2f", $LOGallowed_campaigns)) { $group_string .= "{$groups[$i]}\174"; $group_SQL = "\47{$groups[$i]}\x27\54"; $groupQS = "\46\x67\162\x6f\165\160\163\x5b\x5d\x3d{$groups[$i]}"; } $i++; } $group_SQL = preg_replace("\x2f\x2c\x24\x2f\151", '', $group_SQL); $i = 0; $user_group_string = "\x7c"; $user_group_ct = count($user_group_filter); while ($i < $user_group_ct) { $user_group_filter[$i] = preg_replace("\x2f\x27\174\42\174\134\134\x7c\x3b\57", '', $user_group_filter[$i]); $user_group_string .= "{$user_group_filter[$i]}\x7c"; $user_group_SQL .= "\47{$user_group_filter[$i]}\x27\x2c"; $usergroupQS .= "\46\165\163\x65\162\x5f\147\x72\x6f\165\160\137\146\151\x6c\x74\x65\162\133\x5d\75{$user_group_filter[$i]}"; $i++; } $user_group_SQL = preg_replace("\57\54\x24\x2f\x69", '', $user_group_SQL); $i = 0; $ingroup_string = "\174"; $ingroup_ct = count($ingroup_filter); while ($i < $ingroup_ct) { $ingroup_filter[$i] = preg_replace("\x2f\x5b\136\x2d\137\x30\55\x39\x61\x2d\172\101\x2d\132\135\x2f", '', $ingroup_filter[$i]); $ingroup_string .= "{$ingroup_filter[$i]}\x7c"; $ingroup_SQL .= "\47{$ingroup_filter[$i]}\x27\x2c"; $ingroupQS .= "\46\x69\156\147\162\157\165\x70\137\x66\x69\154\x74\145\x72\x5b\135\75{$ingroup_filter[$i]}"; $i++; } $ingroup_SQL = preg_replace("\x2f\54\x24\57\x69", '', $ingroup_SQL); if ($group_ct < 1 or strlen($group_string) < 2) { $groups[0] = "\x41\114\114\55\101\x43\x54\x49\x56\x45"; $group_string = "\x7c\101\114\114\55\101\103\124\x49\126\105\x7c"; $group = "\x41\114\114\55\101\x43\x54\111\126\105"; $groupQS .= "\46\147\162\157\x75\160\x73\x5b\135\x3d\x41\x4c\x4c\x2d\x41\103\x54\x49\126\x45"; } if ($user_group_ct < 1 or strlen($user_group_string) < 2) { $user_group_filter[0] = "\101\114\114\55\107\x52\x4f\125\x50\123"; $user_group_string = "\x7c\x41\x4c\114\55\107\122\x4f\x55\x50\123\174"; $usergroupQS .= "\46\x75\x73\x65\x72\x5f\147\x72\x6f\x75\x70\x5f\x66\151\154\164\x65\162\133\x5d\75\101\x4c\114\55\x47\122\117\125\x50\123"; } $ingroup_none = 0; if ($ingroup_ct < 1 or strlen($ingroup_string) < 2) { $ingroup_filter[0] = "\101\x4c\114\55\x49\x4e\x47\122\117\x55\x50\x53"; $ingroup_string = "\x7c\x41\x4c\x4c\x2d\x49\116\107\122\x4f\x55\x50\123\174"; $ingroupQS .= "\46\151\x6e\147\162\157\165\x70\137\x66\151\x6c\x74\145\162\x5b\135\x3d\x41\114\x4c\x2d\x49\x4e\107\122\x4f\125\x50\x53"; $ingroup_none = 1; } if (preg_match("\x2f\134\163\134\x2d\134\x2d\x4e\x4f\x4e\x45\x5c\x2d\134\55\x5c\x73\57", $group_string) or $group_ct < 1) { $all_active = 0; $group_SQL = "\x27\x27"; $group_SQLand = "\x61\156\144\x20\x46\101\114\123\x45"; $group_SQLwhere = "\x77\150\x65\162\145\40\106\x41\114\x53\105"; } elseif (preg_match("\x2f\x41\x4c\114\x5c\55\101\103\x54\x49\x56\105\x2f\x69", $group_string)) { $all_active = 1; $group_SQL = $allactivecampaigns; $group_SQLand = "\141\156\144\x20\143\141\155\160\141\151\x67\x6e\x5f\151\144\40\111\116\x28{$allactivecampaigns}\x29"; $group_SQLwhere = "\167\150\x65\162\x65\x20\143\x61\x6d\x70\x61\151\x67\x6e\137\x69\144\40\111\x4e\x28{$allactivecampaigns}\51"; } else { $all_active = 0; $group_SQLand = "\x61\x6e\x64\40\143\141\155\160\141\x69\x67\156\x5f\151\144\x20\x49\x4e\50{$group_SQL}\51"; $group_SQLwhere = "\167\x68\145\x72\145\x20\143\x61\x6d\160\x61\151\147\x6e\137\151\x64\40\111\116\x28{$group_SQL}\x29"; } if (preg_match("\x2f\x5c\x73\x5c\x2d\x5c\55\116\117\x4e\x45\134\x2d\134\x2d\134\x73\57", $user_group_string) or $user_group_ct < 1) { $all_active_groups = 0; $user_group_SQL = "\47\x27"; } elseif (preg_match("\57\101\x4c\x4c\x5c\55\x47\122\117\125\x50\x53\x2f\x69", $user_group_string)) { $all_active_groups = 1; $user_group_SQL = "\47{$rawLOGadmin_viewable_groupsSQL}\x27"; } else { $all_active_groups = 0; } if (preg_match("\x2f\x5c\163\134\x2d\x5c\55\x4e\117\116\x45\x5c\x2d\134\x2d\134\163\57", $ingroup_string) or $ingroup_ct < 1) { $all_active_ingroups = 0; $ingroup_SQL = "\47\x27"; } elseif (preg_match("\x2f\x41\x4c\x4c\134\x2d\111\116\107\x52\x4f\x55\x50\x53\x2f\151", $ingroup_string)) { $all_active_ingroups = 1; $ingroup_SQL = "\47{$rawLOGadmin_viewable_groupsSQL}\x27"; $ingroup_SQLand = "\x61\x6e\144\40\143\141\155\160\141\x69\147\156\137\x69\144\40\x49\116\50{$rawLOGadmin_viewable_groupsSQL}\x29"; $ingroup_SQLwhere = "\x77\150\x65\162\145\40\143\141\x6d\x70\141\x69\147\156\137\151\x64\x20\111\116\x28{$rawLOGadmin_viewable_groupsSQL}\51"; } else { $all_active_ingroups = 0; } $stmt = "\123\x45\114\x45\103\x54\x20\x75\x73\145\162\x5f\147\162\157\x75\160\x20\146\162\157\155\x20\166\x69\x63\151\x64\151\x61\x6c\137\165\x73\x65\162\137\147\x72\157\x75\x70\x73\40{$whereLOGadmin_viewable_groupsSQL}\40\157\162\x64\145\162\x20\x62\171\40\165\163\x65\x72\137\147\162\157\165\160\73"; $rslt = mysql_to_mysqli($stmt, $link); $usergroups_to_print = mysqli_num_rows($rslt); $i = 0; $usergroups = array(); $usergroupnames = array(); $usergroups[$i] = "\101\x4c\x4c\55\x47\122\x4f\x55\x50\123"; $usergroupnames[$i] = "\x41\x6c\x6c\x20\x75\x73\145\162\40\147\x72\157\165\160\163"; $i++; $usergroups_to_print++; while ($i < $usergroups_to_print) { $row = mysqli_fetch_row($rslt); $usergroups[$i] = $row[0]; $i++; } $stmt = "\x73\x65\x6c\x65\143\x74\40\147\162\x6f\165\160\137\x69\144\x2c\147\162\x6f\165\160\x5f\156\141\155\145\x20\x66\x72\157\155\40\166\x69\143\151\x64\x69\141\154\x5f\x69\156\x62\x6f\x75\x6e\x64\x5f\x67\162\157\165\160\163\x20{$whereLOGadmin_viewable_groupsSQL}\x20\157\162\x64\145\x72\x20\142\171\40\x67\162\157\x75\x70\x5f\151\144\73"; $rslt = mysql_to_mysqli($stmt, $link); $ingroups_to_print = mysqli_num_rows($rslt); $i = 0; $LISTingroups = array(); $LISTingroup_names = array(); $LISTingroups[$i] = "\x41\x4c\x4c\x2d\x49\x4e\x47\122\x4f\x55\120\123"; $i++; $ingroups_to_print++; $ingroups_string = "\174"; while ($i < $ingroups_to_print) { $row = mysqli_fetch_row($rslt); $LISTingroups[$i] = $row[0]; $LISTingroup_names[$i] = $row[1]; $ingroups_string .= "{$LISTingroups[$i]}\x7c"; $i++; } if (isset($RS_CUSTINFOminUL)) { $CUSTINFOminUL = $RS_CUSTINFOminUL; } else { $CUSTINFOminUL = 9; } if ($LOGuser_level < $CUSTINFOminUL) { $CUSTINFOdisplay = 0; } $stmt = "\x53\x45\114\105\103\x54\40\143\x6f\165\x6e\x74\x28\x2a\x29\40\x66\162\x6f\155\40\x76\x69\x63\x69\x64\x69\141\x6c\x5f\143\x61\x6d\160\x61\x69\x67\x6e\x73\x20\x77\x68\x65\x72\x65\40\143\141\155\x70\141\151\147\156\x5f\151\144\40\41\75\x20\x27\x70\151\x78\151\163\47\40\141\156\x64\x20\141\x63\164\151\x76\145\x3d\x27\x59\x27\x20\x61\156\144\40\143\141\155\160\x61\x69\x67\156\137\141\154\x6c\x6f\167\x5f\x69\x6e\142\157\x75\156\144\x3d\47\131\x27\40{$group_SQLand}\73"; $rslt = mysql_to_mysqli($stmt, $link); $row = mysqli_fetch_row($rslt); $campaign_allow_inbound = $row[0]; if ($group) { $multi_drop = 0; $stmt = "\123\x45\x4c\105\103\124\40\147\x72\157\x75\x70\137\x69\144\x20\146\162\157\x6d\40\166\x69\x63\151\144\151\141\154\x5f\x69\156\x62\157\165\x6e\x64\x5f\x67\x72\x6f\x75\160\x73\73"; $rslt = mysql_to_mysqli($stmt, $link); $ingroups_to_print = mysqli_num_rows($rslt); $c = 0; while ($ingroups_to_print > $c) { $row = mysqli_fetch_row($rslt); $ALLcloser_campaignsSQL .= "\47{$row["\60"]}\47\54"; $c++; } $ALLcloser_campaignsSQL = preg_replace("\57\54\44\57", '', $ALLcloser_campaignsSQL); if (strlen($ALLcloser_campaignsSQL) < 2) { $ALLcloser_campaignsSQL = "\x27\47"; } if ($DB > 0) { echo "\12\174{$ALLcloser_campaignsSQL}\x7c{$stmt}\x7c\12"; } if ((preg_match("\57\x59\x2f", $with_inbound) or preg_match("\57\117\x2f", $with_inbound)) and $campaign_allow_inbound > 0) { $closer_campaignsSQL = ''; $stmt = "\123\105\114\105\103\124\40\x63\154\157\x73\145\x72\x5f\143\x61\155\x70\x61\151\x67\x6e\x73\x20\146\162\157\x6d\x20\x76\x69\x63\151\144\x69\x61\x6c\x5f\143\141\x6d\160\x61\151\x67\156\163\x20\x77\x68\145\162\145\40\143\x61\155\x70\141\x69\x67\156\137\x69\x64\x20\41\75\40\47\160\151\170\151\163\47\40\x61\x6e\144\40\x61\143\164\151\166\145\x3d\47\131\x27\40{$group_SQLand}\73"; $rslt = mysql_to_mysqli($stmt, $link); $ccamps_to_print = mysqli_num_rows($rslt); $c = 0; while ($ccamps_to_print > $c) { $row = mysqli_fetch_row($rslt); $closer_campaigns = $row[0]; $closer_campaigns_STRING = preg_replace("\x2f\136\40\174\40\x2d\x24\57", '', $closer_campaigns); $closer_campaigns = preg_replace("\x2f\x20\57", "\x27\x2c\x27", $closer_campaigns_STRING); $closer_campaignsSQL .= "\x27{$closer_campaigns}\x27\x2c"; $c++; } $filter_closer_campaigns_STRING = ''; if (!in_array("\x41\x4c\x4c\55\111\116\107\x52\x4f\125\x50\x53", $ingroup_filter)) { $filter_closer_campaigns = ''; for ($q = 0; $q < count($ingroup_filter); $q++) { if (preg_match("\x2f\134\x27{$ingroup_filter[$q]}\134\x27\x2f", $closer_campaignsSQL)) { $filter_closer_campaigns .= "\47{$ingroup_filter[$q]}\x27\x2c"; if ($q < 1) { $filter_closer_campaigns_STRING .= "\40"; } $filter_closer_campaigns_STRING .= "{$ingroup_filter[$q]}\40"; } } $closer_campaignsSQL = $filter_closer_campaigns; } $closer_campaignsSQL = preg_replace("\x2f\54\x24\x2f", '', $closer_campaignsSQL); } if (strlen($closer_campaignsSQL) < 2) { $closer_campaignsSQL = "\47\47"; } $answersSQL = "\163\165\x6d\50\x61\x6e\x73\167\x65\162\163\137\x74\157\144\x61\x79\x29"; $answers_singleSQL = "\141\x6e\x73\167\x65\x72\163\x5f\x74\157\144\x61\171"; $answers_text = _QXZ("\x41\x4e\x53\x57\105\x52\105\x44"); $ALLINGROUPstats = 1; if ($ALLINGROUPstats > 0 or preg_match("\x2f\117\57", $with_inbound)) { $stmtB = "\x53\105\x4c\x45\x43\124\40\x63\x61\x6d\x70\x61\151\x67\156\137\151\144\x20\x66\x72\x6f\x6d\x20\x76\151\x63\151\144\151\x61\154\137\143\x61\155\x70\141\151\x67\156\137\x73\164\141\164\163\40\167\x68\145\162\x65\x20\x63\141\x6d\x70\141\151\x67\x6e\x5f\x69\144\x20\111\116\x20\x28{$closer_campaignsSQL}\51\40\157\x72\144\x65\162\40\142\171\x20\143\141\155\160\x61\x69\147\156\137\151\144\x3b"; $r = 0; $rslt = mysql_to_mysqli($stmtB, $link); $ingroups_to_print = mysqli_num_rows($rslt); while ($ingroups_to_print > $r) { $row = mysqli_fetch_row($rslt); $ARYingroupdetail[$r] = $row[0]; $r++; } $r = 0; $drpctTODAYPP = 0; $dropsTODAYPP = 0; $answersTODAY = 0; while ($ingroups_to_print > $r) { $stmtB = "\x53\105\114\x45\103\124\40\143\141\x6c\x6c\163\137\164\x6f\x64\x61\171\x2c\144\x72\x6f\x70\163\x5f\164\x6f\144\x61\x79\54{$answers_singleSQL}\x2c\x73\x74\141\x74\165\163\137\143\141\164\x65\x67\157\162\171\x5f\x31\54\x73\x74\141\164\165\x73\x5f\143\x61\x74\x65\x67\157\x72\171\x5f\x63\157\x75\x6e\x74\137\61\x2c\x73\164\141\x74\165\x73\x5f\x63\x61\x74\145\x67\x6f\162\171\x5f\x32\54\x73\x74\x61\164\165\163\x5f\143\141\164\145\147\157\x72\x79\x5f\143\157\165\x6e\164\137\62\54\x73\164\x61\164\x75\x73\x5f\x63\x61\164\145\147\x6f\162\171\x5f\63\x2c\x73\164\x61\164\165\x73\x5f\x63\x61\164\x65\x67\x6f\162\x79\137\x63\157\x75\156\x74\137\x33\54\163\164\141\x74\x75\x73\137\x63\x61\x74\145\147\157\x72\171\x5f\64\x2c\x73\164\141\x74\165\x73\x5f\143\141\x74\x65\147\x6f\162\171\x5f\143\x6f\x75\x6e\164\x5f\x34\54\x68\x6f\x6c\144\137\163\x65\143\137\x73\x74\141\x74\x5f\157\156\145\x2c\150\157\x6c\x64\x5f\163\x65\143\x5f\163\x74\141\x74\x5f\x74\x77\x6f\x2c\150\157\154\144\137\x73\x65\143\x5f\141\x6e\x73\x77\x65\x72\137\143\x61\x6c\154\x73\54\150\157\154\x64\137\163\145\143\x5f\144\162\157\x70\137\x63\141\154\x6c\x73\x2c\x68\x6f\154\x64\x5f\163\145\x63\x5f\x71\165\x65\165\x65\137\143\x61\154\154\163\54\x63\x61\155\x70\x61\151\x67\156\x5f\151\x64\40\x66\162\157\x6d\40\x76\151\143\x69\144\151\x61\x6c\x5f\x63\141\x6d\x70\x61\x69\x67\156\137\163\x74\x61\164\163\x20\x77\x68\x65\162\145\40\143\x61\x6d\160\x61\151\x67\x6e\137\151\144\75\x27{$ARYingroupdetail[$r]}\47\x3b"; $rslt = mysql_to_mysqli($stmtB, $link); $ingroup_to_print = mysqli_num_rows($rslt); if ($ingroup_to_print > 0) { $row = mysqli_fetch_row($rslt); $callsTODAY = $row[0]; $dropsTODAY = $row[1]; $answersTODAY = $row[2]; $VSCcat1 = $row[3]; $VSCcat1tally = $row[4]; $VSCcat2 = $row[5]; $VSCcat2tally = $row[6]; $VSCcat3 = $row[7]; $VSCcat3tally = $row[8]; $VSCcat4 = $row[9]; $VSCcat4tally = $row[10]; $hold_sec_stat_one = $row[11]; $hold_sec_stat_two = $row[12]; $hold_sec_answer_calls = $row[13]; $hold_sec_drop_calls = $row[14]; $hold_sec_queue_calls = $row[15]; $ingroupdetail = $row[16]; } $drpctTODAY = MathZDC($dropsTODAY, $answersTODAY) * 100; $drpctTODAY = round($drpctTODAY, 2); $drpctTODAY = sprintf("\45\60\61\x2e\x32\146", $drpctTODAY); $AVGhold_sec_queue_calls = MathZDC($hold_sec_queue_calls, $callsTODAY); $AVGhold_sec_queue_calls = round($AVGhold_sec_queue_calls, 0); $AVGhold_sec_drop_calls = MathZDC($hold_sec_drop_calls, $dropsTODAY); $AVGhold_sec_drop_calls = round($AVGhold_sec_drop_calls, 0); $PCThold_sec_stat_one = MathZDC($hold_sec_stat_one, $answersTODAY) * 100; $PCThold_sec_stat_one = round($PCThold_sec_stat_one, 2); $PCThold_sec_stat_one = sprintf("\45\60\61\56\x32\146", $PCThold_sec_stat_one); $PCThold_sec_stat_two = MathZDC($hold_sec_stat_two, $answersTODAY) * 100; $PCThold_sec_stat_two = round($PCThold_sec_stat_two, 2); $PCThold_sec_stat_two = sprintf("\45\60\x31\x2e\x32\x66", $PCThold_sec_stat_two); $AVGhold_sec_answer_calls = MathZDC($hold_sec_answer_calls, $answersTODAY); $AVGhold_sec_answer_calls = round($AVGhold_sec_answer_calls, 0); $AVG_ANSWERagent_non_pause_sec = MathZDC($answersTODAY, 0) * 60; $AVG_ANSWERagent_non_pause_sec = round($AVG_ANSWERagent_non_pause_sec, 2); $AVG_ANSWERagent_non_pause_sec = sprintf("\45\60\x31\56\x32\x66", $AVG_ANSWERagent_non_pause_sec); $Dicbq_stmt = "\x53\105\x4c\x45\103\124\40\x63\x6f\165\x6e\164\x28\x2a\51\40\x66\x72\157\155\40\166\151\x63\x69\x64\151\141\x6c\137\x69\156\x62\157\165\156\144\137\143\x61\154\154\x62\141\x63\x6b\137\x71\x75\x65\x75\x65\40\x77\x68\145\x72\x65\40\151\x63\x62\x71\137\x73\164\x61\164\165\163\x3d\47\114\x49\126\105\x27\x20\141\156\x64\x20\x67\x72\x6f\x75\160\x5f\x69\144\75\47{$ARYingroupdetail[$r]}\47\x3b"; $Dicbq_rslt = mysql_to_mysqli($Dicbq_stmt, $link); $Dicbq_ct = mysqli_num_rows($Dicbq_rslt); $Dicbq_live = 0; if ($Dicbq_ct > 0) { $Dicbq_ARY = mysqli_fetch_row($Dicbq_rslt); if ($Dicbq_ARY[0] > 0) { $Dicbq_live = $Dicbq_ARY[0]; } } $drpctTODAYPP += $drpctTODAY; $dropsTODAYPP += $dropsTODAY; $answersTODAYPP += $answersTODAY; $r++; } if ($ingroups_to_print > 0) { $callsTODAY = $dropsTODAYPP + $answersTODAYPP; if ($callsTODAY > 0) { $traiteP = floor($answersTODAYPP * 100 / $callsTODAY); $drpctTODAYPP = 100 - $traiteP; } else { $traiteP = 0; $drpctTODAYPP = 0; } $ingroup_detail = "\74\144\x69\166\40\x63\154\141\x73\x73\x3d\x22\162\x6f\x77\x22\76\xa\x20\x20\x20\x20\x20\40\x20\x20\40\x20\40\40\40\40\40\40\x20\40\40\40\x3c\x64\x69\x76\x20\143\x6c\x61\x73\x73\x3d\x22\x63\x6f\x6c\x2d\170\x73\x2d\x31\62\x20\x63\x6f\154\55\x6d\144\55\61\x32\x22\76\12\40\x20\40\40\x20\x20\x20\x20\40\x20\x20\40\x20\x20\40\x20\40\x20\x20\x20\40\x20\x20\40\x3c\x64\x69\166\x20\143\x6c\141\x73\x73\x3d\42\151\x62\157\170\x2d\x74\x69\164\x6c\x65\42\40\163\164\171\154\x65\75\42\x70\141\144\x64\151\x6e\147\72\x20\x31\60\x70\x78\x20\60\40\60\x20\60\73\155\x61\162\x67\151\x6e\72\62\x30\160\x78\40\55\61\65\160\170\73\150\x65\151\x67\x68\164\72\x20\x30\x3b\42\x3e\12\40\40\x20\x20\40\x20\x20\x20\40\40\x20\40\40\x20\x20\40\x20\40\40\40\40\40\40\40\40\40\x20\40\x3c\x64\151\166\40\x63\x6c\x61\163\163\75\42\x70\x75\154\154\x2d\154\x65\146\x74\x22\76\x3c\150\x35\40\x73\164\171\x6c\x65\75\42\x63\x6f\x6c\157\x72\x3a\40\x23\x31\61\71\61\x32\x35\x3b\42\76\x54\x72\141\x66\151\143\40\145\156\164\162\141\156\x74\x3c\57\150\x35\x3e\x3c\x2f\x64\151\166\x3e\xa\40\x20\x20\40\40\x20\x20\40\40\40\40\40\x20\x20\40\40\40\40\x20\x20\40\x20\40\40\x3c\x2f\x64\x69\x76\x3e\xa\x20\40\40\x20\x20\40\40\40\x20\x20\x20\x20\40\x20\40\x20\x20\x20\x20\x20\x3c\x2f\144\x69\x76\x3e\xa\40\40\40\40\40\x20\x20\x20\40\x20\40\40\x20\x20\x20\40\x20\x20\x20\40\x3c\x64\x69\166\40\x63\x6c\x61\x73\x73\x3d\x22\x63\157\x6c\x2d\x6d\x64\55\61\x32\40\141\x67\145\156\x74\163\55\143\157\x75\x6e\164\55\x73\x74\x61\x74\x75\x73\x22\x3e\xa\x20\40\40\x20\x20\40\x20\40\x20\x20\40\40\x20\x20\x20\40\40\40\40\40\40\x20\40\x20\x3c\x73\x70\141\156\40\143\x6c\x61\x73\x73\x3d\42\x73\x74\x61\164\x75\163\x2d\x74\145\x78\164\x22\76\101\x70\160\145\x6c\x73\x20\162\x65\xc3\xa7\x75\163\x3c\57\163\160\141\x6e\76\xa\x20\40\40\40\x20\x20\40\x20\x20\x20\40\x20\40\x20\40\40\x20\x20\40\x20\40\40\x20\x20\74\144\151\166\40\143\154\141\163\163\75\x22\160\165\154\x6c\55\x72\x69\x67\x68\164\x22\x3e\74\x73\x70\x61\x6e\x20\x63\154\141\x73\163\75\x22\x62\x61\144\147\x65\40\x73\x74\x61\x74\x75\x73\x2d\143\157\155\x22\76" . $callsTODAY . "\74\57\163\x70\141\x6e\x3e\74\57\144\151\x76\x3e\12\x20\40\40\x20\40\40\x20\x20\40\x20\40\40\40\x20\x20\x20\40\40\x20\x20\x20\40\x20\40\x3c\x64\151\166\40\x63\x6c\141\163\163\75\x22\142\x6f\x72\x64\x65\162\x65\x64\40\x73\x74\x61\x74\x75\163\55\x63\157\x6d\x22\x3e\74\x2f\x64\x69\x76\x3e\xa\40\x20\x20\x20\x20\40\x20\x20\x20\40\40\40\x20\x20\x20\40\40\x20\40\x20\x3c\x2f\144\x69\166\76\xa\xa\x20\40\x20\x20\40\40\x20\40\x20\40\40\x20\40\40\40\x20\40\40\40\40\74\x64\151\x76\x20\143\154\141\163\163\x3d\x22\x63\x6f\x6c\x2d\155\144\55\61\62\40\141\147\x65\x6e\x74\163\55\143\157\x75\x6e\x74\55\x73\164\x61\164\x75\x73\42\x3e\xa\x20\40\x20\40\40\x20\x20\x20\40\40\40\x20\x20\40\40\40\x20\x20\x20\40\40\x20\x20\40\74\x73\x70\141\156\x20\143\x6c\141\163\x73\75\42\x73\x74\141\x74\165\163\x2d\164\145\170\164\x22\x3e\x41\160\160\145\154\x73\40\164\x72\141\151\164\xc3\xa9\x73\40\50" . $answersTODAYPP . "\51\74\57\x73\x70\141\156\76\xa\x20\40\x20\40\x20\40\x20\x20\40\40\40\40\x20\x20\40\40\40\40\40\x20\x20\40\40\x20\74\144\151\x76\40\x63\x6c\141\163\163\x3d\x22\160\x75\154\x6c\55\x72\151\x67\150\x74\42\76\74\x73\160\x61\156\40\x63\154\x61\x73\163\x3d\42\x62\141\144\x67\x65\40\163\x74\141\164\x75\x73\55\x61\x70\x70\x65\154\x22\76" . $traiteP . "\45\x3c\57\x73\x70\x61\x6e\76\x3c\x2f\144\151\x76\76\xa\x20\x20\x20\40\x20\x20\x20\40\40\40\40\x20\x20\x20\x20\40\x20\x20\x20\x20\x20\40\40\x20\74\144\x69\x76\40\x63\154\141\163\x73\x3d\x22\142\157\x72\144\145\162\x65\x64\x20\x73\x74\141\x74\x75\163\55\x61\160\x70\145\x6c\x22\x3e\x3c\57\x64\151\166\76\12\40\40\x20\x20\x20\x20\40\x20\40\x20\x20\40\40\x20\x20\x20\40\x20\x20\40\x3c\57\144\151\x76\76\xa\12\x20\40\x20\40\40\x20\x20\40\40\40\40\40\40\x20\x20\40\40\40\40\40\x3c\144\151\166\x20\143\x6c\141\163\x73\75\x22\x63\157\154\55\x6d\x64\55\x31\62\x20\141\147\145\x6e\x74\163\x2d\143\157\165\x6e\x74\x2d\163\x74\x61\x74\165\x73\42\x3e\12\40\40\x20\40\40\40\x20\40\40\x20\x20\x20\x20\40\40\40\x20\x20\x20\x20\x20\40\x20\40\x3c\x73\x70\141\x6e\40\x63\154\141\163\x73\75\42\x73\x74\x61\164\x75\163\x2d\164\x65\170\x74\x22\76\101\x62\141\x6e\144\157\156\163\40\50" . floor($dropsTODAYPP) . "\x29\74\x2f\163\x70\141\156\76\xa\x20\x20\40\x20\40\40\x20\x20\x20\40\x20\x20\x20\x20\x20\x20\40\40\x20\40\40\x20\40\40\x3c\144\151\166\40\143\x6c\141\x73\x73\x3d\x22\x70\165\x6c\154\x2d\162\151\147\x68\164\x22\x3e\74\163\160\x61\x6e\40\143\154\x61\163\x73\x3d\42\142\141\144\x67\145\40\163\164\x61\x74\x75\163\x2d\141\142\x61\x6e\42\x3e" . $drpctTODAYPP . "\45\x3c\57\163\x70\x61\156\76\x3c\x2f\x64\151\x76\x3e\xa\x20\x20\40\x20\x20\x20\40\40\40\40\40\40\x20\x20\40\x20\40\40\x20\x20\40\x20\40\x20\x3c\x64\151\166\40\x63\x6c\141\x73\x73\x3d\x22\142\157\162\x64\145\x72\x65\144\x20\163\164\141\164\x75\x73\x2d\x61\142\141\x6e\42\76\74\57\x64\x69\x76\x3e\12\x20\40\x20\40\40\x20\x20\40\40\40\40\x20\x20\x20\x20\40\x20\x20\x20\40\x3c\57\x64\151\x76\x3e\12\x20\x20\40\40\40\x20\x20\40\x20\x20\40\x20\40\40\40\x20\74\x2f\144\151\x76\x3e"; } } } if (preg_match("\57\x41\114\x4c\x5c\55\101\x43\124\111\x56\105\x2f\151", $group_string)) { $non_inboundSQL = ''; if (preg_match("\57\116\57", $with_inbound)) { $non_inboundSQL = "\x61\x6e\144\x20\143\141\155\160\x61\x69\147\x6e\137\151\x64\40\x4e\117\124\x20\x49\x4e\x28{$ALLcloser_campaignsSQL}\51"; } else { $non_inboundSQL = "\141\x6e\x64\40\x63\x61\x6d\x70\141\x69\x67\x6e\137\151\x64\x20\111\x4e\50{$group_SQL}\54{$closer_campaignsSQL}\51"; } $multi_drop++; $stmt = "\x53\105\x4c\105\x43\124\x20\x61\x76\147\50\141\165\x74\x6f\137\144\x69\141\x6c\137\x6c\x65\166\x65\x6c\51\x2c\x6d\151\156\x28\144\151\141\154\137\163\x74\x61\x74\x75\x73\137\141\51\x2c\x6d\x69\x6e\50\144\151\x61\x6c\137\163\164\141\x74\165\x73\137\x62\x29\54\155\x69\x6e\x28\x64\151\141\154\x5f\x73\164\141\164\165\163\x5f\x63\51\54\x6d\151\156\50\x64\151\x61\154\137\163\x74\x61\164\x75\x73\x5f\x64\x29\x2c\155\151\156\50\144\x69\x61\154\x5f\x73\x74\141\x74\x75\163\137\x65\51\x2c\x6d\151\156\x28\154\x65\x61\144\x5f\157\162\144\145\162\51\54\155\x69\156\x28\154\x65\x61\144\x5f\x66\151\154\164\145\x72\x5f\x69\x64\x29\54\163\165\x6d\x28\150\157\160\160\145\x72\137\154\x65\x76\x65\x6c\51\54\x6d\x69\x6e\x28\x64\x69\x61\154\x5f\x6d\145\164\x68\157\x64\51\x2c\141\166\x67\x28\x61\x64\x61\160\164\x69\166\x65\x5f\x6d\x61\x78\151\155\165\155\137\x6c\145\x76\145\x6c\51\x2c\141\166\147\50\141\x64\x61\160\164\x69\166\145\x5f\x64\x72\157\x70\160\x65\x64\x5f\x70\x65\162\143\145\156\164\x61\x67\x65\x29\54\x61\x76\x67\50\x61\x64\141\x70\164\x69\166\x65\137\144\154\137\x64\x69\x66\146\x5f\x74\x61\162\x67\x65\164\x29\x2c\x61\x76\147\x28\141\x64\x61\x70\x74\151\x76\145\x5f\x69\x6e\164\145\156\163\151\164\x79\x29\x2c\x6d\151\x6e\x28\x61\166\141\x69\x6c\x61\142\154\145\137\x6f\x6e\154\171\x5f\x72\141\164\151\157\x5f\164\x61\x6c\x6c\x79\x29\x2c\x6d\151\156\50\x61\x64\x61\160\164\x69\x76\145\137\154\141\x74\145\163\x74\x5f\163\x65\162\x76\x65\162\137\164\151\x6d\145\51\x2c\x6d\x69\x6e\50\154\157\143\141\154\137\x63\141\154\154\x5f\164\x69\155\x65\51\54\141\x76\147\x28\144\151\141\x6c\x5f\x74\x69\155\145\157\x75\x74\51\x2c\x6d\151\156\50\144\x69\141\154\137\x73\164\x61\164\x75\x73\x65\x73\51\54\155\x61\x78\x28\x61\x67\x65\156\x74\137\160\141\x75\163\x65\137\143\157\x64\145\163\x5f\141\143\164\151\x76\145\x29\x2c\155\141\x78\50\154\x69\x73\x74\137\157\162\x64\145\162\137\155\151\170\51\54\x6d\x61\x78\x28\x61\x75\x74\x6f\137\x68\157\160\x70\145\x72\137\154\x65\x76\x65\x6c\51\x2c\155\141\x78\x28\x6f\146\x63\x6f\x6d\137\165\x6b\137\144\x72\157\x70\137\143\x61\154\143\51\40\x66\162\157\x6d\40\x76\x69\x63\151\144\x69\141\x6c\x5f\143\x61\x6d\x70\141\x69\147\x6e\x73\40\127\x48\x45\x52\105\x20\x63\141\x6d\x70\141\x69\147\x6e\137\x69\144\x20\41\x3d\x20\47\160\151\170\x69\x73\x27\40\141\156\144\x20\141\143\x74\151\166\x65\x3d\47\131\x27\40{$group_SQLand}\73"; $stmtB = "\123\105\x4c\105\x43\124\x20\163\165\x6d\x28\144\151\141\154\x61\x62\154\145\x5f\154\145\x61\x64\x73\51\x2c\x73\x75\155\x28\x63\141\154\x6c\x73\137\164\x6f\x64\x61\171\x29\54\163\x75\155\x28\x64\x72\x6f\x70\163\x5f\164\157\x64\141\171\51\x2c\x61\x76\x67\x28\x64\x72\157\x70\x73\x5f\x61\156\163\x77\x65\162\x73\x5f\x74\157\144\x61\171\137\x70\x63\x74\x29\x2c\141\x76\147\x28\144\x69\146\146\x65\x72\x65\156\x74\151\x61\154\x5f\157\156\145\x6d\151\156\51\54\x61\x76\147\50\141\147\145\x6e\x74\x73\137\x61\166\145\x72\141\147\x65\137\x6f\156\x65\155\151\156\51\x2c\x73\x75\155\50\x62\x61\154\x61\156\143\145\x5f\164\x72\x75\x6e\x6b\x5f\146\x69\x6c\154\51\54{$answersSQL}\x2c\155\x61\x78\50\163\164\141\x74\x75\x73\x5f\143\141\164\x65\147\157\162\x79\x5f\61\x29\x2c\x73\165\x6d\50\163\x74\x61\x74\165\x73\137\143\x61\164\x65\147\x6f\162\171\x5f\143\157\165\156\164\137\x31\x29\54\x6d\x61\x78\50\163\164\x61\164\165\x73\137\x63\x61\164\x65\x67\x6f\x72\171\x5f\62\51\54\x73\x75\155\x28\x73\164\x61\164\x75\x73\x5f\143\x61\164\x65\147\157\x72\171\137\143\157\165\156\x74\137\x32\x29\x2c\x6d\141\170\x28\163\x74\x61\164\165\x73\x5f\143\141\x74\145\147\157\162\x79\137\x33\x29\54\163\x75\x6d\x28\x73\164\x61\x74\165\163\137\143\x61\x74\x65\147\157\x72\171\x5f\x63\x6f\165\156\164\x5f\63\x29\x2c\155\x61\170\50\163\x74\141\x74\x75\163\x5f\x63\x61\x74\x65\147\x6f\162\171\x5f\x34\x29\54\163\x75\x6d\50\163\164\x61\164\x75\163\x5f\143\141\x74\145\x67\x6f\x72\x79\137\x63\x6f\165\x6e\164\x5f\64\x29\x2c\163\165\155\50\141\147\145\156\x74\x5f\143\141\154\x6c\x73\137\x74\157\144\141\x79\51\x2c\x73\x75\155\x28\x61\147\x65\156\164\137\167\x61\x69\164\137\x74\157\144\x61\x79\51\54\x73\165\155\50\x61\147\145\x6e\x74\137\x63\165\x73\164\164\x61\x6c\x6b\x5f\x74\157\x64\141\x79\51\x2c\163\165\x6d\50\141\147\145\x6e\164\x5f\x61\143\167\137\x74\157\x64\141\171\x29\54\x73\x75\155\x28\x61\x67\x65\x6e\164\137\x70\x61\165\x73\x65\137\164\x6f\144\141\171\x29\x2c\x73\165\155\50\x61\x67\x65\x6e\x74\150\x61\156\x64\154\x65\144\x5f\164\157\x64\x61\171\x29\54\x73\165\x6d\x28\160\141\162\153\x5f\143\x61\x6c\x6c\163\137\164\x6f\144\141\171\51\54\163\165\x6d\50\x70\141\x72\153\137\x73\x65\143\137\164\x6f\x64\x61\171\x29\40\x66\162\157\x6d\40\x76\x69\143\151\x64\x69\x61\x6c\x5f\143\x61\155\x70\x61\151\x67\x6e\x5f\x73\x74\141\x74\x73\x20\x77\150\145\x72\145\40\143\141\x6c\x6c\x73\x5f\164\157\x64\141\171\x20\x3e\x20\x2d\x31\40{$non_inboundSQL}\73"; $stmtC = "\x53\105\x4c\105\103\124\x20\x63\157\x75\x6e\x74\50\x2a\x29\40\146\162\x6f\x6d\40\x76\x69\143\151\144\x69\x61\x6c\137\143\141\x6d\x70\x61\151\147\x6e\163\x20\x57\110\x45\x52\105\x20\143\141\155\x70\x61\151\x67\x6e\x5f\x69\x64\x20\x21\75\x20\47\x70\x69\x78\x69\163\x27\x20\x61\156\144\x20\141\147\145\156\164\x5f\x70\141\165\163\145\137\143\x6f\x64\145\x73\137\x61\x63\164\x69\166\145\x21\x3d\47\x4e\x27\40\x61\x6e\x64\x20\x61\x63\x74\x69\166\145\x3d\x27\x59\x27\x20{$group_SQLand}\x3b"; } else { if (preg_match("\x2f\131\57", $with_inbound) and $campaign_allow_inbound > 0) { $multi_drop++; $stmt = "\123\105\x4c\x45\x43\x54\40\141\165\164\x6f\137\144\151\141\154\x5f\x6c\x65\x76\145\154\x2c\x64\x69\141\x6c\x5f\163\x74\x61\x74\x75\x73\137\141\54\x64\x69\x61\154\137\163\x74\141\x74\165\x73\x5f\x62\x2c\x64\151\x61\x6c\137\163\x74\141\164\x75\x73\137\143\54\144\x69\141\154\x5f\x73\164\x61\164\165\x73\137\144\54\x64\x69\141\x6c\x5f\163\x74\x61\164\x75\163\137\x65\54\154\x65\x61\x64\x5f\157\162\x64\145\x72\54\154\x65\x61\x64\x5f\x66\151\154\x74\145\x72\137\151\144\x2c\x68\x6f\x70\x70\145\162\x5f\x6c\145\x76\145\x6c\x2c\x64\x69\141\x6c\x5f\155\145\x74\150\x6f\144\54\141\x64\x61\x70\164\x69\x76\x65\137\155\141\170\151\x6d\165\x6d\137\154\x65\x76\x65\x6c\54\x61\x64\x61\x70\x74\151\x76\x65\137\144\162\157\160\160\x65\x64\137\x70\x65\x72\x63\145\x6e\x74\x61\x67\145\x2c\x61\144\x61\160\164\x69\166\145\137\144\154\137\x64\x69\x66\146\x5f\x74\x61\x72\x67\145\x74\x2c\141\x64\141\160\164\x69\x76\145\137\x69\156\164\145\x6e\163\x69\164\x79\54\141\x76\x61\151\x6c\141\x62\154\x65\137\157\x6e\154\171\137\162\x61\x74\151\x6f\x5f\x74\141\x6c\154\x79\54\x61\144\141\x70\164\x69\x76\145\x5f\x6c\x61\164\x65\x73\164\x5f\x73\x65\x72\166\145\x72\137\x74\151\155\145\x2c\154\x6f\x63\141\154\137\x63\141\x6c\x6c\137\x74\x69\x6d\145\x2c\144\x69\x61\x6c\137\164\x69\155\145\157\x75\164\54\144\x69\141\x6c\x5f\163\x74\x61\x74\165\163\x65\163\54\141\147\x65\156\x74\x5f\x70\141\165\x73\x65\137\143\157\144\145\x73\x5f\141\143\164\151\x76\x65\x2c\x6c\x69\163\164\137\157\x72\x64\145\162\137\x6d\151\x78\54\141\x75\164\157\137\150\157\x70\160\x65\x72\137\x6c\145\x76\145\154\x2c\x6f\x66\x63\x6f\155\137\x75\153\x5f\x64\162\157\160\137\x63\141\154\x63\x20\x66\162\157\155\40\x76\151\143\x69\x64\151\141\154\137\143\x61\x6d\x70\x61\x69\147\156\x73\40\x57\x48\x45\x52\x45\40\x63\x61\x6d\160\x61\151\147\156\137\x69\x64\x20\x21\x3d\x20\47\160\151\x78\151\163\47\x20\141\156\x64\40\x63\141\x6d\160\x61\x69\147\156\x5f\x69\144\x20\x49\116\x20\x28{$group_SQL}\x2c{$closer_campaignsSQL}\x29\73"; $stmtB = "\123\105\114\x45\x43\124\x20\163\x75\155\x28\144\151\141\154\x61\142\154\x65\137\x6c\x65\x61\144\x73\51\54\163\x75\x6d\x28\143\x61\x6c\154\x73\x5f\x74\x6f\144\141\x79\51\54\x73\165\x6d\x28\x64\x72\157\160\x73\x5f\164\x6f\144\141\x79\x29\x2c\x61\166\x67\50\144\162\x6f\160\x73\137\x61\x6e\x73\167\x65\162\163\x5f\164\157\144\141\x79\137\160\x63\164\x29\54\141\166\x67\50\144\151\x66\146\x65\162\x65\x6e\164\x69\141\x6c\137\x6f\x6e\145\155\x69\156\51\54\141\x76\147\x28\x61\147\x65\x6e\x74\163\x5f\x61\166\x65\x72\141\x67\145\137\157\156\x65\x6d\151\156\51\x2c\163\x75\x6d\50\x62\x61\x6c\x61\156\x63\145\137\x74\162\165\x6e\x6b\x5f\146\x69\154\x6c\51\x2c{$answersSQL}\x2c\x6d\141\170\50\163\x74\141\164\x75\163\x5f\x63\x61\x74\145\x67\x6f\x72\x79\137\61\51\54\x73\x75\x6d\50\x73\164\x61\164\165\163\137\143\x61\x74\145\147\157\162\171\137\x63\x6f\165\156\x74\x5f\x31\51\x2c\x6d\141\x78\50\163\164\141\x74\x75\163\137\x63\141\x74\145\147\157\162\171\137\x32\x29\x2c\163\165\x6d\50\x73\x74\141\x74\x75\163\137\x63\x61\x74\145\x67\157\x72\171\137\x63\x6f\165\156\x74\x5f\62\51\54\x6d\x61\170\50\x73\164\141\x74\165\163\x5f\x63\141\x74\x65\147\157\162\x79\x5f\x33\x29\54\x73\165\x6d\x28\x73\x74\x61\x74\165\163\137\x63\141\x74\145\147\157\x72\171\137\x63\x6f\165\x6e\164\x5f\63\51\54\155\141\170\x28\163\164\x61\164\x75\163\137\x63\141\x74\145\x67\157\x72\x79\x5f\x34\x29\x2c\x73\165\x6d\50\163\x74\141\x74\165\x73\x5f\x63\141\x74\x65\x67\157\x72\x79\137\143\157\165\x6e\164\137\x34\x29\54\163\165\x6d\50\141\x67\145\x6e\164\137\143\x61\154\x6c\x73\137\x74\157\144\x61\x79\51\x2c\163\165\155\x28\141\x67\x65\x6e\164\x5f\167\141\x69\164\137\164\157\x64\141\171\51\54\163\165\155\x28\141\147\145\x6e\164\137\143\165\x73\164\x74\141\x6c\x6b\137\164\x6f\144\x61\171\51\54\163\x75\x6d\50\141\147\145\x6e\x74\x5f\141\143\x77\137\164\157\x64\141\171\51\x2c\163\165\x6d\x28\x61\x67\145\156\164\x5f\160\141\x75\163\145\137\164\x6f\x64\x61\171\51\x2c\163\x75\x6d\50\x61\x67\x65\x6e\x74\150\141\156\144\154\145\x64\137\164\157\x64\x61\x79\51\x2c\163\x75\155\x28\160\x61\x72\x6b\137\143\x61\x6c\x6c\163\x5f\x74\x6f\x64\141\x79\x29\x2c\163\x75\x6d\x28\160\x61\x72\153\x5f\163\x65\143\137\164\x6f\144\141\x79\51\40\x66\x72\157\x6d\40\x76\x69\143\151\x64\151\x61\x6c\x5f\x63\x61\x6d\x70\x61\x69\147\x6e\137\x73\x74\x61\164\163\x20\x77\150\145\x72\x65\x20\x63\x61\x6d\160\141\x69\x67\156\137\151\x64\40\x49\x4e\x20\x28{$group_SQL}\x2c{$closer_campaignsSQL}\x29\73"; $stmtC = "\x53\105\114\105\103\124\40\x63\157\165\156\164\50\x2a\x29\40\x66\x72\x6f\155\x20\x76\151\143\151\144\x69\141\x6c\x5f\x63\141\155\160\141\151\x67\x6e\163\40\127\x48\x45\122\105\40\143\x61\x6d\160\x61\x69\147\x6e\x5f\151\x64\40\41\x3d\x20\x27\x70\x69\x78\x69\x73\47\x20\141\x6e\144\x20\x61\x67\x65\156\164\137\160\x61\x75\x73\145\137\143\x6f\x64\145\x73\x5f\141\143\x74\151\x76\x65\41\75\47\x4e\x27\40\141\156\x64\40\x61\143\164\x69\166\145\75\47\131\47\x20\x61\x6e\144\x20\143\x61\x6d\x70\x61\x69\147\156\x5f\151\144\40\x49\x4e\40\50{$group_SQL}\x2c{$closer_campaignsSQL}\51\73"; } else { $stmt = "\x53\105\114\x45\x43\124\40\141\x76\x67\50\x61\165\x74\157\x5f\144\x69\141\154\x5f\x6c\145\166\145\x6c\51\54\155\141\x78\50\x64\x69\141\154\137\163\x74\x61\x74\x75\163\137\141\51\54\155\x61\170\50\144\151\x61\154\x5f\163\x74\141\x74\165\x73\x5f\142\x29\x2c\155\141\170\50\144\x69\141\154\137\x73\164\141\x74\x75\x73\137\143\51\54\155\141\170\50\x64\x69\x61\x6c\x5f\x73\x74\x61\164\165\x73\x5f\x64\51\x2c\x6d\141\x78\x28\144\151\141\x6c\x5f\163\164\141\164\x75\x73\x5f\x65\x29\x2c\x6d\141\170\50\x6c\145\141\x64\137\x6f\162\x64\145\162\51\x2c\x6d\x61\170\50\x6c\x65\x61\144\x5f\146\151\154\x74\145\162\x5f\151\x64\x29\x2c\x6d\x61\170\50\x68\x6f\160\x70\145\162\137\x6c\145\166\145\154\51\x2c\x6d\141\170\50\x64\x69\x61\154\137\155\145\x74\150\157\144\x29\x2c\155\141\x78\x28\x61\x64\141\x70\164\x69\x76\x65\137\155\141\x78\151\155\165\x6d\x5f\154\145\166\x65\x6c\51\x2c\141\x76\147\50\141\x64\x61\x70\x74\151\166\x65\x5f\x64\162\x6f\x70\160\x65\144\x5f\160\x65\162\143\x65\x6e\x74\x61\x67\145\x29\54\x61\166\147\x28\141\144\x61\160\164\x69\x76\x65\x5f\144\x6c\137\144\151\146\x66\137\164\141\162\147\x65\x74\x29\x2c\141\x76\147\50\141\144\141\160\x74\x69\x76\x65\137\x69\x6e\x74\145\x6e\163\x69\164\x79\51\54\155\141\170\x28\x61\166\x61\151\154\x61\x62\154\145\x5f\x6f\x6e\x6c\171\137\x72\x61\164\x69\x6f\x5f\x74\141\x6c\x6c\x79\x29\x2c\155\141\170\x28\x61\144\141\x70\164\x69\166\145\137\154\x61\x74\145\x73\164\137\163\145\x72\166\x65\162\x5f\x74\151\155\145\x29\54\155\x61\170\x28\x6c\x6f\x63\141\x6c\137\x63\x61\x6c\154\x5f\164\x69\155\x65\x29\x2c\x6d\x61\x78\50\144\x69\141\x6c\x5f\x74\x69\x6d\x65\x6f\x75\x74\51\54\x6d\141\170\x28\x64\151\141\154\x5f\163\x74\141\x74\x75\163\x65\x73\51\x2c\155\x61\x78\50\x61\147\145\156\x74\x5f\x70\141\165\x73\x65\137\143\157\x64\x65\x73\137\141\143\164\x69\166\x65\x29\54\x6d\x61\170\x28\x6c\151\163\164\x5f\x6f\x72\144\145\x72\137\x6d\x69\170\51\x2c\x6d\x61\x78\x28\141\165\x74\x6f\137\150\157\x70\160\145\x72\137\x6c\145\166\145\154\51\x2c\x6d\x61\x78\x28\157\146\143\x6f\155\x5f\x75\153\x5f\x64\x72\157\160\x5f\x63\141\x6c\143\51\40\x66\x72\x6f\155\40\166\151\x63\151\x64\151\141\154\137\x63\x61\155\x70\x61\151\x67\156\x73\x20\x57\110\x45\122\105\40\x63\141\x6d\160\x61\x69\147\156\x5f\x69\x64\40\x21\75\x20\47\x70\x69\170\x69\x73\x27\x20\141\x6e\144\x20\x63\141\155\x70\x61\x69\x67\156\137\x69\x64\40\111\116\x28{$group_SQL}\51\x3b"; $stmtB = "\x53\x45\x4c\x45\x43\x54\40\x73\165\x6d\50\144\x69\141\154\141\142\x6c\x65\x5f\154\x65\141\144\163\51\54\x73\165\x6d\x28\x63\141\154\154\163\137\x74\x6f\x64\x61\171\51\54\x73\x75\x6d\x28\x64\162\157\x70\x73\x5f\164\157\144\x61\x79\x29\54\141\166\x67\x28\x64\162\x6f\160\163\137\141\156\x73\x77\x65\162\163\137\164\157\144\x61\171\x5f\x70\143\x74\51\54\x61\x76\147\x28\x64\151\146\x66\145\x72\145\156\164\x69\x61\154\x5f\157\x6e\x65\x6d\151\156\x29\x2c\141\x76\x67\50\141\x67\x65\x6e\x74\163\137\x61\166\x65\x72\141\147\x65\x5f\157\156\x65\x6d\x69\x6e\x29\54\x73\x75\155\x28\x62\141\154\x61\156\143\x65\137\x74\162\165\156\153\137\146\151\154\x6c\51\54{$answersSQL}\54\155\141\x78\50\163\164\x61\x74\165\x73\137\x63\x61\x74\x65\x67\157\162\x79\x5f\61\51\x2c\163\165\x6d\x28\x73\x74\x61\x74\165\x73\137\143\141\164\x65\x67\157\x72\171\137\143\157\x75\156\x74\x5f\x31\x29\54\155\141\170\50\x73\164\x61\x74\165\x73\x5f\143\x61\x74\145\147\x6f\x72\x79\137\62\x29\54\x73\x75\155\50\x73\x74\141\164\x75\163\x5f\143\141\x74\x65\x67\x6f\x72\171\137\x63\x6f\165\x6e\x74\x5f\62\x29\x2c\155\141\x78\50\163\164\141\164\x75\163\x5f\143\x61\164\x65\147\x6f\x72\x79\137\x33\x29\54\163\x75\155\x28\x73\164\x61\x74\165\163\137\x63\141\x74\x65\x67\x6f\162\171\x5f\143\x6f\165\x6e\164\137\63\x29\x2c\155\141\170\50\163\164\141\164\x75\x73\x5f\x63\141\x74\x65\147\157\x72\171\x5f\x34\x29\54\163\165\x6d\x28\x73\164\x61\x74\x75\163\x5f\x63\x61\x74\145\147\157\162\171\x5f\143\157\165\x6e\164\x5f\x34\51\54\163\165\x6d\50\141\147\x65\156\x74\137\x63\141\x6c\154\163\x5f\x74\157\x64\x61\x79\51\x2c\x73\x75\x6d\50\x61\x67\x65\x6e\x74\x5f\167\141\151\x74\137\x74\x6f\144\141\171\x29\x2c\x73\x75\155\x28\141\x67\x65\x6e\164\x5f\143\x75\x73\164\x74\x61\154\x6b\x5f\164\157\144\141\x79\x29\x2c\x73\x75\155\50\x61\147\145\156\164\137\x61\143\167\137\x74\157\x64\x61\x79\51\x2c\x73\165\155\x28\141\x67\x65\x6e\x74\x5f\160\x61\165\163\x65\137\x74\157\x64\141\x79\x29\x2c\163\165\x6d\x28\141\147\145\156\x74\x68\141\156\144\154\x65\x64\x5f\x74\x6f\x64\141\171\x29\x2c\163\165\x6d\50\160\141\x72\153\x5f\143\x61\x6c\x6c\x73\x5f\x74\x6f\x64\x61\x79\51\54\x73\165\x6d\x28\x70\141\x72\153\137\163\145\x63\137\x74\157\x64\x61\171\51\40\146\x72\x6f\155\40\x76\x69\x63\x69\x64\151\x61\x6c\x5f\x63\x61\x6d\x70\x61\151\x67\156\137\163\164\141\164\x73\40\167\x68\145\162\x65\40\143\141\155\160\x61\151\x67\x6e\137\x69\144\40\111\116\x28{$group_SQL}\51\73"; $stmtC = "SELECT count(*) from vicidial_campaigns WHERE campaign_id != 'pixis' and agent_pause_codes_active!='N' and active='Y' and campaign_id IN(".$group_SQL.")"; } } $rslt = mysql_to_mysqli($stmt, $link); $row = mysqli_fetch_row($rslt); $DIALlev = 12; $DIALstatusA = $row[1]; $DIALstatusB = $row[2]; $DIALstatusC = $row[3]; $DIALstatusD = $row[4]; $DIALstatusE = $row[5]; $DIALorder = $row[6]; $DIALfilter = $row[7]; $HOPlev = $row[8]; $DIALmethod = $row[9]; $maxDIALlev = $row[10]; $DROPmax = $row[11]; $targetDIFF = $row[12]; $ADAintense = $row[13]; $ADAavailonly = $row[14]; $TAPERtime = $row[15]; $CALLtime = $row[16]; $DIALtimeout = $row[17]; $DIALstatuses = $row[18]; $DIALmix = $row[20]; $AHOPlev = $row[21]; $UKocDROP = $row[22]; $rslt = mysql_to_mysqli($stmtC, $link); $row = mysqli_fetch_row($rslt); $agent_pause_codes_active = $row[0]; $stmt = "\x53\105\114\x45\103\124\x20\143\157\165\x6e\x74\x28\52\x29\40\x66\162\x6f\155\x20\x76\x69\x63\151\x64\151\141\x6c\137\x68\x6f\x70\160\145\162\x20{$group_SQLwhere}\x3b"; $rslt = mysql_to_mysqli($stmt, $link); $row = mysqli_fetch_row($rslt); $VDhop = $row[0]; $rslt = mysql_to_mysqli($stmtB, $link); $row = mysqli_fetch_row($rslt); $DAleads = $row[0]; $callsTODAY = $row[1]; $dropsTODAY = $row[2]; $drpctTODAY = $row[3]; $diffONEMIN = $row[4]; $agentsONEMIN = $row[5]; $balanceFILL = $row[6]; $answersTODAY = $row[7]; $VSCcat1 = $row[8]; $VSCcat1tally = $row[9]; $VSCcat2 = $row[10]; $VSCcat2tally = $row[11]; $VSCcat3 = $row[12]; $VSCcat3tally = $row[13]; $VSCcat4 = $row[14]; $VSCcat4tally = $row[15]; $VSCagentcalls = $row[16]; $VSCagentwait = $row[17]; $VSCagentcust = $row[18]; $VSCagentacw = $row[19]; $VSCagentpause = $row[20]; $AGNTansTODAY = $row[21]; $PARKcallTODAY = $row[22]; $PARKsecTODAY = $row[23]; if ($multi_drop > 0) { if ($SSofcom_uk_drop_calc > 0 and $UKocDROP == "\x59") { $temp_AGNTansPLUSdrop = $AGNTansTODAY + $dropsTODAY; $drpctTODAY = MathZDC($dropsTODAY, $temp_AGNTansPLUSdrop) * 100; $drpctTODAY = round($drpctTODAY, 2); $drpctTODAY = sprintf("\45\x30\x31\56\x32\x66", $drpctTODAY); } else { $drpctTODAY = MathZDC($dropsTODAY, $answersTODAY) * 100; $drpctTODAY = round($drpctTODAY, 2); $drpctTODAY = sprintf("\45\60\61\56\62\146", $drpctTODAY); } } $diffpctONEMIN = MathZDC($diffONEMIN, $agentsONEMIN) * 100; $diffpctONEMIN = sprintf("\x25\x30\x31\56\62\146", $diffpctONEMIN); $stmt = "\x53\x45\114\105\103\x54\40\163\x75\155\50\154\157\143\141\x6c\137\164\162\x75\x6e\x6b\x5f\163\x68\157\162\164\141\x67\145\51\x20\x66\162\157\155\40\166\151\143\151\x64\x69\x61\154\137\143\x61\155\160\x61\x69\x67\x6e\137\x73\x65\162\166\145\x72\137\x73\x74\x61\x74\x73\40{$group_SQLwhere}\x3b"; $rslt = mysql_to_mysqli($stmt, $link); $row = mysqli_fetch_row($rslt); $balanceSHORT = $row[0]; if (preg_match("\57\104\x49\123\x41\x42\114\x45\x44\57", $DIALmix)) { $DIALstatuses = preg_replace("\x2f\x20\55\x24\x7c\136\x20\57", '', $DIALstatuses); $DIALstatuses = preg_replace("\57\134\163\57", "\x2c\x20", $DIALstatuses); } else { $stmt = "\x53\x45\x4c\x45\103\124\x20\166\143\x6c\x5f\151\x64\x20\x66\162\x6f\155\x20\x76\151\143\151\x64\x69\x61\x6c\x5f\143\141\155\x70\141\151\x67\x6e\x73\137\x6c\x69\x73\x74\137\155\x69\170\x20\x77\150\x65\162\x65\40\x73\x74\x61\x74\165\x73\x3d\47\101\103\x54\x49\126\x45\47\x20{$group_SQLand}\40\x6c\151\x6d\151\x74\x20\x31\x3b"; $rslt = mysql_to_mysqli($stmt, $link); $Lmix_to_print = mysqli_num_rows($rslt); if ($Lmix_to_print > 0) { $row = mysqli_fetch_row($rslt); $DIALstatuses = _QXZ("\114\151\x73\x74\x20\115\x69\x78") . "\72\x20{$row["\x30"]}"; $DIALorder = _QXZ("\x4c\151\163\x74\x20\115\151\170") . "\x3a\40{$row["\x30"]}"; } } $DIALlev =12; $agentsONEMIN = sprintf("\x25\x30\61\x2e\x32\146", $agentsONEMIN); $diffONEMIN = sprintf("\x25\60\x31\x2e\x32\146", $diffONEMIN); if ($campaign_allow_inbound > 0) { if (preg_match("\x2f\101\114\114\x5c\x2d\101\x43\x54\x49\x56\105\57\151", $group_string)) { $stmt = "\123\105\x4c\x45\103\124\40\x63\154\x6f\163\145\162\137\x63\x61\155\x70\141\x69\147\156\163\x20\146\x72\157\x6d\x20\x76\151\x63\x69\144\x69\141\154\137\x63\x61\x6d\160\141\x69\x67\156\163\40\127\x48\x45\x52\x45\x20\x63\141\x6d\160\141\x69\147\156\x5f\x69\144\40\41\75\40\x27\x70\151\x78\x69\x73\x27\40\141\x6e\144\x20\141\143\x74\x69\166\145\75\x27\131\x27\40{$group_SQLand}"; $rslt = mysql_to_mysqli($stmt, $link); $closer_campaigns = ''; while ($row = mysqli_fetch_row($rslt)) { $closer_campaigns .= "{$row["\x30"]}"; } $closer_campaigns = preg_replace("\x2f\136\x20\174\x20\55\44\57", '', $closer_campaigns); $closer_campaigns = preg_replace("\x2f\x20\55\x20\57", "\x20", $closer_campaigns); $closer_campaigns = preg_replace("\57\40\x2f", "\x27\x2c\x27", $closer_campaigns); $closer_campaignsSQL = "\x27{$closer_campaigns}\47"; } if (!in_array("\101\x4c\114\x2d\111\116\x47\122\x4f\x55\120\x53", $ingroup_filter)) { $filter_closer_campaigns = ''; for ($q = 0; $q < count($ingroup_filter); $q++) { if (preg_match("\57\x5c\x27{$ingroup_filter[$q]}\134\47\57", $closer_campaignsSQL)) { $filter_closer_campaigns .= "\47{$ingroup_filter[$q]}\47\x2c"; } } $closer_campaignsSQL = $filter_closer_campaigns; } $closer_campaignsSQL = preg_replace("\x2f\x2c\x24\57", '', $closer_campaignsSQL); $stmtB = "\x66\162\x6f\155\x20\x76\151\x63\x69\x64\151\141\x6c\137\x61\x75\x74\x6f\x5f\143\x61\154\154\x73\40\x77\x68\x65\x72\x65\x20\163\164\x61\x74\x75\x73\40\116\117\x54\x20\x49\x4e\x28\x27\x58\106\x45\122\x27\x29\x20\141\x6e\144\40\50\x20\50\x63\141\x6c\x6c\137\x74\171\x70\x65\x3d\47\111\116\47\x20\x61\156\144\40\143\x61\x6d\160\x61\x69\147\156\x5f\151\144\x20\x49\116\50{$closer_campaignsSQL}\x29\x29\40\157\x72\40\x28\143\141\154\x6c\137\x74\x79\160\x65\x20\111\116\50\47\117\x55\x54\x27\54\47\117\125\124\x42\x41\114\101\116\103\x45\47\51\x20{$group_SQLand}\51\40\x29\x20\x6f\x72\144\x65\162\40\x62\171\40\161\x75\145\165\145\137\160\x72\x69\x6f\x72\151\164\x79\x20\144\145\163\x63\x2c\143\x61\155\160\141\151\x67\x6e\x5f\151\x64\54\143\x61\154\154\137\x74\x69\x6d\x65\73"; } else { $stmtB = "\x66\162\x6f\155\40\x76\151\143\151\144\x69\x61\154\x5f\x61\165\x74\x6f\137\x63\x61\154\154\x73\40\x77\x68\x65\162\x65\x20\163\x74\141\x74\x75\163\x20\x4e\x4f\124\40\111\116\50\x27\x58\x46\105\122\47\51\40{$group_SQLand}\40\x6f\162\x64\145\x72\x20\x62\171\x20\161\165\x65\x75\145\137\160\162\151\x6f\x72\x69\164\171\x20\144\x65\163\x63\x2c\x63\x61\155\160\x61\151\147\x6e\x5f\x69\144\54\x63\141\154\154\137\164\x69\x6d\145\73"; } if ($CALLSdisplay > 0) { $stmtA = "\x53\x45\114\x45\103\x54\x20\x73\164\x61\x74\165\163\x2c\x63\141\x6d\x70\141\x69\x67\x6e\137\151\144\x2c\160\x68\x6f\x6e\x65\x5f\x6e\x75\x6d\142\x65\162\54\x73\145\x72\x76\x65\x72\137\x69\160\54\x55\116\x49\130\x5f\124\111\x4d\x45\x53\124\101\x4d\x50\50\x63\x61\x6c\x6c\137\164\x69\x6d\x65\51\54\143\x61\x6c\154\x5f\164\x79\x70\x65\x2c\x71\x75\x65\x75\x65\x5f\160\162\151\x6f\x72\151\164\171\x2c\x61\x67\x65\156\164\137\x6f\156\154\171"; if ($allow_chats) { $chat_stmtA = "\123\x45\x4c\105\x43\124\40\x76\154\143\x2e\163\164\141\x74\165\163\54\147\x72\157\x75\160\137\151\144\x20\141\163\x20\143\x61\x6d\160\x61\151\147\156\x5f\151\144\x2c\x69\x66\50\154\x65\x6e\147\x74\150\x28\166\x2e\x70\150\x6f\156\x65\137\x6e\165\x6d\142\145\162\51\x3d\60\x20\x6f\x72\40\166\x2e\x70\x68\157\156\145\137\x6e\165\155\142\145\162\40\151\x73\40\x6e\165\x6c\x6c\54\40\166\x2e\x70\150\x6f\156\x65\137\156\x75\155\x62\x65\162\54\40\47\x2a\52\116\x4f\40\x50\110\x4f\116\x45\52\x2a\x27\x29\x20\x61\163\40\160\150\157\156\x65\x5f\156\165\155\x62\x65\x72\x2c\40\x27\47\x20\141\x73\x20\x73\145\x72\x76\x65\162\137\151\x70\54\125\x4e\111\x58\137\124\x49\115\105\x53\x54\101\x4d\x50\50\x63\x68\x61\x74\137\163\164\x61\x72\x74\x5f\x74\151\155\145\51\x2c\40\47\103\x48\x41\124\x27\40\x61\163\40\x63\x61\154\154\137\164\x79\x70\145\54\x20\x27\47\40\141\x73\x20\x71\x75\145\x75\x65\x5f\x70\x72\x69\157\x72\151\x74\171\x2c\x20\x27\x27\x20\141\x73\40\x61\147\x65\156\164\137\x6f\156\x6c\171"; } } else { $stmtA = "\123\x45\114\x45\x43\x54\x20\x73\164\141\x74\165\x73"; if ($allow_chats) { $chat_stmtA = "\123\105\x4c\x45\103\x54\40\166\x6c\143\56\x73\164\141\164\x75\163"; } } $k = 0; $agentonlycount = 0; $out_total = 0; $out_ring = 0; $out_live = 0; $in_ivr = 0; $D_active_calls = 0; $CDstatus = array(); $CDcampaign_id = array(); $CDphone_number = array(); $CDserver_ip = array(); $CDcall_time = array(); $CDcall_type = array(); $CDqueue_priority = array(); $CDagent_only = array(); $stmt = "{$stmtA}\40{$stmtB}"; $rslt = mysql_to_mysqli($stmt, $link); $parked_to_print = mysqli_num_rows($rslt); if ($parked_to_print > 0) { $i = 0; $out_total = 0; $out_ring = 0; $out_live = 0; $in_ivr = 0; while ($i < $parked_to_print) { $row = mysqli_fetch_row($rslt); if ($LOGadmin_hide_phone_data != "\x30") { $phone_temp = $row[2]; if (strlen($phone_temp) > 0) { if ($LOGadmin_hide_phone_data == "\64\137\x44\x49\x47\111\124\x53") { $row[2] = str_repeat("\130", strlen($phone_temp) - 4) . substr($phone_temp, -4, 4); } elseif ($LOGadmin_hide_phone_data == "\x33\137\x44\x49\107\111\124\123") { $row[2] = str_repeat("\130", strlen($phone_temp) - 3) . substr($phone_temp, -3, 3); } elseif ($LOGadmin_hide_phone_data == "\x32\137\104\111\x47\x49\x54\x53") { $row[2] = str_repeat("\130", strlen($phone_temp) - 2) . substr($phone_temp, -2, 2); } else { $row[2] = preg_replace("\57\56\57", "\130", $phone_temp); } } } if (preg_match("\57\x4c\111\126\x45\57\x69", $row[0])) { $out_live++; if ($CALLSdisplay > 0) { $CDstatus[$k] = $row[0]; $CDcampaign_id[$k] = $row[1]; $CDphone_number[$k] = $row[2]; $CDserver_ip[$k] = $row[3]; $CDcall_time[$k] = $row[4]; $CDcall_type[$k] = $row[5]; $CDqueue_priority[$k] = $row[6]; $CDagent_only[$k] = $row[7]; if (strlen($CDagent_only[$k]) > 0) { $agentonlycount++; } $k++; } } else { if (preg_match("\x2f\x49\x56\122\x2f\151", $row[0])) { $in_ivr++; if ($CALLSdisplay > 0) { $CDstatus[$k] = $row[0]; $CDcampaign_id[$k] = $row[1]; $CDphone_number[$k] = $row[2]; $CDserver_ip[$k] = $row[3]; $CDcall_time[$k] = $row[4]; $CDcall_type[$k] = $row[5]; $CDqueue_priority[$k] = $row[6]; $CDagent_only[$k] = $row[7]; if (strlen($CDagent_only[$k]) > 0) { $agentonlycount++; } $k++; } } if (preg_match("\x2f\103\114\117\x53\105\122\x2f\151", $row[0])) { $nothing = 1; } else { $out_ring++; } } $out_total++; $i++; } $D_active_calls = 1; } else { $D_active_calls = 0; } $D_active_chats = 0; $chats_waiting = 0; if ($allow_chats) { $chat_stmtB = "\x20\x66\x72\x6f\155\x20\x76\151\143\151\x64\x69\x61\x6c\137\x6c\151\166\x65\137\143\x68\141\x74\x73\40\x76\x6c\x63\x2c\x20\166\x69\143\x69\x64\151\x61\x6c\137\154\151\163\x74\40\166\x20\x77\150\145\x72\145\x20\166\154\x63\x2e\x73\x74\x61\x74\165\x73\75\x27\x57\101\111\124\111\x4e\107\x27\x20\x61\156\144\x20\147\x72\157\x75\160\137\151\x64\40\111\116\x28{$closer_campaignsSQL}\x29\x20\x61\156\144\x20\x76\154\143\x2e\154\145\141\x64\x5f\151\x64\75\x76\56\x6c\x65\x61\x64\x5f\151\x64\40"; $chat_stmt = "{$chat_stmtA}\x20{$chat_stmtB}"; $chat_rslt = mysql_to_mysqli($chat_stmt, $link); $waiting_to_chat = mysqli_num_rows($chat_rslt); if ($waiting_to_chat > 0) { $i = 0; while ($i < $waiting_to_chat) { $chat_row = mysqli_fetch_row($chat_rslt); $chats_waiting++; if ($CALLSdisplay > 0) { $CDstatus[$k] = $chat_row[0]; $CDcampaign_id[$k] = $chat_row[1]; $CDphone_number[$k] = $chat_row[2]; $CDserver_ip[$k] = $chat_row[3]; $CDcall_time[$k] = $chat_row[4]; $CDcall_type[$k] = $chat_row[5]; $CDqueue_priority[$k] = $chat_row[6]; $CDagent_only[$k] = $chat_row[7]; if (strlen($CDagent_only[$k]) > 0) { $agentonlycount++; } $k++; } $i++; } $D_active_chats = 1; } else { $D_active_chats = 0; } } $icbq_stmt = "\123\105\114\105\x43\x54\x20\143\157\165\156\x74\50\52\51\40\146\162\157\x6d\40\166\x69\143\151\x64\x69\x61\154\137\x69\x6e\142\157\x75\156\x64\x5f\143\141\154\154\142\141\x63\x6b\x5f\161\x75\145\x75\145\40\167\x68\x65\x72\x65\x20\x69\143\142\161\137\x73\164\x61\164\165\x73\x3d\x27\114\111\x56\105\x27\40\141\x6e\144\40\x67\x72\x6f\x75\160\x5f\x69\144\40\x49\x4e\x28{$closer_campaignsSQL}\51\73"; $icbq_rslt = mysql_to_mysqli($icbq_stmt, $link); $icbq_ct = mysqli_num_rows($icbq_rslt); if ($icbq_ct > 0) { $icbq_ARY = mysqli_fetch_row($icbq_rslt); $icbq_live = $icbq_ARY[0]; } $agent_incall = 0; $agent_indial = 0; $agent_ready = 0; $agent_paused = 0; $agent_dispo = 0; $agent_dead = 0; $agent_total = 0; if (isset($_POST["\x6f\162\x64\x65\x72"]) and $_POST["\x6f\x72\144\x65\162"] != "\165\x6e\144\145\146\151\x6e\x65\x64") { $orderby = $_POST["\x6f\x72\x64\145\x72"]; } else { $orderby = "\123\x41\171\x6f\165\x62"; } $phoneord = $orderby; $userord = $orderby; $groupord = $orderby; $timeord = $orderby; $campaignord = $orderby; $statusord = $orderby; if ($phoneord == "\160\x68\x6f\x6e\x65\x75\x70") { $phoneord = "\x70\x68\157\x6e\x65\144\157\167\156"; } else { $phoneord = "\160\x68\x6f\x6e\145\165\160"; } if ($userord == "\x75\x73\x65\x72\x75\x70") { $userord = "\x75\163\145\x72\x64\157\167\x6e"; } else { $userord = "\165\163\x65\x72\x75\x70"; } if ($groupord == "\x67\162\x6f\x75\x70\165\x70") { $groupord = "\147\x72\157\165\160\x64\x6f\167\x6e"; } else { $groupord = "\147\x72\x6f\165\x70\x75\x70"; } if ($timeord == "\164\x69\155\x65\165\x70") { $timeord = "\x74\x69\155\x65\x64\157\x77\x6e"; } else { $timeord = "\164\x69\x6d\145\x75\x70"; } if ($campaignord == "\x63\141\x6d\160\x61\x69\147\x6e\165\160") { $campaignord = "\143\141\x6d\x70\x61\x69\x67\156\x64\x6f\167\156"; } else { $campaignord = "\x63\141\x6d\160\x61\151\147\x6e\x75\x70"; } if ($statusord == "\163\164\141\164\x75\x73\x75\x70") { $statusord = "\163\x74\x61\x74\165\x64\157\167\156"; } else { $statusord = "\163\164\141\164\x75\163\165\x70"; } $Aecho = "\74\x64\x69\166\x20\x63\x6c\x61\x73\x73\x3d\42\x74\x61\142\154\145\x2d\162\145\x73\x70\x6f\x6e\163\151\x76\x65\42\76\x3c\164\141\142\x6c\145\x20\143\x6c\x61\x73\x73\75\42\164\141\142\154\145\x20\x74\x61\x62\x6c\x65\x2d\x63\157\x6e\144\x65\x6e\163\145\x64\40\x74\x61\142\154\145\x2d\x68\157\166\x65\x72\x20\x72\x65\x61\154\164\x69\x6d\x65\55\164\141\142\154\145\42\x3e"; $Aecho .= "\x3c\x74\150\145\x61\144\x3e\74\x74\162\76\xa\x20\x20\40\x20\40\x20\x20\x20\74\164\x68\x20\x63\154\x61\x73\x73\x3d\x22\150\144\55\141\147\145\x6e\164\x22\x3e\74\141\40\x68\x72\x65\146\x3d\x22\x6a\x61\x76\x61\163\143\162\x69\160\164\x3a\x6f\162\x64\145\162\151\156\147\x28\x27" . $userord . "\47\x29\42\x20\x72\x65\x61\x6c\x74\151\x6d\145\x5f\x73\x6f\x72\164\x5f\x66\x69\145\154\x64\75\42\165\163\x65\162\x22\40\162\x65\x61\x6c\164\x69\155\145\137\163\x6f\162\164\137\x6f\x72\x69\x65\156\164\x61\x74\x69\x6f\x6e\75\x22\42\x20\x63\154\x61\163\163\75\42\x72\x65\141\x6c\164\x69\x6d\145\x2d\x73\x6f\162\164\x20\x22\76\101\147\x65\x6e\164\40\74\151\x20\x63\x6c\141\x73\x73\x3d\42\146\141\x20\146\141\x2d\163\157\162\164\42\40\141\x72\x69\x61\x2d\x68\151\x64\x64\x65\156\x3d\42\x74\x72\x75\145\42\76\74\57\x69\76\74\57\141\x3e\x3c\x2f\x74\x68\x3e\12\x20\40\40\x20\40\x20\x20\x20\x3c\x74\x68\x3e\74\x61\40\x68\162\x65\146\x3d\x22\43\x22\40\x72\x65\x61\154\164\x69\155\145\137\x73\157\162\x74\137\x66\x69\145\x6c\144\75\42\145\x78\164\x65\156\163\151\x6f\x6e\x22\40\x72\145\x61\x6c\x74\151\x6d\145\x5f\163\x6f\x72\x74\x5f\x6f\162\151\x65\x6e\164\141\x74\x69\157\156\x3d\x22\x22\40\143\x6c\x61\x73\163\75\42\x72\x65\x61\154\x74\x69\x6d\x65\55\163\157\x72\164\x20\42\x3e\x54\x79\160\145\x3c\x2f\x61\x3e\74\x2f\164\x68\x3e\xa\x20\x20\40\x20\x20\40\40\40\x3c\x74\150\40\x63\154\x61\x73\163\75\42\x68\151\x64\144\x65\x6e\x2d\170\x73\40\150\x69\x64\x64\x65\x6e\x2d\155\x64\x22\76\x3c\x61\40\150\x72\145\x66\75\x22\x23\x22\40\x72\145\x61\154\x74\x69\x6d\x65\137\163\x6f\162\x74\137\x66\151\x65\154\x64\75\x22\145\x78\x74\145\156\x73\151\x6f\156\42\40\162\145\141\154\164\x69\155\145\x5f\x73\157\x72\164\x5f\x6f\x72\x69\x65\156\x74\141\164\x69\157\x6e\75\42\x22\x20\143\154\x61\163\x73\x3d\x22\162\145\141\154\x74\151\155\x65\x2d\x73\157\x72\164\x20\x22\x3e\116\x75\x6d\x3c\x2f\141\76\74\57\x74\x68\x3e\12\40\x20\x20\40\40\40\x20\x20\x3c\164\150\x20\x63\x6c\x61\163\x73\x3d\42\150\x64\x2d\x73\x74\141\x74\x75\163\42\x3e\74\141\40\150\x72\x65\x66\75\42\x6a\141\x76\x61\163\x63\162\x69\160\x74\x3a\157\162\x64\145\162\151\x6e\x67\50\47" . $statusord . "\47\51\x22\40\x72\145\x61\154\x74\151\x6d\145\137\163\157\162\164\x5f\146\x69\x65\x6c\144\x3d\x22\163\164\x61\164\x75\x73\42\40\x72\x65\x61\154\164\x69\155\x65\137\163\x6f\162\164\x5f\157\x72\151\x65\156\164\141\164\x69\x6f\x6e\x3d\x22\42\40\x63\154\141\x73\163\75\x22\x72\x65\141\x6c\x74\x69\x6d\145\x2d\x73\x6f\162\164\x20\x22\76\x53\164\141\x74\165\x74\40\x3c\x69\40\143\x6c\x61\163\163\75\x22\x66\141\40\146\141\x2d\x73\157\x72\164\x22\40\x61\162\151\x61\x2d\x68\x69\x64\x64\x65\156\75\x22\164\162\165\x65\x22\76\x3c\57\x69\x3e\x3c\x2f\x61\x3e\74\57\164\x68\x3e\xa\40\x20\40\40\x20\40\40\x20\x3c\164\150\x20\143\x6c\x61\x73\163\75\42\x68\144\55\x74\x69\x6d\145\42\76\x3c\141\40\x68\162\x65\146\75\42\152\141\166\141\x73\x63\162\151\160\164\72\157\x72\x64\x65\x72\x69\156\147\x28\x27" . $timeord . "\x27\51\42\40\162\145\x61\x6c\x74\x69\x6d\145\137\163\157\162\164\x5f\146\x69\x65\154\x64\75\42\164\145\155\x70\x73\x22\40\162\x65\141\154\x74\151\155\145\x5f\163\157\x72\164\137\x6f\162\151\x65\x6e\164\141\164\x69\x6f\156\x3d\42\x22\40\x63\154\x61\163\x73\x3d\42\x72\145\141\154\x74\151\155\145\x2d\163\x6f\x72\x74\40\42\x3e\124\115\120\x20\x3c\151\40\143\x6c\x61\x73\x73\x3d\x22\146\x61\40\146\x61\x2d\x73\157\162\x74\x22\x20\x61\162\x69\141\x2d\150\151\144\144\x65\x6e\x3d\x22\164\162\165\145\x22\x3e\74\x2f\151\76\x3c\57\x61\x3e\74\57\x74\150\x3e\12\x20\40\40\40\x20\40\x20\x20\x3c\164\150\40\143\154\141\163\163\75\x22\x68\144\x2d\x61\x70\x70\x65\x6c\x73\42\76\40\x3c\x61\40\150\x72\x65\x66\75\x22\43\x22\40\x72\145\141\154\x74\151\x6d\x65\137\163\x6f\x72\x74\137\x66\151\145\154\144\75\x22\143\141\x6c\x6c\x73\x5f\x74\x6f\x64\x61\171\42\40\x72\145\x61\154\x74\151\x6d\145\137\x73\x6f\162\x74\x5f\157\x72\151\x65\156\x74\141\x74\151\157\156\x3d\42\42\x20\143\x6c\141\x73\x73\x3d\42\x72\145\x61\154\x74\151\x6d\x65\55\x73\157\162\x74\40\42\x3e\101\120\x4c\123\74\57\141\x3e\74\x2f\x74\x68\76\12\40\40\x20\x20\40\x20\40\40\74\x74\x68\x20\143\154\141\x73\163\75\x22\x68\144\x2d\154\151\x73\x74\x65\42\x3e\x3c\141\x20\x68\162\x65\146\x3d\x22\43\42\40\162\145\141\x6c\164\x69\155\145\x5f\163\157\162\164\137\x66\151\x65\154\x64\x3d\42\x6c\x69\163\164\137\x6e\x61\x6d\145\x22\x20\162\145\141\154\x74\151\155\x65\x5f\x73\x6f\162\x74\x5f\x6f\x72\x69\145\156\x74\141\164\x69\x6f\x6e\x3d\x22\42\x20\x63\x6c\x61\163\163\75\x22\162\x65\x61\x6c\x74\x69\155\x65\x2d\x73\157\162\x74\x20\x22\x3e\124\xc3\xa9\x6c\xc3\xa9\74\x2f\141\76\74\57\164\x68\76\xa\40\40\40\40\40\40\40\x20\x3c\x74\150\76\74\141\40\x68\x72\145\x66\75\42\43\x22\x20\143\x6c\x61\x73\x73\x3d\x22\x72\x65\x61\x6c\164\x69\155\145\55\163\x6f\x72\x74\42\76\114\151\x73\164\x65\x3c\57\x61\x3e\74\x2f\164\150\x3e\12\40\40\x20\40\40\x20\40\40\x3c\x74\150\x20\x63\154\x61\x73\x73\x3d\x22\150\144\x2d\162\144\166\x73\42\x3e\74\x61\40\x68\x72\x65\146\x3d\42\x23\x22\40\x72\x65\x61\154\164\x69\155\145\x5f\x73\x6f\162\164\137\146\x69\x65\154\x64\75\42\156\142\x72\137\x72\x64\x76\163\42\x20\x72\x65\x61\154\x74\151\155\145\x5f\163\x6f\x72\164\x5f\157\162\151\145\x6e\164\141\x74\151\x6f\x6e\75\x22\x22\40\x63\154\141\x73\163\75\42\x72\x65\141\154\x74\x69\155\x65\55\x73\x6f\162\164\x20\42\76\x56\145\x6e\x74\x65\163\74\57\141\76\x3c\x2f\164\x68\x3e\xa\x20\x20\40\40\x20\x20\40\40\74\x74\x68\40\x63\x6c\141\x73\163\75\x22\x68\x64\55\141\x63\x74\x69\x6f\156\163\42\40\143\x6f\x6c\x73\160\141\156\75\42\63\x22\76\x41\143\x74\x69\157\156\x73\74\57\164\150\x3e\xa\40\x20\40\x20\74\57\164\162\x3e\74\57\164\x68\x65\x61\x64\x3e"; if ($orderby == "\x53\101\171\157\x75\x62") { $orderSQL = "\106\111\x45\114\104\x28\166\x69\x63\151\x64\151\x61\154\137\154\151\x76\x65\x5f\x61\x67\145\156\164\163\56\163\x74\x61\164\x75\x73\54\40\x22\x49\x4e\103\101\x4c\114\42\51\40\x44\x45\x53\103"; } if ($orderby == "\163\x74\x61\164\x75\x73\x75\x70") { $orderSQL = "\x46\x49\105\114\x44\x28\x76\x69\x63\x69\x64\x69\x61\154\137\154\151\166\145\x5f\141\147\145\156\x74\x73\56\163\x74\x61\164\165\x73\54\40\x22\x49\x4e\103\x41\x4c\x4c\42\51\x20\x41\x53\103"; } if ($orderby == "\163\164\141\164\165\144\157\167\156") { $orderSQL = "\x46\x49\105\x4c\104\50\x76\151\x63\x69\144\151\141\x6c\137\x6c\x69\x76\x65\x5f\x61\x67\x65\x6e\164\163\56\163\x74\x61\x74\165\x73\x2c\x20\x22\111\x4e\103\x41\114\x4c\x22\x29\x20\x44\105\123\103"; } if ($orderby == "\x75\x73\145\162\101") { $orderSQL = "\x75\x73\x65\x72"; } if ($orderby == "\x74\151\155\x65\x75\160") { $orderSQL = "\x76\x69\143\151\x64\x69\141\154\137\154\151\x76\x65\x5f\x61\x67\145\156\164\x73\x2e\163\x74\x61\164\165\163\x2c\x6c\x61\163\164\137\143\141\x6c\154\x5f\x74\151\x6d\145"; } if ($orderby == "\x74\151\155\145\144\x6f\167\x6e") { $orderSQL = "\x76\x69\143\151\144\151\x61\154\x5f\x6c\151\166\x65\x5f\x61\147\x65\156\x74\x73\56\163\x74\x61\164\165\x73\40\144\145\x73\x63\54\x6c\x61\x73\164\x5f\x63\141\154\154\x5f\x74\x69\x6d\145\x20\144\145\x73\x63"; } if ($orderby == "\x63\x61\x6d\x70\x61\151\147\x6e\165\160") { $orderSQL = "\166\151\x63\x69\x64\151\x61\x6c\137\154\x69\x76\x65\137\141\x67\145\156\x74\163\56\x63\141\x6d\160\141\x69\147\156\137\151\x64\x2c\x76\x69\143\151\x64\x69\141\154\137\154\x69\166\145\137\141\147\145\156\x74\163\56\x73\x74\x61\x74\x75\x73\x2c\154\x61\x73\164\137\x63\x61\154\x6c\137\164\151\x6d\x65"; } if ($orderby == "\143\x61\155\x70\141\151\147\156\x64\157\167\156") { $orderSQL = "\166\151\143\x69\144\151\141\154\x5f\154\x69\x76\145\x5f\141\x67\145\156\164\x73\56\x63\141\x6d\160\141\151\147\x6e\137\151\144\40\144\145\x73\143\54\166\151\x63\x69\x64\151\141\154\x5f\x6c\151\x76\145\137\141\147\x65\156\x74\x73\56\163\x74\141\164\165\163\40\144\145\163\143\x2c\154\141\x73\164\137\x63\x61\154\154\x5f\x74\151\155\145\x20\144\145\163\x63"; } if ($orderby == "\x67\x72\157\x75\x70\x75\160") { $orderSQL = "\165\163\x65\162\x5f\147\x72\157\x75\160\x2c\x76\x69\143\151\144\x69\141\x6c\x5f\x6c\151\166\x65\x5f\x61\x67\x65\156\164\x73\56\x73\164\x61\164\x75\x73\54\154\141\163\x74\137\143\141\154\154\137\x74\x69\155\145"; } if ($orderby == "\x67\162\x6f\x75\160\144\157\x77\156") { $orderSQL = "\x75\x73\145\x72\137\x67\162\157\x75\160\40\144\145\x73\143\54\166\151\143\x69\144\x69\141\154\137\154\x69\166\x65\137\x61\147\x65\156\x74\x73\56\x73\164\x61\x74\x75\x73\40\x64\x65\x73\143\54\154\141\x73\x74\137\143\x61\154\154\137\164\x69\x6d\145\40\x64\x65\163\143"; } if ($orderby == "\160\150\x6f\156\145\165\x70") { $orderSQL = "\x65\170\164\x65\x6e\163\151\x6f\x6e\54\x73\x65\x72\166\145\162\x5f\x69\160"; } if ($orderby == "\x70\150\x6f\156\145\144\x6f\x77\156") { $orderSQL = "\145\170\x74\x65\156\x73\x69\157\x6e\40\144\145\163\x63\x2c\163\145\x72\166\x65\x72\x5f\151\x70\40\144\145\x73\x63"; } if ($UidORname > 0) { if ($orderby == "\x75\163\x65\x72\165\160") { $orderSQL = "\146\x75\x6c\154\137\x6e\x61\155\145\x2c\163\164\x61\164\165\x73\x2c\154\x61\x73\164\137\143\141\x6c\x6c\x5f\x74\x69\x6d\145"; } if ($orderby == "\165\x73\145\162\x64\x6f\x77\x6e") { $orderSQL = "\146\165\154\154\137\x6e\141\x6d\145\x20\x64\x65\x73\x63\54\163\164\x61\x74\165\x73\40\144\145\163\143\x2c\154\141\x73\164\x5f\143\141\x6c\154\x5f\x74\151\x6d\x65\x20\144\145\163\143"; } } else { if ($orderby == "\165\x73\x65\x72\x75\x70") { $orderSQL = "\x76\x69\x63\151\x64\x69\x61\x6c\137\154\x69\166\x65\137\141\x67\x65\156\164\x73\56\165\163\x65\162"; } if ($orderby == "\x75\163\x65\162\144\157\167\x6e") { $orderSQL = "\x76\x69\143\x69\x64\x69\141\154\x5f\x6c\x69\166\145\x5f\x61\147\x65\156\164\x73\x2e\x75\x73\x65\x72\x20\144\145\x73\x63"; } } if (!preg_match("\x2f\x41\114\x4c\x2d\57", $LOGallowed_campaigns)) { $UgroupSQL = "\x20\x61\x6e\x64\40\166\x69\x63\151\x64\x69\141\154\137\154\151\x76\145\x5f\141\147\x65\x6e\x74\163\x2e\143\141\x6d\x70\x61\x69\x67\156\x5f\151\x64\40\x49\x4e\x28{$group_SQL}\x29"; } else { if (preg_match("\x2f\x41\x4c\x4c\x5c\55\x41\x43\x54\x49\x56\x45\57\x69", $group_string) and strlen($group_SQL) < 3) { $UgroupSQL = ''; } else { $UgroupSQL = "\x20\x61\x6e\x64\x20\x76\x69\x63\x69\x64\151\141\154\x5f\x6c\x69\166\145\137\x61\x67\145\x6e\x74\x73\56\x63\x61\x6d\160\x61\x69\147\156\x5f\151\144\x20\x49\x4e\x28{$group_SQL}\x29"; } } if (strlen($usergroup) < 1) { $usergroupSQL = ''; } else { $usergroupSQL = "\x20\141\156\x64\40\x75\163\145\162\137\x67\x72\x6f\165\160\x3d\47" . mysqli_real_escape_string($link, $usergroup) . "\x27"; } if (preg_match("\x2f\x41\114\x4c\x5c\55\x47\122\x4f\x55\120\123\57\x69", $user_group_string) and strlen($user_group_SQL) < 3) { $user_group_filter_SQL = ''; } else { $user_group_filter_SQL = "\x20\x61\x6e\x64\40\166\151\143\151\144\x69\x61\154\x5f\165\x73\x65\x72\163\56\x75\163\145\x72\137\147\x72\x6f\x75\160\x20\111\116\50{$user_group_SQL}\x29"; } $ring_agents = 0; $Aextension = array(); $Auser = array(); $Asessionid = array(); $Astatus = array(); $Aserver_ip = array(); $Acall_time = array(); $Acall_finish = array(); $Acall_server_ip = array(); $Acampaign_id = array(); $Auser_group = array(); $Afull_name = array(); $Acomments = array(); $Acalls_today = array(); $Acallerid = array(); $Alead_id = array(); $Astate_change = array(); $Aon_hook_agent = array(); $Aring_callerid = array(); $Aagent_log_id = array(); $Aring_note = array(); $VAClead_ids = array(); $VACphones = array(); if ($allow_usergroup != "\x31\x3d\61") { $allow_usergroup_sql = "\141\156\x64\40\166\x69\x63\151\x64\x69\141\x6c\x5f\165\163\145\162\x73\x2e" . $allow_usergroup . ''; } else { $allow_usergroup_sql = ''; } $stmt = "\x53\105\114\105\103\x54\40\x65\x78\x74\145\x6e\x73\x69\157\156\54\x76\151\143\x69\144\x69\x61\x6c\x5f\x6c\x69\x76\x65\x5f\x61\147\x65\156\x74\163\x2e\x75\163\145\x72\54\143\157\x6e\x66\137\145\170\x74\x65\x6e\54\166\x69\x63\x69\144\151\141\154\x5f\154\x69\x76\145\x5f\141\x67\x65\156\x74\163\56\x73\164\x61\x74\165\163\54\x76\151\143\151\144\x69\x61\154\137\x6c\x69\x76\x65\137\x61\147\x65\x6e\164\x73\x2e\x73\145\x72\166\145\162\137\x69\x70\x2c\125\116\111\x58\x5f\124\111\115\105\x53\x54\101\115\120\50\154\x61\x73\x74\x5f\143\x61\154\x6c\137\x74\151\155\x65\51\54\x55\116\x49\130\x5f\x54\x49\115\x45\123\124\101\x4d\x50\50\x6c\141\163\x74\137\x63\141\154\154\x5f\x66\151\156\151\x73\x68\51\54\x63\x61\154\x6c\137\x73\145\162\x76\145\x72\137\151\160\54\166\x69\x63\x69\x64\151\141\x6c\x5f\154\151\166\145\137\x61\147\x65\156\164\x73\x2e\143\141\x6d\160\141\x69\x67\156\x5f\151\x64\54\x76\151\143\x69\144\151\x61\x6c\137\x75\x73\x65\x72\x73\56\x75\x73\145\x72\x5f\147\162\157\165\x70\x2c\x76\151\143\x69\144\151\141\x6c\137\x75\x73\145\162\x73\x2e\146\165\x6c\x6c\x5f\156\x61\x6d\x65\54\166\151\143\151\x64\151\x61\x6c\x5f\154\151\166\x65\137\141\x67\x65\156\x74\163\x2e\x63\x6f\155\155\x65\156\164\163\x2c\166\x69\143\151\144\151\x61\154\137\154\151\x76\145\x5f\x61\x67\x65\x6e\164\163\56\x63\141\x6c\x6c\x73\x5f\164\x6f\x64\x61\171\54\166\x69\143\151\144\x69\141\x6c\x5f\x6c\151\x76\145\x5f\141\147\145\x6e\x74\163\x2e\143\x61\x6c\x6c\x65\162\151\144\x2c\154\145\x61\x64\137\x69\144\54\x55\x4e\x49\x58\x5f\x54\x49\115\x45\x53\x54\101\x4d\x50\50\x6c\141\163\164\x5f\163\164\141\x74\x65\x5f\x63\x68\x61\156\x67\x65\x29\54\157\x6e\x5f\x68\x6f\x6f\153\x5f\141\147\145\156\x74\x2c\x72\x69\156\x67\137\143\141\x6c\x6c\x65\x72\x69\144\x2c\x61\x67\145\156\164\x5f\154\x6f\x67\137\151\144\x2c\x76\x69\143\x69\144\x69\x61\x6c\x5f\x6c\151\x76\145\137\x61\147\x65\156\164\163\56\x63\x6c\x6f\163\x65\x72\x5f\x63\141\155\160\x61\x69\147\x6e\163\40\x66\162\157\x6d\x20\x76\151\143\151\144\151\141\154\x5f\154\x69\166\145\137\x61\x67\145\x6e\x74\x73\54\166\151\143\151\x64\x69\x61\x6c\x5f\x75\x73\145\x72\x73\x20\167\150\145\x72\x65\40\166\x69\143\151\x64\x69\141\154\x5f\154\x69\166\145\x5f\x61\x67\145\156\164\163\56\165\163\x65\162\75\166\151\x63\x69\x64\151\141\x6c\x5f\165\x73\145\x72\163\x2e\165\x73\x65\162\40\141\x6e\x64\x20\x76\x69\143\x69\x64\x69\x61\154\x5f\x75\x73\145\x72\x73\56\165\x73\145\x72\137\x68\151\x64\x65\x5f\x72\145\x61\154\x74\x69\x6d\145\75\47\x30\x27\40{$allow_usergroup_sql}\x20{$UgroupSQL}\x20{$usergroupSQL}\40{$user_group_filter_SQL}\x20\157\x72\x64\x65\162\x20\x62\x79\x20{$orderSQL}\x3b"; $rslt = mysql_to_mysqli($stmt, $link); $talking_to_print = mysqli_num_rows($rslt); if ($talking_to_print > 0) { $i = 0; $va = 0; while ($i < $talking_to_print) { $row = mysqli_fetch_row($rslt); $ingroup_pass = 1; if (strlen($ingroup_string) > 1 and !preg_match("\x2f\x41\114\114\55\111\x4e\x47\x52\117\x55\120\123\x2f", $ingroup_string)) { $ingroup_pass = 0; $fcc_ct = 0; $fcc_array = explode("\40", $filter_closer_campaigns_STRING); $fcc_array_ct = count($fcc_array); if (strlen($row[19]) > 2) { while ($fcc_array_ct > $fcc_ct) { $temp_fcc = $fcc_array[$fcc_ct]; if (preg_match("\x2f\x20{$temp_fcc}\x20\57", $row[19])) { $ingroup_pass++; } $fcc_ct++; } } } $ingroup_pass = 1; if ($ingroup_pass > 0) { $Aextension[$va] = $row[0]; $Auser[$va] = $row[1]; $Asessionid[$va] = $row[2]; $Astatus[$va] = $row[3]; $Aserver_ip[$va] = $row[4]; $Acall_time[$va] = $row[5]; $Acall_finish[$va] = $row[6]; $Acall_server_ip[$va] = $row[7]; $Acampaign_id[$va] = $row[8]; $Auser_group[$va] = $row[9]; $Afull_name[$va] = $row[10]; $Acomments[$va] = $row[11]; $Acalls_today[$va] = $row[12]; $Acallerid[$va] = $row[13]; $Alead_id[$va] = $row[14]; $Astate_change[$va] = $row[15]; $Aon_hook_agent[$va] = $row[16]; $Aring_callerid[$va] = $row[17]; $Aagent_log_id[$va] = $row[18]; $Acloser_campaigns[$va] = $row[19]; $Aring_note[$va] = "\x20"; if ($Aon_hook_agent[$va] == "\x59") { $Aring_note[$va] = "\52"; $ring_agents++; if (strlen($Aring_callerid[$va]) > 18) { $Astatus[$va] = "\122\x49\x4e\x47"; } } if ($Alead_id[$va] != 0) { $threewaystmt = "\x53\x45\x4c\105\103\x54\40\125\x4e\111\x58\137\124\x49\x4d\x45\x53\x54\x41\x4d\x50\50\154\141\163\x74\137\143\x61\154\154\137\164\x69\x6d\x65\51\40\x66\x72\x6f\155\40\x76\151\x63\x69\x64\151\141\x6c\137\154\x69\x76\145\x5f\x61\x67\x65\156\164\163\40\167\150\145\x72\x65\40\x6c\145\141\x64\x5f\x69\x64\75\47{$Alead_id[$va]}\47\x20\x61\x6e\x64\40\163\164\141\x74\x75\x73\75\47\111\x4e\103\101\x4c\114\47\x20\157\162\144\x65\x72\x20\x62\171\x20\x55\x4e\111\x58\137\x54\x49\x4d\105\123\124\x41\x4d\120\50\x6c\x61\x73\x74\137\x63\x61\x6c\x6c\x5f\164\x69\155\x65\x29\40\144\145\163\143"; $threewayrslt = mysql_to_mysqli($threewaystmt, $link); if (mysqli_num_rows($threewayrslt) > 1) { $Astatus[$va] = "\63\55\127\101\x59"; $srow = mysqli_fetch_row($threewayrslt); $Acall_mostrecent[$va] = $srow[0]; } } $va++; } $i++; } $talking_to_print = $va; $callerids = ''; $pausecode = ''; $stmt = "\x53\x45\114\x45\103\x54\x20\x63\141\x6c\154\145\x72\x69\144\54\x6c\x65\141\144\x5f\x69\144\x2c\x70\x68\157\x6e\x65\x5f\156\165\155\142\x65\x72\x20\146\162\x6f\155\x20\x76\x69\x63\x69\144\x69\141\x6c\x5f\x61\x75\x74\157\137\143\141\x6c\154\163\x3b"; $rslt = mysql_to_mysqli($stmt, $link); $calls_to_list = mysqli_num_rows($rslt); if ($calls_to_list > 0) { $i = 0; while ($i < $calls_to_list) { $row = mysqli_fetch_row($rslt); if ($LOGadmin_hide_phone_data != "\60") { $phone_temp = $row[2]; if (strlen($phone_temp) > 0) { if ($LOGadmin_hide_phone_data == "\x34\x5f\104\x49\x47\111\124\x53") { $row[2] = str_repeat("\x58", strlen($phone_temp) - 4) . substr($phone_temp, -4, 4); } elseif ($LOGadmin_hide_phone_data == "\x33\x5f\104\111\107\x49\124\x53") { $row[2] = str_repeat("\130", strlen($phone_temp) - 3) . substr($phone_temp, -3, 3); } elseif ($LOGadmin_hide_phone_data == "\62\x5f\x44\x49\x47\111\x54\x53") { $row[2] = str_repeat("\x58", strlen($phone_temp) - 2) . substr($phone_temp, -2, 2); } else { $row[2] = preg_replace("\57\x2e\x2f", "\130", $phone_temp); } } } $callerids .= "{$row["\60"]}\x7c"; $VAClead_ids[$i] = $row[1]; $VACphones[$i] = $row[2]; $i++; } } $i = 0; while ($i < $talking_to_print) { if (preg_match("\x2f\x52\134\x2f\57\151", $Aextension[$i])) { $protocol = "\x45\x58\124\x45\x52\116\x41\x4c"; $dialplan = preg_replace("\x2f\x52\134\57\x2f\x69", '', $Aextension[$i]); $dialplan = preg_replace("\57\134\100\x2e\x2a\57\x69", '', $dialplan); $exten = "\144\x69\x61\x6c\160\x6c\x61\156\x5f\156\x75\x6d\142\x65\162\75\x27{$dialplan}\x27"; } if (preg_match("\57\x4c\x6f\x63\141\154\134\57\x2f\151", $Aextension[$i])) { $protocol = "\105\130\x54\105\122\116\101\114"; $dialplan = preg_replace("\x2f\114\157\143\141\x6c\x5c\57\x2f\151", '', $Aextension[$i]); $dialplan = preg_replace("\x2f\134\100\56\52\57\151", '', $dialplan); $exten = "\144\151\141\154\160\154\141\x6e\x5f\156\x75\x6d\142\x65\162\75\47{$dialplan}\47"; } if (preg_match("\57\123\x49\120\134\x2f\x2f\x69", $Aextension[$i])) { $protocol = "\x53\x49\x50"; $dialplan = preg_replace("\57\123\111\120\x5c\57\57\151", '', $Aextension[$i]); $dialplan = preg_replace("\x2f\x5c\55\x2e\x2a\57\151", '', $dialplan); $exten = "\145\x78\164\145\156\x73\151\x6f\156\75\x27{$dialplan}\x27"; } if (preg_match("\x2f\111\x41\130\62\x5c\x2f\x2f\151", $Aextension[$i])) { $protocol = "\x49\101\x58\62"; $dialplan = preg_replace("\57\x49\x41\130\x32\x5c\57\x2f\151", '', $Aextension[$i]); $dialplan = preg_replace("\x2f\x5c\x2d\56\x2a\57\151", '', $dialplan); $exten = "\x65\x78\x74\145\x6e\163\151\x6f\156\75\47{$dialplan}\47"; } if (preg_match("\x2f\x5a\141\160\134\x2f\57\x69", $Aextension[$i])) { $protocol = "\x5a\x61\x70"; $dialplan = preg_replace("\x2f\132\141\160\134\57\x2f\x69", '', $Aextension[$i]); $exten = "\145\170\x74\145\x6e\x73\151\x6f\156\x3d\47{$dialplan}\x27"; } if (preg_match("\57\104\x41\110\x44\111\x5c\x2f\57\151", $Aextension[$i])) { $protocol = "\x5a\x61\x70"; $dialplan = preg_replace("\x2f\104\101\x48\x44\x49\134\57\x2f\x69", '', $Aextension[$i]); $exten = "\x65\170\164\145\156\163\151\x6f\156\75\47{$dialplan}\47"; } $stmt = "\x53\105\x4c\x45\x43\124\x20\154\x6f\x67\151\x6e\x20\x66\162\157\155\x20\160\x68\x6f\156\145\163\x20\x77\150\x65\x72\x65\x20\x73\x65\x72\166\145\x72\x5f\x69\x70\x3d\47{$Aserver_ip[$i]}\x27\x20\x61\156\144\40{$exten}\x20\x61\x6e\144\40\160\x72\157\x74\157\x63\157\x6c\75\x27{$protocol}\x27\x3b"; $rslt = mysql_to_mysqli($stmt, $link); $phones_to_print = mysqli_num_rows($rslt); if ($phones_to_print > 0) { $row = mysqli_fetch_row($rslt); $Alogin[$i] = "{$row["\x30"]}\55\55\x2d\x2d\55{$i}"; } else { $Alogin[$i] = "{$Aextension[$i]}\x2d\55\55\55\55{$i}"; } $i++; } if ($orderby == "\x70\150\x6f\x6e\x65\165\x70") { sort($Alogin); } if ($orderby == "\160\x68\x6f\x6e\x65\144\x6f\167\x6e") { rsort($Alogin); } $j = 0; $agentcount = 0; $total_ventes = 0; $attentes = array(); while ($j < $talking_to_print) { $n = 0; $custphone = ''; $cust_state = ''; $cust_entrydate = ''; $cust_source = ''; while ($n < $calls_to_list) { if (preg_match("\x2f{$VAClead_ids[$n]}\x2f", $Alead_id[$j]) and strlen($VAClead_ids[$n]) == strlen($Alead_id[$j]) and strlen($VAClead_ids[$n] > 1)) { $custphone = $VACphones[$n]; } $n++; } $phone_split = explode("\55\55\x2d\x2d\55", $Alogin[$j]); $i = $phone_split[1]; if (preg_match("\x2f\122\x45\x41\x44\x59\x7c\120\x41\x55\x53\105\104\57\151", $Astatus[$i])) { $Acall_time[$i] = $Astate_change[$i]; if ($Alead_id[$i] > 0) { $Astatus[$i] = "\104\x49\x53\x50\117"; $Lstatus = "\x44\111\x53\x50\117"; $status = "\x20\x51\165\141\x6c\151\146\x69\x63\x61\164\151\x6f\x6e"; } } $extension = preg_replace("\x2f\x4c\157\x63\x61\154\x5c\x2f\57\x69", '', $Aextension[$i]); $CUSTINFOdisplay = 1; $list_name = ''; if ($CUSTINFOdisplay > 0 && $Alead_id[$j] > 0) { $custinfo_stmt = "\163\x65\x6c\x65\143\164\40\52\x20\x66\x72\x6f\x6d\40\x76\151\x63\x69\144\x69\141\154\x5f\154\151\163\164\40\x77\150\x65\162\145\40\154\145\x61\144\137\x69\144\x3d\47" . $Alead_id[$j] . "\x27\x20\141\x6e\144\x20\x70\x68\x6f\x6e\145\137\x6e\x75\x6d\142\145\162\75\47" . $custphone . "\47"; $custinfo_rslt = mysql_to_mysqli($custinfo_stmt, $link); $CIrow = mysqli_fetch_array($custinfo_rslt); $cust_state = $CIrow["\163\164\141\x74\x65"]; $cust_entrydate = $CIrow["\145\156\x74\162\x79\137\x64\x61\x74\145"]; $list_id = $CIrow["\x6c\x69\x73\x74\x5f\151\144"]; $cust_source = substr($CIrow["\163\157\165\x72\143\145\x5f\x69\144"], 0, 20); $lists_stmt = "\163\x65\154\145\143\x74\40\x2a\40\146\162\x6f\155\40\x76\x69\x63\x69\x64\x69\x61\154\x5f\154\x69\163\x74\163\40\167\x68\145\x72\145\x20\x6c\145\141\x64\x5f\151\144\75\47" . $list_id . "\x27"; $lists_rslt = mysql_to_mysqli($lists_stmt, $link); $lirow = mysqli_fetch_array($lists_rslt); $list_name = $lirow["\x6c\151\163\x74\137\156\x61\155\145"]; } $phone = sprintf("\45\x2d\x31\70\163", $phone_split[0]); $custphone = sprintf("\45\55\61\x31\x73", $custphone); $cust_state = sprintf("\45\x2d\x35\x73", $cust_state); $cust_entrydate = sprintf("\x25\55\61\71\163", $cust_entrydate); $cust_source = sprintf("\x25\x2d\x32\x30\x73", $cust_source); $Luser = $Auser[$i]; $user = sprintf("\x25\x2d\x32\60\163", $Auser[$i]); $Lsessionid = $Asessionid[$i]; $sessionid = sprintf("\x25\55\71\163", $Asessionid[$i]); $Lstatus = $Astatus[$i]; $status = sprintf("\45\55\66\163", $Astatus[$i]); $Lserver_ip = $Aserver_ip[$i]; $server_ip = sprintf("\45\55\61\x35\x73", $Aserver_ip[$i]); $call_server_ip = sprintf("\x25\55\x31\65\x73", $Acall_server_ip[$i]); $campaign_id = sprintf("\45\55\61\x30\x73", $Acampaign_id[$i]); $comments = $Acomments[$i]; $calls_today = sprintf("\45\55\x35\x73", $Acalls_today[$i]); $pausecode = ''; if (preg_match("\57\x49\116\103\101\114\114\57\151", $Lstatus)) { $stmtP = "\123\105\114\x45\x43\x54\x20\x63\x6f\165\x6e\164\50\x2a\51\40\146\x72\157\x6d\40\160\x61\x72\x6b\145\x64\137\143\150\x61\156\156\145\154\163\x20\167\x68\x65\x72\145\40\143\150\141\x6e\x6e\145\154\137\x67\x72\157\x75\160\x3d\x27{$Acallerid[$i]}\x27\73"; $rsltP = mysql_to_mysqli($stmtP, $link); $rowP = mysqli_fetch_row($rsltP); $parked_channel = $rowP[0]; if ($parked_channel > 0) { $Astatus[$i] = "\x50\101\x52\113"; $Lstatus = "\120\x41\x52\113"; $status = "\40\120\x41\122\113\x20"; } else { if (!preg_match("\57{$Acallerid[$i]}\x5c\x7c\x2f", $callerids) && !preg_match("\x2f\x45\x4d\x41\x49\x4c\57\x69", $comments) && !preg_match("\57\x43\110\x41\124\57\151", $comments)) { $Acall_time[$i] = $Astate_change[$i]; $Astatus[$i] = "\104\x45\x41\104"; $Lstatus = "\x44\105\x41\x44"; $status = "\40\122\x61\x63\x63\162\157\143\x68\x65\x72\40"; } else { if ($Acomments[$i] == "\115\101\x4e\x55\101\x4c") { $stmt = "\x53\x45\114\105\x43\x54\40\x75\x6e\151\x71\165\145\151\144\x2c\x63\x68\141\x6e\156\x65\154\x20\x66\162\x6f\155\40\166\x69\x63\x69\x64\x69\x61\x6c\137\x61\x75\164\x6f\137\143\x61\154\154\163\x20\167\150\x65\162\145\40\143\x61\154\x6c\145\162\151\x64\x3d\x27{$Acallerid[$i]}\x27\x20\114\111\x4d\111\124\x20\x31\x3b"; $rslt = mysql_to_mysqli($stmt, $link); $mandial_to_check = mysqli_num_rows($rslt); if ($mandial_to_check > 0) { $row = mysqli_fetch_row($rslt); if (strlen($row[0]) < 5 and strlen($row[1]) < 5) { $Astatus[$i] = "\104\x49\x41\x4c"; $Lstatus = "\104\111\101\x4c"; $status = "\x20\115\x61\156\x75\x65\154\40"; } } } } if (preg_match("\x2f\103\x48\x41\124\57\x69", $comments)) { $stmtCT = "\x53\105\114\105\103\x54\40\143\x68\141\164\137\x69\x64\40\146\162\x6f\x6d\40\x76\151\143\151\x64\151\141\154\137\x6c\x69\166\145\x5f\143\x68\141\x74\x73\x20\x77\150\x65\x72\145\x20\x63\x68\x61\x74\x5f\x63\x72\x65\141\164\x6f\162\75\47{$Auser[$i]}\x27\x20\141\156\144\x20\154\x65\141\144\x5f\151\x64\75\47{$Alead_id[$i]}\47\x20\x6f\x72\144\x65\162\40\142\x79\x20\x63\x68\x61\x74\x5f\163\x74\x61\x72\164\x5f\x74\x69\x6d\145\x20\x64\x65\x73\x63\40\x6c\x69\155\x69\x74\40\61\x3b"; $rsltCT = mysql_to_mysqli($stmtCT, $link); $chatting_to_print = mysqli_num_rows($rslt); if ($chatting_to_print > 0) { $rowCT = mysqli_fetch_row($rsltCT); $Achat_id = $rowCT[0]; $stmtCL = "\x53\105\x4c\105\x43\x54\40\x63\x6f\x75\x6e\164\50\52\51\x20\x66\x72\157\155\x20\166\151\143\151\144\x69\141\154\137\143\x68\x61\164\x5f\154\x6f\x67\x20\x77\150\145\x72\x65\x20\143\x68\141\164\137\151\x64\75\47{$Achat_id}\47\40\141\x6e\144\40\x6d\x65\163\163\x61\147\145\40\x4c\111\113\x45\40\42\x25\x68\141\163\40\154\145\x66\x74\40\x63\150\x61\164\x22\73"; $rsltCL = mysql_to_mysqli($stmtCL, $link); $rowCL = mysqli_fetch_row($rsltCL); $left_chat = $rowCL[0]; if ($left_chat > 0) { $Acall_time[$i] = $Astate_change[$i]; $Astatus[$i] = "\x44\x45\101\104"; $Lstatus = "\104\105\x41\x44"; $status = "\104\105\101\104\40\103"; } } } } if (preg_match("\57\x41\125\x54\117\x2f\151", $comments) or strlen($comments) < 1) { $CM = "\x41"; } else { if (preg_match("\x2f\x49\x4e\102\x4f\x55\x4e\x44\57\x69", $comments)) { $CM = "\111"; } else { if (preg_match("\x2f\105\115\101\111\x4c\x2f\151", $comments)) { $CM = "\x45"; } else { $CM = "\x4d"; } } } } else { $CM = "\40"; } if ($UGdisplay > 0) { $user_group = sprintf("\x25\x2d\61\62\163", $Auser_group[$i]); } if ($UidORname > 0) { $user = sprintf("\x25\55\x32\60\163", $Afull_name[$i]); } if (!preg_match("\57\111\116\x43\101\114\114\x7c\x44\x49\x41\x4c\174\x51\125\105\125\x45\174\120\x41\122\113\174\63\x2d\x57\101\x59\57\151", $Astatus[$i])) { $call_time_S = $STARTtime - $Astate_change[$i]; } else { if (preg_match("\x2f\63\55\127\101\131\57\x69", $Astatus[$i])) { $call_time_S = $STARTtime - $Acall_mostrecent[$i]; } else { $call_time_S = $STARTtime - $Acall_time[$i]; } } if ($status == "\122\105\x41\x44\x59\40") { if ($call_time_S >= 30) { $call_time_S = $call_time_S - 20; } } $call_time_MS = sec_convert($call_time_S, "\115"); $call_time_MS = sprintf("\45\67\x73", $call_time_MS); $call_time_MS = "\40{$call_time_MS}"; $tr_class = "\x73\164\141\164\165\163\55\151\x6e\x63\x61\154\x6c"; if ($Lstatus == "\x49\x4e\x43\101\x4c\x4c" or $Lstatus == "\x50\x41\122\x4b") { if ($comments == "\x43\110\x41\124") { $status = "\x43\110\101\x54"; $tr_class = "\x54\x52\x72\x65\x64"; } else { if ($comments == "\x45\115\x41\111\114") { $status = "\105\x4d\101\111\114"; $tr_class = "\124\x52\x6f\x72\x61\156\x67\x65"; } else { if ($call_time_S >= $rt_report_times["\x69\x6e\x63\x61\x6c\154\137\163\x68\x6f\162\164\137\164\x69\155\x65"]) { $tr_class = "\x73\164\141\164\x75\x73\55\151\156\143\141\154\154"; } if ($call_time_S >= $rt_report_times["\151\156\x63\x61\x6c\154\137\155\x65\x64\151\x75\155\x5f\164\151\155\x65"]) { $tr_class = "\163\164\141\x74\x75\x73\x2d\151\156\x63\x61\x6c\154"; } if ($call_time_S >= $rt_report_times["\x69\x6e\x63\x61\154\154\x5f\154\x6f\x6e\147\137\x74\151\155\x65"]) { $tr_class = "\163\164\x61\x74\165\163\x2d\151\156\143\x61\x6c\x6c"; } } } } if ($Lstatus == "\x33\55\127\x41\x59") { if ($call_time_S >= $rt_report_times["\x74\150\162\x65\145\167\x61\171\137\x73\150\157\162\x74\137\x74\x69\155\x65"]) { $tr_class = "\163\x74\141\x74\165\x73\x2d\x33\x77\141\x79"; } } if ($Lstatus == "\104\x45\x41\104") { if ($call_time_S >= 21600) { $j++; continue; } else { $agent_dead++; $agent_total++; $tr_class = "\x73\x74\x61\x74\x75\163\55\144\145\141\x64"; if ($call_time_S >= $rt_report_times["\144\145\x61\x64\137\x73\150\157\x72\164\137\x74\151\x6d\145"]) { $tr_class = "\163\x74\x61\164\x75\163\x2d\144\x65\x61\144"; } } } if ($Lstatus == "\104\x49\x53\120\117") { if ($call_time_S >= 21600) { $j++; continue; } else { $agent_dispo++; $agent_total++; $tr_class = "\163\x74\141\x74\x75\163\x2d\144\x69\163\x70\157"; if ($call_time_S >= $rt_report_times["\160\x61\x75\163\145\x64\137\163\x68\157\x72\x74\x5f\x74\x69\155\x65"]) { $tr_class = "\163\x74\141\x74\165\163\x2d\144\x69\163\160\x6f"; } if ($call_time_S >= $rt_report_times["\160\141\x75\x73\145\x64\x5f\155\145\144\151\165\x6d\137\164\x69\155\x65"]) { $tr_class = "\x73\x74\x61\164\165\x73\55\144\x69\x73\x70\x6f"; } if ($call_time_S >= $rt_report_times["\x70\x61\165\163\x65\x64\137\154\157\156\x67\137\164\x69\x6d\x65"]) { $tr_class = "\163\164\141\164\165\x73\x2d\x64\151\163\x70\157"; } if ($call_time_S >= $rt_report_times["\160\x61\x75\163\x65\x5f\x6c\151\x6d\x69\x74"]) { $tr_class = "\163\164\141\x74\x75\x73\x2d\x70\x61\165\x73\x65\144"; } } } $pausecodeName = ''; if ($Lstatus == "\x50\101\x55\123\x45\104") { if ($agent_pause_codes_active > 0) { $twentyfour_hours_ago = date("\x59\55\155\x2d\x64\40\x48\72\x69\x3a\163", mktime(date("\110") - 24, date("\151"), date("\163"), date("\155"), date("\x64"), date("\x59"))); $stmtC = "\123\x45\114\105\x43\124\40\x73\165\x62\x5f\x73\164\141\x74\165\163\x20\x66\162\x6f\155\x20\166\x69\x63\x69\144\151\x61\154\137\141\147\145\156\164\137\x6c\x6f\147\x20\167\150\145\162\x65\x20\141\147\145\156\164\137\154\x6f\x67\137\151\144\40\x3e\x3d\x20\x22{$Aagent_log_id[$i]}\x22\x20\141\x6e\x64\x20\x75\x73\145\162\x3d\x27{$Luser}\47\40\x6f\162\x64\x65\162\40\142\x79\x20\141\x67\x65\x6e\164\137\x6c\157\147\x5f\x69\144\40\144\145\163\143\x20\x6c\x69\x6d\x69\x74\40\x31\x3b"; $rsltC = mysql_to_mysqli($stmtC, $link); $rowC = mysqli_fetch_row($rsltC); $pausecode = sprintf("\x25\55\x36\163", $rowC[0]); if ($SSenable_pause_code_limits > 0) { $pause_limit_stmt = "\x53\105\114\105\x43\x54\40\164\151\x6d\145\x5f\154\151\x6d\151\164\40\146\162\x6f\155\x20\166\151\143\151\x64\151\x61\154\137\160\x61\165\x73\145\x5f\143\x6f\144\x65\163\40\x77\150\x65\162\145\x20\143\141\155\x70\x61\x69\147\x6e\137\151\x64\x3d\47{$Acampaign_id[$i]}\x27\40\141\156\x64\x20\x70\141\x75\x73\145\x5f\143\157\x64\x65\75\x27{$rowC["\60"]}\x27"; $pause_limit_rslt = mysql_to_mysqli($pause_limit_stmt, $link); if (mysqli_num_rows($pause_limit_rslt) > 0) { $pause_limit_row = mysqli_fetch_row($pause_limit_rslt); $pause_limit = $pause_limit_row[0]; } else { $pause_limit = $rt_report_times["\160\141\x75\163\x65\137\154\x69\155\x69\164"]; } } else { $pause_limit = "\71\71\x39\71\71\x39"; } $stmtCC = "\123\x45\x4c\x45\103\x54\x20\160\141\x75\x73\145\137\x63\157\x64\x65\137\x6e\141\155\145\40\x66\162\157\x6d\x20\166\x69\143\151\144\151\141\154\x5f\x70\141\165\163\x65\x5f\x63\x6f\x64\x65\x73\x20\167\x68\x65\x72\x65\x20\160\141\x75\163\145\137\x63\157\x64\145\x20\75\40\x27{$pausecode}\47\x20\141\x6e\144\x20\143\141\155\x70\141\151\x67\156\x5f\x69\144\75\x27{$Acampaign_id[$i]}\x27\x3b"; $rsltCC = mysql_to_mysqli($stmtCC, $link); $rowCC = mysqli_fetch_row($rsltCC); $pausecodeName = $rowCC[0]; } else { $pausecode = ''; $pause_limit = "\71\x39\71\x39\x39\x39"; } if ($call_time_S >= 21600) { $j++; continue; } else { $agent_paused++; $agent_total++; $tr_class = "\x73\164\141\x74\x75\x73\55\x70\x61\165\x73\x65\x64"; if ($call_time_S >= $rt_report_times["\160\x61\165\x73\x65\144\x5f\163\x68\x6f\162\164\137\x74\x69\x6d\145"]) { $tr_class = "\163\x74\x61\x74\x75\x73\x2d\x70\141\165\163\x65\x64"; } if ($call_time_S >= $rt_report_times["\160\x61\165\163\145\144\x5f\x6d\145\144\151\x75\155\x5f\x74\151\155\145"]) { $tr_class = "\x73\164\141\x74\165\x73\x2d\160\x61\x75\x73\145\x64"; } if ($call_time_S >= $rt_report_times["\160\x61\165\163\145\144\137\154\x6f\156\x67\137\164\x69\x6d\145"]) { $tr_class = "\x73\x74\141\164\165\x73\55\160\x61\x75\x73\x65\144"; } if ($call_time_S >= $pause_limit) { $tr_class = "\x73\164\141\164\x75\x73\55\x70\x61\x75\x73\145\144"; } } } if (preg_match("\x2f\111\x4e\x43\101\114\114\174\104\x49\x41\114\x2f\x69", $status) or preg_match("\57\x51\125\x45\125\105\x2f\x69", $status) or preg_match("\57\63\x2d\x57\x41\131\x2f\151", $status) or preg_match("\x2f\x50\101\x52\x4b\x2f\x69", $status)) { $agent_incall++; $agent_total++; } if (preg_match("\57\104\x49\101\114\x2f\151", $status)) { $agent_indial++; } if (preg_match("\x2f\122\105\101\104\x59\57\151", $status) or preg_match("\57\x43\114\x4f\x53\105\x52\57\151", $status)) { $agent_ready++; $agent_total++; } if (preg_match("\57\122\x45\x41\104\131\57\x69", $status) or preg_match("\x2f\103\114\x4f\123\105\x52\x2f\x69", $status)) { if ($RS_agentWAIT == 4) { $tr_class = "\x73\164\141\164\x75\x73\55\162\145\x61\x64\x79"; if ($call_time_S >= $rt_report_times["\x77\x61\151\164\151\x6e\x67\137\x73\x68\157\x72\x74\x5f\x74\x69\155\145"]) { $tr_class = "\x73\x74\141\164\x75\163\x2d\x72\145\x61\x64\x79"; } if ($call_time_S >= $rt_report_times["\x77\x61\151\164\x69\x6e\147\137\155\x65\x64\151\x75\x6d\x5f\164\151\x6d\x65"]) { $tr_class = "\163\x74\141\164\165\163\x2d\x72\x65\141\x64\171"; } if ($call_time_S >= $rt_report_times["\167\141\x69\164\151\156\x67\x5f\x6c\x6f\156\x67\x5f\x74\151\155\x65"]) { $tr_class = "\x73\164\141\x74\165\x73\x2d\162\145\141\x64\x79"; } } else { $tr_class = "\x73\164\141\164\165\163\55\x72\145\141\x64\x79"; if ($call_time_S >= $rt_report_times["\167\x61\x69\x74\151\x6e\x67\137\155\145\x64\151\165\x6d\137\x74\151\x6d\145"]) { $tr_class = "\x73\164\x61\x74\x75\x73\x2d\162\x65\141\x64\x79"; } if ($call_time_S >= $rt_report_times["\167\141\x69\x74\x69\156\x67\x5f\x6c\x6f\156\x67\x5f\x74\x69\x6d\x65"]) { $tr_class = "\x73\164\141\x74\x75\x73\x2d\162\x65\141\144\171"; } } } if ($Astatus[$i] == "\122\x49\x4e\107") { $agent_total++; $tr_class = "\163\x74\x61\x74\x75\x73\x2d\x72\151\156\147\x69\156\147"; if ($call_time_S >= 0) { $tr_class = "\x73\164\141\x74\165\x73\x2d\162\151\x6e\x67\151\156\x67"; } } $filtered_ingroup = 1; $ecouter = ''; $souffler = ''; $monitor_active = "\x4d\x4f\x4e\111\124\117\x52\174\102\x41\x52\x47\105\x7c\x57\110\x49\x53\120\105\x52"; if (strlen($monitor_phone) > 1 and preg_match("\x2f\x4d\117\116\111\124\117\x52\174\102\x41\x52\x47\x45\x7c\127\110\111\x53\x50\x45\x52\x2f", $monitor_active) and preg_match("\x2f\115\117\x4e\x49\124\117\122\57", $RS_ListenBarge)) { $ecouter = "\x3c\x61\40\x68\162\x65\146\75\x22\x23\42\x20\x69\x64\x3d\x22\145\x63\157\165\164\145\x72\137" . $Lsessionid . "\x22\40\x63\x6c\x61\x73\x73\75\x22\x65\143\x6f\165\164\145\x72\40\141\152\141\x78\x2d\x61\x63\x74\x69\157\x6e\x2d\x62\164\x6e\40\154\x69\x73\164\x65\x6e\55\164\x6f\55\x6d\x65\40\x61\143\164\151\x6f\156\55\142\164\156\x20\x62\x74\x6e\40\x62\x74\156\55\x77\150\151\164\145\40\x62\x74\156\x2d\170\163\x22\40\x6f\x6e\x63\154\151\x63\x6b\x3d\x22\152\141\x76\x61\x73\143\162\151\160\164\x3a\x73\x65\x6e\144\x5f\x6d\157\x6e\151\x74\x6f\162\50\x27" . $Lsessionid . "\47\54\x27" . $Lserver_ip . "\x27\54\47\115\117\116\x49\124\117\122\x27\54\40\x27" . $PHP_AUTH_USER . "\x27\x2c\40\47" . $PHP_AUTH_PW . "\47\x2c\x20" . $monitor_phone . "\51\x3b\42\40\x74\x69\x74\154\145\75\x22\105\143\157\165\x74\145\x20\x64\145\40\x6c\47\141\160\x70\x65\154\x22\x3e\12\x20\x20\40\40\x20\40\x20\40\40\x20\x20\40\x20\x20\40\x20\74\151\40\143\154\x61\163\163\x3d\x22\146\x61\x20\146\x61\x2d\150\x65\141\144\160\150\x6f\x6e\145\x73\42\x3e\x3c\x2f\x69\x3e\12\x20\40\40\40\x20\x20\40\x20\40\x20\40\40\74\57\x61\76"; } if (strlen($monitor_phone) > 1 and preg_match("\57\x42\101\x52\x47\105\x7c\127\110\x49\x53\x50\105\x52\57", $monitor_active) and preg_match("\57\x42\101\122\x47\105\x2f", $RS_ListenBarge)) { $BARGEstage = "\x42\101\x52\107\x45"; if ($RS_BargeSwap > 0) { $BARGEstage = "\102\x41\x52\107\x45\x53\x57\x41\x50"; } $brave = "\x3c\x61\x20\x68\x72\x65\x66\x3d\42\43\42\40\151\144\75\x22\143\157\x6e\x66\63\x5f" . $Lsessionid . "\42\x20\143\x6c\141\163\x73\75\x22\x63\x6f\156\x66\63\x20\x61\x6a\x61\x78\55\141\x63\x74\151\x6f\156\55\x62\x74\156\x20\154\151\x73\x74\145\156\x2d\x74\x6f\x2d\x6d\145\x20\141\143\164\151\157\156\x2d\142\x74\156\40\142\x74\156\40\142\164\x6e\55\167\x68\151\164\145\40\142\x74\x6e\55\170\163\42\12\40\x20\40\40\x20\x20\x20\40\x20\40\x20\x20\x20\40\x20\x6f\156\143\x6c\151\143\153\75\42\152\x61\166\141\x73\143\162\151\160\x74\x3a\x73\x65\156\144\137\155\x6f\x6e\x69\x74\157\162\x28\47" . $Lsessionid . "\x27\54\x27" . $Lserver_ip . "\x27\x2c\x27" . $BARGEstage . "\x27\x2c\x20\x27" . $PHP_AUTH_USER . "\47\x2c\x20\47" . $PHP_AUTH_PW . "\x27\54\x20" . $monitor_phone . "\51\x22\40\x74\151\x74\154\x65\75\42\103\x6f\x6e\146\xc3\xa9\162\x65\156\143\x65\40\xc3\xa0\40\x74\162\157\x69\163\x22\x3e\12\40\x20\40\40\x20\40\x20\x20\40\x20\40\40\40\x20\x20\x20\74\151\x20\x63\x6c\141\x73\x73\75\42\x66\x61\x20\x66\x61\x2d\x75\163\145\x72\163\42\76\74\x2f\x69\76\12\x20\x20\40\40\40\x20\40\x20\x20\x20\x20\40\x3c\57\141\76"; } if (strlen($monitor_phone) > 1 and preg_match("\57\x57\110\x49\x53\x50\x45\x52\57", $monitor_active) and preg_match("\x2f\x57\x48\111\x53\120\105\122\x2f", $RS_ListenBarge)) { $souffler = "\74\141\x20\150\x72\145\x66\x3d\42\x23\x22\x20\x69\144\75\x22\163\x6f\x75\146\146\154\145\x72\x5f" . $Lsessionid . "\x22\40\143\154\x61\163\x73\x3d\x22\x73\157\x75\x66\x66\154\145\162\40\x61\152\141\x78\55\x61\x63\164\x69\x6f\x6e\55\x62\x74\x6e\x20\154\151\x73\x74\x65\x6e\55\164\157\x2d\155\145\x20\141\143\x74\151\157\x6e\55\142\164\156\x20\142\164\x6e\x20\x62\164\x6e\x2d\167\150\151\x74\x65\x20\142\x74\x6e\55\170\x73\42\12\40\40\x20\x20\x20\x20\40\x20\x20\x20\x20\40\40\40\x20\x6f\156\x63\154\x69\x63\x6b\75\42\152\x61\x76\x61\163\143\162\x69\x70\x74\72\x73\145\156\x64\x5f\155\x6f\x6e\x69\x74\157\162\x28\47" . $Lsessionid . "\x27\54\47" . $Lserver_ip . "\47\x2c\47\127\x48\111\123\x50\x45\122\x27\x2c\x20\x27" . $PHP_AUTH_USER . "\47\x2c\x20\47" . $PHP_AUTH_PW . "\x27\x2c\40" . $monitor_phone . "\x29\42\40\x74\x69\164\x6c\145\x3d\42\x53\x6f\x75\146\x66\x6c\x61\x67\x65\40\xc3\xa0\x20\x6c\47\x61\147\145\156\164\42\76\xa\40\x20\x20\x20\40\40\x20\40\40\x20\40\40\40\40\x20\x20\74\151\x20\143\154\141\163\163\x3d\x22\146\x61\40\x66\x61\x2d\x62\x75\x6c\154\x68\x6f\x72\156\x22\76\x3c\57\x69\x3e\xa\40\40\40\40\x20\40\40\40\x20\40\x20\x20\74\57\x61\76"; } $vac_stage = ''; $vac_campaign = ''; $INGRP = ''; $INuniqueid = ''; $agentcount++; if ($filtered_ingroup == 1) { if ($status == "\x49\116\103\101\114\x4c") { $status = "\105\156\40\x61\x70\x70\145\x6c"; } if ($status == "\120\101\x55\123\105\x44") { $status = "\x3c\x62\76\x50\x61\x75\x73\145\40" . $pausecodeName . "\x3c\x2f\142\76"; } if ($status == "\x52\105\x41\x44\131\40") { $status = "\x45\x6e\x20\x61\x74\164\145\156\164\145"; $attentes[] = $call_time_S; } if ($status == "\x44\111\x53\x50\117\x20") { $status = "\x45\x6e\x20\x71\165\x61\x6c\x69\146"; } if ($status == "\x51\x55\x45\x55\x45\40") { $status = "\105\156\40\141\x74\164\x65\x6e\164\145"; } if ($status == "\x43\x4c\x4f\123\x45\x52") { $status = "\x4d\157\x64\x65\40\x52\303\251\143\145\160\x74\151\157\x6e"; } if ($status == "\x20\120\101\x52\x4b\40") { $status = "\x4d\151\x73\145\40\x65\156\40\x61\x74\x74\145\x6e\x74\145"; } if ($status == "\x20\63\55\127\x41\x59\40" or $status == "\x33\55\127\x41\131\x20" or $status == "\63\x2d\x57\101\x59") { $status = "\x43\x6f\x6e\x66\145\162\x65\156\x63\145\40\303\xa0\x20\x33"; } $typeA = ''; if ($CM == "\111") { $typeA = "\74\x73\x70\x61\156\40\x63\154\x61\163\163\x3d\x22\x6c\141\x62\145\154\x20\x6c\141\142\x65\x6c\55\x63\x61\x6c\x6c\55\x64\151\162\145\x63\164\x69\x6f\156\x20\x6c\x61\142\x65\154\55\x73\x75\x63\x63\x65\x73\163\42\76\x20\x3c\x69\12\40\x20\x20\x20\40\40\x20\40\x20\40\x20\40\40\40\40\x20\x20\x20\40\40\x20\40\40\40\x20\x20\x20\40\x20\x20\x20\x20\40\40\40\40\40\x20\40\x20\143\x6c\x61\x73\163\75\x22\x66\x61\x20\146\x61\x2d\141\x72\162\157\x77\55\x63\151\162\143\x6c\x65\x2d\165\160\40\146\141\x2d\162\157\164\141\x74\145\x2d\x32\62\x35\x22\x3e\74\57\x69\x3e\x20\122\xc3\xa9\x63\145\160\x74\x69\157\156\x3c\x2f\163\160\141\x6e\x3e"; } elseif ($CM == "\x4d") { $typeA = "\74\163\160\x61\x6e\x20\x63\154\x61\x73\163\75\42\x6c\141\x62\145\154\x20\x6c\141\142\145\x6c\x2d\x63\x61\154\x6c\55\144\x69\162\145\143\164\151\x6f\156\x20\x6c\x61\x62\145\154\x2d\167\x61\x72\x6e\x69\x6e\x67\x22\76\40\x3c\151\xa\40\x20\x20\x20\x20\40\40\40\x20\x20\x20\x20\40\x20\40\x20\40\40\x20\40\40\x20\x20\x20\x20\x20\40\x20\x20\x20\x20\x20\x20\x20\40\x20\x20\40\40\x20\x63\154\x61\163\x73\75\42\x66\141\40\146\x61\55\x61\x72\162\157\x77\55\143\151\x72\143\154\145\55\165\x70\x20\x66\141\x2d\162\x6f\164\x61\x74\145\x2d\x39\x30\42\76\74\57\151\x3e\40\115\x61\x6e\x75\145\154\x3c\x2f\x73\160\141\x6e\76"; } elseif ($CM == "\101") { $typeA = "\74\x73\x70\141\x6e\40\143\x6c\141\163\163\x3d\x22\x6c\x61\x62\145\154\x20\154\x61\142\x65\x6c\55\143\141\x6c\154\55\x64\x69\162\145\143\x74\151\157\156\40\x6c\x61\x62\x65\154\x2d\x70\x72\151\x6d\x61\162\171\x22\x3e\40\74\151\12\x20\40\40\x20\40\40\40\40\40\x20\40\40\40\40\x20\40\40\40\40\40\x20\x20\40\x20\x20\40\40\40\x20\40\40\40\40\40\40\x20\x20\40\x20\40\x63\154\141\x73\x73\75\x22\x66\x61\x20\x66\x61\55\x61\x72\162\157\167\x2d\143\x69\162\143\154\145\x2d\165\160\x20\146\x61\55\x72\x6f\x74\141\x74\x65\x2d\64\x35\42\76\x3c\57\151\76\x20\105\x6d\x69\163\163\x69\x6f\x6e\x3c\x2f\163\160\141\156\76"; } $statusVente = getStatusSale(); $status_SQL = ''; foreach ($statusVente as $stVente) { $status_SQL .= "\47{$stVente}\47\54"; } $status_SQL = preg_replace("\x2f\x2c\x24\x2f\151", '', $status_SQL); $status_SQL = "\141\156\x64\40\x73\x74\x61\x74\x75\x73\40\111\x4e\50{$status_SQL}\51"; $d1 = date("\x59\x2d\155\55\x64") . "\x20\x30\x30\x3a\60\x30\72\60\x30\56\60\60\x30\60\60\x30"; $d2 = date("\131\x2d\x6d\55\x64") . "\x20\x32\x33\x3a\x35\x39\x3a\x35\71\56\60\x30\60\x30\60\x30"; $stmtV = "\x53\x45\114\x45\103\124\40\165\x73\x65\x72\40\x66\162\157\155\40\166\x69\x63\151\144\151\x61\x6c\137\141\x67\145\156\x74\x5f\x6c\157\x67\x20\167\150\145\162\x65\40\x65\166\145\156\x74\x5f\164\x69\x6d\145\x20\74\x3d\40\x27{$d2}\x27\40\x61\156\x64\40\145\166\145\156\x74\137\164\151\155\145\x20\76\75\x20\x27{$d1}\47\x20{$status_SQL}\x20\x61\156\144\40\x75\x73\x65\162\40\x3d\40\47{$Luser}\47"; $rsltV = mysql_to_mysqli($stmtV, $link); $number_of_result = mysqli_num_rows($rsltV); $vente_A = 0; while ($rowV = mysqli_fetch_row($rsltV)) { $total_ventes += 1; $vente_A += 1; } $bbb_stmt = "\163\x65\154\x65\143\164\x20\154\x69\163\x74\163\56\x6c\x69\163\x74\137\156\141\155\x65\x20\146\x72\157\x6d\x20\166\x69\143\x69\144\151\x61\154\137\x6c\151\163\x74\x20\141\163\40\x6c\x69\163\x74\x20\x4c\105\106\x54\40\x4a\x4f\x49\116\x20\x76\x69\143\151\144\151\141\x6c\137\154\151\163\x74\x73\x20\x61\163\x20\154\151\x73\164\163\x20\117\x4e\40\x6c\151\163\164\163\56\x6c\x69\163\164\137\151\144\x20\x3d\40\x6c\x69\x73\164\56\x6c\x69\x73\164\137\x69\144\40\x77\x68\x65\x72\145\40\160\x68\x6f\x6e\145\137\156\165\x6d\142\145\162\x3d\47" . $custphone . "\47"; $bbb_rslt = mysql_to_mysqli($bbb_stmt, $link); $listeRow = mysqli_fetch_array($bbb_rslt); $Aecho .= "\x3c\164\x72\x20\143\154\x61\x73\x73\x3d\x22" . $tr_class . "\42\76\xa\40\x20\x20\40\40\40\x20\40\x20\40\x20\40\x20\40\x20\40\x3c\x74\144\76\74\142\76" . $user . "\x3c\x2f\x62\x3e\x3c\57\164\144\76\xa\x20\40\x20\x20\x20\40\40\x20\40\x20\x20\40\40\x20\40\40\74\x74\144\x3e" . $typeA . "\x3c\57\x74\x64\x3e\12\40\40\x20\40\40\x20\x20\x20\x20\40\40\40\40\x20\x20\x20\74\164\x64\x20\143\154\141\163\x73\75\42\150\x69\144\x64\145\156\55\x78\163\x20\x68\151\144\x64\x65\156\x2d\155\x64\x22\x3e" . $phone . "\74\57\x74\x64\76\12\40\x20\x20\x20\40\x20\40\40\x20\40\40\x20\40\x20\x20\x20\74\164\x64\x20\143\x6c\x61\163\x73\75\42\141\147\x65\156\x74\x2d\163\x74\141\164\165\163\40\164\x64\x2d\163\x74\x61\x74\165\x73\55\164\145\x78\164\42\x3e" . $status . "\74\x2f\x74\144\x3e\xa\x20\40\x20\40\40\40\40\x20\40\40\x20\x20\40\x20\x20\x20\74\x74\x64\x3e\x3c\x73\x74\162\x6f\156\147\76" . $call_time_MS . "\74\x2f\x73\x74\162\x6f\156\147\76\74\x2f\164\x64\76\12\x20\40\x20\x20\40\40\x20\40\40\40\40\40\40\x20\x20\40\x3c\x74\144\76\74\x73\x74\162\157\x6e\x67\x3e" . $calls_today . "\74\x2f\x73\x74\x72\157\x6e\x67\76\x3c\57\164\144\x3e\12\x20\40\40\40\40\40\x20\x20\40\x20\40\x20\x20\x20\x20\40\x3c\x74\144\76" . $custphone . "\x3c\x2f\164\x64\76"; if ($listeRow["\x6c\151\163\164\x5f\156\x61\155\x65"] != '') { $Aecho .= "\74\164\144\x3e\x3c\x73\x70\x61\x6e\x20\143\x6c\x61\x73\x73\75\42\154\141\142\x65\154\40\154\141\142\x65\x6c\55\143\x61\x6c\x6c\55\144\x69\162\145\x63\x74\x69\157\156\40\x6c\141\142\145\154\x2d\x77\x61\x72\156\151\156\147\x22\x20\141\x6c\x74\x3d\x22" . $listeRow["\154\151\x73\x74\x5f\x6e\141\155\x65"] . "\x22\x20\x73\164\171\x6c\x65\75\42\x66\x6f\x6e\x74\55\x73\x69\x7a\x65\x3a\71\160\170\x3b\x20\160\141\144\x64\151\x6e\x67\55\154\145\146\164\72\x34\x70\x78\73\x22\76" . $listeRow["\x6c\x69\163\164\x5f\x6e\x61\x6d\145"] . "\74\x2f\163\x70\141\156\x3e\74\57\x74\144\x3e"; } else { $Aecho .= "\74\x74\144\x3e\x20\74\57\x74\144\76"; } $vente_A = getTotalVentesToDay($campaign_id, $Luser); $Aecho .= "\x3c\x74\x64\x3e" . $vente_A . "\x3c\57\164\144\76\12\40\40\x20\40\40\x20\x20\x20\40\40\x20\x20\x20\40\40\x20\74\x74\144\40\143\154\141\163\x73\x3d\x22\150\x64\x2d\141\143\164\151\x6f\x6e\x73\x22\76\x20" . $ecouter . "\40" . $souffler . "\40" . $brave . "\xa\40\40\x20\x20\40\40\40\40\x20\40\x20\40\40\40\x20\40\x20\40\40\40\x3c\x73\x63\162\151\x70\x74\x3e\12\40\x20\x20\x20\x20\40\40\x20\x20\40\40\40\40\x20\x20\x20\40\40\x20\40\x24\x28\144\x6f\x63\165\155\145\x6e\164\x29\x2e\x72\145\x61\x64\171\x28\x66\165\156\x63\x74\x69\157\156\x20\x28\51\40\173\12\x20\40\x20\40\x20\x20\40\x20\40\x20\40\x20\x20\40\x20\40\40\40\40\x20\40\40\40\x20\151\146\50\44\56\x63\x6f\x6f\153\x69\x65\50\x22\145\143\x6f\165\x74\145\x72\42\51\75\x3d\x27" . $Lsessionid . "\x27\51\40\173\12\40\40\40\x20\x20\x20\40\40\40\x20\x20\x20\x20\40\x20\40\40\x20\x20\40\40\40\x20\x20\x20\40\x20\x20\x24\x28\x22\x23\145\x63\157\x75\x74\x65\x72\x5f" . $Lsessionid . "\42\51\x2e\x63\x73\163\x28\x22\x62\x61\x63\x6b\147\x72\x6f\x75\x6e\x64\x22\54\x22\43\x66\146\60\x22\x29\73\xa\x20\40\x20\40\40\40\x20\x20\40\x20\40\x20\40\x20\40\x20\x20\40\40\x20\x20\x20\40\40\175\xa\40\x20\x20\40\40\40\40\40\40\40\40\x20\40\x20\40\40\40\x20\x20\40\40\40\x20\x20\151\146\x28\x24\56\143\x6f\157\153\x69\x65\50\42\163\157\x75\146\x66\x6c\145\162\42\51\75\75\x27" . $Lsessionid . "\x27\51\40\173\12\x20\40\x20\40\40\x20\x20\40\x20\40\x20\40\40\40\40\40\40\x20\40\x20\x20\40\40\x20\40\40\40\x20\x24\x28\42\43\x73\x6f\x75\146\146\154\145\162\x5f" . $Lsessionid . "\x22\51\56\x63\163\163\x28\42\x62\141\143\153\x67\162\x6f\x75\156\144\x22\54\x22\43\146\146\60\x22\51\x3b\12\x20\x20\x20\x20\40\x20\x20\x20\x20\x20\x20\x20\x20\40\x20\x20\40\40\40\x20\40\x20\x20\40\x7d\12\x20\40\x20\40\x20\40\x20\40\x20\x20\40\x20\x20\x20\x20\40\40\x20\40\40\x7d\51\x3b\12\40\40\40\40\x20\x20\40\40\40\x20\40\40\40\x20\x20\40\40\x20\40\x20\x3c\57\163\x63\x72\x69\x70\164\x3e\12\40\40\40\x20\40\x20\40\x20\x20\x20\40\40\40\x20\x20\x20\x3c\57\164\144\x3e\12\40\40\x20\40\x20\x20\40\40\40\40\40\40\x20\x20\x20\40\74\x74\144\x20\x63\x6c\x61\x73\163\75\x22\141\x63\164\151\157\x6e\x2d\142\164\x6e\55\x63\150\x61\x74\x22\x3e\xa\x20\40\40\x20\40\40\40\40\40\x20\x20\40\40\x20\x20\x20\40\40\40\x20\x3c\141\x20\150\x72\x65\x66\x3d\42\x6a\x61\x76\141\x73\x63\x72\x69\x70\x74\72\157\160\145\156\143\150\141\x74\50\x27" . $Luser . "\x27\x2c\x27" . $user . "\x27\x2c\47" . $Acampaign_id[$i] . "\x27\51\x22\40\164\x69\164\154\x65\x3d\42\x43\x68\x61\x74\40\x61\166\x65\x63\40\154\47\141\147\x65\x6e\164\42\x20\143\x6c\x61\163\x73\x3d\x22\141\x6a\141\170\55\141\143\x74\151\x6f\156\x2d\x62\x74\x6e\40\141\143\164\x69\x6f\156\x2d\x62\164\156\x20\x62\164\x6e\x20\142\x74\156\55\167\150\x69\164\145\x20\142\x74\x6e\55\x78\163\x22\76\x3c\x69\xa\x20\40\x20\x20\x20\40\x20\x20\40\40\40\x20\40\x20\40\x20\40\40\40\40\x20\40\40\x20\40\x20\40\x20\40\40\x20\40\143\154\x61\163\x73\75\42\x66\x61\40\x66\141\x2d\167\145\x63\x68\141\x74\42\76\x3c\57\x69\76\x3c\x2f\x61\x3e\x3c\57\164\x64\76\12\40\x20\40\x20\x20\x20\40\40\x20\x20\x20\40\40\x20\x20\x20\x20\40\40\40\x20\x20\x20\x20\40\x20\40\40\40\x20\40\40\74\x74\x64\x20\143\154\x61\x73\x73\75\42\x61\x63\x74\x69\157\156\x2d\142\164\156\x2d\x63\150\x61\164\x22\x3e\12\40\x20\x20\x20\x20\40\40\x20\x20\40\40\x20\x20\x20\40\x20\40\x20\40\40\74\141\40\x68\162\145\x66\75\42\43\x22\40\x63\154\141\x73\x73\75\42\x61\x6a\x61\170\x2d\x61\x63\164\x69\x6f\x6e\55\142\164\156\x20\141\x67\145\156\164\x2d\144\x65\143\157\x6e\x6e\x65\x63\x74\40\x62\x74\156\x20\x62\164\156\x2d\144\x61\x6e\147\x65\x72\40\142\x74\156\55\x78\x73\42\40\x74\151\164\x6c\x65\75\x22\104\303\251\143\157\156\x6e\145\170\x69\157\156\42\40\x6f\156\143\x6c\x69\143\x6b\75\42\144\145\143\157\156\x6e\145\143\x74\x41\147\x65\x6e\x74\50\x27" . $Luser . "\x27\51\42\76\12\40\40\x20\x20\x20\x20\40\x20\40\x20\40\x20\40\x20\40\x20\40\40\x20\40\74\x69\x20\x63\154\141\x73\x73\x3d\42\146\x61\40\146\141\55\163\151\147\x6e\x2d\x6f\165\x74\x22\x3e\74\57\x69\x3e\74\57\x61\76\x3c\57\164\x64\x3e\x3c\57\164\162\x3e"; } $j++; } $Aecho .= "\74\57\164\142\x6f\x64\x79\76\74\57\x74\141\142\154\x65\76\x3c\x2f\x64\151\166\x3e\xa"; $AIDct = ''; $AIDtx = ''; if ($agent_indial > 0) { $AIDct = "\57{$agent_indial}"; $AIDtx = "\40\x2f\40" . _QXZ("\144\x69\141\154\x73"); } } $AIDct = ''; $AIDtx = ''; if ($agent_indial > 0) { $AIDct = "\40\x2f\40{$agent_indial}"; $AIDtx = "\40\x2f\40" . _QXZ("\144\x69\x61\x6c\x73"); } if ($agent_total > 0) { echo "\74\x64\151\166\x20\x63\154\x61\163\x73\75\42\x72\x74\x2d\143\141\155\x70\141\151\x67\x6e\x2d\x64\x65\x74\x61\x69\x6c\x73\x20\151\142\x6f\170\x20\146\154\157\141\164\x2d\x65\x2d\155\141\x72\147\151\x6e\x73\x20\42\x3e"; echo "\x3c\144\151\x76\40\x63\154\141\163\x73\75\42\x72\164\x2d\x63\141\x6d\x70\x61\151\x67\156\x2d\x69\x6e\x66\x6f\40\162\157\x77\x20\151\142\157\x78\x2d\x74\151\164\154\x65\x22\76\xa\x20\40\x20\x20\x20\40\40\x20\x20\40\x20\x20\x20\40\40\40\74\144\151\x76\40\x63\154\x61\x73\163\75\42\x63\157\x6c\55\x6d\x64\55\66\x22\76\12\40\x20\x20\x20\40\40\40\40\40\x20\40\x20\x20\x20\x20\40\x20\40\40\x20\74\144\x69\166\x20\x63\154\141\x73\163\x3d\x22\160\x75\x6c\x6c\55\x6c\x65\x66\x74\42\x3e\74\x68\x34\76\74\151\x20\143\154\x61\163\163\x3d\x22\146\x61\40\x66\141\55\x66\157\x6c\144\x65\x72\55\157\160\x65\156\x22\x20\x73\x74\171\154\x65\75\x22\143\x6f\x6c\x6f\162\x3a\43\60\x30\60\73\42\76\74\x2f\151\76\x20\103\x61\155\x70\141\147\x6e\x65\40\72\x20" . $ay_groupe_name[$kk] . "\xa\40\40\x20\40\x20\x20\x20\x20\x20\40\x20\40\40\x20\x20\x20\x20\40\40\x20\74\x2f\x68\64\76\74\x2f\144\x69\x76\76"; if ($out_live > 0) { echo "\x3c\144\151\x76\40\143\154\x61\163\x73\x3d\42\x6c\141\x62\x65\154\x20\154\x61\142\145\x6c\x2d\144\141\x6e\x67\145\162\40\x72\145\141\154\164\x69\155\145\x2d\144\x72\157\x70\x2d\x6e\157\164\x69\146\151\x63\x61\164\151\157\x6e\42\x3e\12\40\x20\40\x20\x20\40\40\x20\x20\x20\x20\40\40\x20\40\x20\x20\x20\x20\x20" . $out_live . "\x20\x41\x70\x70\145\x6c\50\163\51\40\x65\156\40\x61\x74\x74\x65\x6e\164\x65\x20\144\47\141\147\x65\156\164\x20\x3c\x2f\x64\x69\166\x3e"; } echo "\74\57\x64\x69\x76\76\74\144\151\166\40\143\154\141\x73\x73\75\x22\x63\157\x6c\55\155\144\x2d\x36\42\76\xa\x20\x20\x20\40\x20\x20\x20\x20\x20\x20\40\x20\x20\40\40\40\40\40\40\40\40\x20\40\40\40\40\40\x20\74\x73\x70\141\156\40\163\x74\171\154\145\x3d\42\160\157\x73\x69\164\151\x6f\x6e\x3a\x61\x62\163\157\x6c\165\x74\145\x3b\x20\x72\151\147\x68\164\x3a\61\65\x70\170\x3b\40\164\157\160\x3a\x20\60\73\x22\x3e\xa\x20\x20\x20\x20\40\40\40\x20\x20\40\x20\x20\x20\x20\40\40\x20\x20\40\x20\40\x20\x20\x20\40\40\x20\40\40\40\40\x20\x3c\x61\40\150\x72\145\146\x3d\42\x6a\x61\x76\x61\163\x63\x72\x69\160\x74\72\157\x70\x65\x6e\x63\x68\141\x74\50\47\x63\x61\x6d\x70\x61\x69\147\x6e\x27\x2c\x30\54\47" . $ay_groupes[$kk] . "\47\x2c\47" . $ay_groupe_name[$kk] . "\x27\51\x22\40\164\151\x74\x6c\x65\75\42\x43\150\141\164\42\40\143\x6c\141\x73\163\x3d\42\x61\152\141\170\55\141\x63\x74\151\157\156\55\142\164\156\x20\x61\143\x74\151\x6f\x6e\x2d\142\164\x6e\x20\x62\x74\156\40\x62\x74\156\55\x70\162\x69\x6d\141\162\x79\40\142\x74\156\x2d\170\163\42\76\74\x69\40\x63\154\x61\x73\163\75\x22\x66\x61\40\x66\141\55\x77\145\x63\150\141\164\x22\76\x3c\x2f\151\x3e\74\57\x61\76\74\57\163\160\141\x6e\x3e\40\xa\40\x20\40\40\40\x20\40\40\x20\40\40\40\40\40\x20\40\x3c\x61\x20\x68\x72\145\146\x3d\42\43\x22\40\143\154\141\x73\163\75\x22\142\164\156\x20\x62\164\x6e\55\x64\x61\156\x67\145\162\40\x62\164\x6e\x2d\x78\163\42\40\x6f\156\143\154\x69\x63\x6b\x3d\42\x64\x65\143\x6f\156\x6e\x65\x63\x74\x41\x6c\154\x28\x27" . $ay_groupes[$kk] . "\x27\x29\x22\40\163\x74\171\x6c\145\75\x22\146\x6c\x6f\141\164\72\x20\162\x69\x67\150\164\73\x6d\x61\x72\147\x69\156\55\162\x69\147\x68\x74\72\x20\64\60\x70\x78\73\42\76\104\303\xa9\143\157\x6e\156\x65\143\x74\145\162\40\164\x6f\165\x73\40\x6c\145\x73\40\x61\147\145\x6e\164\163\74\x2f\x61\x3e\x3c\x2f\144\x69\166\76\xa\x20\x20\x20\x20\40\40\x20\40\40\x20\40\x20\x3c\57\x64\x69\166\x3e"; echo "\x3c\x64\151\x76\40\143\154\141\163\x73\75\x22\162\x74\x2d\163\x74\x61\x74\55\167\x72\x61\160\x70\145\x72\40\162\157\x77\40\x69\x62\x6f\x78\55\143\157\x6e\164\x65\156\x74\42\x3e"; $attente = 0; $moyenne = 0; if (!empty($attentes)) { $attente = max($attentes); $moyenne = array_sum($attentes) / count($attentes); $moyenne = intval($moyenne); } $vitesse = $DIALlev * 100 / 12; echo "\74\x64\151\x76\x20\x63\x6c\x61\163\x73\x3d\x22\143\157\154\55\155\144\x2d\62\x20\143\x6f\x6c\x2d\155\x64\55\x32\x2d\x31\x22\x3e\xa\40\40\x20\x20\40\40\x20\40\x20\x20\x20\40\x20\x20\x20\x20\x3c\x64\151\x76\x20\143\x6c\x61\x73\163\x3d\42\x72\157\167\x22\76\12\40\x20\40\x20\x20\40\40\x20\40\40\x20\40\40\40\40\40\x20\x20\40\x20\74\144\151\166\40\x63\x6c\141\x73\x73\75\42\143\x6f\x6c\55\x78\163\x2d\61\62\x20\143\157\154\x2d\x6d\x64\x2d\61\62\42\76\12\x20\x20\x20\40\40\40\40\x20\x20\x20\40\40\40\x20\40\x20\40\40\40\x20\40\x20\x20\40\x3c\x64\151\166\40\143\154\x61\163\163\75\x22\151\142\157\x78\55\164\x69\x74\x6c\145\x22\40\163\164\x79\154\x65\x3d\x22\x70\141\144\144\x69\x6e\x67\x3a\40\60\73\142\157\x72\144\x65\x72\72\x20\x30\73\155\141\x72\147\x69\156\55\154\145\146\x74\x3a\x20\55\61\65\x70\170\73\x6d\141\162\147\151\x6e\x2d\x72\x69\x67\150\164\72\x20\55\61\60\160\x78\73\150\x65\151\147\x68\x74\x3a\x20\x30\73\42\x3e\xa\40\40\40\x20\x20\x20\x20\40\x20\40\40\x20\x20\x20\40\40\x20\x20\40\x20\x20\x20\40\x20\40\40\40\x20\74\x64\151\166\x20\143\154\x61\163\x73\75\42\160\x75\x6c\x6c\55\x6c\x65\x66\164\42\x3e\74\150\65\40\x73\164\171\154\x65\75\x22\x63\x6f\x6c\157\x72\x3a\40\x23\x30\60\x33\64\146\x66\73\x22\x3e\124\162\x61\x66\x69\x63\40\x73\157\162\x74\141\x6e\164\x3c\x2f\150\65\76\74\57\144\151\166\x3e\12\x20\40\40\x20\40\x20\40\x20\x20\40\x20\40\40\40\x20\x20\40\x20\x20\x20\40\x20\x20\x20\x20\40\40\40\x3c\144\151\x76\40\143\154\x61\x73\163\x3d\42\x70\165\154\x6c\55\162\x69\147\x68\x74\42\76\xa\x20\x20\x20\40\x20\40\40\x20\x20\x20\40\40\x20\x20\40\x20\x20\x20\x20\x20\x20\40\x20\40\x20\x20\40\x20\x20\40\40\x20\x3c\144\x69\x76\40\143\154\x61\163\163\x3d\x22\141\166\x65\162\x61\x67\145\55\x77\x61\151\x74\x2d\164\x6f\x64\x61\171\40\x6c\x61\x62\145\154\40\154\x61\142\145\x6c\x2d\163\x75\x63\x63\145\163\163\42\76\12\40\40\x20\40\x20\40\x20\40\40\40\40\x20\x20\x20\x20\x20\40\40\x20\40\40\40\40\x20\40\40\x20\x20\40\40\40\40\40\x20\40\40\x3c\151\40\x63\154\141\x73\163\x3d\x22\x66\x61\40\x66\141\x2d\143\154\157\x63\153\55\157\x22\x3e\x3c\x2f\x69\x3e\x20\xa\40\x20\40\40\40\x20\40\x20\40\x20\x20\40\x20\x20\x20\40\40\x20\x20\40\x20\x20\40\40\40\40\40\x20\x20\x20\40\x20\x20\40\40\40\x3c\163\160\x61\156\40\143\x6c\141\163\x73\75\42\x66\157\156\x74\x2d\x62\157\154\x64\42\76\x26\x6e\142\163\160\73" . $attente . "\x20\163\x3c\x2f\163\x70\141\x6e\76\12\x20\40\40\x20\x20\x20\x20\40\x20\x20\x20\40\x20\40\40\x20\x20\x20\40\x20\x20\40\40\40\40\40\40\x20\40\40\x20\40\x3c\x2f\x64\x69\166\x3e\12\40\40\x20\x20\x20\40\x20\x20\x20\40\x20\40\40\40\40\40\40\x20\x20\40\40\40\40\40\40\x20\40\40\74\x2f\x64\x69\x76\76\12\40\x20\x20\x20\40\x20\x20\40\x20\40\x20\x20\40\x20\40\40\x20\x20\x20\x20\x20\x20\40\x20\74\57\144\x69\x76\76\12\40\40\40\40\40\40\40\x20\40\x20\40\40\x20\x20\40\x20\x20\x20\x20\x20\x3c\57\144\x69\x76\76\12\40\x20\x20\x20\40\40\40\x20\40\40\x20\x20\x20\40\40\x20\40\x20\40\x20\x3c\x64\151\x76\x20\x63\154\x61\163\163\75\42\x63\157\154\x2d\155\x64\55\x31\x32\x20\141\147\x65\156\x74\163\x2d\143\x6f\165\156\x74\55\x73\164\141\x74\x75\x73\42\76\12\40\40\40\40\40\x20\x20\x20\40\x20\x20\x20\40\40\x20\x20\40\x20\x20\x20\x20\x20\x20\x20\x3c\163\x70\141\156\40\143\x6c\x61\163\x73\x3d\42\163\164\141\x74\165\x73\x2d\164\145\170\164\x22\76\x43\157\155\160\x6f\x73\x69\164\151\x6f\x6e\74\x2f\x73\x70\141\156\x3e\xa\40\x20\40\x20\x20\x20\x20\x20\40\x20\x20\x20\x20\x20\40\x20\x20\40\40\40\40\40\x20\40\x3c\x64\x69\166\40\143\154\x61\x73\x73\x3d\42\x70\165\x6c\154\x2d\x72\151\x67\150\x74\x22\x3e\xa\40\x20\40\40\40\40\x20\x20\x20\40\40\x20\x20\x20\x20\40\x20\x20\x20\x20\40\40\40\40\x3c\163\x70\141\156\40\143\154\141\x73\163\75\42\142\141\x64\x67\145\40\x73\x74\x61\x74\x75\x73\x2d\x63\157\x6d\x22\x3e" . $out_total . "\x3c\x2f\163\x70\x61\156\76\xa\40\x20\x20\40\40\x20\40\40\x20\x20\x20\x20\40\x20\40\40\40\40\x20\x20\40\40\40\40\x3c\x2f\x64\151\x76\76\12\x20\40\x20\40\x20\40\40\40\40\40\40\x20\40\x20\40\x20\x20\x20\40\40\40\x20\x20\x20\x3c\x64\x69\x76\x20\x63\154\x61\x73\x73\75\42\142\x6f\162\x64\x65\162\145\144\x20\163\x74\x61\164\165\x73\55\143\x6f\155\x22\76\74\x2f\x64\x69\166\x3e\xa\x20\40\x20\x20\x20\x20\x20\x20\40\x20\x20\40\40\x20\x20\x20\x20\x20\40\x20\x3c\x2f\x64\151\166\x3e\12\12\40\40\40\40\40\40\x20\x20\40\x20\40\40\40\40\x20\x20\x20\40\40\40\74\x64\x69\x76\40\143\154\141\163\x73\75\42\143\x6f\x6c\55\155\144\55\61\x32\40\141\147\x65\x6e\x74\163\55\143\x6f\x75\x6e\164\55\x73\x74\141\x74\165\163\42\x3e\xa\40\40\x20\x20\x20\40\40\x20\40\40\40\x20\x20\40\40\40\x20\x20\40\40\x20\40\40\x20\74\163\160\141\x6e\40\143\154\x61\163\163\75\x22\163\x74\141\164\x75\163\x2d\164\145\x78\x74\x22\x3e\103\157\156\x74\x61\143\x74\x73\40\x64\151\163\x70\x6f\156\x69\x62\154\145\163\x3c\x2f\163\x70\141\156\x3e\xa\x20\40\40\40\40\40\x20\40\40\40\40\40\x20\40\40\40\x20\x20\40\40\40\x20\40\40\74\144\x69\166\x20\143\x6c\x61\163\x73\75\42\160\165\154\154\55\162\x69\x67\x68\x74\x22\x3e\12\x20\x20\40\40\x20\x20\40\x20\x20\x20\40\x20\40\40\40\40\x20\x20\40\x20\40\40\40\40\x3c\163\160\x61\156\40\x63\x6c\x61\x73\x73\75\x22\142\x61\x64\147\x65\x20\x73\x74\x61\164\x75\x73\55\144\151\163\x70\x6f\156\151\x62\154\145\42\76" . $DAleads . "\x3c\57\163\x70\x61\156\76\12\x20\40\x20\40\x20\x20\40\40\x20\40\40\x20\40\x20\40\x20\x20\40\40\x20\x20\x20\40\40\x3c\57\x64\151\x76\x3e\xa\x20\40\x20\x20\x20\x20\x20\x20\x20\x20\40\40\x20\x20\x20\x20\40\40\40\x20\x20\x20\40\x20\x3c\x64\x69\x76\x20\x63\x6c\x61\163\163\x3d\x22\142\x6f\162\x64\x65\x72\145\144\40\x73\x74\x61\164\x75\163\x2d\144\151\x73\160\157\x6e\151\142\x6c\x65\x22\x3e\74\57\x64\151\x76\76\xa\x20\x20\x20\40\40\40\40\x20\x20\x20\40\x20\40\x20\40\x20\40\x20\x20\40\74\x2f\144\151\166\x3e\xa\12\x20\x20\40\x20\x20\40\x20\x20\40\x20\x20\x20\40\40\40\40\40\40\x20\x20\x3c\x64\151\166\40\x63\154\141\163\163\x3d\42\143\157\154\55\x6d\x64\x2d\x31\x32\x20\141\x67\x65\x6e\x74\x73\x2d\x63\x6f\x75\x6e\x74\x2d\163\x74\141\x74\x75\163\x22\x3e\12\x20\x20\40\x20\40\x20\x20\x20\x20\40\x20\x20\x20\40\40\x20\40\40\x20\x20\x20\x20\40\40\74\163\160\141\156\x20\143\154\x61\x73\163\75\x22\163\x74\x61\x74\165\x73\x2d\x74\x65\x78\x74\42\x3e\x41\160\x70\x65\x6c\x73\74\57\x73\x70\x61\156\76\12\40\x20\40\40\40\40\x20\x20\x20\x20\40\40\40\x20\x20\x20\x20\40\40\40\x20\40\40\40\74\144\x69\166\40\x63\154\141\x73\x73\x3d\42\x70\x75\x6c\154\55\x72\x69\147\x68\x74\x22\76\x3c\163\x70\141\x6e\x20\143\x6c\141\x73\163\x3d\x22\142\141\144\147\145\40\x73\164\141\164\x75\x73\x2d\x61\160\160\145\154\x22\76" . $callsTODAY . "\x3c\57\163\x70\141\156\x3e\74\x2f\144\151\166\76\12\x20\x20\x20\40\x20\x20\40\x20\40\40\40\40\40\x20\40\40\40\x20\40\x20\40\40\40\40\x3c\x64\151\166\40\x63\x6c\x61\x73\x73\x3d\42\x62\157\162\144\x65\x72\145\144\40\163\164\x61\x74\x75\x73\x2d\141\x70\160\x65\x6c\42\76\x3c\57\144\x69\166\x3e\xa\40\x20\40\x20\40\x20\40\x20\40\40\x20\x20\40\40\x20\40\x20\40\x20\x20\74\57\144\x69\x76\76\12\12\x20\40\x20\x20\40\x20\40\x20\x20\40\40\40\x20\x20\40\x20\40\x20\40\x20\x3c\x64\151\x76\40\143\x6c\x61\163\x73\x3d\x22\x63\157\x6c\x2d\155\144\55\61\x32\40\x61\147\x65\156\164\x73\55\143\157\165\x6e\x74\55\163\x74\141\x74\x75\163\42\76\12\40\x20\x20\x20\40\40\x20\x20\x20\x20\x20\x20\40\x20\40\40\x20\40\40\40\x20\40\x20\x20\74\163\160\x61\156\x20\143\x6c\x61\x73\163\x3d\x22\x73\164\141\x74\x75\x73\55\164\145\x78\x74\x22\x3e\x41\x62\141\156\x64\157\x6e\x73\74\57\163\160\141\156\x3e\12\x20\x20\x20\40\x20\40\x20\40\x20\40\x20\40\40\40\40\x20\x20\40\40\40\x20\x20\x20\40\74\x64\151\166\40\x63\154\141\163\x73\x3d\x22\160\x75\154\x6c\x2d\x72\151\147\x68\x74\42\x3e\x3c\x73\x70\x61\156\x20\x63\154\x61\163\163\75\x22\142\x61\x64\147\x65\40\163\164\141\x74\x75\163\55\x61\x62\x61\156\x22\x3e" . floor($drpctTODAY) . "\x25\74\x2f\x73\x70\x61\x6e\76\x3c\x2f\144\x69\x76\x3e\xa\40\40\x20\40\x20\40\x20\40\40\x20\x20\x20\x20\x20\x20\40\40\40\40\x20\40\x20\40\x20\74\144\151\x76\x20\x63\154\141\163\163\x3d\42\142\x6f\162\144\145\x72\x65\x64\x20\163\164\141\x74\x75\x73\55\141\x62\141\156\42\76\x3c\x2f\144\x69\x76\x3e\12\x20\x20\40\40\x20\x20\x20\40\40\x20\x20\40\x20\40\40\40\x20\x20\x20\40\74\57\x64\151\x76\76\xa\x20\x20\40\x20\40\x20\x20\x20\x20\40\x20\x20\40\x20\40\40\40\40\40\40\74\x64\x69\166\40\x63\154\141\163\x73\75\42\x63\x6f\x6c\x2d\x6d\x64\55\x31\62\x20\141\x67\x65\x6e\164\163\55\143\157\x75\156\x74\55\x73\x74\141\164\165\x73\x20\163\154\151\144\145\x72\137\144\x69\x76\42\40\163\x74\171\x6c\x65\x3d\x22\x6d\141\162\147\x69\156\55\164\x6f\x70\72\40\61\x35\x70\x78\73\42\76\xa\40\40\x20\40\40\40\x20\40\40\40\40\x20\40\x20\x20\40\40\x20\40\x20\x20\x20\x20\x20\x20\40\x20\x20\x3c\x64\151\x76\x20\143\154\141\163\x73\75\x22\160\x75\x6c\x6c\55\154\145\x66\x74\42\x3e\126\x69\x74\145\163\x73\145\74\x2f\x64\151\x76\76\xa\40\40\x20\x20\x20\x20\x20\x20\40\x20\x20\x20\x20\x20\x20\40\40\40\x20\40\x20\40\x20\x20\x20\40\40\40\x3c\144\x69\166\40\143\154\141\163\x73\x3d\42\160\x75\x6c\x6c\x2d\162\151\147\x68\164\42\76\x3c\163\160\141\156\40\143\154\141\163\163\x3d\x22\x62\141\144\147\x65\40\x73\164\141\x74\165\x73\55\x76\151\164\x65\163\163\145\x22\40\x69\144\x3d\42\163\x70\145\145\x64\x2d\x70\145\162\x63\x65\x6e\164\x2d\x50\x49\x58\x36\x35\x31\x32\63\42\x3e" . floor($vitesse) . "\40\x25\74\x2f\163\x70\x61\156\x3e\74\57\x64\151\166\76\xa\40\40\40\40\40\40\40\40\x20\40\x20\40\40\40\40\40\x20\x20\x20\40\x20\x20\x20\40\x20\40\x20\40\74\144\x69\166\x20\x63\154\141\x73\163\x3d\x22\x6d\55\164\55\155\x64\x22\40\x73\x74\171\x6c\145\x3d\x22\x77\151\144\164\x68\72\61\60\60\x25\73\42\76\12\x20\40\x20\40\x20\40\x20\40\40\40\x20\40\x20\40\x20\x20\40\x20\x20\40\40\40\40\x20\40\x20\40\40\x3c\151\156\160\165\x74\x20\x74\x79\x70\x65\x3d\x22\162\x61\x6e\x67\x65\x22\40\155\x69\156\x3d\42\x30\42\x20\155\141\170\x3d\x22\x31\x32\42\40\143\154\x61\163\163\75\x22\146\157\162\x6d\x2d\162\x61\156\x67\x65\x20\x73\x6c\x69\x64\x65\x72\137\x76\151\164\145\x73\163\x65\x22\40\144\x61\164\141\x2d\143\x6f\155\160\x61\x67\x6e\145\75\x22" . $ay_groupes[$kk] . "\x22\x20\x69\x64\75\42\x76\x69\x74\145\163\163\145" . $ay_groupes[$kk] . "\42\x20\166\141\x6c\165\145\75\x22" . ($DIALlev) . "\42\x2f\x3e\xa\40\x20\40\x20\40\x20\x20\x20\x20\x20\40\x20\x20\x20\x20\40\x20\x20\40\40\40\40\x20\40\x20\x20\x20\40\x3c\57\x64\151\x76\76\xa\40\40\x20\x20\x20\x20\40\40\x20\x20\x20\x20\40\x20\x20\40\x20\40\40\40\x3c\57\x64\151\166\x3e\xa\x20\x20\x20\x20\40\x20\40\40\40\x20\x20\x20\x3c\x2f\144\x69\166\x3e"; echo $ingroup_detail; echo "\74\x2f\x64\151\166\76"; $total_ventes = getTotalVentesToDay($Acampaign_id[$i]); echo "\x3c\x64\151\166\x20\143\x6c\141\163\163\x3d\42\x63\157\x6c\x2d\155\144\x2d\61\x30\40\x63\157\x6c\x2d\155\144\x2d\61\60\55\61\42\x3e\xa\x20\40\x20\40\x20\40\40\40\40\40\40\40\74\144\x69\166\x20\x63\154\141\163\x73\x3d\42\143\x6f\156\x74\141\151\x6e\145\x72\x2d\x66\154\x75\151\x64\x22\x3e\12\x20\40\x20\x20\40\40\x20\x20\x20\x20\40\x20\40\40\40\x20\x3c\144\x69\166\x20\151\x64\75\42\x61\x67\145\156\x74\163\x2d\x73\x74\141\x74\165\163\x22\x20\143\154\x61\163\x73\x3d\42\162\157\167\x22\x3e\xa\40\x20\x20\x20\x20\40\x20\40\x20\40\40\40\x20\40\x20\x20\40\x20\40\40\74\144\x69\x76\x20\143\x6c\x61\x73\163\x3d\x22\143\x6f\x6c\55\170\163\55\61\62\x20\143\157\x6c\55\x6d\144\55\x31\40\x61\147\x65\x6e\164\163\55\143\x6f\165\x6e\x74\55\163\x74\x61\164\165\x73\42\x3e\12\40\40\x20\x20\40\x20\40\40\40\x20\x20\x20\40\x20\40\x20\40\x20\40\40\40\40\x20\x20\x3c\163\x70\141\x6e\x20\143\154\141\163\x73\x3d\x22\x6c\141\x62\x65\154\x20\x73\x74\141\164\x75\163\55\164\x6f\164\x61\154\42\76" . $agent_total . "\x3c\x2f\163\160\x61\x6e\76\12\x20\x20\40\x20\x20\x20\40\x20\x20\40\x20\x20\40\x20\40\40\x20\x20\x20\40\40\x20\40\40\x3c\x73\x70\141\x6e\40\x63\154\141\x73\x73\x3d\42\163\x74\x61\x74\165\x73\55\164\145\x78\164\42\x3e\101\147\145\156\x74\x73\x3c\57\x73\x70\x61\156\x3e\12\40\40\x20\x20\40\x20\x20\x20\x20\x20\x20\40\x20\40\40\x20\40\x20\40\x20\40\40\40\40\x3c\144\151\166\x20\143\x6c\141\x73\x73\75\x22\142\157\162\x64\x65\162\145\144\x20\x73\x74\x61\x74\165\x73\x2d\x74\157\x74\141\x6c\42\76\74\57\x64\151\x76\x3e\xa\x20\40\x20\40\40\40\40\40\40\x20\x20\x20\x20\x20\x20\x20\x20\x20\40\40\x3c\x2f\x64\x69\x76\76\12\12\x20\40\40\x20\x20\40\x20\x20\40\40\x20\40\x20\40\40\x20\40\x20\40\40\74\x64\151\166\x20\x63\x6c\141\x73\163\75\x22\143\157\154\55\x78\163\x2d\x31\x32\x20\143\157\154\x2d\x6d\x64\55\x32\x20\x61\x67\x65\x6e\x74\163\55\x63\157\165\x6e\x74\55\163\164\x61\x74\x75\163\42\x3e\12\40\x20\x20\x20\x20\40\x20\40\40\x20\x20\40\x20\x20\x20\x20\40\x20\x20\x20\x20\x20\x20\x20\x3c\x73\160\141\x6e\40\x63\x6c\x61\163\x73\75\x22\154\141\x62\145\x6c\x20\x73\164\x61\x74\x75\163\55\x72\x65\141\x64\x79\x22\76" . $agent_ready . "\x3c\57\x73\x70\x61\x6e\76\12\x20\40\x20\40\40\x20\x20\x20\x20\40\x20\40\x20\x20\40\40\x20\40\x20\x20\40\x20\x20\40\x3c\163\160\x61\x6e\x20\x63\154\x61\163\163\x3d\x22\x73\x74\x61\164\165\x73\55\x74\145\x78\164\42\x3e\101\x74\164\145\x6e\164\145\x3c\57\x73\x70\141\x6e\76\xa\x20\40\x20\40\x20\40\40\40\x20\x20\x20\x20\40\x20\40\x20\x20\40\x20\40\40\40\x20\40\x3c\x64\x69\x76\40\143\x6c\x61\163\163\75\x22\x62\157\162\144\145\x72\145\144\x20\x73\x74\141\164\165\x73\x2d\x72\145\141\144\171\42\x3e\74\x2f\x64\151\166\76\xa\x20\40\40\x20\40\40\x20\x20\x20\40\40\x20\x20\40\x20\x20\x20\40\x20\40\x3c\57\144\x69\166\x3e\12\xa\40\x20\x20\40\x20\40\x20\40\x20\40\40\40\40\40\40\40\40\40\x20\x20\74\144\x69\166\x20\x63\x6c\141\163\x73\75\x22\143\x6f\x6c\55\170\163\x2d\61\x32\x20\x63\x6f\154\x2d\x6d\x64\55\62\40\141\x67\145\156\164\x73\55\143\157\165\156\164\x2d\163\164\141\164\165\x73\42\x3e\xa\x20\x20\x20\x20\x20\40\x20\40\x20\40\40\40\x20\40\x20\x20\x20\40\40\40\40\40\x20\x20\x3c\x73\160\141\156\x20\x63\154\x61\x73\163\x3d\x22\154\x61\142\x65\x6c\40\x73\x74\141\x74\x75\x73\55\151\156\143\141\154\x6c\42\x3e" . $agent_incall . "\x3c\x2f\x73\x70\141\x6e\76\12\x20\x20\x20\x20\x20\40\40\x20\40\x20\40\40\x20\40\40\40\40\x20\40\40\x20\40\x20\x20\74\163\x70\x61\x6e\40\143\x6c\x61\163\x73\75\x22\163\x74\141\164\165\x73\x2d\x74\x65\x78\164\42\x3e\101\x70\x70\x65\x6c\x3c\57\163\160\x61\x6e\x3e\12\40\x20\40\40\x20\x20\x20\40\x20\40\40\x20\x20\40\x20\40\x20\x20\40\40\x20\x20\x20\40\74\144\151\x76\x20\143\154\x61\163\163\x3d\42\142\157\x72\x64\x65\x72\145\144\x20\x73\164\141\x74\x75\x73\55\x69\156\x63\141\154\x6c\42\76\x3c\57\x64\x69\x76\x3e\xa\x20\x20\x20\x20\x20\40\x20\x20\x20\40\40\x20\40\x20\x20\40\40\x20\x20\x20\74\57\144\151\166\76\12\12\40\40\40\x20\40\40\x20\x20\40\x20\40\x20\40\x20\40\x20\x20\40\40\x20\x3c\144\151\166\x20\x63\154\141\x73\x73\75\x22\143\x6f\x6c\55\x78\x73\55\61\x32\x20\143\x6f\x6c\55\155\x64\55\62\x20\x61\147\x65\156\164\163\x2d\x63\157\x75\x6e\x74\55\x73\x74\x61\164\x75\x73\x22\76\12\x20\40\x20\40\40\x20\40\40\x20\40\x20\x20\x20\x20\x20\40\40\x20\x20\x20\40\40\40\40\74\x73\x70\x61\x6e\x20\x63\154\141\x73\163\75\42\x6c\141\142\145\x6c\40\x73\164\x61\x74\x75\163\x2d\160\x61\165\x73\x65\144\42\76" . $agent_paused . "\74\57\x73\160\x61\156\x3e\12\40\40\x20\x20\x20\40\40\x20\40\40\x20\40\x20\40\40\40\40\x20\40\x20\x20\x20\x20\x20\x3c\163\x70\x61\156\x20\x63\154\x61\163\x73\75\42\x73\164\x61\x74\x75\x73\55\x74\x65\170\164\x22\x3e\x50\x61\x75\x73\145\x3c\57\163\160\141\x6e\76\12\x20\40\40\x20\40\x20\40\x20\40\40\40\40\x20\x20\x20\40\x20\x20\40\40\x20\x20\40\x20\x3c\x64\151\166\40\143\154\x61\x73\163\x3d\42\142\157\x72\144\x65\x72\x65\x64\40\x73\164\141\164\165\x73\x2d\160\141\165\x73\x65\144\42\x3e\x3c\57\x64\151\x76\76\xa\40\x20\40\x20\x20\40\x20\40\40\40\x20\40\40\40\40\40\x20\x20\x20\40\x3c\57\144\151\166\76\xa\12\x20\x20\40\40\40\x20\x20\x20\40\x20\40\40\x20\40\x20\40\40\40\x20\40\74\x64\151\166\40\x63\154\x61\x73\163\75\x22\x63\x6f\x6c\x2d\x78\163\55\61\62\40\143\157\154\x2d\155\144\55\62\x20\x61\147\x65\156\x74\x73\55\143\157\x75\x6e\164\x2d\x73\x74\x61\164\x75\x73\42\76\12\x20\x20\x20\x20\40\x20\x20\40\40\40\x20\40\x20\x20\x20\x20\40\x20\40\40\40\x20\x20\x20\74\163\160\x61\156\40\143\154\141\163\163\75\x22\154\x61\142\145\154\x20\163\x74\141\x74\165\x73\55\144\151\x73\160\x6f\42\76" . $agent_dispo . "\74\57\163\x70\141\156\76\xa\40\40\40\x20\x20\40\x20\40\40\x20\40\x20\40\x20\x20\40\40\40\40\40\x20\40\40\40\74\163\160\x61\x6e\x20\143\154\x61\x73\x73\x3d\42\x73\x74\x61\164\165\163\x2d\x74\145\170\164\x22\x3e\40\x51\x75\141\154\x69\x66\x69\x63\141\164\x69\157\156\74\57\x73\x70\x61\x6e\x3e\xa\40\x20\40\x20\x20\40\x20\x20\40\x20\40\40\40\40\40\x20\x20\x20\40\x20\x20\40\40\x20\x3c\x64\x69\x76\40\143\x6c\x61\x73\x73\75\42\x62\x6f\162\144\145\x72\x65\x64\40\163\x74\x61\x74\x75\x73\x2d\x64\151\163\160\157\x22\76\74\x2f\144\151\x76\76\12\x20\40\40\x20\x20\x20\40\x20\x20\x20\x20\x20\x20\40\x20\40\40\40\x20\x20\x3c\x2f\144\x69\166\76\xa\xa\40\40\x20\x20\40\x20\x20\x20\40\40\40\40\40\x20\40\x20\40\40\x20\x20\74\x64\151\x76\x20\x63\x6c\141\163\163\x3d\x22\x63\x6f\154\55\x78\x73\55\61\x32\x20\x63\157\x6c\x2d\155\144\x2d\62\40\141\x67\145\x6e\x74\x73\x2d\143\157\x75\156\164\55\x73\x74\x61\164\165\163\42\76\xa\40\x20\x20\40\x20\40\40\40\x20\40\x20\40\40\40\x20\x20\x20\x20\40\40\40\x20\x20\40\74\163\x70\141\156\40\143\x6c\x61\x73\x73\75\42\154\x61\142\145\x6c\40\163\x74\x61\x74\165\163\x2d\x64\145\141\144\42\76" . $agent_dead . "\x3c\57\x73\160\x61\x6e\76\12\40\40\x20\40\x20\40\x20\x20\x20\x20\40\40\x20\40\x20\40\x20\40\x20\x20\x20\x20\40\x20\74\163\160\141\156\x20\x63\x6c\141\x73\163\x3d\x22\163\x74\x61\x74\x75\163\x2d\x74\x65\x78\164\42\76\x46\x69\156\x20\144\x27\x61\160\160\145\154\74\x2f\x73\x70\141\x6e\x3e\12\40\x20\40\x20\x20\x20\40\40\40\40\40\x20\40\40\40\x20\40\40\40\x20\40\x20\40\40\x3c\x64\x69\x76\40\x63\x6c\141\x73\x73\75\x22\x62\157\x72\144\x65\x72\x65\x64\40\163\x74\x61\x74\x75\x73\55\x64\x65\x61\144\x22\x3e\74\x2f\x64\151\x76\x3e\12\x20\40\40\40\40\40\x20\40\x20\x20\40\40\40\x20\x20\x20\x20\40\x20\40\x3c\57\144\151\166\x3e\12\40\40\x20\x20\x20\x20\x20\40\x20\x20\x20\40\40\40\x20\x20\x20\x20\x20\x20\xa\40\40\x20\40\x20\x20\x20\40\40\x20\x20\40\40\40\x20\40\40\40\40\x20\x3c\x64\151\x76\40\143\154\x61\163\163\75\42\143\157\154\x2d\x78\163\x2d\x31\x32\40\x63\157\x6c\55\x6d\144\55\61\x20\x61\x67\x65\156\164\163\x2d\143\x6f\165\156\164\x2d\x73\x74\x61\164\165\163\42\76\xa\x20\40\40\40\40\x20\40\40\x20\x20\40\40\x20\40\x20\40\x20\40\x20\x20\40\x20\40\40\x3c\x73\160\x61\156\x20\143\154\141\163\x73\x3d\42\x6c\141\x62\145\x6c\x20\x73\x74\x61\164\x75\163\55\166\x65\x6e\x74\x65\42\76" . $total_ventes . "\74\57\x73\160\141\156\76\xa\x20\40\x20\40\x20\40\40\x20\x20\x20\40\40\40\x20\40\40\40\x20\40\40\x20\x20\x20\40\74\163\160\x61\156\40\x63\x6c\x61\x73\163\x3d\x22\163\x74\x61\x74\x75\x73\x2d\164\x65\170\x74\x22\76\126\x65\156\164\x65\163\74\57\x73\160\141\156\76\xa\x20\40\x20\x20\x20\40\40\x20\40\40\x20\x20\40\40\x20\x20\x20\x20\x20\x20\40\x20\40\x20\74\x64\x69\166\40\x63\x6c\x61\x73\x73\75\x22\x62\x6f\162\144\x65\162\145\144\x20\163\164\x61\164\x75\163\x2d\x76\x65\x6e\164\145\x22\76\x3c\x2f\144\x69\x76\76\12\40\40\x20\40\40\x20\40\40\40\x20\x20\x20\40\x20\40\x20\40\40\40\x20\74\57\144\151\166\x3e\xa\40\x20\x20\x20\x20\40\40\x20\40\40\40\x20\40\x20\x20\x20\x3c\57\144\x69\x76\x3e\12\x20\x20\40\40\40\x20\40\x20\40\x20\x20\40\x3c\57\x64\151\x76\76\xa\x20\x20\x20\40\40\40\x20\x20\x3c\57\144\x69\166\76"; echo "\x3c\x64\151\166\x20\x63\154\141\163\163\x3d\42\143\157\154\55\x6d\x64\55\x31\x30\40\x63\157\154\x2d\155\x64\x2d\x31\x30\x2d\x31\40\155\55\x74\55\170\x73\x22\x3e"; echo "{$Aecho}"; echo "\x3c\x2f\x64\151\166\76"; echo "\74\x64\x69\x76\40\x63\154\141\x73\x73\x3d\x22\x63\157\x6c\x2d\155\144\x2d\x33\40\x6d\55\x74\55\170\x73\x20\x72\145\x61\x6c\164\x69\x6d\145\x2d\x73\x69\144\x65\142\x61\162\42\76"; echo "\74\x2f\x64\151\166\76"; echo "\74\57\144\x69\x76\76"; echo "\74\57\144\x69\166\76"; $displayAgent = 1; } $kk++; } goto vu1X3; u_I8A: $PHP_AUTH_USER = preg_replace("\x2f\133\x5e\55\137\60\x2d\71\x61\x2d\x7a\101\x2d\132\135\57", '', $PHP_AUTH_USER); goto xV6Gt; MQft_: $auth_message = user_authorization($PHP_AUTH_USER, $PHP_AUTH_PW, "\x52\x45\x50\x4f\x52\124\123", 0, 0); goto YEoyp; aIv9G: if (!isset($group)) { $group = "\x41\114\x4c\x2d\x41\103\124\111\126\105"; } goto kvMbP; WwLuJ: $stmt = "\123\x45\x4c\x45\x43\x54\40\x61\154\x6c\157\x77\x65\144\137\x63\141\155\160\141\x69\x67\156\163\54\141\x6c\x6c\157\167\x65\x64\x5f\162\145\160\x6f\x72\164\x73\54\141\x64\155\x69\156\137\166\x69\x65\x77\141\x62\x6c\x65\x5f\x67\162\x6f\165\x70\x73\54\x61\x64\x6d\x69\x6e\x5f\x76\x69\145\x77\x61\x62\x6c\x65\x5f\143\141\x6c\x6c\137\164\151\155\x65\163\x20\146\x72\157\x6d\40\166\x69\143\x69\x64\x69\141\154\x5f\165\163\x65\162\x5f\147\162\157\x75\x70\x73\40\x77\150\145\162\x65\x20\165\x73\x65\162\x5f\147\162\157\x75\x70\75\47{$LOGuser_group}\47\73"; goto FLaxT; g0DdS: $rt_report_times["\x74\x68\162\x65\x65\167\141\171\x5f\163\150\157\x72\x74\x5f\164\x69\x6d\145"] = 10; goto odo_1; xu7tG: $ay_groupes = array(); goto cCpCz; vpDWj: $LOGallowed_campaigns = $row[0]; goto h5i5B; OBNud: $LOGmodify_campaigns = $row[35]; goto FutOL; vgDEL: $regexLOGallowed_campaigns = "\x20{$LOGallowed_campaigns}\40"; goto SLHVp; k2El3: $LOGmodify_remoteagents = $row[41]; goto xS5Bw; LOUUC: $LOGallowed_reports = $row[1]; goto uy_wz; aMbyJ: $PHP_AUTH_USER = $_SESSION["\x50\x48\x50\137\x41\x55\x54\x48\137\125\x53\105\x52"]; goto KeElM; Fp4Fn: if (!isset($usergroup)) { $usergroup = ''; } goto HjTe5; RWInm: $rt_report_times["\x77\x61\x69\x74\x69\156\147\137\x6d\x65\x64\x69\165\x6d\137\164\x69\155\x65"] = 60; goto ku10C; AtABl: $orderby = preg_replace("\57\133\136\x2d\137\x30\x2d\71\141\x2d\x7a\x41\55\x5a\135\x2f", '', $orderby); goto xGBqQ; cCpCz: while ($i < $groups_to_print) { $row = mysqli_fetch_row($rslt); $ay_groupes[] = $row[0]; $ay_groupe_name[] = $row[1]; $LISTgroups[$i] = $row[0]; $LISTnames[$i] = $row[1]; $allactivecampaigns .= "\x27{$LISTgroups[$i]}\x27\x2c"; $i++; } goto ylQNv; kx8yc: $CALLSdisplay = preg_replace("\x2f\133\136\x2d\137\x30\x2d\x39\x61\55\172\x41\x2d\x5a\x5d\x2f", '', $CALLSdisplay); goto vm2JD; RkvvL: $RS_INcolumnsHIDE = 0; goto JuUhe; sNw2G: $LOGmodify_labels = $row[75]; goto U9nkn; jN3IZ: $LOGexport_reports = $row[64]; goto xW0iy; Lnvq6: if (file_exists("\157\x70\164\x69\157\156\x73\56\160\x68\160")) { require "\x6f\160\x74\x69\157\x6e\x73\56\x70\x68\160"; } goto ASQrG; VRXRP: $group = preg_replace("\x2f\x5b\136\55\137\60\x2d\x39\x61\55\x7a\101\x2d\132\x5d\57", '', $group); goto EPE7d; xV6Gt: $PHP_AUTH_PW = preg_replace("\57\x5b\x5e\x2d\x5f\x30\55\x39\x61\x2d\x7a\x41\55\x5a\135\x2f", '', $PHP_AUTH_PW); goto qGrtZ; MRgsz: if (!preg_match("\x2f{$report_name}\57", $LOGallowed_reports) and !preg_match("\x2f\x41\x4c\114\40\x52\105\120\117\122\x54\x53\57", $LOGallowed_reports)) { header("\x4c\157\x63\141\x74\151\157\156\x3a\40\x2f\x3f\145\x72\162\x6f\x72\75\144\145\x63\157\156\x6e\145\143\164\145\162"); echo _QXZ("\x59\x6f\165\40\x61\x72\145\x20\x6e\x6f\164\40\x61\x6c\154\x6f\x77\145\x64\x20\x74\x6f\x20\166\151\x65\167\x20\164\150\151\163\40\x72\145\x70\157\x72\x74") . "\x3a\40\x7c{$PHP_AUTH_USER}\x7c{$report_name}\x7c" . _QXZ("{$report_name}") . "\x7c\12"; die; } goto KnSRu; ZFGKl: $LOGmodify_users = $row[34]; goto OBNud; PD0L1: $epochONEminuteAGO = $STARTtime - 60; goto Thx1Q; BrERS: if ($auth > 0) { $stmt = "\x53\x45\114\x45\x43\x54\40\143\x6f\x75\x6e\x74\50\52\x29\x20\146\x72\x6f\155\40\166\x69\x63\151\x64\151\141\154\x5f\165\163\x65\162\163\40\x77\150\145\x72\x65\x20\x75\163\x65\162\x3d\x27{$PHP_AUTH_USER}\47\x20\141\156\144\40\165\x73\x65\162\137\x6c\145\x76\x65\x6c\x20\76\40\67\40\141\x6e\x64\40\166\151\x65\x77\x5f\x72\x65\x70\x6f\162\x74\163\75\x27\x31\x27\x3b"; $rslt = mysql_to_mysqli($stmt, $link); $row = mysqli_fetch_row($rslt); $admin_auth = $row[0]; $stmt = "\123\x45\114\105\103\x54\40\x63\157\x75\156\x74\50\52\x29\x20\146\x72\x6f\155\40\x76\151\143\151\144\151\x61\x6c\x5f\x75\x73\x65\162\x73\40\167\x68\x65\x72\x65\40\x75\163\145\x72\75\47{$PHP_AUTH_USER}\47\40\141\x6e\x64\40\x75\163\x65\x72\x5f\x6c\145\x76\x65\154\x20\76\x20\x36\40\141\156\144\x20\x76\151\145\167\x5f\162\x65\160\157\162\x74\163\x3d\x27\61\x27\73"; if ($DB) { echo "\174{$stmt}\x7c\12"; } $rslt = mysql_to_mysqli($stmt, $link); $row = mysqli_fetch_row($rslt); $reports_auth = $row[0]; if ($reports_auth < 1) { $VDdisplayMESSAGE = _QXZ("\131\x6f\x75\x20\x61\x72\x65\40\x6e\157\164\40\x61\154\x6c\x6f\x77\145\x64\40\164\x6f\40\x76\151\x65\x77\x20\162\x65\160\157\162\x74\x73"); Header("\x43\157\x6e\164\145\156\164\55\x74\171\x70\145\x3a\40\164\x65\x78\x74\x2f\150\x74\155\154\73\x20\x63\150\141\162\163\x65\164\x3d\165\x74\146\x2d\x38"); echo "{$VDdisplayMESSAGE}\72\40\x7c{$PHP_AUTH_USER}\x7c{$auth_message}\174\12"; die; } if ($reports_auth > 0 and $admin_auth < 1) { $ADD = 999999; $reports_only_user = 1; } } else { $VDdisplayMESSAGE = _QXZ("\x4c\x6f\147\151\x6e\x20\151\x6e\143\157\x72\x72\x65\x63\x74\54\40\160\154\x65\141\x73\145\x20\164\162\x79\x20\141\147\x61\x69\156"); if ($auth_message == "\x4c\x4f\x43\x4b") { $VDdisplayMESSAGE = _QXZ("\124\157\x6f\x20\x6d\x61\x6e\x79\x20\154\x6f\x67\x69\156\40\141\x74\164\x65\155\x70\164\x73\54\40\x74\162\x79\x20\141\147\x61\151\x6e\x20\x69\156\x20\61\x35\x20\x6d\x69\156\165\x74\x65\x73"); Header("\103\x6f\156\164\145\x6e\x74\x2d\164\x79\160\145\x3a\x20\164\145\170\164\x2f\150\x74\155\154\x3b\x20\x63\x68\x61\x72\x73\145\x74\x3d\x75\x74\146\x2d\70"); echo "{$VDdisplayMESSAGE}\72\x20\174{$PHP_AUTH_USER}\174{$auth_message}\174\xa"; die; } if ($auth_message == "\x49\x50\102\114\117\x43\113") { $VDdisplayMESSAGE = _QXZ("\131\157\165\x72\40\111\x50\40\x41\x64\x64\x72\145\163\x73\40\151\163\40\x6e\x6f\164\x20\141\154\x6c\x6f\167\145\144") . "\72\x20{$ip}"; Header("\103\157\156\x74\x65\156\164\55\x74\171\160\145\x3a\40\164\x65\170\164\57\x68\164\x6d\154\x3b\x20\143\x68\141\x72\163\145\x74\75\165\164\146\x2d\70"); echo "{$VDdisplayMESSAGE}\x3a\40\x7c{$PHP_AUTH_USER}\174{$auth_message}\174\xa"; die; } header("\x4c\157\x63\x61\x74\x69\x6f\156\72\x20\x2f\x3f\x65\162\162\157\x72\x3d\x64\x65\x63\157\156\156\x65\143\x74\145\x72"); echo "{$VDdisplayMESSAGE}\72\40\174{$PHP_AUTH_USER}\x7c{$PHP_AUTH_PW}\174{$auth_message}\174\12"; die; } goto nu3F7; pHy1r: $LOGmodify_scripts = $row[37]; goto M19HA; zskBH: $CUSTPHONEdisplay = preg_replace("\57\x5b\x5e\55\x5f\x30\55\x39\x61\55\x7a\x41\55\x5a\135\57", '', $CUSTPHONEdisplay); goto DWtqU; q7yf2: $NOW_TIME = date("\131\x2d\x6d\55\144\40\x48\x3a\151\72\x73"); goto HdQPo; ywtE4: $stmt = "\123\105\114\x45\x43\124\x20\160\150\x6f\156\x65\x5f\154\x6f\x67\x69\x6e\x20\146\162\x6f\155\x20\x76\x69\x63\151\x64\x69\x61\x6c\137\x75\x73\145\x72\x73\40\167\150\x65\x72\x65\40\x75\163\145\162\x3d\47{$PHP_AUTH_USER}\x27\x3b"; goto Rs51j; M19HA: $LOGmodify_filters = $row[38]; goto rFHsX; y2LRO: $stmt = "\123\105\x4c\x45\x43\124\40\165\163\145\137\156\157\x6e\x5f\x6c\141\x74\151\x6e\x2c\157\165\164\x62\157\165\156\144\137\x61\x75\164\x6f\x64\151\x61\x6c\x5f\x61\143\x74\151\166\145\54\x73\154\141\x76\x65\x5f\x64\142\x5f\163\x65\x72\x76\x65\162\54\162\145\x70\157\x72\x74\x73\x5f\x75\x73\145\137\163\154\x61\x76\x65\137\x64\142\54\145\x6e\141\x62\154\x65\x5f\x6c\x61\x6e\x67\x75\141\x67\x65\163\54\x6c\141\x6e\x67\x75\141\x67\145\x5f\x6d\145\x74\150\157\144\54\141\x67\145\156\164\137\167\x68\x69\163\160\x65\162\137\145\x6e\x61\x62\x6c\145\144\x2c\141\x6c\154\x6f\167\x5f\x63\x68\x61\164\x73\54\x63\x61\x63\150\x65\137\x63\141\x72\162\151\145\162\x5f\163\164\x61\x74\x73\x5f\162\x65\x61\154\164\151\155\x65\54\x72\x65\160\x6f\162\164\x5f\x64\145\x66\141\165\154\164\137\x66\157\162\155\x61\x74\x2c\x6f\146\x63\x6f\155\x5f\x75\153\137\x64\x72\x6f\x70\137\143\141\x6c\143\x2c\145\x6e\141\142\x6c\145\137\160\x61\x75\x73\x65\137\x63\157\x64\145\x5f\x6c\151\x6d\x69\164\163\54\164\151\x6d\145\x63\154\157\x63\x6b\137\145\x6e\144\x5f\x6f\146\137\144\141\171\x2c\x61\x6c\x6c\x6f\x77\137\x77\x65\x62\137\144\x65\142\x75\147\40\x46\x52\117\x4d\x20\x73\171\163\x74\145\x6d\137\163\145\164\164\151\x6e\147\163\73"; goto G1hpD; j4uQp: $groups_to_print++; goto xu7tG; q3omr: $report_name = "\x52\145\141\x6c\x2d\x54\151\155\145\40\x4d\x61\x69\156\40\122\x65\160\157\162\164"; goto msAwU; iSy3L: $rt_report_times["\160\141\x75\x73\145\x5f\154\x69\x6d\151\x74"] = 999999; goto u_hZ_; bFmO6: $timeFIVEminutesAGO = date("\131\x2d\155\55\x64\40\110\72\x69\x3a\163", $epochFIVEminutesAGO); goto btWXt; kvMbP: if (!isset($groups)) { $groups = array(); } goto hnODT; z3ENo: $LOGdelete_user_groups = $row[9]; goto rsMbX; cWjbn: if (!isset($UidORname)) { $UidORname = 1; } goto TptnY; rmSmI: $DB = preg_replace("\x2f\x5b\x5e\60\55\71\135\x2f", '', $DB); goto kYtFP; FutOL: $LOGmodify_lists = $row[36]; goto pHy1r; RXb1q: $rt_report_times["\x77\x61\x69\x74\151\156\x67\x5f\x73\150\157\x72\164\x5f\x74\x69\x6d\x65"] = 30; goto RWInm; JOwoQ: if ($SSallow_web_debug < 1) { $DB = 0; } goto bekmF; IMEPW: $rslt = mysql_to_mysqli($stmt, $link); goto i1RIx; boxsh: $rslt = mysql_to_mysqli($stmt, $link); goto iElM8; UGSnY: $LOGdelete_users = $row[8]; goto z3ENo; iElM8: $row = mysqli_fetch_row($rslt); goto DTxB_; xldUO: $row = mysqli_fetch_row($rslt); goto bleKD; MsRa9: $RS_BargeSwap = 0; goto Lnvq6; nu3F7: $stmt = "\x53\105\114\105\103\124\x20\165\x73\145\162\137\x69\x64\x2c\165\x73\x65\x72\x2c\x70\x61\163\163\x2c\146\165\x6c\154\137\156\141\155\x65\54\165\163\x65\162\x5f\154\x65\166\145\x6c\54\165\163\x65\162\x5f\147\162\x6f\165\x70\54\160\150\157\156\x65\x5f\x6c\x6f\147\x69\x6e\x2c\x70\150\157\x6e\145\x5f\160\x61\163\x73\x2c\x64\145\x6c\x65\x74\145\x5f\x75\x73\145\162\163\x2c\144\x65\154\145\164\x65\x5f\165\163\145\x72\137\x67\x72\157\x75\x70\x73\x2c\144\x65\x6c\145\x74\145\x5f\x6c\151\163\164\163\x2c\x64\145\154\145\x74\x65\137\143\141\x6d\x70\x61\x69\147\156\163\x2c\x64\x65\154\145\x74\x65\x5f\x69\x6e\x67\162\157\165\160\163\x2c\x64\145\x6c\x65\x74\145\137\162\x65\155\157\164\x65\137\x61\x67\x65\x6e\x74\x73\54\x6c\x6f\141\144\x5f\154\145\141\x64\163\x2c\143\141\x6d\x70\141\x69\147\x6e\137\144\145\x74\x61\151\154\54\141\163\x74\x5f\141\144\155\151\156\137\141\143\143\145\163\163\54\141\x73\x74\137\x64\x65\154\x65\x74\145\137\x70\150\x6f\156\x65\163\54\144\145\154\145\x74\145\x5f\163\143\162\x69\160\x74\x73\x2c\x6d\157\x64\x69\146\x79\137\154\x65\141\x64\163\54\150\x6f\164\x6b\145\x79\x73\137\x61\x63\164\151\166\x65\x2c\x63\x68\x61\156\147\x65\x5f\x61\147\145\156\164\137\143\141\x6d\x70\x61\x69\x67\156\x2c\x61\147\x65\156\x74\137\x63\150\x6f\x6f\x73\145\x5f\151\x6e\x67\162\157\165\x70\163\54\143\x6c\x6f\x73\145\162\x5f\143\x61\x6d\160\x61\x69\147\156\x73\x2c\163\143\x68\145\x64\165\x6c\145\x64\137\143\x61\x6c\154\142\141\x63\153\x73\54\141\x67\x65\x6e\164\157\156\154\x79\137\x63\x61\154\x6c\x62\141\143\x6b\163\54\141\147\145\x6e\x74\143\141\154\154\137\x6d\141\156\x75\141\154\54\166\x69\x63\151\x64\x69\x61\x6c\137\162\x65\143\x6f\162\144\151\x6e\x67\x2c\x76\151\143\151\x64\x69\x61\154\x5f\x74\x72\141\x6e\x73\146\x65\x72\x73\54\x64\x65\x6c\x65\164\x65\x5f\146\151\154\x74\145\x72\x73\x2c\141\154\164\x65\x72\x5f\x61\147\145\x6e\164\x5f\151\156\x74\x65\x72\146\x61\143\x65\137\x6f\160\164\151\157\x6e\x73\x2c\143\x6c\157\x73\x65\x72\137\x64\x65\146\x61\165\154\x74\x5f\x62\154\x65\156\144\x65\144\54\x64\x65\x6c\x65\x74\145\x5f\x63\141\154\154\137\164\151\x6d\x65\163\54\x6d\x6f\x64\151\x66\171\137\143\141\154\x6c\x5f\x74\151\x6d\x65\x73\54\x6d\x6f\x64\151\x66\171\x5f\x75\163\145\162\x73\54\155\x6f\x64\151\146\171\x5f\x63\141\155\160\x61\x69\x67\x6e\163\54\155\x6f\144\x69\146\x79\137\x6c\x69\x73\164\163\x2c\x6d\x6f\144\151\146\x79\x5f\163\143\162\x69\160\x74\x73\54\155\x6f\144\x69\146\171\x5f\x66\x69\x6c\x74\x65\162\x73\x2c\x6d\x6f\144\151\x66\x79\137\151\156\x67\162\x6f\x75\160\163\x2c\155\157\144\x69\x66\x79\137\x75\163\x65\x72\x67\x72\x6f\x75\160\x73\x2c\155\157\144\151\x66\x79\137\162\145\155\x6f\x74\x65\141\x67\145\156\x74\x73\54\155\157\x64\x69\146\x79\x5f\163\145\x72\166\x65\162\x73\x2c\166\x69\x65\x77\x5f\x72\145\160\157\162\x74\163\x2c\x76\x69\143\151\144\151\x61\154\x5f\162\x65\x63\157\162\x64\x69\x6e\x67\137\x6f\x76\x65\162\162\151\x64\145\54\x61\x6c\164\145\162\137\143\165\x73\164\144\x61\x74\x61\x5f\x6f\x76\145\x72\x72\151\144\x65\54\x71\x63\x5f\x65\156\141\x62\x6c\x65\144\x2c\161\143\x5f\165\x73\145\x72\137\154\x65\166\x65\x6c\54\x71\x63\x5f\x70\141\x73\163\54\x71\x63\x5f\x66\151\x6e\x69\163\x68\x2c\161\143\x5f\x63\157\x6d\x6d\x69\164\x2c\141\x64\x64\x5f\x74\x69\155\145\143\154\x6f\x63\x6b\x5f\154\157\147\54\x6d\x6f\x64\x69\x66\171\x5f\164\151\155\145\x63\154\157\143\153\137\154\x6f\x67\54\144\x65\154\145\164\145\x5f\x74\151\155\145\x63\154\157\143\x6b\x5f\154\x6f\x67\54\141\x6c\164\145\x72\137\x63\165\x73\x74\x70\x68\157\156\x65\x5f\x6f\166\145\162\x72\151\x64\x65\54\x76\144\143\x5f\x61\147\145\156\x74\137\141\160\151\x5f\141\x63\143\145\x73\x73\54\155\157\144\151\x66\171\137\x69\x6e\x62\x6f\x75\x6e\144\137\144\x69\144\163\54\x64\145\154\x65\164\145\x5f\151\x6e\x62\157\x75\156\144\x5f\144\151\144\163\54\141\143\164\151\166\x65\54\141\154\x65\162\164\x5f\145\156\x61\x62\x6c\x65\144\54\x64\157\x77\x6e\154\157\x61\x64\137\154\151\x73\x74\163\54\141\x67\145\x6e\164\137\163\x68\x69\146\164\x5f\x65\x6e\x66\157\162\143\x65\x6d\145\156\x74\x5f\157\x76\x65\162\162\151\144\145\x2c\155\141\156\x61\147\x65\x72\x5f\163\x68\151\x66\164\137\145\156\x66\157\162\x63\145\x6d\145\x6e\164\137\157\x76\145\162\162\x69\144\x65\54\163\x68\151\x66\164\x5f\157\x76\x65\162\x72\x69\144\x65\137\x66\154\141\147\x2c\145\x78\160\x6f\x72\164\x5f\x72\x65\160\157\162\x74\163\54\144\145\x6c\145\x74\x65\x5f\x66\x72\157\155\x5f\x64\x6e\x63\54\145\x6d\141\151\154\54\165\x73\145\x72\x5f\x63\157\x64\x65\54\164\145\162\x72\x69\164\157\162\171\x2c\x61\x6c\x6c\x6f\167\137\141\x6c\x65\162\x74\163\54\143\141\x6c\x6c\x63\x61\x72\x64\137\x61\144\x6d\x69\156\x2c\x66\x6f\162\143\145\x5f\143\150\141\x6e\147\x65\x5f\x70\x61\163\x73\167\x6f\x72\144\x2c\155\x6f\144\151\146\x79\137\163\x68\x69\x66\x74\x73\x2c\155\157\x64\151\x66\x79\137\160\150\157\156\145\163\x2c\x6d\x6f\x64\151\x66\x79\x5f\x63\x61\x72\162\x69\145\x72\163\x2c\x6d\x6f\144\x69\x66\x79\x5f\x6c\141\x62\145\154\163\x2c\x6d\157\x64\x69\x66\171\x5f\x73\x74\141\164\165\163\x65\x73\54\155\157\144\x69\x66\x79\137\166\x6f\x69\143\x65\155\141\x69\x6c\54\155\157\x64\x69\146\171\x5f\141\165\144\x69\157\x73\164\157\x72\x65\x2c\x6d\x6f\144\x69\x66\x79\x5f\155\157\150\54\155\x6f\144\x69\146\171\137\x74\164\x73\x2c\x6d\157\144\151\146\171\137\143\x6f\x6e\164\x61\x63\x74\x73\54\x6d\x6f\x64\x69\x66\171\137\x73\x61\155\145\137\165\163\x65\x72\x5f\x6c\145\x76\x65\x6c\40\x66\162\157\x6d\40\x76\x69\x63\151\x64\151\141\154\x5f\x75\x73\x65\x72\x73\x20\x77\x68\145\x72\145\x20\165\163\145\162\75\47{$PHP_AUTH_USER}\47\73"; goto boxsh; BcPzF: $PHP_SELF = $_SERVER["\120\x48\120\x5f\123\105\x4c\106"]; goto CzTO4; lqbIo: $with_inbound = preg_replace("\57\133\136\x2d\137\60\55\71\x61\x2d\172\101\55\x5a\x5d\x2f", '', $with_inbound); goto OYnR2; vu1X3: if ($displayAgent == 0) { echo "\x3c\144\151\166\x20\143\x6c\x61\x73\163\75\x22\x61\154\x65\162\x74\x20\141\x6c\x65\162\x74\55\x77\141\x72\156\x69\x6e\x67\x20\x61\154\145\162\164\x2d\x64\x69\163\x6d\x69\163\163\141\142\154\145\x22\76\101\x75\x63\165\x6e\40\141\147\145\156\164\x20\141\143\164\151\166\145\74\57\144\x69\x76\76\x3c\x2f\163\x63\162\x69\160\x74\76"; } goto MgMa1; y2Weu: $LOGload_leads = $row[14]; goto rz01g; H6Rxc: $rsltPr = mysql_to_mysqli($stmtPr, $link); goto wQPBL; au4LP: if (!empty($rowPr)) { $profil = "\163\165\160\145\162\x76\x69\163\x65\165\162"; $crmgroup = explode("\40", $rowPr["\143\x72\x6d\x67\162\157\165\160"]); $gg = "\x27\x2d\55\55\101\114\x4c\55\x2d\55\47\x2c"; foreach ($crmgroup as $cg) { $gg .= "\x27" . $cg . "\x27\54"; } $gg = substr_replace($gg, '', -1); $allow_usergroup = "\x75\163\x65\162\x5f\147\162\157\x75\x70\40\111\x4e\x28{$gg}\x29"; } goto ywtE4; TRUm8: while ($crow = mysqli_fetch_row($container_rslt)) { $realtime_times = $crow[0]; $rt_times = explode("\12", $realtime_times); for ($q = 0; $q < count($rt_times); $q++) { $rt_array = explode("\x3d\x3e", $rt_times[$q]); $var_name = trim($rt_array[0]); $var_value = preg_replace("\x2f\133\x5e\x30\55\x39\135\x2f", '', trim($rt_array[1])); $rt_report_times["{$var_name}"] = $var_value; } } goto aMbyJ; rsMbX: $LOGdelete_lists = $row[10]; goto LqDtW; LlWFf: $epochONEhourAGO = $STARTtime - 3600; goto Uth1C; JVJCV: $STARTtime = date("\125"); goto PD0L1; nhesB: $epochSIXhoursAGO = $STARTtime - 21600; goto GqHXt; SLHVp: $allactivecampaigns = ''; goto Ujz7P; KeElM: $PHP_AUTH_PW = $_SESSION["\x50\110\x50\x5f\x41\x55\x54\x48\137\x50\x57"]; goto BcPzF; QVGnT: $timeSIXhoursAGO = date("\131\x2d\155\x2d\x64\x20\110\x3a\x69\x3a\x73", $epochSIXhoursAGO); goto u_I8A; nUcA0: $displayAgent = 0; goto EtaoE; x2Wqy: ob_start(); goto RmZb6; Ndf2X: $RS_ListenBarge = "\115\117\x4e\111\x54\117\x52\174\102\101\x52\x47\105\x7c\127\x48\111\123\x50\x45\x52"; goto seea7; Qd7RM: $LOGmodify_dids = $row[56]; goto MixOJ; ZQhvi: $LOGmodify_same_user_level = $row[82]; goto WwLuJ; xGBqQ: $SERVdisplay = preg_replace("\57\133\x5e\55\137\x30\55\x39\x61\55\x7a\x41\x2d\x5a\x5d\57", '', $SERVdisplay); goto kx8yc; Tw2mQ: if (!isset($ingroup_filter)) { $ingroup_filter = array(); } goto Fp4Fn; yMet5: $LOGmodify_usergroups = $row[40]; goto k2El3; gmU51: if (!isset($with_inbound)) { if ($outbound_autodial_active > 0) { $with_inbound = "\131"; } else { $with_inbound = "\x4f"; } } goto iw7VC; G8Jic: $LISTgroups[$i] = "\101\114\114\55\101\103\x54\111\126\x45"; goto SjSzc; ptsap: if (!isset($CUSTPHONEdisplay)) { $CUSTPHONEdisplay = 0; } goto tm1xh; MgMa1: ?>
<script>
    function _0x5337(){var _0x552964=['7652mzXpYX','data','campaign_id=','Content-Type','open','change_dial_level','change','send','.slider_vitesse','3720648svjiJV','708KUuBCR','onreadystatechange','responseText','246ITysMP','258alfYPN','ERROR:','3676kJZxtY','match','ready','310OATnPC','readyState','setRequestHeader','3629493aTKAaQ','POST','416878VvSpgn','20958GEdbJv','3025350QKYRjU','SUCCESS:','&vitesse='];_0x5337=function(){return _0x552964;};return _0x5337();}function _0x2ee2(_0x5b603a,_0x4523a1){var _0x53371e=_0x5337();return _0x2ee2=function(_0x2ee201,_0x57f610){_0x2ee201=_0x2ee201-0xcb;var _0x5ca2a9=_0x53371e[_0x2ee201];return _0x5ca2a9;},_0x2ee2(_0x5b603a,_0x4523a1);}var _0x111617=_0x2ee2;(function(_0x139131,_0x59bb37){var _0x148c9f=_0x2ee2,_0x510b36=_0x139131();while(!![]){try{var _0xa0d950=-parseInt(_0x148c9f(0xe6))/0x1*(-parseInt(_0x148c9f(0xcb))/0x2)+parseInt(_0x148c9f(0xe2))/0x3*(-parseInt(_0x148c9f(0xd8))/0x4)+-parseInt(_0x148c9f(0xd5))/0x5+parseInt(_0x148c9f(0xe5))/0x6*(-parseInt(_0x148c9f(0xd4))/0x7)+-parseInt(_0x148c9f(0xe1))/0x8+parseInt(_0x148c9f(0xd1))/0x9+parseInt(_0x148c9f(0xce))/0xa*(parseInt(_0x148c9f(0xd3))/0xb);if(_0xa0d950===_0x59bb37)break;else _0x510b36['push'](_0x510b36['shift']());}catch(_0x8efe03){_0x510b36['push'](_0x510b36['shift']());}}}(_0x5337,0x6398a),$(document)[_0x111617(0xcd)](function(){var _0x284b09=_0x111617;$(_0x284b09(0xe0))['on'](_0x284b09(0xde),function(){var _0x518e2f=_0x284b09,_0x408ffb=![];!_0x408ffb&&typeof XMLHttpRequest!='undefined'&&(_0x408ffb=new XMLHttpRequest());if(_0x408ffb){var _0x4e0abc=_0x518e2f(0xda)+$(this)[_0x518e2f(0xd9)]('compagne')+_0x518e2f(0xd7)+$(this)['val']();_0x408ffb[_0x518e2f(0xdc)](_0x518e2f(0xd2),_0x518e2f(0xdd)),_0x408ffb[_0x518e2f(0xd0)](_0x518e2f(0xdb),'application/x-www-form-urlencoded;\x20charset=UTF-8'),_0x408ffb[_0x518e2f(0xdf)](_0x4e0abc),_0x408ffb[_0x518e2f(0xe3)]=function(){var _0x1d1489=_0x518e2f;if(_0x408ffb[_0x1d1489(0xcf)]==0x4&&_0x408ffb['status']==0xc8){var _0x477994=null;_0x477994=_0x408ffb['responseText'];var _0x284c51=new RegExp(_0x1d1489(0xe7),'g'),_0x20d9a3=new RegExp(_0x1d1489(0xd6),'g');_0x477994[_0x1d1489(0xcc)](_0x284c51)&&alert(_0x408ffb[_0x1d1489(0xe4)]),_0x477994[_0x1d1489(0xcc)](_0x20d9a3)&&alert('SUCCESS:\x20calling'+monitor_phone);}},delete _0x408ffb;}});}));
</script>
<?php
$stmtPr = "SELECT * from pixiscrm_users_privilege where user='$PHP_AUTH_USER';";
$rsltPr = mysql_to_mysqli($stmtPr, $link);
$rowPr = mysqli_fetch_assoc($rsltPr);

$profil = 'admin';
if (!empty($rowPr)) {
    $profil = 'superviseur';
    $rowPr['crmgroup'] = explode(' ', $rowPr['crmgroup']);
}

if ($profil == 'superviseur' and !$rowPr['vitesse_campagne']) {
    ?>
    <script>
        $(document).ready(function () {
            $(".slider_div").hide();
            $(".slider_vitesse").hide();
        });
    </script>
<?php
}
?>

Function Calls

None

Variables

None

Stats

MD5 8ec38118e1913d73cf37035660feb7b1
Eval Count 0
Decode Time 320 ms