$response_array['added'] = false; $response_array['msg'] = 'Ingresa un Grupo'; echo json_encode($response_array); return; } //end if $user = $_POST['user']; if ($user == '') { $response_array['added'] = false; $response_array['msg'] = 'Ingresa un Usuario'; echo json_encode($response_array); return; } //end if //Conexion a Base de Datos $com = new com_mysql(); $cnn = $com->_conectar(HOST, USER, PASS, DATA); //Obtener Valores de la Base de Datos $salt = $com->_call_proc($cnn, 'get_param', 'salt'); $host = $com->_call_proc($cnn, 'get_param', 'ldap_host'); $prev = $com->_call_proc($cnn, 'get_param', 'prev'); $llave = $com->_call_proc($cnn, 'get_key', $member256); $dominio = $com->_call_proc($cnn, 'get_param', 'dominio'); $reprev = $com->previa($prev, 'sha256', $member256, -12); //ldap class $ldap = new _ldap(); $ad_user = $user . '@' . $dominio; //echo $user; //Validaciones $hash = hash('sha512', $salt . $reprev); if ($llave === $hash) {
<?php include_once '../includes/mysql.configuracion.php'; include_once '../includes/mysql.funciones.php'; include_once '../includes/forms.funciones.php'; //include_once '../includes/funciones.php'; header("Content-Type: text/html;charset=utf-8"); $com = new com_mysql(); $cnn = $com->_conectar(HOST, USER, PASS, DATA); $_frm = new _formulario(); ?> <div id="frm_check_asistencia" class="frm ui-widget-content"> <div class="tile"> <div class="title enlinea"><i class="fa fa-calendar-check-o fa-1x"></i><span class="stitle">Revisar Asistencia</span></div> <div class="btn_close enlinea" data-btn="#btn_asistencia" data-frm="#frm_check_asistencia"><i class="fa fa-times fa-1x"></i></div> </div> <div class="cont"> <div class="data"> <div class="box2 enlinea"> <label class="gris" for="tb_num_col"># de Colaborador:</label> <input id="tb_num_col" name="tb_num_col" class="limp" type="number" placeholder="Número" title="Inserta el Número del Colaborador (Requerido)" required/> </div> <div class="box2 enlinea"> <button id="btn_execute" class="btn blue">Buscar</button> </div> </div> <div id="results" class="results oculto">