source: branches/2.2.0.1/contactcenter/inc/ThreadUtility.inc.php @ 284

Revision 284, 1.4 KB checked in by rafaelraymundo, 16 years ago (diff)

Vide Trac - #197, #166, #198, #199

  1. Correção de problema na leitura do arquivo configuração.
  2. Permissão do click2dial também no contactcenter.
  3. Visualização de matricula, e nro celular no resultado da pesquisa(se estiverem populados)
  4. Adicionada a leitura a Catálogos Externos
Line 
1<?php
2        /***********************************************************************************\
3        * eGroupWare - Contacts Center                                                          *
4        * http://www.egroupware.org                                                             *
5        * Written by:                                                                           *
6        *  - Brian W. Bosh from Multi-threading strategies in PHP at                                            *
7        * http://www.alternateinterior.com/2007/05/multi-threading-strategies-in-php.html       *
8        * Adapted by:                                                                                                                                           *
9        *  - Mário César Kolling <mario.kolling@serpro.gov.br>                                                          *
10        * ----------------------------------------------------------------------------------*
11        *  This program is free software; you can redistribute it and/or modify it              *
12        *  under the terms of the GNU General Public License as published by the                *
13        *  Free Software Foundation; either version 2 of the License, or (at your               *
14        *  option) any later version.                                                           *
15        \***********************************************************************************/
16
17        /*
18         * Utility class used in the "Thread" solution
19         */
20
21        function response ($status, $response) {
22                echo $status . "\n";
23                echo base64_encode(serialize($response)), "\n";
24        }
25        function processresponse ($string) {
26                $parts = explode ("\n", $string);
27                $status = $parts[0];
28                $data = unserialize (base64_decode ($parts[1]));
29                return array ("status" => $status, "data" => $data);
30        }
31
32?>
Note: See TracBrowser for help on using the repository browser.