Commit 5ade9056 by Miriam

Subirlo

parent 416e2cbb

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

<?php
session_start();
include ('funciones.php');
ini_set ('display_errors', 1);
$num=isset($_GET['valor'])?$_GET['valor']:$_POST['valor'];
switch ($num)
{
case 1:
enviarTicket();
break;
case 2:
enviarEncuesta();
break;
}
function enviarTicket(){
$DB = new DBManager();
$DB->conectar();
$conn = $DB->connectionWithPDO();
$respuesta = array();
$sql = "INSERT INTO msd_tickets (id_cliente, nombre_cliente, nombre_sucursal, telefono, sucursal_id) VALUES (?,?,?,?,?);";
$stm = $conn->prepare($sql);
$stm->bindParam(1, $_POST['idCliente'], PDO::PARAM_INT);
$stm->bindParam(2, $_POST['nombreCliente'], PDO::PARAM_STR);
$stm->bindParam(3, $_POST['nombreSucursal'], PDO::PARAM_STR);
$stm->bindParam(4, $_POST['telefono'], PDO::PARAM_INT);
$stm->bindParam(5, $_POST['idSucursal'], PDO::PARAM_INT);
$result = $stm->execute();
if($result) {
$respuesta[] = array(
'status' => 1,
'mensaje'=> utf8_encode('OK')
);
$DB2 = new DBManager();
$DB2->conectar();
$conn2 = $DB2->connectionWithPDO();
//$sql2 = "SELECT email FROM msd_usuarios WHERE group_id= 1";
$sql2 ="SELECT email FROM msd_usuarios where staff_id=1";
$rsd =$DB2->ejecutarComando($sql2);
require_once('phpmailer/class.phpmailer.php');
$mail = new PHPMailer();
//indico a la clase que use SMTP
$mail->IsSMTP();
//permite modo debug para ver mensajes de las cosas que van ocurriendo
//$mail­>SMTPDebug = 2;
//Debo de hacer autenticación SMTP
// $mail->SMTPAuth=true;
$mail->SMTPSecure="tls";
//indico el servidor de HOST para SMTP
$mail->Host= "smtp-relay.gmail.com:587";
//indico el puerto
$mail->Port=587;
//indico un usuario / clave de un usuario de gmail
//$mail->Username = "culiacan_credito4@morsa.com.mx";
//$mail->Password = "morsa2017";
$mail->SetFrom('culiacan_credito4@morsa.com.mx', 'MORSA');
//$mail­->AddReplyTo("culiacan_credito4@morsa.com.mx", "MORSA");
$mail->Subject = "Se ha generado un nuevo ticket";
$mail->MsgHTML("Favor de validar el ticket");
//indico destinatario
while($rs = pg_fetch_array($rsd)) {
$mail->AddAddress($rs['email']);
if(!$mail->Send()) {
echo "Error" ;
} else {
echo "correcto";
}
$mail->ClearAddresses();
}
$DB2->desconectar();
}
echo json_encode($respuesta);
$DB->desconectar();
}
function enviarEncuesta (){
$DB = new DBManager();
$DB->conectar();
$conn = $DB->connectionWithPDO();
$respuesta = array();
$sql = "INSERT INTO msd_encuesta (solucion, actitud, atender, id_cliente) VALUES (".$_POST['solucion'].",".$_POST['actitud'].",".$_POST['atender'].",?);";
$stm = $conn->prepare($sql);
$stm->bindParam(1, $_POST['idCliente'], PDO::PARAM_INT);
$result = $stm->execute();
if($result) {
$respuesta[] = array(
'status' => 1,
'mensaje'=> utf8_encode('OK')
);
}else{
$respuesta[] = array(
'status' => -1,
'mensaje'=> "Error"
);
}
echo json_encode($respuesta);
$DB->desconectar();
}
<?php
date_default_timezone_set('America/Mazatlan');
ini_set('max_execution_time', 0);
// set_time_limit(1800);
ini_set('memory_limit', '-1');
// ini_set('display_errors', '1');
require_once dirname(__FILE__) . '/notificador.php';
include 'conexion_enlacegmm.php';
$opc = isset($_GET['opc'])?$_GET['opc']:$_POST['opc'];
switch ($opc) {
case 'obtenerNombre':
obtenerNombre();
break;
default:
$response = array(
'estado' => -100,
'mensaje' => "No se puede ejecutar"
);
echo json_encode($response);
break;
}
function obtenerNombre(){
try
{
include "conexionglobal.class.php";
$DB = new DBManager();
$conn = $DB->connectionWithPDO();
$query = "SELECT
id_usuario,
nombre || ' ' || apellido_p || ' ' || apellido_m AS nombreCompleto
FROM acc_usuarios
ORDER BY nombreCompleto;";
$stm = $conn->prepare($query);
$result = $stm->execute();
if ($result) {
$response[] = array(
'id' => $row['id_usuario'],
'nombre' => trim(strtoupper($row['nombreCompleto']))
);
}
while ($row = $stm->fetch(PDO::FETCH_ASSOC)) {
$response[] = array(
'id' => $row['id_usuario'],
'nombre' => trim(strtoupper($row['nombreCompleto']))
);
}
$DB = null;
echo json_encode($response);
} catch (PDOException $exception) {
$datos =
'NA';
$error = array(
'$detail' => 'obtenerNombre',
'$query' => $query,
'$values' => $datos,
'$user' => $_SESSION["user_id"],
'$message' => $exception->getMessage(),
);
notificador($error);
}
}
?>
\ No newline at end of file
<?php
session_start();
include ('funciones.php');
$num=$_GET['valor'];
switch ($num)
{
case 1:
nombre($_REQUEST['term']);
break;
case 2:
sucursal($_REQUEST['term']);
break;
case 3:
varificaSucursal($_GET['sucursal']);
break;
case 4:
verificaNombre($_GET['nombreusuario']);
break;
case 5:
contadorTicket($_GET['usuario_id']);
break;
case 6:
enviarEncuesta($_GET['usuario_id']);
break;
}
function nombre($nomcte){
$q = strtoupper($nomcte);
$DB = new DBManager();
$DB->conectar();
$respuesta = array();
$sql = "SELECT
id_usuario,
nombre || ' ' || apellido_p || ' ' || apellido_m AS nombrecompleto
FROM acc_usuarios
WHERE (nombre || ' ' || apellido_p || ' ' || apellido_m) LIKE '%$q%'
ORDER BY nombrecompleto LIMIT 10;";
$rsd =$DB->ejecutarComando($sql);
while($rs = pg_fetch_array($rsd)) {
$respuesta[] = array(
'value' => utf8_encode($rs['nombrecompleto']),
'label'=> utf8_encode($rs['nombrecompleto']),
'id'=> utf8_encode($rs['id_usuario'])
);
}
echo json_encode($respuesta);
$DB->desconectar();
}
function sucursal($sucursal){
$q = strtoupper($sucursal);
$DB = new DBManager();
$DB->conectar();
$respuesta = array();
$sql = "SELECT
num_suc,
trim(nombre_sucursal) AS nombrecompleto
FROM cat_sucursales
WHERE ( nombre_sucursal) LIKE '%$q%'
ORDER BY nombrecompleto LIMIT 10;";
$rsd =$DB->ejecutarComando($sql);
while($rs = pg_fetch_array($rsd)) {
$respuesta[] = array(
'value' => utf8_encode($rs['nombrecompleto']),
'label'=> utf8_encode($rs['nombrecompleto']),
'id'=> utf8_encode($rs['num_suc'])
);
}
echo json_encode($respuesta);
$DB->desconectar();
}
function verificaNombre($nombre){
$q = (urldecode($nombre));
$DB = new DBManager();
$DB->conectar();
$respuesta = array();
$sql = "SELECT
id_usuario,
nombre || ' ' || apellido_p || ' ' || apellido_m AS nombrecompleto
FROM acc_usuarios
WHERE (nombre || ' ' || apellido_p || ' ' || apellido_m) LIKE '$q';";
$rsd =$DB->ejecutarComando($sql);
if($rs = pg_fetch_array($rsd)) {
$respuesta[] = array(
'success' => true,
);
}else{
$respuesta[] = array(
'success' => false,
);
}
echo json_encode($respuesta);
$DB->desconectar();
}
function varificaSucursal($sucursal){
$q = (urldecode($sucursal));
$DB = new DBManager();
$DB->conectar();
$respuesta = array();
$sql = "SELECT
num_suc,
trim(nombre_sucursal) AS nombrecompleto
FROM cat_sucursales
WHERE trim(nombre_sucursal) LIKE '$q';";
$rsd =$DB->ejecutarComando($sql);
if($rs = pg_fetch_array($rsd)) {
$respuesta[] = array(
'success' => true
);
}else{
$respuesta[] = array(
'success' => false
);
}
echo json_encode($respuesta);
$DB->desconectar();
}
function contadorTicket($usuarioID){
$DB = new DBManager();
$DB->conectar();
$respuesta = array();
$sql = "SELECT count (ticket_id) AS conteo FROM msd_tickets WHERE id_cliente = ".$usuarioID.";";
$rsd =$DB->ejecutarComando($sql);
if($rs = pg_fetch_array($rsd)) {
$respuesta[] = array(
'success' => true,
'conteo'=> $rs['conteo']
);
}else{
$respuesta[] = array(
'success' => false,
'conteo'=> 0
);
}
echo json_encode($respuesta);
$DB->desconectar();
}
?>
<?php
date_default_timezone_set('America/Mazatlan');
class DBManager
{
public $conect;
public $BaseDatos;
public $Servidor;
public $Usuario;
public $Clave;
private $conn;
public function DBManager()
{
$this->BaseDatos = "enlacegmm";
$this->Servidor = "culiacan.morsa.com.mx";
$this->Usuario = "kerberox";
$this->Clave = "204N1tN3L@V19";
}
public function connectionWithPDO()
{
$this->conn = null;
try {
$this->conn = new PDO("pgsql:host=" . $this->Servidor . ";dbname=" . $this->BaseDatos, $this->Usuario, $this->Clave);
$this->conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$execute = $this->conn->prepare("SET CLIENT_ENCODING TO 'UTF8';");
$execute->execute();
$this->conn->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_OBJ);
} catch (PDOException $e) {
// $error = array(
// '$module' => 'conexion',
// '$option' => 'conexion',
// '$detail' => 'connectionWithPDO',
// '$query' => 'NA',
// '$values' => 'NA',
// '$user' => 'usuario',
// '$message' => $e->getMessage(),
// );
//require_once dirname(__FILE__) . '/notificador.php';
//notificador($error);
}
return $this->conn;
}
public function connectionWithPDO_server($Servidor,$BaseDatos)
{
$this->conn = null;
try {
$this->conn = new PDO("pgsql:host=" . $Servidor . ";dbname=" . $BaseDatos, $this->Usuario, $this->Clave);
$this->conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$execute = $this->conn->prepare("SET CLIENT_ENCODING TO 'UTF8';");
$execute->execute();
$this->conn->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_OBJ);
} catch (PDOException $e) {
$error = array(
'$module' => 'conexion',
'$option' => 'conexion',
'$detail' => 'connectionWithPDO_server',
'$query' => 'NA',
'$values' => 'NA',
'$user' => $_SESSION["user_id"],
'$message' => $e->getMessage(),
);
require_once dirname(__FILE__) . '/../notificador.php';
notificador($error);
}
return $this->conn;
}
public function conectar()
{
$cad = "host=" . $this->Servidor . " port=5432 dbname=" . $this->BaseDatos . " user=" . $this->Usuario . " password=" . $this->Clave . "";
$cad;
if (!($con = pg_connect($cad))) {
echo "<h1> [:(] Error al conectar a la base de datos</h1>";
exit();
}
$this->conect = $con;
return true;
}
public function conectarBD($sBD)
{
$cad = "host=" . $this->Servidor . " port=5432 dbname=" . $sBD . " user=" . $this->Usuario . " password=" . $this->Clave . "";
$cad;
if (!($con = pg_connect($cad))) {
echo "<h1> [:(] Error al conectar a la base de datos</h1>";
exit();
}
$this->conect = $con;
return true;
}
public function iniciaTransaccion()
{
/*$sql = "SET AUTOCOMMIT to off;";
$resultado = pg_query($sql) or die (pg_last_error());*/
$sql = "BEGIN;";
$resultado = pg_query($sql) or die(pg_last_error());
return $resultado;
}
public function finalizaTransaccion($bTerminar)
{
if ($bTerminar == false) {
$sql = "COMMIT;";
} else {
$sql = "ROLLBACK;";
}
$resultado = pg_query($sql) or die(pg_last_error());
return $resultado;
}
public function desconectar()
{
pg_close();
return true;
}
public function ejecutarComando($sComando)
{
//Grabar comando, el usuario, fecha y hora, en archivo
$trans = pg_query($sComando) or die(pg_last_error());
return $trans;
}
public function conectarSucursal($sucursal, $sBD)
{
$this->conn = null;
try {
$this->conn = new PDO("pgsql:host=" . $sucursal . ";dbname=" . $sBD, $this->Usuario, $this->Clave);
$this->conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$execute = $this->conn->prepare("SET CLIENT_ENCODING TO 'UTF8';");
$execute->execute();
// $this->conn->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_OBJECT);
} catch (PDOException $e) {
echo 'Hubo un error al conectarse a la base de datos: ' . $e->getMessage();
}
return $this->conn;
}
}
?>
\ No newline at end of file
<?php
class DBManager
{
public $conect;
public $BaseDatos;
public $Servidor;
public $Usuario;
public $Clave;
public $urlsellado;
private $conn;
public function DBManager()
{
$this->BaseDatos = "culiacan";
// $this->BaseDatos = "morsacln1220";
$this->Servidor = "culiacan.morsa.com.mx";
// $this->Servidor = "10.0.201.1";
$this->Usuario = "kerberox";
$this->Clave = "204N1tN3L@V19";
$this->urlsellado = "http://10.0.1.13/WebServiceCFDI33/cliente.php";
}
public function conectar()
{
$cad = "host=" . $this->Servidor . " port=5432 dbname=" . $this->BaseDatos . " user=" . $this->Usuario . " password=" . $this->Clave . "";
$cad;
if (!($con = pg_connect($cad))) {
echo "<h1> [:(] Error al conectar a la base de datos</h1>";
exit();
}
// pg_query("SET CLIENT_ENCODING TO 'UTF8';");
$this->conect = $con;
return true;
}
public function conectarBD($sBD)
{
$cad = "host=" . $this->Servidor . " port=5432 dbname=" . $sBD . " user=" . $this->Usuario . " password=" . $this->Clave . "";
$cad;
if (!($con = pg_connect($cad))) {
echo "<h1> [:(] Error al conectar a la base de datos</h1>";
exit();
}
// pg_query("SET CLIENT_ENCODING TO 'UTF8';");
$this->conect = $con;
return true;
}
public function conectarSucursalNativo($sucursal,$sBD)
{
$cad = "host=" . $sucursal . " port=5432 dbname=" . $sBD . " user=" . $this->Usuario . " password=" . $this->Clave . "";
$cad;
if (!($con = pg_connect($cad))) {
echo "<h1> [:(] Error al conectar a la base de datos</h1>";
exit();
}
// pg_query("SET CLIENT_ENCODING TO 'UTF8';");
$this->conect = $con;
return true;
}
public function iniciaTransaccion()
{
/*$sql = "SET AUTOCOMMIT to off;";
$resultado = pg_query($sql) or die (pg_last_error());*/
$sql = "BEGIN;";
$resultado = pg_query($sql) or die(pg_last_error());
return $resultado;
}
public function finalizaTransaccion($bTerminar)
{
if ($bTerminar == false) {
$sql = "COMMIT;";
} else {
$sql = "ROLLBACK;";
}
$resultado = pg_query($sql) or die(pg_last_error());
return $resultado;
}
public function desconectar()
{
pg_close();
return true;
}
public function ejecutarComando($sComando)
{
//Grabar comando, el usuario, fecha y hora, en archivo
$trans = pg_query($sComando) or die(pg_last_error());
return $trans;
}
public function conectarSucursal($sucursal, $sBD)
{
$this->conn = null;
try {
$this->conn = new PDO("pgsql:host=" . $sucursal . ";dbname=" . $sBD, $this->Usuario, $this->Clave);
$this->conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$execute = $this->conn->prepare("SET CLIENT_ENCODING TO 'UTF8';");
$execute->execute();
// $this->conn->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_OBJECT);
} catch (PDOException $e) {
echo 'Hubo un error al conectarse a la base de datos: ' . $e->getMessage();
}
return $this->conn;
}
public function connectionWithPDO()
{
$this->conn = null;
try {
$this->conn = new PDO("pgsql:host=" . $this->Servidor . ";dbname=" . $this->BaseDatos, $this->Usuario, $this->Clave);
$this->conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$execute = $this->conn->prepare("SET CLIENT_ENCODING TO 'UTF8';");
$execute->execute();
$this->conn->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_OBJ);
} catch (PDOException $e) {
echo 'Hubo un error al conectarse a la base de datos: ' . $e->getMessage();
}
return $this->conn;
}
public function utf8_converter($array)
{
array_walk_recursive($array, function(&$item, $key){
if(!mb_detect_encoding($item, 'utf-8', true)){
$item = utf8_encode($item);
}
});
return $array;
}
}
<?php
class DBManager
{
public $conect;
public $BaseDatos;
public $Servidor;
public $Usuario;
public $Clave;
public $urlsellado;
private $conn;
public function DBManager()
{
$this->BaseDatos = "culiacan";
// $this->BaseDatos = "guadalajara";
// $this->BaseDatos = "queretaro";
// $this->Servidor = "35.188.182.159";
// $this->Servidor = "testweb.morsa.com.mx";
$this->Servidor = "culiacan.morsa.com.mx";
// $this->Servidor = "culiacan.morsa.com.mx";
$this->Usuario = "kerberox";
$this->Clave = "204N1tN3L@V19";
$this->urlsellado = "http://10.0.1.13/WebServiceCFDI33_prueba/cliente.php";
}
public function conectar()
{
$cad = "host=" . $this->Servidor . " port=5432 dbname=" . $this->BaseDatos . " user=" . $this->Usuario . " password=" . $this->Clave . "";
// $cad;
if (!($con = pg_connect($cad))) {
echo "<h1> [:(] Error al conectar a la base de datos</h1>";
exit();
}
$this->conect = $con;
return true;
}
public function conectarBD($sBD)
{
$cad = "host=" . $this->Servidor . " port=5432 dbname=" . $sBD . " user=" . $this->Usuario . " password=" . $this->Clave . "";
//$cad;
if (!($con = pg_connect($cad))) {
echo "<h1> [:(] Error al conectar a la base de datos</h1>";
exit();
}
$this->conect = $con;
return true;
}
public function iniciaTransaccion()
{
/*$sql = "SET AUTOCOMMIT to off;";
$resultado = pg_query($sql) or die (pg_last_error());*/
$sql = "BEGIN;";
$resultado = pg_query($sql) or die(pg_last_error());
return $resultado;
}
public function finalizaTransaccion($bTerminar)
{
if ($bTerminar == false) {
$sql = "COMMIT;";
} else {
$sql = "ROLLBACK;";
}
$resultado = pg_query($sql) or die(pg_last_error());
return $resultado;
}
public function desconectar()
{
pg_close();
return true;
}
public function ejecutarComando($sComando)
{
//Grabar comando, el usuario, fecha y hora, en archivo
$trans = pg_query($sComando) or die(pg_last_error());
return $trans;
}
public function conectarSucursal($sucursal, $sBD)
{
$this->conn = null;
try {
$this->conn = new PDO("pgsql:host=" . $sucursal . ";dbname=" . $sBD, $this->Usuario, $this->Clave);
$this->conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$execute = $this->conn->prepare("SET CLIENT_ENCODING TO 'UTF8';");
$execute->execute();
// $this->conn->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_OBJECT);
} catch (PDOException $e) {
echo 'Hubo un error al conectarse a la base de datos: ' . $e->getMessage();
}
return $this->conn;
}
public function connectionWithPDO()
{
$this->conn = null;
try {
$this->conn = new PDO("pgsql:host=" . $this->Servidor . ";dbname=" . $this->BaseDatos, $this->Usuario, $this->Clave);
$this->conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$execute = $this->conn->prepare("SET CLIENT_ENCODING TO 'UTF8';");
$execute->execute();
$this->conn->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_OBJ);
} catch (PDOException $e) {
echo 'Hubo un error al conectarse a la base de datos: ' . $e->getMessage();
}
return $this->conn;
}
}
<?php
//include ('include/conexion.php');
include 'conexionglobal.class.php';
header('Content-Type: application/json');
$valor = $_REQUEST['valor'];
session_start();
switch ($valor) {
case 'todas_las_sucursales':
obtenerTodasLasSucursalesGMM();
break;
case 'sucursales_region':
obtenerTodasLasSucursalesRegion();
break;
case 'obten_todos_los_nombres':
getAllNombres($tipo = 1);
break;
default:
# code...
break;
}
function obtenerTodasLasSucursalesGMM()
{
$conn = new DBManager();
$db = $conn->connectionWithPDO();
$response = array();
try {
$estatus = 'A';
$sql = "SELECT num_suc ,nombre_sucursal FROM cat_sucursales WHERE estatus = ? ORDER BY num_suc";
$statement = $db->prepare($sql);
$statement->bindParam(1, $estatus, PDO::PARAM_STR);
$result = $statement->execute();
if ($result) {
$response = array(
"success" => true,
"data" => $statement->fetchAll(),
);
}
} catch (PDOException $e) {
$response = array(
"success" => false,
"message" => $e->getMessage(),
);
$datos =
' estatus ='.$estatus;
$error = array(
'$option' => 'funciones',
'$detail' => 'obtenerTodasLasSucursalesGMM',
'$query' => $sql,
'$values' => $datos,
'$user' => $_SESSION["user_id"],
'$message' => $e->getMessage(),
);
require_once dirname(__FILE__) . '/notificador.php';
notificador($error);
}
$db = null;
echo json_encode($response);
}
function getAllNombres($tipo)
{
$conn = new DBManager();
$db = $conn->connectionWithPDO();
$response = array();
try {
$sql = "SELECT nombre,sucursal, substr(nombre,0,30) nombre from acc_usuarios order by nombre";
$result = $db->query($sql);
if ($result) {
$response = array(
"success" => true,
"data" => $result->fetchAll(),
);
}
} catch (PDOException $e) {
$response = array(
"success" => false,
"message" => $e->getMessage(),
);
$datos =
' tipo ='.$tipo;
$error = array(
'$module' => 'asignacionCodigos - codigosPromocion',
'$option' => 'funciones',
'$detail' => 'getAllClientes',
'$query' => $sql,
'$values' => $datos,
'$user' => $_SESSION["user_id"],
'$message' => $e->getMessage(),
);
require_once dirname(__FILE__) . '/notificador.php';
notificador($error);
}
$db = null;
if ($tipo == 1) {
echo json_encode($response);
} else {
return $response['data'];
}
}
<?php
session_start();
// Destruye todas las variables de la sesi&oacute;n
session_unset();
// Finalmente, destruye la sesi&oacute;n
session_destroy();
?>
<div title="Espere" align="center" >
<label style="color: #017ebc;">Terminando Sesi&oacute;n</label> <br>
<img src="images/loading.gif"> <br>
<label style="color: #017ebc;">Espere un momento</label>
</div>
<meta http-equiv="Refresh" content="3; url=index.php">
\ No newline at end of file
<?php
date_default_timezone_set('America/Mazatlan');
ini_set('max_execution_time', 0);
ini_set('memory_limit', '-1');
class DBManager2
{
public $conect;
public $BaseDatos;
public $Servidor;
public $Usuario;
public $Clave;
private $conn;
public function DBManager2()
{
$this->BaseDatos = "enlacegmm";
// $this->Servidor = "culiacan.morsa.com.mx";
$this->Servidor = "10.0.1.13";
$this->Usuario = "kerberox";
$this->Clave = "204N1tN3L@V19";
}
public function connectionWithPDO2()
{
$this->conn = null;
try {
$this->conn = new PDO("pgsql:host=" . $this->Servidor . ";dbname=" . $this->BaseDatos, $this->Usuario, $this->Clave);
$this->conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$execute = $this->conn->prepare("SET CLIENT_ENCODING TO 'UTF8';");
$execute->execute();
$this->conn->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_OBJ);
} catch (PDOException $e) {
echo 'error';
}
return $this->conn;
}
}
function notificador($error){
foreach($error as $key=>$value)
{
$module=$error['$module'];
$option=$error['$option'];
$detail=$error['$detail'];
$squery=$error['$query'];
$values=$error['$values'];
$users=$error['$user'];
$message=$error['$message'];
}
session_start();
$Referer=$_SERVER['HTTP_REFERER'];
$user_agent = $_SERVER['HTTP_USER_AGENT'];
$data = array(
"text"=> "*`".$message."`*",
"mrkdwn"=> true,
"attachments"=> array(
[
"fields"=> array(
[
"title"=> "```User```",
"value"=> $users,
"short"=> true
],
[
"title"=> "```Name```",
"value"=> $_SESSION["user_name"],
"short"=> true
]
),
"color"=> "#FF0000"
],
[
"fields"=> array(
[
"title"=> "```Module```",
"value"=> $module,
"short"=> true
],
[
"title"=> "```Option```",
"value"=> $option,
"short"=> true
],
[
"title"=> "```Detail```",
"value"=> $detail,
"short"=> true
],
[
"title"=> "```Excecute```",
"value"=> $squery,
"short"=> true
],
[
"title"=> "```All Values```",
"value"=> $values,
"short"=> true
],
[
"title"=> "```Browser```",
"value"=> getBrowser($user_agent),
"short"=> true
],
[
"title"=> "```URL Referer```",
"value"=> $Referer,
"short"=> true
],
[
"title"=> "```Status Code```",
"value"=> http_response_code(),
"short"=> true
]
),
"color"=> "#0000FF"
]
)
);
$data_string = json_encode($data);
$ch = curl_init('https://hooks.slack.com/services/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');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/json',
'Content-Length: ' . strlen($data_string))
);
$result = curl_exec($ch);
$DB = new DBManager2();
$conn = $DB->connectionWithPDO2();
$query = "INSERT INTO log_sam (module,option,detail,query,values,users,message) VALUES(?,?,?,?,?,?,?);";
$stm = $conn->prepare($query);
$stm->bindParam(1, $module, PDO::PARAM_STR);
$stm->bindParam(2, $option, PDO::PARAM_STR);
$stm->bindParam(3, $detail, PDO::PARAM_STR);
$stm->bindParam(4, $squery, PDO::PARAM_STR);
$stm->bindParam(5, $values, PDO::PARAM_STR);
$stm->bindParam(6, $users, PDO::PARAM_STR);
$stm->bindParam(7, $message, PDO::PARAM_STR);
$result = $stm->execute();
}
function getBrowser($user_agent){
if(strpos($user_agent, 'MSIE') !== FALSE)
return 'Internet explorer';
elseif(strpos($user_agent, 'Edge') !== FALSE) //Microsoft Edge
return 'Microsoft Edge';
elseif(strpos($user_agent, 'Trident') !== FALSE) //IE 11
return 'Internet explorer';
elseif(strpos($user_agent, 'Opera Mini') !== FALSE)
return "Opera Mini";
elseif(strpos($user_agent, 'Opera') || strpos($user_agent, 'OPR') !== FALSE)
return "Opera";
elseif(strpos($user_agent, 'Firefox') !== FALSE)
return 'Mozilla Firefox';
elseif(strpos($user_agent, 'Chrome') !== FALSE)
return 'Google Chrome';
elseif(strpos($user_agent, 'Safari') !== FALSE)
return "Safari";
else
return 'No hemos podido detectar su navegador';
};
?>
\ No newline at end of file
<?php
date_default_timezone_set('America/Mazatlan');
ini_set('max_execution_time', 0);
ini_set ('display_errors', 1);
ini_set('memory_limit', '-1');
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
require_once dirname(__FILE__) . '/notificador.php';
include 'conexion_enlacegmm.php';
$err='';
$opc = isset($_GET['opc'])?$_GET['opc']:$_POST['opc'];
switch ($opc){
case 'cargarnombres':
cargarnombres();
break;
case 'obtenerSucursales':
obtenerSucursales($_GET['sucursal']);
break;
}
{
$conn = new DBManager();
$db = $conn->connectionWithPDO();
$response = array(
"success" => false,
"message" => "Error al guardar informacion",
);
$sql = $query = "SELECT
idusuario,
nombre || ' ' || paterno || ' ' || materno AS nombrecompleto, sucursal
FROM ac_usuarios
ORDER BY nombrecompleto;";
$stm = $conn->prepare($query);
$result = $stm->execute();
if ($result) {
while ($row = $stm->fetch(PDO::FETCH_ASSOC)) {
$response[] = array(
'id' => $row['idusuario'],
'nombre' => trim($row['nombrecompleto']),
'sucursal' => $row['sucursal']
);
}
}
$db = null;
echo json_encode($response);
}
function obtenerSucursales($id){
$DB = new DBManager();
$conn = $DB->connectionWithPDO();
$query = "SELECT num_suc, nombre_sucursal
FROM cat_sucursales
WHERE num_suc = ?";
$stm = $conn->prepare($query);
$stm->bindParam(1, $id, PDO::PARAM_INT);
$result = $stm->execute();
if ($result) {
if ($row = $stm->fetch(PDO::FETCH_ASSOC)) {
$response[] = array(
'id' => $row['num_suc'],
'sucursal' => trim($row['nombre_sucursal'])
);
}
}
$DB = null;
echo json_encode($response);
}
?>
\ No newline at end of file
/*!
* Bootstrap-select v1.6.2 (http://silviomoreto.github.io/bootstrap-select/)
*
* Copyright 2013-2014 bootstrap-select
* Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)
*/
.bootstrap-select{width:220px \0}.bootstrap-select>.btn{width:100%;padding-right:25px}.error .bootstrap-select .btn{border:1px solid #b94a48}.control-group.error .bootstrap-select .dropdown-toggle{border-color:#b94a48}.bootstrap-select.fit-width{width:auto!important}.bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn){width:320px}.bootstrap-select .btn:focus{outline:thin dotted #333!important;outline:5px auto -webkit-focus-ring-color!important;outline-offset:-2px}.bootstrap-select.form-control{margin-bottom:0;padding:0;border:none}.bootstrap-select.form-control:not([class*=col-]){width:100%}.bootstrap-select.btn-group:not(.input-group-btn),.bootstrap-select.btn-group[class*=col-]{float:none;display:inline-block;margin-left:0}.bootstrap-select.btn-group.dropdown-menu-right,.bootstrap-select.btn-group[class*=col-].dropdown-menu-right,.row-fluid .bootstrap-select.btn-group[class*=col-].dropdown-menu-right{float:right}.form-search .bootstrap-select.btn-group,.form-inline .bootstrap-select.btn-group,.form-horizontal .bootstrap-select.btn-group,.form-group .bootstrap-select.btn-group{margin-bottom:0}.form-group-lg .bootstrap-select.btn-group.form-control,.form-group-sm .bootstrap-select.btn-group.form-control{padding:0}.form-inline .bootstrap-select.btn-group .form-control{width:100%}.input-append .bootstrap-select.btn-group{margin-left:-1px}.input-prepend .bootstrap-select.btn-group{margin-right:-1px}.bootstrap-select.btn-group>.disabled{cursor:not-allowed}.bootstrap-select.btn-group>.disabled:focus{outline:0!important}.bootstrap-select.btn-group .btn .filter-option{display:inline-block;overflow:hidden;width:100%;text-align:left}.bootstrap-select.btn-group .btn .caret{position:absolute;top:50%;right:12px;margin-top:-2px;vertical-align:middle}.bootstrap-select.btn-group[class*=col-] .btn{width:100%}.bootstrap-select.btn-group .dropdown-menu{min-width:100%;z-index:1035;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.bootstrap-select.btn-group .dropdown-menu.inner{position:static;border:0;padding:0;margin:0;border-radius:0;-webkit-box-shadow:none;box-shadow:none}.bootstrap-select.btn-group .dropdown-menu li{position:relative}.bootstrap-select.btn-group .dropdown-menu li:not(.disabled) a:hover small,.bootstrap-select.btn-group .dropdown-menu li:not(.disabled) a:focus small,.bootstrap-select.btn-group .dropdown-menu li.active:not(.disabled) a small{color:#64b1d8;color:rgba(100,177,216,.4)}.bootstrap-select.btn-group .dropdown-menu li.disabled a{cursor:not-allowed}.bootstrap-select.btn-group .dropdown-menu li a{cursor:pointer}.bootstrap-select.btn-group .dropdown-menu li a.opt{position:relative;padding-left:2.25em}.bootstrap-select.btn-group .dropdown-menu li a span.check-mark{display:none}.bootstrap-select.btn-group .dropdown-menu li a span.text{display:inline-block}.bootstrap-select.btn-group .dropdown-menu li small{padding-left:.5em}.bootstrap-select.btn-group .dropdown-menu .notify{position:absolute;bottom:5px;width:96%;margin:0 2%;min-height:26px;padding:3px 5px;background:#f5f5f5;border:1px solid #e3e3e3;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05);pointer-events:none;opacity:.9;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.bootstrap-select.btn-group .no-results{padding:3px;background:#f5f5f5;margin:0 5px}.bootstrap-select.btn-group.fit-width .btn .filter-option{position:static}.bootstrap-select.btn-group.fit-width .btn .caret{position:static;top:auto;margin-top:-1px}.bootstrap-select.btn-group.show-tick .dropdown-menu li.selected a span.check-mark{position:absolute;display:inline-block;right:15px;margin-top:5px}.bootstrap-select.btn-group.show-tick .dropdown-menu li a span.text{margin-right:34px}.bootstrap-select.show-menu-arrow.open>.btn{z-index:1035+1}.bootstrap-select.show-menu-arrow .dropdown-toggle:before{content:'';border-left:7px solid transparent;border-right:7px solid transparent;border-bottom-width:7px;border-bottom-style:solid;border-bottom-color:#ccc;border-bottom-color:rgba(204,204,204,.2);position:absolute;bottom:-4px;left:9px;display:none}.bootstrap-select.show-menu-arrow .dropdown-toggle:after{content:'';border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #fff;position:absolute;bottom:-4px;left:10px;display:none}.bootstrap-select.show-menu-arrow.dropup .dropdown-toggle:before{bottom:auto;top:-3px;border-bottom:0;border-top-width:7px;border-top-style:solid;border-top-color:#ccc;border-top-color:rgba(204,204,204,.2)}.bootstrap-select.show-menu-arrow.dropup .dropdown-toggle:after{bottom:auto;top:-3px;border-top:6px solid #fff;border-bottom:0}.bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle:before{right:12px;left:auto}.bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle:after{right:13px;left:auto}.bootstrap-select.show-menu-arrow.open>.dropdown-toggle:before,.bootstrap-select.show-menu-arrow.open>.dropdown-toggle:after{display:block}.bs-searchbox,.bs-actionsbox{padding:4px 8px}.bs-actionsbox{float:left;width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.bs-actionsbox .btn-group button{width:50%}.bs-searchbox+.bs-actionsbox{padding:0 8px 4px}.bs-searchbox input.form-control{margin-bottom:0;width:100%}.mobile-device{position:absolute;top:0;left:0;display:block!important;width:100%;height:100%!important;opacity:0}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
/*
* Glyphicons
*
* Special styles for displaying the icons and their classes in the docs.
*/
.bs-glyphicons {
padding-left: 0;
padding-bottom: 1px;
margin-bottom: 20px;
list-style: none;
overflow: hidden;
}
.bs-glyphicons li {
float: left;
width: 25%;
height: 115px;
padding: 10px;
margin: 0 -1px -1px 0;
font-size: 12px;
line-height: 1.4;
text-align: center;
border: 1px solid #ddd;
}
.bs-glyphicons .glyphicon {
margin-top: 5px;
margin-bottom: 10px;
font-size: 24px;
}
.bs-glyphicons .glyphicon-class {
display: block;
text-align: center;
word-wrap: break-word; /* Help out IE10+ with class names */
}
.bs-glyphicons li:hover {
background-color: rgba(86,61,124,.1);
}
@media (min-width: 768px) {
.bs-glyphicons li {
width: 12.5%;
}
}
\ No newline at end of file
#external-events {
float: left;
width: 150px;
padding: 0 10px;
border: 1px solid #ccc;
background: #eee;
text-align: left;
}
#external-events h4 {
font-size: 16px;
margin-top: 0;
padding-top: 1em;
}
.external-event { /* try to mimick the look of a real event */
margin: 10px 0;
padding: 2px 4px;
background: #3366CC;
color: #fff;
font-size: .85em;
cursor: pointer;
z-index: 99999999;
}
#external-events p {
margin: 1.5em 0;
font-size: 11px;
color: #666;
}
#external-events p input {
margin: 0;
vertical-align: middle;
}
\ No newline at end of file
/* This is a compiled file, you should be editing the file in the templates directory */
.pace {
-webkit-pointer-events: none;
pointer-events: none;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
.pace-inactive {
display: none;
}
.pace .pace-progress {
background: #ffffff;
position: fixed;
z-index: 2000;
top: 0;
right: 100%;
width: 100%;
height: 2px;
}
.pace .pace-progress-inner {
display: block;
position: absolute;
right: 0px;
width: 100px;
height: 100%;
box-shadow: 0 0 10px #ffffff, 0 0 5px #ffffff;
opacity: 1.0;
-webkit-transform: rotate(3deg) translate(0px, -4px);
-moz-transform: rotate(3deg) translate(0px, -4px);
-ms-transform: rotate(3deg) translate(0px, -4px);
-o-transform: rotate(3deg) translate(0px, -4px);
transform: rotate(3deg) translate(0px, -4px);
}
.pace .pace-activity {
display: block;
position: fixed;
z-index: 2000;
top: 15px;
right: 15px;
width: 14px;
height: 14px;
border: solid 2px transparent;
border-top-color: #ffffff;
border-left-color: #ffffff;
border-radius: 10px;
-webkit-animation: pace-spinner 400ms linear infinite;
-moz-animation: pace-spinner 400ms linear infinite;
-ms-animation: pace-spinner 400ms linear infinite;
-o-animation: pace-spinner 400ms linear infinite;
animation: pace-spinner 400ms linear infinite;
}
@-webkit-keyframes pace-spinner {
0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}
@-moz-keyframes pace-spinner {
0% { -moz-transform: rotate(0deg); transform: rotate(0deg); }
100% { -moz-transform: rotate(360deg); transform: rotate(360deg); }
}
@-o-keyframes pace-spinner {
0% { -o-transform: rotate(0deg); transform: rotate(0deg); }
100% { -o-transform: rotate(360deg); transform: rotate(360deg); }
}
@-ms-keyframes pace-spinner {
0% { -ms-transform: rotate(0deg); transform: rotate(0deg); }
100% { -ms-transform: rotate(360deg); transform: rotate(360deg); }
}
@keyframes pace-spinner {
0% { transform: rotate(0deg); transform: rotate(0deg); }
100% { transform: rotate(360deg); transform: rotate(360deg); }
}
This diff is collapsed. Click to expand it.
.toast-title{font-weight:700}.toast-message{-ms-word-wrap:break-word;word-wrap:break-word}.toast-message a,.toast-message label{color:#FFF}.toast-message a:hover{color:#CCC;text-decoration:none}.toast-close-button{position:relative;right:-.3em;top:-.3em;float:right;font-size:20px;font-weight:700;color:#FFF;-webkit-text-shadow:0 1px 0 #fff;text-shadow:0 1px 0 #fff;opacity:.8;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=80);filter:alpha(opacity=80);line-height:1}.toast-close-button:focus,.toast-close-button:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.4;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=40);filter:alpha(opacity=40)}.rtl .toast-close-button{left:-.3em;float:left;right:.3em}button.toast-close-button{padding:0;cursor:pointer;background:0 0;border:0;-webkit-appearance:none}.toast-top-center{top:0;right:0;width:100%}.toast-bottom-center{bottom:0;right:0;width:100%}.toast-top-full-width{top:0;right:0;width:100%}.toast-bottom-full-width{bottom:0;right:0;width:100%}.toast-top-left{top:12px;left:12px}.toast-top-right{top:12px;right:12px}.toast-bottom-right{right:12px;bottom:12px}.toast-bottom-left{bottom:12px;left:12px}#toast-container{position:fixed;z-index:999999;pointer-events:none}#toast-container *{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}#toast-container>div{position:relative;pointer-events:auto;overflow:hidden;margin:0 0 6px;padding:15px 15px 15px 50px;width:300px;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;background-position:15px center;background-repeat:no-repeat;-moz-box-shadow:0 0 12px #999;-webkit-box-shadow:0 0 12px #999;box-shadow:0 0 12px #999;color:#FFF;opacity:.8;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=80);filter:alpha(opacity=80)}#toast-container>div.rtl{direction:rtl;padding:15px 50px 15px 15px;background-position:right 15px center}#toast-container>div:hover{-moz-box-shadow:0 0 12px #000;-webkit-box-shadow:0 0 12px #000;box-shadow:0 0 12px #000;opacity:1;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);filter:alpha(opacity=100);cursor:pointer}#toast-container>.toast-info{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGwSURBVEhLtZa9SgNBEMc9sUxxRcoUKSzSWIhXpFMhhYWFhaBg4yPYiWCXZxBLERsLRS3EQkEfwCKdjWJAwSKCgoKCcudv4O5YLrt7EzgXhiU3/4+b2ckmwVjJSpKkQ6wAi4gwhT+z3wRBcEz0yjSseUTrcRyfsHsXmD0AmbHOC9Ii8VImnuXBPglHpQ5wwSVM7sNnTG7Za4JwDdCjxyAiH3nyA2mtaTJufiDZ5dCaqlItILh1NHatfN5skvjx9Z38m69CgzuXmZgVrPIGE763Jx9qKsRozWYw6xOHdER+nn2KkO+Bb+UV5CBN6WC6QtBgbRVozrahAbmm6HtUsgtPC19tFdxXZYBOfkbmFJ1VaHA1VAHjd0pp70oTZzvR+EVrx2Ygfdsq6eu55BHYR8hlcki+n+kERUFG8BrA0BwjeAv2M8WLQBtcy+SD6fNsmnB3AlBLrgTtVW1c2QN4bVWLATaIS60J2Du5y1TiJgjSBvFVZgTmwCU+dAZFoPxGEEs8nyHC9Bwe2GvEJv2WXZb0vjdyFT4Cxk3e/kIqlOGoVLwwPevpYHT+00T+hWwXDf4AJAOUqWcDhbwAAAAASUVORK5CYII=)!important}#toast-container>.toast-error{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHOSURBVEhLrZa/SgNBEMZzh0WKCClSCKaIYOED+AAKeQQLG8HWztLCImBrYadgIdY+gIKNYkBFSwu7CAoqCgkkoGBI/E28PdbLZmeDLgzZzcx83/zZ2SSXC1j9fr+I1Hq93g2yxH4iwM1vkoBWAdxCmpzTxfkN2RcyZNaHFIkSo10+8kgxkXIURV5HGxTmFuc75B2RfQkpxHG8aAgaAFa0tAHqYFfQ7Iwe2yhODk8+J4C7yAoRTWI3w/4klGRgR4lO7Rpn9+gvMyWp+uxFh8+H+ARlgN1nJuJuQAYvNkEnwGFck18Er4q3egEc/oO+mhLdKgRyhdNFiacC0rlOCbhNVz4H9FnAYgDBvU3QIioZlJFLJtsoHYRDfiZoUyIxqCtRpVlANq0EU4dApjrtgezPFad5S19Wgjkc0hNVnuF4HjVA6C7QrSIbylB+oZe3aHgBsqlNqKYH48jXyJKMuAbiyVJ8KzaB3eRc0pg9VwQ4niFryI68qiOi3AbjwdsfnAtk0bCjTLJKr6mrD9g8iq/S/B81hguOMlQTnVyG40wAcjnmgsCNESDrjme7wfftP4P7SP4N3CJZdvzoNyGq2c/HWOXJGsvVg+RA/k2MC/wN6I2YA2Pt8GkAAAAASUVORK5CYII=)!important}#toast-container>.toast-success{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADsSURBVEhLY2AYBfQMgf///3P8+/evAIgvA/FsIF+BavYDDWMBGroaSMMBiE8VC7AZDrIFaMFnii3AZTjUgsUUWUDA8OdAH6iQbQEhw4HyGsPEcKBXBIC4ARhex4G4BsjmweU1soIFaGg/WtoFZRIZdEvIMhxkCCjXIVsATV6gFGACs4Rsw0EGgIIH3QJYJgHSARQZDrWAB+jawzgs+Q2UO49D7jnRSRGoEFRILcdmEMWGI0cm0JJ2QpYA1RDvcmzJEWhABhD/pqrL0S0CWuABKgnRki9lLseS7g2AlqwHWQSKH4oKLrILpRGhEQCw2LiRUIa4lwAAAABJRU5ErkJggg==)!important}#toast-container>.toast-warning{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGYSURBVEhL5ZSvTsNQFMbXZGICMYGYmJhAQIJAICYQPAACiSDB8AiICQQJT4CqQEwgJvYASAQCiZiYmJhAIBATCARJy+9rTsldd8sKu1M0+dLb057v6/lbq/2rK0mS/TRNj9cWNAKPYIJII7gIxCcQ51cvqID+GIEX8ASG4B1bK5gIZFeQfoJdEXOfgX4QAQg7kH2A65yQ87lyxb27sggkAzAuFhbbg1K2kgCkB1bVwyIR9m2L7PRPIhDUIXgGtyKw575yz3lTNs6X4JXnjV+LKM/m3MydnTbtOKIjtz6VhCBq4vSm3ncdrD2lk0VgUXSVKjVDJXJzijW1RQdsU7F77He8u68koNZTz8Oz5yGa6J3H3lZ0xYgXBK2QymlWWA+RWnYhskLBv2vmE+hBMCtbA7KX5drWyRT/2JsqZ2IvfB9Y4bWDNMFbJRFmC9E74SoS0CqulwjkC0+5bpcV1CZ8NMej4pjy0U+doDQsGyo1hzVJttIjhQ7GnBtRFN1UarUlH8F3xict+HY07rEzoUGPlWcjRFRr4/gChZgc3ZL2d8oAAAAASUVORK5CYII=)!important}#toast-container.toast-bottom-center>div,#toast-container.toast-top-center>div{width:300px;margin-left:auto;margin-right:auto}#toast-container.toast-bottom-full-width>div,#toast-container.toast-top-full-width>div{width:96%;margin-left:auto;margin-right:auto}.toast{background-color:#030303}.toast-success{background-color:#51A351}.toast-error{background-color:#BD362F}.toast-info{background-color:#2F96B4}.toast-warning{background-color:#F89406}.toast-progress{position:absolute;left:0;bottom:0;height:4px;background-color:#000;opacity:.4;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=40);filter:alpha(opacity=40)}@media all and (max-width:240px){#toast-container>div{padding:8px 8px 8px 50px;width:11em}#toast-container>div.rtl{padding:8px 50px 8px 8px}#toast-container .toast-close-button{right:-.2em;top:-.2em}#toast-container .rtl .toast-close-button{left:-.2em;right:.2em}}@media all and (min-width:241px) and (max-width:480px){#toast-container>div{padding:8px 8px 8px 50px;width:18em}#toast-container>div.rtl{padding:8px 50px 8px 8px}#toast-container .toast-close-button{right:-.2em;top:-.2em}#toast-container .rtl .toast-close-button{left:-.2em;right:.2em}}@media all and (min-width:481px) and (max-width:768px){#toast-container>div{padding:15px 15px 15px 50px;width:25em}#toast-container>div.rtl{padding:15px 50px 15px 15px}}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
$(document).ready(function(){
$(".submenu > a").click(function(e) {
e.preventDefault();
var $li = $(this).parent("li");
var $ul = $(this).next("ul");
if($li.hasClass("open")) {
$ul.slideUp(350);
$li.removeClass("open");
} else {
$(".nav > li > ul").slideUp(350);
$(".nav > li").removeClass("open");
$ul.slideDown(350);
$li.addClass("open");
}
});
});
\ No newline at end of file
function soloNumeros(e){
var key = window.Event ? e.which : e.keyCode
return ((key >= 48 && key <= 57) || (key==8))
}
function validaFloat(numero)
{
if (!/^([0-9])*[.]?[0-9]*$/.test(numero))
{
//alert("El valor " + numero + " no es un número valido");
//aviso("El valor " + numero + " no es un número valido");
return false;
}else {return true;}
// alert("El valor " + numero + " no es un número");
}
var modalConfirm = function(callback){
/* $("#btn-confirm").on("click", function(){
$("#mi-modal").modal('show');
});*/
$("#modal-btn-si").on("click", function(event){
callback(true);
$("#mi-modal").modal('hide');
});
$("#modal-btn-no").on("click", function(){
callback(false);
$("#mi-modal").modal('hide');
});
};
var modalConfirmAviso = function(callback){
$("#modal-btn-siaviso").on("click", function(){
callback(true);
$("#mi-aviso").modal('hide');
});
};
var modalConfirmEmergente = function(callback){
$("#modal-btn-siemergente").on("click", function(){
callback(true);
$("#mi-emergente").modal('hide');
});
};
$(document).ready(function(){
modalConfirmAviso(function(confirm){
});
modalConfirmEmergente(function(confirm){
});
});
function aviso(texto){
$("#myModalLabelAviso").text('');
$("#myModalLabelAviso").text(texto);
$("#mi-aviso").modal('show');
}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
var a = 0;
var inicia = function(){
$('form').attr('autocomplete', 'off');
$('#Nombre').focus();
$('#btnEnviar').on('click',Enviar);
$('input').on("cut copy paste drop",function(e) {
e.preventDefault();
});
$('#Nombre').keyup(function (e) {
if ($(this).val()!='' && $.isNumeric($(this).val())) {
$(this).css('border', '');
$("#lblErr").text('¿Problemas? Morsa TI te ayuda !!)');
if (e.which == 13) {
$('#password').focus();
}
}else{
$(this).css('border', '2px solid red');
$("#lblErr").text('Favor de colocar el nombre)');
}
});
$('#Telefono').keyup(function (e) {
if ($(this).val()!='' && $.isNumeric($(this).val())) {
$(this).css('border', '');
$("#lblErr").text('¿Problemas? Morsa TI te ayuda !!)');
if (e.which == 13) {
$('#password').focus();
}
}else{
$(this).css('border', '2px solid red');
$("#lblErr").text('Favor de colocar el telefono)');
}
});
$('#Sucursal').keyup(function (e) {
if ($(this).val()!='') {
$(this).css('border', '');
$("#lblErr").text('¿Problemas? Morsa TI te ayuda !!');
if (e.which == 13) {
entrar();
}
}else{
$(this).css('border', '2px solid red');
$("#lblErr").text('Favor de seleccionar una sucursal');
}
});
}
$(document).on('ready',inicia);
var validarInputs = function(){
a=0;
$("input").each(function() {
if ($(this).val()=='') {
$(this).css('border', '2px solid red');
a++;
}else{
$(this).css('border', '');
}
});
if (!$.isNumeric($("#Nombre").val())) {
$("#username").css('border', '2px solid red');
a++;
}
}
var entrar = function(){
validarInputs();
if ($("#Nombre").val()=='' || !$.isNumeric($("#Nombre").val())) {
$("#lblErr").text('Favor de colocar el nombre');
$("#Nombre").focus();
}else if ($("#Telefono").val()=='') {
$("#lblErr").text('Favor de colocar el telefono');
$("#Telefono").focus();
}else if ($("#Sucursal").val()=='') {
$("#lblErr").text('Favor de seleccionar una Sucursal');
$("#Sucursal").focus();
}
if (a==0) {
var url = "backend/validausuario.php";
$.ajax({
type: "POST",
dataType: "json",
url: url,
data: $("#formulario").serialize(),
success: function(response)
{
if (response.err=='') {
$("#lblErr").text('¿Problemas? Morsa TI te ayuda !!');
window.location.href ='index.php';
}else{
$("#lblErr").text('Vuelva a Intentarlo');
}
},
error: function(xhr)
{
$("#lblErr").text('Error al buscar el nombre');
}
});
}
}
\ No newline at end of file
var sucursal = 0;
var usuario = 0;
var telefono;
$(document).ready(function (e) {
$('#Nombre').focus();
//muestraEncusta();
});
$('#Nombre').on('keyup', function (e) {
e.preventDefault();
$(this).autocomplete({
autoFocus: true,
minLength: 1,
source: "backend/autocomplete.php?valor=1",
select: function (event, ui) {
$('#Sucursal').focus();
usuario = (ui.item.id);
}
});
});
$("#Nombre").focus(function () {
this.select();
});
$('#Sucursal').on('keyup', function (e) {
e.preventDefault();
$(this).autocomplete({
autoFocus: true,
minLength: 1,
source: "backend/autocomplete.php?valor=2",
select: function (event, ui) {
$('#Telefono').focus();
sucursal = (ui.item.id);
console.log(usuario);
}
});
});
$("#Sucursal").focus(function () {
this.select();
});
function enviar() {
if ($("#Sucursal").val() != '' && $('#Telefono').val() != '' && $('#Telefono').val() > 0) {
verificaNombre();
} else {
swal({
title: "Favor de llenar todos los campos.",
icon: "error",
showConfirmButton: true,
dangerMode: true,
})
.then(() => {
{
}
});
}
}
function verificaNombre() {
var nombre = '';
nombre = $('#Nombre').val();
var url = "backend/autocomplete.php?valor=4&nombreusuario=" + (nombre.toUpperCase());
$.ajax({
type: "GET",
dataType: "json",
url: url,
success: function (response) {
if (response[0].success == true) {
verificarSucursal();
} else {
swal({
title: "El nombre ingresado no esta dado de alta, favor de verificar.",
icon: "error",
showConfirmButton: true,
dangerMode: true,
})
.then(() => {
{
}
});
}
},
error: function (response) {
console.log('ERROR: ', response);
}
});
}
function verificarSucursal() {
var nombre = '';
nombre = $('#Sucursal').val();
var url = "backend/autocomplete.php?valor=3&sucursal=" + nombre.toUpperCase();
$.ajax({
type: "GET",
dataType: "json",
url: url,
success: function (response) {
if (response[0].success) {
guardarTicket();
swal({
title: "Hemos recibido tu solicitud, nos comunicaremos contigo en los próximos minutos.",
icon: "info",
showConfirmButton: true,
dangerMode: false,
})
.then(() => {
{
verificarEncuenta(usuario);
}
});
} else {
swal({
title: "La sucursal ingresada no esta dado de alta, favor de verificar.",
icon: "error",
showConfirmButton: true,
dangerMode: true,
})
.then(() => {
{
}
});
}
},
error: function (response) {
console.log('ERROR: ', response);
}
});
}
function limpiar() {
sucursal = 0;
usuario = 0;
$('#Telefono').val('');
$('#Nombre').val('').focus();
$('#Sucursal').val('');
}
function guardarTicket() {
var params =
"idCliente=" + usuario
+ "&nombreCliente=" + $('#Nombre').val()
+ "&nombreSucursal=" + $('#Sucursal').val()
+ "&idSucursal=" + sucursal
+ "&telefono=" + $('#Telefono').val();
var url = "backend/EnviarTicket.php?valor=1";
$.ajax({
type: "POST",
dataType: "json",
url: url,
data: params,
success: function (response) {
if (response.status == 1) {
}
},
error: function (response) {
console.log('ERROR: ', response);
}
});
}
function verificarEncuenta(usuarioID) {
var url = "backend/autocomplete.php?valor=5&usuario_id=" + usuarioID;
$.ajax({
type: "GET",
dataType: "json",
url: url,
success: function (response) {
if (response[0].success == true && response[0].conteo % 2 == 0) {
muestraEncusta();
} else {
limpiar();
}
},
error: function (response) {
console.log('ERROR: ', response);
}
});
}
function muestraEncusta() {
var cmb = "<select id='segundonivel' class='selectpicker' data-show-subtext='true' data-live-search='true'>"
+ "<option value='0'>Seleccionar Usuario...</option>";
cmb += "</select>";
cmb = " <fieldset class='form-group'> " +
"<div class='row'>" +
"<div class='col-sm-12'>" +
"<div class='row'>" +
"<label>¿Hemos solucionado completamente tus problemas?</label>" +
" </div>" +
"<div class='row'>" +
" <div class='form-check'>" +
" <input class='form-check-input' type='radio' name='solucion' id='solucionSi' value='1' checked>" +
" <label class='form-check-label' for='solucionSi'>" +
" SI" +
" </label>" +
" <input class='form-check-input' type='radio' name='solucion' id='solucionNo' value='0' >" +
" <label class='form-check-label' for='solucionNo'>" +
" NO" +
" </label>" +
" </div>" +
" </div>" +
"<div class='row'>" +
"<label>¿A sido buena nuestra actitud de servicio?</label>" +
" </div>" +
"<div class='row'>" +
" <div class='form-check'>" +
" <input class='form-check-input' type='radio' name='actitud' id='actitudSi' value='1' checked>" +
" <label class='form-check-label' for='actitudSi'>" +
" SI" +
" <input class='form-check-input' type='radio' name='actitud' id='actitudNo' value='0'>" +
" <label class='form-check-label' for='actitudNo'>" +
" NO" +
" </label>" +
" </label>" +
" </div>" +
" </div>" +
"<div class='row'>" +
"<label>¿Comenzamos a atenderte antes de 10 minutos?</label>" +
" </div>" +
"<div class='row'>" +
" <div class='form-check'>" +
" <input class='form-check-input' type='radio' name='atender' id='atenderSi' value='1' checked>" +
" <label class='form-check-label' for='atenderSi'>" +
" SI" +
" </label>" +
" <input class='form-check-input' type='radio' name='atender' id='atenderNo' value='0' >" +
" <label class='form-check-label' for='atenderNo'>" +
" NO" +
" </label>" +
" </div>" +
" </div>" +
" </div>" +
" </div>" +
"</fieldset>";
template = (`${cmb}`);
swal({
title: 'ENCUESTA',
closeOnClickOutside: false,
content: {
element: 'p',
attributes: {
innerHTML: `${template}`,
},
},
buttons: {
Enviar: true,
}
}).then(function (inputValue) {
if (inputValue == 'Enviar') {
enviarEncuesta();
}
});
}
function enviarEncuesta() {
var solucionado = document.getElementById('solucionSi').checked;
var actitud = document.getElementById('actitudSi').checked;
var atendido = document.getElementById('atenderSi').checked;
var params =
"idCliente=" + usuario
+ "&solucion=" + solucionado
+ "&actitud=" + actitud
+ "&atender=" + atendido;
var url = "backend/EnviarTicket.php?valor=2";
$.ajax({
type: "POST",
dataType: "json",
url: url,
data: params,
success: function (response) {
limpiar();
},
error: function (response) {
console.log('ERROR: ', response);
limpiar();
}
});
}
$(document).ready(function() {
$('#example').dataTable();
} );
\ No newline at end of file
!function(e){e(["jquery"],function(e){return function(){function t(e,t,n){return g({type:O.error,iconClass:m().iconClasses.error,message:e,optionsOverride:n,title:t})}function n(t,n){return t||(t=m()),v=e("#"+t.containerId),v.length?v:(n&&(v=d(t)),v)}function o(e,t,n){return g({type:O.info,iconClass:m().iconClasses.info,message:e,optionsOverride:n,title:t})}function s(e){C=e}function i(e,t,n){return g({type:O.success,iconClass:m().iconClasses.success,message:e,optionsOverride:n,title:t})}function a(e,t,n){return g({type:O.warning,iconClass:m().iconClasses.warning,message:e,optionsOverride:n,title:t})}function r(e,t){var o=m();v||n(o),u(e,o,t)||l(o)}function c(t){var o=m();return v||n(o),t&&0===e(":focus",t).length?void h(t):void(v.children().length&&v.remove())}function l(t){for(var n=v.children(),o=n.length-1;o>=0;o--)u(e(n[o]),t)}function u(t,n,o){var s=!(!o||!o.force)&&o.force;return!(!t||!s&&0!==e(":focus",t).length)&&(t[n.hideMethod]({duration:n.hideDuration,easing:n.hideEasing,complete:function(){h(t)}}),!0)}function d(t){return v=e("<div/>").attr("id",t.containerId).addClass(t.positionClass),v.appendTo(e(t.target)),v}function p(){return{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">&times;</button>',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1}}function f(e){C&&C(e)}function g(t){function o(e){return null==e&&(e=""),e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function s(){c(),u(),d(),p(),g(),C(),l(),i()}function i(){var e="";switch(t.iconClass){case"toast-success":case"toast-info":e="polite";break;default:e="assertive"}I.attr("aria-live",e)}function a(){E.closeOnHover&&I.hover(H,D),!E.onclick&&E.tapToDismiss&&I.click(b),E.closeButton&&j&&j.click(function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&e.cancelBubble!==!0&&(e.cancelBubble=!0),E.onCloseClick&&E.onCloseClick(e),b(!0)}),E.onclick&&I.click(function(e){E.onclick(e),b()})}function r(){I.hide(),I[E.showMethod]({duration:E.showDuration,easing:E.showEasing,complete:E.onShown}),E.timeOut>0&&(k=setTimeout(b,E.timeOut),F.maxHideTime=parseFloat(E.timeOut),F.hideEta=(new Date).getTime()+F.maxHideTime,E.progressBar&&(F.intervalId=setInterval(x,10)))}function c(){t.iconClass&&I.addClass(E.toastClass).addClass(y)}function l(){E.newestOnTop?v.prepend(I):v.append(I)}function u(){if(t.title){var e=t.title;E.escapeHtml&&(e=o(t.title)),M.append(e).addClass(E.titleClass),I.append(M)}}function d(){if(t.message){var e=t.message;E.escapeHtml&&(e=o(t.message)),B.append(e).addClass(E.messageClass),I.append(B)}}function p(){E.closeButton&&(j.addClass(E.closeClass).attr("role","button"),I.prepend(j))}function g(){E.progressBar&&(q.addClass(E.progressClass),I.prepend(q))}function C(){E.rtl&&I.addClass("rtl")}function O(e,t){if(e.preventDuplicates){if(t.message===w)return!0;w=t.message}return!1}function b(t){var n=t&&E.closeMethod!==!1?E.closeMethod:E.hideMethod,o=t&&E.closeDuration!==!1?E.closeDuration:E.hideDuration,s=t&&E.closeEasing!==!1?E.closeEasing:E.hideEasing;if(!e(":focus",I).length||t)return clearTimeout(F.intervalId),I[n]({duration:o,easing:s,complete:function(){h(I),clearTimeout(k),E.onHidden&&"hidden"!==P.state&&E.onHidden(),P.state="hidden",P.endTime=new Date,f(P)}})}function D(){(E.timeOut>0||E.extendedTimeOut>0)&&(k=setTimeout(b,E.extendedTimeOut),F.maxHideTime=parseFloat(E.extendedTimeOut),F.hideEta=(new Date).getTime()+F.maxHideTime)}function H(){clearTimeout(k),F.hideEta=0,I.stop(!0,!0)[E.showMethod]({duration:E.showDuration,easing:E.showEasing})}function x(){var e=(F.hideEta-(new Date).getTime())/F.maxHideTime*100;q.width(e+"%")}var E=m(),y=t.iconClass||E.iconClass;if("undefined"!=typeof t.optionsOverride&&(E=e.extend(E,t.optionsOverride),y=t.optionsOverride.iconClass||y),!O(E,t)){T++,v=n(E,!0);var k=null,I=e("<div/>"),M=e("<div/>"),B=e("<div/>"),q=e("<div/>"),j=e(E.closeHtml),F={intervalId:null,hideEta:null,maxHideTime:null},P={toastId:T,state:"visible",startTime:new Date,options:E,map:t};return s(),r(),a(),f(P),E.debug&&console&&console.log(P),I}}function m(){return e.extend({},p(),b.options)}function h(e){v||(v=n()),e.is(":visible")||(e.remove(),e=null,0===v.children().length&&(v.remove(),w=void 0))}var v,C,w,T=0,O={error:"error",info:"info",success:"success",warning:"warning"},b={clear:r,remove:c,error:t,getContainer:n,info:o,options:{},subscribe:s,success:i,version:"2.1.4",warning:a};return b}()})}("function"==typeof define&&define.amd?define:function(e,t){"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):window.toastr=t(window.jQuery)});
//# sourceMappingURL=toastr.js.map
?php
session_start();
$error = $_GET['err'];
?>
<!DOCTYPE html>
<html>
<head>
<title>Morsa TI</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href='images/logo-para-SD.png' rel='shortcut icon' type='image/jpg'/>
<!-- Bootstrap -->
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- styles -->
<link href="css/styles.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="views/css/jquery-confirm.min.css">
<link href="jqueryui/jquery-ui.css" rel="stylesheet">
<link href="jqueryui/jquery-ui.structure.css" rel="stylesheet">
<link href="jqueryui/jquery-ui.theme.css" rel="stylesheet">
<link href="vendors/form-helpers/css/bootstrap-formhelpers.css" rel="stylesheet">
<script src="js/sweet-alert.min.js" type="text/javascript"> </script>
<link rel="stylesheet" type="text/css" href="views/css/bundled.css">
<style type="text/css" media="screen">
.login_title{
position: fixed;
top: 0;
left: 0;
z-index: 999;
width: 100%;
height: 23px;
background-color: #0A1172;
padding-bottom: 50px;
text-align: center;
}
._title{
color: #ffffff;
font-size: 24px;
font-weight: normal;
padding-top: 0.7%;
}
@media screen and (max-width: 69em) {
._title {
padding-top: 2.4%;
}
}
</style>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
</head>
<script src="js/jquery.js"> </script>
<script src="js/funciones.js"> </script>
<body background= "images/Soporte-Tecnico-TI-con-iconos.png">
<!-- <div class="header">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="logo">
<h1 style="color: #ffffff"><a href="index.php"></a>SOPORTE TECNICO TI</h1>
</div>
</div>
</div>
</div>
</div> -->
<div class="header" style="background-color: #0A1172;">
<div class="login_title" >
<!-- <p><a href="#" id="trigger" class="menu-trigger a" style="padding-bottom: 8px;"></a> -->
<label class="_title" >SOPORTE TECNICO TI</label>
</p>
</div>
</div><!-- /scroller-inner -->
<div class="page-content container">
<div class="row">
<div class="col-md-4 col-md-offset-4">
<div class="login-wrapper">
<div class="box">
<div class="content-wrap">
<div class="social">
<span>
<img src="images/logo-para-SD.png" alt class="img-circle">
</span>
<!-- <a class="face_login" href="#">
<span class="face_icon">
<img src="images/facebook.png" alt="fb">
</span>
<span class="text">Sign in with Facebook</span>
</a>
<div class="division">
<hr class="left">
<span>or</span>
<hr class="right">
</div>!-->
<?php
// if ($error != "bWFs")
// echo '<h5>¿Problemas? Morsa TI te ayuda !!</h5>';
// else
// echo '<h5>Vuelva a Intentarlo</h5>';
?>
<h5 id="lbl">¿Problemas? Morsa TI te ayuda !!</h5>
</div>
<!-- <form action="backend/validausuario.php" method="POST"> -->
<form method="POST" id="formulario">
<!-- <input id="Nombre" name="Nombre" class="form-control" type="text" maxlength="30" placeholder="Nombre" required> -->
<div class="form-group">
<input id="Nombre" type="text" autofocus name="nombre" spellcheck="false"
placeholder="Nombre" class="form-control" maxlength="100" style="text-transform:uppercase">
</div>
<div class="form-group">
<input id="Sucursal" type="text" autofocus name="sucursal" spellcheck="false"
placeholder="Sucursal" class="form-control" maxlength="50" style="text-transform:uppercase">
</div>
<input id="Telefono" class="form-control" type="text" onKeyPress="return soloNumeros(event);"
maxlength="10" placeholder="Telefono" name="telefono" >
<div class="action" >
<button type="button" class="btn btn-primary signup" id="btnEnviar" onClick="enviar()">Enviar</button>
</div>
</form>
</div>
</div>
<div class="already">
<p>Grupo Morsa de Mexico</p>
<!-- <a href="signup.html">Sign Up</a>!-->
</div>
</div>
</div>
</div>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://code.jquery.com/jquery.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="bootstrap/js/bootstrap.min.js"></script>
<script src="js/custom.js"></script>
<link href="vendors/bootstrap-datetimepicker/datetimepicker.css" rel="stylesheet">
<link href="vendors/form-helpers/css/bootstrap-formhelpers.css" rel="stylesheet">
<script src="vendors/bootstrap-datetimepicker/bootstrap-datetimepicker.js" type="text/javascript"> </script>
<script src="vendors/form-helpers/js/bootstrap-formhelpers.js" type="text/javascript"> </script>
<script src="jqueryui/jquery-ui.min.js"></script>
<script src="js/Concurrent.Thread.js" type="text/javascript"> </script>
<script src="js/loginusuario.js"></script>
</body>
</html>
\ No newline at end of file
<!-- Modal -->
<div class="modal fade" id="modalencuesta" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<div class="panel panel-info">
<div class="panel-heading">Ayudanos a darte un mejor servicio</div>
<div class="content-box-large">
<div class="panel-body">
<div class="row">
<div class="col-md-12">
<div class="from-group">
< <label for="pregunta1">¿Hemos solucionado completamente tus problemas?</label>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="from-group">
< <label for="pregunta1">¿Hemos solucionado completamente tus problemas?</label>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="from-group">
< <label for="pregunta1">¿A sido buena nuestra actitud de servicio?</label>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="from-group">
< <label for="pregunta1">¿Comenzamos a atenderte antes de 10 minutos?</label>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
/*********************************************************************
admin.inc.php
Handles all admin related pages....everything admin!
Peter Rotich <peter@osticket.com>
Copyright (c) 2006-2013 osTicket
http://www.osticket.com
Released under the GNU General Public License WITHOUT ANY WARRANTY.
See LICENSE.TXT for details.
vim: expandtab sw=4 ts=4 sts=4:
**********************************************************************/
require('staff.inc.php');
//Make sure config is loaded and the staff is set and of admin type
if(!$ost or !$thisstaff or !$thisstaff->isAdmin()){
header('Location: index.php');
require('index.php'); // just in case!
exit;
}
//Define some constants.
define('OSTADMININC',TRUE); //checked by admin include files
define('ADMINPAGE',TRUE); //Used by the header to swap menus.
//Some security related warnings - bitch until fixed!!! :)
$sysnotice= '';
if($ost->isUpgradePending()) {
$errors['err']=$sysnotice=__('System upgrade is pending').' <a href="upgrade.php">'.__('Upgrade Now').'</a>';
if(!in_array(basename($_SERVER['SCRIPT_NAME']), array('upgrade.php', 'logs.php'))) {
header('Location: upgrade.php');
require('upgrade.php');
exit;
}
} else {
if(!strcasecmp(basename(CONFIG_FILE), 'settings.php')) {
$sysnotice=sprintf(__('Please rename config file include/%s to include/ost-config.php to avoid possible conflicts'),
basename(CONFIG_FILE));
//Die gracefully - otherwise upgraded RC5 installations will die with confusing message.
if(!strcasecmp(basename($_SERVER['SCRIPT_NAME']), 'settings.php'))
die($sysnotice);
} elseif(file_exists('../setup/')) {
$sysnotice=__('Please take a minute to delete <strong>setup/install</strong> directory (../setup/) for security reasons.');
} elseif(CONFIG_FILE && file_exists(CONFIG_FILE) && is_writable(CONFIG_FILE)) {
//Confirm for real that the file is writable by group or world.
clearstatcache(); //clear the cache!
$perms = @fileperms(CONFIG_FILE);
if(($perms & 0x0002) || ($perms & 0x0010)) {
$sysnotice=sprintf(__('Please change permission of config file (%1$s) to remove write access. e.g <i>chmod 644 %2$s</i>'),
basename(CONFIG_FILE), basename(CONFIG_FILE));
}
}
if(!$sysnotice && ini_get('register_globals'))
$sysnotice=__('Please consider turning off register globals if possible');
}
//System notice displayed as a warning (if any).
$ost->setWarning($sysnotice);
//Admin navigation - overwrites what was set in staff.inc.php
$nav = new AdminNav($thisstaff);
//Page title.
$ost->setPageTitle(__('Morsa Service Desk :: Admin Control Panel'));
?>
<?php
header('Location: settings.php');
require('./settings.php');
?>
<?php
/*********************************************************************
ajax.php
Ajax utils interface.
Peter Rotich <peter@osticket.com>
Copyright (c) 2006-2013 osTicket
http://www.osticket.com
Released under the GNU General Public License WITHOUT ANY WARRANTY.
See LICENSE.TXT for details.
vim: expandtab sw=4 ts=4 sts=4:
**********************************************************************/
# Override staffLoginPage() defined in staff.inc.php to return an
# HTTP/Forbidden status rather than the actual login page.
# XXX: This should be moved to the AjaxController class
function staffLoginPage($msg='Unauthorized') {
Http::response(403,'Must login: '.Format::htmlchars($msg));
exit;
}
define('AJAX_REQUEST', 1);
require('staff.inc.php');
//Clean house...don't let the world see your crap.
ini_set('display_errors', '0'); // Set by installer
ini_set('display_startup_errors', '0'); // Set by installer
//TODO: disable direct access via the browser? i,e All request must have REFER?
if(!defined('INCLUDE_DIR')) Http::response(500, 'Server configuration error');
require_once INCLUDE_DIR.'/class.dispatcher.php';
require_once INCLUDE_DIR.'/class.ajax.php';
$dispatcher = patterns('',
url('^/kb/', patterns('ajax.kbase.php:KbaseAjaxAPI',
# Send ticket-id as a query arg => canned-response/33?ticket=83
url_get('^canned-response/(?P<id>\d+).(?P<format>json|txt)', 'cannedResp'),
url_get('^faq/(?P<id>\d+)', 'faq')
)),
url('^/content/', patterns('ajax.content.php:ContentAjaxAPI',
url_get('^log/(?P<id>\d+)', 'log'),
url_get('^ticket_variables', 'ticket_variables'),
url_get('^signature/(?P<type>\w+)(?:/(?P<id>\d+))?$', 'getSignature'),
url_get('^(?P<id>\d+)/(?:(?P<lang>\w+)/)?manage$', 'manageContent'),
url_get('^(?P<id>[\w-]+)/(?:(?P<lang>\w+)/)?manage$', 'manageNamedContent'),
url_post('^(?P<id>\d+)(?:/(?P<lang>\w+))?$', 'updateContent')
)),
url('^/config/', patterns('ajax.config.php:ConfigAjaxAPI',
url_get('^scp', 'scp'),
url_get('^links', 'templateLinks')
)),
url('^/form/', patterns('ajax.forms.php:DynamicFormsAjaxAPI',
url_get('^help-topic/(?P<id>\d+)$', 'getFormsForHelpTopic'),
url_get('^field-config/(?P<id>\d+)$', 'getFieldConfiguration'),
url_post('^field-config/(?P<id>\d+)$', 'saveFieldConfiguration'),
url_delete('^answer/(?P<entry>\d+)/(?P<field>\d+)$', 'deleteAnswer'),
url_post('^upload/(\d+)?$', 'upload'),
url_post('^upload/(\w+)?$', 'attach')
)),
url('^/list/', patterns('ajax.forms.php:DynamicFormsAjaxAPI',
url_get('^(?P<list>\w+)/item/(?P<id>\d+)/properties$', 'getListItemProperties'),
url_post('^(?P<list>\w+)/item/(?P<id>\d+)/properties$', 'saveListItemProperties')
)),
url('^/report/overview/', patterns('ajax.reports.php:OverviewReportAjaxAPI',
# Send
url_get('^graph$', 'getPlotData'),
url_get('^table/groups$', 'enumTabularGroups'),
url_get('^table/export$', 'downloadTabularData'),
url_get('^table$', 'getTabularData')
)),
url('^/users', patterns('ajax.users.php:UsersAjaxAPI',
url_get('^$', 'search'),
url_get('^/local$', 'search', array('local')),
url_get('^/remote$', 'search', array('remote')),
url_get('^/(?P<id>\d+)$', 'getUser'),
url_post('^/(?P<id>\d+)$', 'updateUser'),
url_get('^/(?P<id>\d+)/preview$', 'preview'),
url_get('^/(?P<id>\d+)/edit$', 'editUser'),
url('^/lookup$', 'getUser'),
url_get('^/lookup/form$', 'lookup'),
url_post('^/lookup/form$', 'addUser'),
url_get('^/add$', 'addUser'),
url('^/import$', 'importUsers'),
url_get('^/select$', 'selectUser'),
url_get('^/select/(?P<id>\d+)$', 'selectUser'),
url_get('^/select/auth:(?P<bk>\w+):(?P<id>.+)$', 'addRemoteUser'),
url_get('^/(?P<id>\d+)/register$', 'register'),
url_post('^/(?P<id>\d+)/register$', 'register'),
url_get('^/(?P<id>\d+)/delete$', 'delete'),
url_post('^/(?P<id>\d+)/delete$', 'delete'),
url_get('^/(?P<id>\d+)/manage(?:/(?P<target>\w+))?$', 'manage'),
url_post('^/(?P<id>\d+)/manage(?:/(?P<target>\w+))?$', 'manage'),
url_get('^/(?P<id>\d+)/org(?:/(?P<orgid>\d+))?$', 'updateOrg'),
url_post('^/(?P<id>\d+)/org$', 'updateOrg'),
url_get('^/staff$', 'searchStaff'),
url_post('^/(?P<id>\d+)/note$', 'createNote'),
url_get('^/(?P<id>\d+)/forms/manage$', 'manageForms'),
url_post('^/(?P<id>\d+)/forms/manage$', 'updateForms')
)),
url('^/orgs', patterns('ajax.orgs.php:OrgsAjaxAPI',
url_get('^$', 'search'),
url_get('^/search$', 'search'),
url_get('^/(?P<id>\d+)$', 'getOrg'),
url_post('^/(?P<id>\d+)$', 'updateOrg'),
url_post('^/(?P<id>\d+)/profile$', 'updateOrg', array(true)),
url_get('^/(?P<id>\d+)/edit$', 'editOrg'),
url_get('^/lookup/form$', 'lookup'),
url_post('^/lookup$', 'lookup'),
url_get('^/add$', 'addOrg'),
url_post('^/add$', 'addOrg'),
url_get('^/select$', 'selectOrg'),
url_get('^/select/(?P<id>\d+)$', 'selectOrg'),
url_get('^/(?P<id>\d+)/add-user(?:/(?P<userid>\d+))?$', 'addUser'),
url_get('^/(?P<id>\d+)/add-user(?:/auth:(?P<userid>.+))?$', 'addUser', array(true)),
url_post('^/(?P<id>\d+)/add-user$', 'addUser'),
url('^/(?P<id>\d+)/import-users$', 'importUsers'),
url_get('^/(?P<id>\d+)/delete$', 'delete'),
url_delete('^/(?P<id>\d+)/delete$', 'delete'),
url_post('^/(?P<id>\d+)/note$', 'createNote'),
url_get('^/(?P<id>\d+)/forms/manage$', 'manageForms'),
url_post('^/(?P<id>\d+)/forms/manage$', 'updateForms')
)),
url('^/tickets/', patterns('ajax.tickets.php:TicketsAjaxAPI',
url_get('^(?P<tid>\d+)/change-user$', 'changeUserForm'),
url_post('^(?P<tid>\d+)/change-user$', 'changeUser'),
url_get('^(?P<tid>\d+)/user$', 'viewUser'),
url_post('^(?P<tid>\d+)/user$', 'updateUser'),
url_get('^(?P<tid>\d+)/preview', 'previewTicket'),
url_post('^(?P<tid>\d+)/lock$', 'acquireLock'),
url_post('^(?P<tid>\d+)/lock/(?P<id>\d+)/renew', 'renewLock'),
url_post('^(?P<tid>\d+)/lock/(?P<id>\d+)/release', 'releaseLock'),
url_get('^(?P<tid>\d+)/collaborators/preview$', 'previewCollaborators'),
url_get('^(?P<tid>\d+)/collaborators$', 'showCollaborators'),
url_post('^(?P<tid>\d+)/collaborators$', 'updateCollaborators'),
url_get('^(?P<tid>\d+)/add-collaborator/(?P<uid>\d+)$', 'addCollaborator'),
url_get('^(?P<tid>\d+)/add-collaborator/auth:(?P<bk>\w+):(?P<id>.+)$', 'addRemoteCollaborator'),
url('^(?P<tid>\d+)/add-collaborator$', 'addCollaborator'),
url_get('^(?P<tid>\d+)/forms/manage$', 'manageForms'),
url_post('^(?P<tid>\d+)/forms/manage$', 'updateForms'),
url_get('^(?P<tid>\d+)/canned-resp/(?P<cid>\w+).(?P<format>json|txt)', 'cannedResponse'),
url_get('^(?P<tid>\d+)/status/(?P<status>\w+)(?:/(?P<sid>\d+))?$', 'changeTicketStatus'),
url_post('^(?P<tid>\d+)/status$', 'setTicketStatus'),
url_get('^status/(?P<status>\w+)(?:/(?P<sid>\d+))?$', 'changeSelectedTicketsStatus'),
url_post('^status/(?P<state>\w+)$', 'setSelectedTicketsStatus'),
url_get('^lookup', 'lookup'),
url_get('^search', 'search')
)),
url('^/collaborators/', patterns('ajax.tickets.php:TicketsAjaxAPI',
url_get('^(?P<cid>\d+)/view$', 'viewCollaborator'),
url_post('^(?P<cid>\d+)$', 'updateCollaborator')
)),
url('^/draft/', patterns('ajax.draft.php:DraftAjaxAPI',
url_post('^(?P<id>\d+)$', 'updateDraft'),
url_delete('^(?P<id>\d+)$', 'deleteDraft'),
url_post('^(?P<id>\d+)/attach$', 'uploadInlineImage'),
url_get('^(?P<namespace>[\w.]+)$', 'getDraft'),
url_post('^(?P<namespace>[\w.]+)$', 'createDraft'),
url_get('^images/browse$', 'getFileList')
)),
url('^/note/', patterns('ajax.note.php:NoteAjaxAPI',
url_get('^(?P<id>\d+)$', 'getNote'),
url_post('^(?P<id>\d+)$', 'updateNote'),
url_delete('^(?P<id>\d+)$', 'deleteNote'),
url_post('^attach/(?P<ext_id>\w\d+)$', 'createNote')
)),
url('^/sequence/', patterns('ajax.sequence.php:SequenceAjaxAPI',
url_get('^(?P<id>\d+)$', 'current'),
url_get('^manage$', 'manage'),
url_post('^manage$', 'manage')
)),
url_post('^/upgrader', array('ajax.upgrader.php:UpgraderAjaxAPI', 'upgrade')),
url('^/help/', patterns('ajax.tips.php:HelpTipAjaxAPI',
url_get('^tips/(?P<namespace>[\w_.]+)$', 'getTipsJson'),
url_get('^(?P<lang>[\w_]+)?/tips/(?P<namespace>[\w_.]+)$', 'getTipsJsonForLang')
)),
url('^/i18n/(?P<lang>[\w_]+)/', patterns('ajax.i18n.php:i18nAjaxAPI',
url_get('(?P<tag>\w+)$', 'getLanguageFile')
))
);
Signal::send('ajax.scp', $dispatcher);
# Call the respective function
print $dispatcher->resolve($ost->get_path_info());
?>
<?php
/*********************************************************************
apikeys.php
API keys.
Peter Rotich <peter@osticket.com>
Copyright (c) 2006-2013 osTicket
http://www.osticket.com
Released under the GNU General Public License WITHOUT ANY WARRANTY.
See LICENSE.TXT for details.
vim: expandtab sw=4 ts=4 sts=4:
**********************************************************************/
require('admin.inc.php');
include_once(INCLUDE_DIR.'class.api.php');
$api=null;
if($_REQUEST['id'] && !($api=API::lookup($_REQUEST['id'])))
$errors['err']=sprintf(__('%s: Unknown or invalid ID.'), __('API key'));
if($_POST){
switch(strtolower($_POST['do'])){
case 'update':
if(!$api){
$errors['err']=sprintf(__('%s: Unknown or invalid'), __('API key'));
}elseif($api->update($_POST,$errors)){
$msg=sprintf(__('Succesfully updated %s'), __('this API key'));
}elseif(!$errors['err']){
$errors['err']=sprintf(__('Error updating %s. Try again!'), __('this API key'));
}
break;
case 'add':
if(($id=API::add($_POST,$errors))){
$msg=sprintf(__('Successfully added %s'), __('an API key'));
$_REQUEST['a']=null;
}elseif(!$errors['err']){
$errors['err']=sprintf(__('Unable to add %s. Correct error(s) below and try again.'),
__('this API key'));
}
break;
case 'mass_process':
if(!$_POST['ids'] || !is_array($_POST['ids']) || !count($_POST['ids'])) {
$errors['err'] = sprintf(__('You must select at least %s'), __('one API key'));
} else {
$count=count($_POST['ids']);
switch(strtolower($_POST['a'])) {
case 'enable':
$sql='UPDATE '.API_KEY_TABLE.' SET isactive=1 '
.' WHERE id IN ('.implode(',', db_input($_POST['ids'])).')';
if(db_query($sql) && ($num=db_affected_rows())) {
if($num==$count)
$msg = sprintf(__('Successfully enabled %s'),
_N('selected API key', 'selected API keys', $count));
else
$warn = sprintf(__('%1$d of %2$d %3$s enabled'), $num, $count,
_N('selected API key', 'selected API keys', $count));
} else {
$errors['err'] = sprintf(__('Unable to enable %s.'),
_N('selected API key', 'selected API keys', $count));
}
break;
case 'disable':
$sql='UPDATE '.API_KEY_TABLE.' SET isactive=0 '
.' WHERE id IN ('.implode(',', db_input($_POST['ids'])).')';
if(db_query($sql) && ($num=db_affected_rows())) {
if($num==$count)
$msg = sprintf(__('Successfully disabled %s'),
_N('selected API key', 'selected API keys', $count));
else
$warn = sprintf(__('%1$d of %2$d %3$s disabled'), $num, $count,
_N('selected API key', 'selected API keys', $count));
} else {
$errors['err']=sprintf(__('Unable to disable %s'),
_N('selected API key', 'selected API keys', $count));
}
break;
case 'delete':
$i=0;
foreach($_POST['ids'] as $k=>$v) {
if(($t=API::lookup($v)) && $t->delete())
$i++;
}
if($i && $i==$count)
$msg = sprintf(__('Successfully deleted %s'),
_N('selected API key', 'selected API keys', $count));
elseif($i>0)
$warn = sprintf(__('%1$d of %2$d %3$s deleted'), $num, $count,
_N('selected API key', 'selected API keys', $count));
elseif(!$errors['err'])
$errors['err'] = sprintf(__('Unable to delete %s'),
_N('selected API key', 'selected API keys', $count));
break;
default:
$errors['err']=__('Unknown action - get technical help.');
}
}
break;
default:
$errors['err']=__('Unknown action');
break;
}
}
$page='apikeys.inc.php';
$tip_namespace = 'manage.api_keys';
if($api || ($_REQUEST['a'] && !strcasecmp($_REQUEST['a'],'add')))
$page = 'apikey.inc.php';
$nav->setTabActive('manage');
$ost->addExtraHeader('<meta name="tip-namespace" content="' . $tip_namespace . '" />',
"$('#content').data('tipNamespace', '".$tip_namespace."');");
require(STAFFINC_DIR.'header.inc.php');
require(STAFFINC_DIR.$page);
include(STAFFINC_DIR.'footer.inc.php');
?>
<?php
/*********************************************************************
dispatcher.php
Dispatcher for staff applications
Jared Hancock <jared@osticket.com>
Peter Rotich <peter@osticket.com>
Copyright (c) 2006-2013 osTicket
http://www.osticket.com
Released under the GNU General Public License WITHOUT ANY WARRANTY.
See LICENSE.TXT for details.
vim: expandtab sw=4 ts=4 sts=4:
**********************************************************************/
# Override staffLoginPage() defined in staff.inc.php to return an
# HTTP/Forbidden status rather than the actual login page.
# XXX: This should be moved to the AjaxController class
function staffLoginPage($msg='Unauthorized') {
Http::response(403,'Must login: '.Format::htmlchars($msg));
exit;
}
require('staff.inc.php');
//Clean house...don't let the world see your crap.
ini_set('display_errors', '0'); // Set by installer
ini_set('display_startup_errors', '0'); // Set by installer
//TODO: disable direct access via the browser? i,e All request must have REFER?
if(!defined('INCLUDE_DIR')) Http::response(500, 'Server configuration error');
require_once INCLUDE_DIR.'/class.dispatcher.php';
$dispatcher = new Dispatcher();
Signal::send('apps.scp', $dispatcher);
# Call the respective function
print $dispatcher->resolve($ost->get_path_info());
<?php
/*********************************************************************
cron.php
Auto-cron handle.
File requested as 1X1 image on the footer of every staff's page
Peter Rotich <peter@osticket.com>
Copyright (c) 2006-2013 osTicket
http://www.osticket.com
Released under the GNU General Public License WITHOUT ANY WARRANTY.
See LICENSE.TXT for details.
vim: expandtab sw=4 ts=4 sts=4:
**********************************************************************/
define('AJAX_REQUEST', 1);
require('staff.inc.php');
ignore_user_abort(1);//Leave me a lone bro!
@set_time_limit(0); //useless when safe_mode is on
$data=sprintf ("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%",
71,73,70,56,57,97,1,0,1,0,128,255,0,192,192,192,0,0,0,33,249,4,1,0,0,0,0,44,0,0,0,0,1,0,1,0,0,2,2,68,1,0,59);
header('Content-type: image/gif');
header('Cache-Control: no-cache, must-revalidate');
header('Content-Length: '.strlen($data));
header('Connection: Close');
print $data;
// Flush the request buffer
while(@ob_end_flush());
flush();
//Terminate the request
if (function_exists('fastcgi_finish_request'))
fastcgi_finish_request();
ob_start(); //Keep the image output clean. Hide our dirt.
//TODO: Make cron DB based to allow for better time limits. Direct calls for now sucks big time.
//We DON'T want to spawn cron on every page load...we record the lastcroncall on the session per user
$sec=time()-$_SESSION['lastcroncall'];
$caller = $thisstaff->getUserName();
// Agent can call cron once every 3 minutes.
if ($sec < 180 || !$ost || $ost->isUpgradePending())
ob_end_clean();
require_once(INCLUDE_DIR.'class.cron.php');
// Clear staff obj to avoid false credit internal notes & auto-assignment
$thisstaff = null;
// Release the session to prevent locking a future request while this is
// running
$_SESSION['lastcroncall'] = time();
session_write_close();
// Age tickets: We're going to age tickets regardless of cron settings.
Cron::TicketMonitor();
// Run file purging about every 20 cron runs (1h40 on a five minute cron)
if (mt_rand(1, 20) == 4)
Cron::CleanOrphanedFiles();
if($cfg && $cfg->isAutoCronEnabled()) { //ONLY fetch tickets if autocron is enabled!
Cron::MailFetcher(); //Fetch mail.
$ost->logDebug(_S('Auto Cron'), sprintf(_S('Mail fetcher cron call [%s]'), $caller));
}
$data = array('autocron'=>true);
Signal::send('cron', $data);
ob_end_clean();
?>
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment