Acceso Gestion Citas USI

 

buscarPacientes * @author OAMEZQUITA * */ // Variables de acceso al servidor //$servidor ="cdisa.info"; $servidor = "159.203.85.40"; $user =& JFactory::getUser(); $userid = $user->get('id'); $name = $user->get('name'); $username = $user->get('username'); $cedula = $username; if($userid == ""){ header("Location: /component/users/?view=login"); die(); } //toma el nivel del usuario actual para enviar lo $nivel= isset($user->groups) ? $user->groups : array(); //print_r($nivel); foreach ($nivel as $nombre => $valor) { $nivel = $valor; } $session = JFactory::getSession(); //$session->set( 'myvar', 'helloworld' ); //genera id aleatorios //$id = $session->getId().rand(); $id = $session->getId(); echo $address = JRequest::getVar('exit'); if($address == "ciao") { //JRoute::_('index.php'); $app = JFactory::getApplication(); $app->logout; session_destroy(); //session is now over header( 'Location: https://usiese.gov.co/' ) ; die(); } define('_JEXEC', 1); define('DS', DIRECTORY_SEPARATOR); if (!defined('_JDEFINES')) { define('JPATH_BASE', dirname(__FILE__)); require_once JPATH_BASE.'/includes/defines.php'; } require_once JPATH_BASE.'/includes/framework.php'; try{ //require_once('lib/nusoap.php'); ini_set("soap.wsdl_cache_enabled", "0"); use_soap_error_handler(true); //$cedula ="1005813509"; $client = new SoapClient('http://'.$servidor.':8080/usiges/services/usiges?wsdl'); $data = array('numidentificacion' => $cedula); $result = $client->buscarPacientes($data); $array = $result-> buscarPacientesReturn; $datos = preg_replace(array ('/]/', '/\[/'), '', $array); $datos = explode(",", $datos); // $cedula = trim($datos[0]); $nombre = trim($datos[1]); // $salud = trim($datos[2]); // $direccion = trim($datos[3]); $nit = trim($datos[4]); }catch (SoapFault $fault){ }//end catch //$nit = "800113380"; //$cedula = "1005813509"; //$nombre ="carlos andres arana"; //build the Json with all data to send to administrator java $datos = array("nombre" => $nombre , "cedula" => $cedula , "nit" => $nit , "id" => $id, "nivel" => $nivel) ; $datosJson = json_encode($datos); // to release the proces to encript all data sent to adminsitrator $cipher = "rijndael-128"; $mode = "cbc"; //key public $secret_key = "AAAAB3NzaC1kc3MAAACBANKj0mNqDASoS/jBEUwbuHrsnlH/kRYFT2ROLv4Z73YiLREEFMuG8slqgAUvjaZVGJzunlR+zjpeHRNkQaB5iGHhrlOXjnXLC1t33jMoMn4/Z5V5RwFgdEmEj9IZS/XgvvZ41AoR/6uM8EPzFh/cEWcbnHJN3efSTsm6sKgSaUVNAAAAFQDqfYAdrChwFYWCz6B+tXMhdnXiYwAAAIEApx9T9Hzk4lq0oQGU/orcWjMNZXFnys5vob2R9V4jDSYAjZaWlaS1GRdA781MFqyDmEns+S66nDjgYssUnOXys5Lt5wk9AkSKwbqtyRrl8s1qFCKEyMACN0bJBUJmAmsyjzK1i5i8arC3ZfE47XPMW8fRmx28l2ZZuZGeFOktUvoAAACAQjGHj2Rqa1jWr1FktACX8w0x24ssGV8s9mH2PD/55gB2Y1CI8KuOn62obNXSXQDhJft49/76lnJjwxqrnPWS11U6lw4LDyz1JHit6mSgX4cJdeFdITKKabsq7urU9GZICh35gTuNUJjMzXhBVhVHTHO+3kDWuXdzHxG92QkAlQM=usi"; //iv length should be 16 bytes $iv = "fedcba9876543210"; // Make sure the key length should be 16 bytes $key_len = strlen($secret_key); if($key_len < 16 ){ $addS = 16 - $key_len; for($i =0 ;$i < $addS; $i++){ $secret_key.=" "; } }else{ $secret_key = substr($secret_key, 0, 16); } $td = mcrypt_module_open($cipher, "", $mode, $iv); mcrypt_generic_init($td, $secret_key, $iv); $cyper_text = mcrypt_generic($td, $datosJson); mcrypt_generic_deinit($td); mcrypt_module_close($td); ?>

Click Aquí para Programar Citas USI

 

Se informa a la comunidad en general que tambien podran solitar su cita medica a travez del siguiente link

 


http://unicocc.com/citasusi.html

Share on Facebook

Requisitos Contrato Prestación de Servicios

Contador de Visitas

4149851
Today
Yesterday
This Week
Last Week
This Month
Last Month
All days
7873
10688
57065
4027231
132513
250500
4149851

Your IP: 186.0.65.188
Server Time: 2018-12-14 21:40:26