function margenes_sinv() { parent::Controller(); $this->load->library("rapyd"); //$this->datasis->modulo_id(302,1); //define ("THISFILE", APPPATH."controllers/inventario/". $this->uri->segment(2).EXT); }
function Notabu() { parent::Controller(); $this->load->library('rapyd'); $this->load->library('jqdatagrid'); $this->datasis->modulo_nombre('NOTABU', $ventana = 0); }
function Accesos() { parent::Controller(); $this->load->library('rapyd'); $this->db->simple_query('UPDATE pers SET codigo=TRIM(codigo)'); $this->instalar(); }
function Provoca() { parent::Controller(); $this->load->library("rapyd"); $this->datasis->modulo_id(206, 1); define("THISFILE", APPPATH . "controllers/finanzas" . $this->uri->segment(2) . EXT); }
function sfacman() { parent::Controller(); $this->load->library('rapyd'); $this->datasis->modulo_id('13E', 1); $this->instalar(); }
function ffactura() { parent::Controller(); $this->load->library("rapyd"); //$this->load->library("menues"); $this->load->database(); }
function Vend() { parent::Controller(); $this->load->helper('url'); $this->load->helper('text'); $this->load->library("rapyd"); }
function conc() { parent::Controller(); $this->load->library("rapyd"); define("THISFILE", APPPATH . "controllers/nomina" . $this->uri->segment(2) . EXT); $this->load->library('pnomina'); }
function Servus() { parent::Controller(); $this->load->library("rapyd"); //I use THISFILE, instead __FILE__ to prevent some documented php-bugs with higlight_syntax()&__FILE__ define("THISFILE", APPPATH . "controllers/hotel/" . $this->uri->segment(2) . EXT); }
function Club() { parent::Controller(); $this->load->library("rapyd"); $this->load->library("menues"); $this->datasis->modulo_id('121', 1); }
function Rret() { parent::Controller(); $this->load->library('rapyd'); //$this->datasis->modulo_id('12A',1); //$this->load->database(); }
function sprvcol() { parent::Controller(); $this->load->library('rapyd'); $this->load->library('pi18n'); $this->datasis->modulo_id(206, 1); }
function Definiciones() { parent::Controller(); $this->load->library('rapyd'); $this->prefijo = 'crm_'; //$this->datasis->modulo_id(136,1); }
function i18n() { parent::Controller(); $this->load->library('rapyd'); $this->load->library('pi18n'); //$this->datasis->modulo_id('',1); }
function Scli() { parent::Controller(); $this->load->library('rapyd'); $this->load->library('jqdatagrid'); $this->load->library('pi18n'); $this->datasis->modulo_nombre('SCLI', $ventana = 0); }
function Rcaj() { parent::Controller(); $this->load->library("rapyd"); //$this->load->library("menues"); $this->datasis->modulo_id('12A', 1); $this->load->database(); }
function Contenedor() { parent::Controller(); $this->load->library('rapyd'); $this->prefijo = 'crm_'; $this->crm_back = ''; //$this->datasis->modulo_id(136,1); }
function cobrocli() { parent::Controller(); $this->load->library("rapyd"); //$this->load->library("menues"); //$this->datasis->modulo_id(131,1); $this->load->database(); }
function cargacuent() { parent::Controller(); $this->load->library("rapyd"); $this->formatopres = $this->datasis->traevalor('FORMATOPRES'); $this->flongpres = strlen(trim($this->formatopres)); $this->long = strlen($this->formatopres); }
function sprv() { parent::Controller(); $this->load->library("rapyd"); $this->datasis->modulo_id(3, 1); //I use THISFILE, instead __FILE__ to prevent some documented php-bugs with higlight_syntax()&__FILE__ define("THISFILE", APPPATH . "controllers/compras/" . $this->uri->segment(2) . EXT); }
function Imtgasto() { parent::Controller(); $this->load->helper('url'); $this->load->helper('text'); $this->load->library("rapyd"); //I use THISFILE, instead __FILE__ to prevent some documented php-bugs with higlight_syntax()&__FILE__ define("THISFILE", APPPATH . "controllers/import/" . $this->uri->segment(2) . EXT); }
function caub() { parent::Controller(); $this->load->helper('url'); $this->load->helper('text'); $this->datasis->modulo_id(307, 1); $this->load->library("rapyd"); $this->load->library('jqdatagrid'); }
function presupuesto() { parent::Controller(); $this->load->library("rapyd"); //$this->formatopres=$this->datasis->traevalor('FORMATOPRES'); //$this->flongpres =strlen(trim($this->formatopres)); //$this->formatoestru=$this->datasis->traevalor('FORMATOESTRU'); //$this->flongestru =strlen(trim($this->formatoestru)); }
function mvcerti() { parent::Controller(); $this->load->helper('url'); $this->load->helper('text'); $this->load->library('rapyd'); $this->load->library('jqdatagrid'); $this->datasis->modulo_nombre('MVCERTI', $ventana = 0); }
function caub() { parent::Controller(); $this->load->helper('url'); $this->load->helper('text'); $this->datasis->modulo_id(307, 1); $this->load->library("rapyd"); define("THISFILE", APPPATH . "controllers/nomina" . $this->uri->segment(2) . EXT); }
function sclicol() { parent::Controller(); $this->load->library('rapyd'); $this->load->library('pi18n'); //$this->load->library("menues"); $this->datasis->modulo_id(131, 1); $this->load->database(); if (!$this->datasis->iscampo('scli', 'mmargen')) { $this->db->simple_query("ALTER TABLE scli ADD mmargen DECIMAL(7,2) DEFAULT 0 COMMENT 'Margen al Mayor'"); } //$this->instalar(); }
/** * Método que realiza la lógica del login * @param Array $datos Datos necesarios para poder realizar el login * @return Bollean True = cuando se realiza el login sin problemas, False = cuando hay errores */ public static function dologin($datos) { /** * Comprobamos que hay datos */ if (!$datos) { // Sino hay datos damos un error Session::add('feedback_negative', 'No tengo los datos de Login'); return false; } elseif (LoginModel::validar($datos)) { // hacemos la logica del login // primero saneamos el array con los datos $datos = validaciones::sanearEntrada($datos); $conn = Database::getInstance()->getDatabase(); $ssql = "SELECT id, nombre, email, pass FROM usuario WHERE email=:email"; $query = $conn->prepare($ssql); $query->bindValue(':email', $datos['email'], PDO::PARAM_STR); $query->execute(); $count = $query->rowCount(); if (!Database::comprobarConsulta($count)) { Session::add('feedback_negative', 'No estás registrado'); return false; } $usuario = $query->fetch(); if ($usuario['pass'] != sha1($datos['clave'])) { Session::add('feedback_negative', 'La clave no coincide'); return false; } // Iniciamos la sesión Session::set('user_id', $usuario['id']); Session::set('user_name', $usuario['nombre']); Session::set('user_email', $datos['email']); Session::set('user_logged_in', true); Session::add('feedback_positive', 'Sesión iniciada'); // comprobamos que la sesión se esta formando adecuadamente if (Session::comprobarSession()) { return true; } else { Session::add('feedback_negative', 'Error iniciando sesión, intentelo más tarde.'); } } else { // sin no se validan los campos correctamente devolvemos un false // y el reportamos los errores return false; } }
function repomenu() { parent::Controller(); $this->load->library("rapyd"); //$this->datasis->modulo_id(307,1); }
function Carta() { parent::Controller(); $this->load->library("rapyd"); }
$telefono = ""; } if (isset($_POST['celular'])) { $celular = $_POST['operadora'] . $_POST['celular']; } else { $celular = ""; } if (isset($_POST['mail'])) { $mail = $_POST['mail']; } else { $mail = ""; } $mensaje = ""; $bgcolor = ""; if ($nombre != "" && $apellido != "" && $usuario != "" && $cedula != "" && $telefono != "" && $celular != "" && $mail != "") { $validaciones = new validaciones(); if ($validaciones->validar_registro($nombre, $apellido, $usuario, $cedula, $telefono, $celular, $mail)) { //mysql (guardar datos) $mensaje = "Registro Exitoso!"; $bgcolor = "#40E0D0"; //header('Location:registro_satisfactorio.php'); } else { $mensaje = "Error, verifique los datos e intente de nuevo!"; $bgcolor = "#F08080"; //header('Location:registro_invalido.php'); } } else { if (isset($_POST['registrar'])) { $mensaje = "Error, verifique los datos e intente de nuevo!"; $bgcolor = "#F08080"; }