Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php include_once('./lang/Spanish.php'); $url_ws = URL_WS; $url_ws_control = ..
Decoded Output download
<?php
include_once('./lang/Spanish.php');
$url_ws = URL_WS;
$url_ws_control = URL_WS_CONTROL;
$app_title = APP_TITLE;
$show_console_log = LANG_SESSION_SHOW_CONSOLE_LOG;
?>
<!DOCTYPE HTML>
<html>
<head>
<title><?= $app_title; ?></title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<meta name="description" content="Red de Conexin Industrial y Tecnolgica">
<meta name="author" content="totaltic.com">
<link rel="shortcut icon" href="images/favicon.ico" />
<link href="css/main.css" rel="stylesheet" />
<link href="css/slideshow.css" rel="stylesheet" />
</head>
<body id="page">
<div class="logo">
<img alt="NetCoInt" src="images/logo-netcoint.png">
</div>
<ul class="cb-slideshow">
<li class="cb-slideshow">
<span>Image 01</span>
</li>
<li class="cb-slideshow">
<span>Image 02</span>
</li>
<li class="cb-slideshow">
<span>Image 03</span>
</li>
<li class="cb-slideshow">
<span>Image 04</span>
</li>
<li class="cb-slideshow">
<span>Image 05</span>
</li>
<li class="cb-slideshow">
<span>Image 06</span>
</li>
</ul>
<div id="wrapper">
<!-- Header -->
<header id="header">
<div class="content">
<div class="inner">
<h1><?= $app_title; ?></h1>
<p>Maquinarias y Servicios al alcance de un clic<br />
Regstrate y accesa un universo de posibilidades</p>
</div>
</div>
<nav>
<ul>
<li><a href="#Intro">Quienes somos</a></li>
<li><a href="#Servicio">Servicios</a></li>
<li><a href="#Registro">Regstrate</a></li>
<li><a href="#Enter" onclick="limpiar_error()">Ingreso</a></li>
<li><a href="#Contact">Contacto</a></li>
</ul>
</nav>
</header>
<!-- Main -->
<div id="main">
<!-- Intro -->
<article id="Intro">
<h2 class="major">Quienes Somos</h2>
<span class="image main"><img src="images/logo_netcoint.png" alt="" /></span>
<span>
<video src="images/bg.mp4" width="100%" autoplay muted loop controls />
</span>
<p>Somos una plataforma diseada con la finalidad de integrar la informacin de los principales proveedores de maquinarias para minera y servicios insdustriales, los cuales ponemos a su alcance.</p>
<p>Usted puede solicitar los servicios de los principales proveedores del mercado minero, filtrados y ordenados por su capacidad de respuesta inmediata y por su calidad de servicio. De la misma manera puede ofertar el equipamiento con el que cuenta a fin de que este disponible para cualquier empresa que requiera de sus servicios, estos pueden inclusive ofertarse como servicios de personal.</p>
</article>
<!-- Servicio -->
<article id="Servicio">
<h2 class="major">Servicios</h2>
<span class="image main">
<img src="images/bg43.png" alt="" />
</span>
<p>La alternativa mas rentable para aquellas empresas que necesiten incorporar a sus proyectos, maquinaria pesada, con operadores calificados y un servicio de mantenimiento en campo de primer nivel.</p>
<p>Ponemos a disposicin de las empresas y organismos pblicos la capacidad del desarrollo de grandes proyectos urbansticos o constructivos.</p>
<p>Contamos con maquinaria pesada ptima para los sectores de la industria, la minera y la construccin con profesionales especializados en su manejo.</p>
</article>
<!-- Registro -->
<article id="Registro">
<h2 class="major">Regstrate
</h2>
<form method="post" action="control.php" id="frm_registro" name="frm_registro" autocomplete="off">
<!--
<div class="field">
<label>Tipo de Usuario</label>
<input type="radio" name="rdo_tipo" id="rdo_proveedor" value="rdo_proveedor" />
<label for="rdo_proveedor">Soy Proveedor</label>
<input type="radio" name="rdo_tipo" id="rdo_consumidor" value="rdo_consumidor" />
<label for="rdo_consumidor">Soy Consumidor</label>
</div>
-->
<div class="field half first">
<label for="sel_tipodocumento">Tipo Documento</label>
<select name="sel_tipodocumento" id="sel_tipodocumento">
</select>
</div>
<div class="field half">
<label for="txt_dni">N de Documento</label>
<input type="text" name="txt_dni" id="txt_dni" minlength="8" maxlength="8" onkeypress="return soloNumeros(event)" />
</div>
<div class="field third first">
<label for="txt_primer_apellido">Primer Apellido</label>
<input type="text" name="txt_primer_apellido" id="txt_primer_apellido" maxlength="50" style="text-transform: uppercase;" />
</div>
<div class="field third">
<label for="txt_segundo_apellido">Segundo Apellido</label>
<input type="text" name="txt_segundo_apellido" id="txt_segundo_apellido" maxlength="50" style="text-transform: uppercase;" />
</div>
<div class="field third">
<label for="txt_nombres">Nombre(s)</label>
<input type="text" name="txt_nombres" id="txt_nombres" maxlength="100" style="text-transform: uppercase;" />
</div>
<div class="field half first">
<label for="txt_ruc">RUC Empresa</label>
<input type="text" name="txt_ruc" id="txt_ruc" minlength="11" maxlength="11" onkeypress="return soloNumeros(event)" />
</div>
<div class="field half">
<label for="txt_razon_social">Razon Social</label>
<input type="text" name="txt_razon_social" id="txt_razon_social" maxlength="150" style="text-transform: uppercase;" />
</div>
<!--
<div class="field third first">
<label for="sel_cargo">Cargo</label>
<select name="sel_cargo" id="sel_cargo">
</select>
</div>
<div class="field third">
<label for="txt_telefono">Telfono fijo</label>
<input type="text" name="txt_telefono" id="txt_telefono" maxlength="50" />
</div>
<div class="field third">
<label for="txt_anexo">Anexo</label>
<input type="text" name="txt_anexo" id="txt_anexo" maxlength="30" />
</div>
-->
<div class="field third first">
<label for="txt_email">Correo</label>
<input type="email" name="txt_email" id="txt_email" maxlength="100" style="text-transform: lowercase;" />
</div>
<div class="field third">
<label for="txt_clave">Ingrese clave</label>
<input type="password" name="txt_clave" id="txt_clave" minlength="8" onkeyup="muestra_seguridad_clave(this.value)" />
</div>
<div class="field third">
<label for="txt_clave2">Reingrese clave</label>
<input type="password" name="txt_clave2" id="txt_clave2" />
</div>
<div class="field third first">
<img src="images/vacio.png" width="174" height="44">
</div>
<div class="field third">
<div>
<input type="checkbox" id="show-password1"><label for="show-password1" id="label-show-password1" style="text-transform: capitalize;">Ver Contrasea</label><br />
<span id="lblSeguridad" style="font-size: 0.8em"></span>
</div>
</div>
<div class="field third">
<div>
<input type="checkbox" id="show-password2"><label for="show-password2" id="label-show-password2" style="text-transform: capitalize;">Ver Contrasea</label><br />
</div>
</div>
<div class="field half first">
<label for="txt_clave2" id="help"><a href="#">Condiciones de uso</a></label>
<input type="checkbox" id="chk_condiciones" name="chk_condiciones">
<label for="chk_condiciones">Acepto</label>
</div>
<div class="field half">
<label for="img_captcha">Cdigo de Acceso</label>
<div class="g-recaptcha" data-sitekey="<?= LANG_CAPTCHA_SITE_KEY ?>" data-callback="enableBtn" ></div>
</div>
<div class="field first">
<ul class="actions">
<li>
<input type="button" value="Registrar" class="special" id="btn_registrar" name="btn_registrar" />
</li>
<li>
<input type="reset" value="Borrar" id="btn_cancelar_registro" name="btn_cancelar_registro" />
</li>
</ul>
</div>
<input type="hidden" name="profile" id="hidden_tipo_usuario" value="5">
</form>
</article>
<!-- Enter -->
<article id="Enter">
<h2 class="major">Ingreso a NetCoint</h2>
<form method="post" action="control.php" id="frm_ingreso">
<div class="field half first">
<label for="name" style="font-size: 1em">Usuario</label>
</div>
<div class="field half">
<input type="text" name="usuario" id="usuario" onkeypress="limpiar_error()" autocomplete="off" />
</div>
<div class="field half first">
<label for="pwd" style="font-size: 1em">Contrasea</label>
</div>
<div class="field half">
<input type="password" name="pwd" id="pwd" onkeypress="limpiar_error()" autocomplete="off" />
<div style="padding-top: 5px">
<input type="checkbox" id="show-password"> <label for="show-password" id="label-show-password" style="text-transform: capitalize;">Ver Contrasea</label>
</div>
</div>
<div class="field first" style="text-align: center;">
<span id="msg_error" style="color: #ff0; font-weight: bold;">
</span>
</div>
<div class="field half first">
<input type="button" value="Olvide mi Contrasea" id="btn_olvidar" name="btn_olvidar" onclick="location.href='#Clave'" />
</div>
<ul class="actions">
<li>
<input type="submit" value="Ingresar" class="special" />
</li>
<li>
<input type="reset" value="Borrar" id="btn_borrar" />
</li>
</ul>
</form>
</article>
<!-- Clave -->
<article id="Clave">
<h2 class="major">Recuperar Contrasea</h2>
<form method="post" action="#" id="frm_recuperacion" autocomplete="off">
<div class="field half first">
<label for="txt_recuperar_email">Correo electrnico</label>
<input type="email" name="txt_recuperar_email" id="txt_recuperar_email" maxlength="100" style="text-transform: lowercase;" />
</div>
<div class="field half">
<label> </label>
<input type="text" name="txt_recuperar_email2" style="border: 0px solid #000;" disabled="disabled" />
</div>
<div class="field first">
Ingrese la cuenta de correo electrnico que ingreso durante su registro.
<br />Se remitir los accesos a su cuenta de correo, previa validacin
</div>
<div class="field first" style="text-align: center;">
<span id="msg_error_recupero" style="color: #ff0; font-weight: bold;">
</span>
</div>
<ul class="actions">
<li>
<input type="submit" value="Enviar" class="special" id="btn_recuperar" name="btn_recuperar" />
</li>
<li>
<input type="reset" value="Borrar" id="btn_borrar_recupero" />
</li>
</ul>
</form>
</article>
<!-- Contact -->
<article id="Contact">
<h2 class="major">Contactenos</h2>
<p>Sede Surquillo: Domingo Oru N165
<br />Edificio Mi Banco- piso 7, Surquillo - Lima Per
<br />Telefono: +51 258 96 33
<br />Celular: 985 368 125
</p>
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3901.059830166491!2d-77.030325067743!3d-12.108056691426452!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x9105c813369b036d%3A0x1cd23d08159a98e5!2sAv.+Domingo+Oru%C3%A9+165%2C+Surquillo+15047!5e0!3m2!1ses-419!2spe!4v1517344884025" width="100%" frameborder="0" style="border:0" allowfullscreen>
</iframe>
<form method="post" action="#" autocomplete="off">
<div class="field half first">
<label for="contacto-nombres">Nombres</label>
<input type="text" name="contacto-nombres" id="contacto-nombres" />
</div>
<div class="field half">
<label for="email">Correo electrnico</label>
<input type="text" name="contacto-email" id="contacto-email" />
</div>
<div class="field first">
<label for="message">Mensaje</label>
<textarea name="message" id="message" rows="4"></textarea>
</div>
<ul class="actions">
<li>
<input type="submit" value="Enviar" class="special" />
</li>
<li>
<input type="reset" value="Cancelar" />
</li>
</ul>
</form>
<ul class="icons">
<li>
<a href="#" class="icon fa-twitter">
<span class="label">Twitter</span>
</a>
</li>
<li>
<a href="#" class="icon fa-facebook">
<span class="label">Facebook</span>
</a>
</li>
<li>
<a href="#" class="icon fa-instagram">
<span class="label">Instagram</span>
</a>
</li>
<li>
<a href="#" class="icon fa-github">
<span class="label">GitHub</span>
</a>
</li>
</ul>
</article>
</div>
<!-- Footer -->
<footer id="footer">
<!--p class="copyright">© NETCOINT 2018 - <?= date("Y") ?></p-->
<p class="copyright">Copyright © 2018 - All Rights Reserved - <a href="http://totaltic.pe" target="_blank"><span>Totaltic.pe</span></a></p>
</footer>
</div>
</body>
<script src="js/jquery.min.js"></script>
<script src="js/skel.min.js"></script>
<script src="js/util.js"></script>
<script src="js/main.js"></script>
<script src='https://www.google.com/recaptcha/api.js'></script>
<script src="js/utils.js"></script>
<link rel="stylesheet" href="css/jquery-confirm.min.css">
<script src="js/jquery-confirm.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
var url = location.href;
var n = url.indexOf("register");
if (n > 0) location.href = '#';
$('#btn_registrar').attr('disabled', 'disabled');
//$("#msg_error").hide();
$("#msg_error").html(" ");
$("#msg_error_recupero").html(" ");
//$("#frm_registro").submit(function(event) {
$("#btn_registrar").click(function() {
event.preventDefault();
var form = document.frm_registro;
ruc = new RucPlg(form.txt_ruc);
if (!ruc.esValido()){
alert('Por favor, ingrese numero de RUC valido.');
form.txt_ruc.focus();
return false;
}
doRegister_User('<?= $url_ws; ?>');
});
$("#frm_ingreso").submit(function(event) {
event.preventDefault();
doLogin_User('<?= $url_ws_control; ?>');
});
$("#frm_recuperacion").submit(function(event) {
event.preventDefault();
doRestore_Pass('<?= $url_ws; ?>');
});
$("#btn_cancelar_registro").click(function() {
$("#lblSeguridad").text("");
$('#show-password1').prop('checked', 'false');
$('#show-password2').prop('checked', 'false');
$('#txt_clave').attr('type', 'password');
$('#txt_clave2').attr('type', 'password');
$('#label-show-password1').text('Ver Contrasea');
$('#label-show-password2').text('Ver Contrasea');
});
// FILL COMBOBOX
doFill_TipoDocumento('<?= $url_ws; ?>');
//doFill_Cargo('<?= $url_ws; ?>');
//app_title = '<?= $app_title; ?>';
//show_console_log = '<?= $show_console_log; ?>';
});
$("#help").click(function() {
var url = 'condiciones.pdf';
window.open (url, 'condiciones','width=600,height=600,left=100,top=100,screenX=100,screenY=100');
});
$("#btn_borrar").click(function() {
$("#msg_error").html(" ");
$('#pwd').attr('type', 'password');
$('#label-show-password').text('Ver Contrasea');
$("#usuario").focus();
});
$("#btn_borrar_recupero").click(function() {
$("#msg_error_recupero").html(" ");
$("#txt_recuperar_email").focus();
});
$('#sel_tipodocumento').change(function () {
$('#txt_dni').val("");
var value_option = $('option:selected', this).val();
if (value_option == "0") {
$('#txt_dni').attr('maxlength', 8);
}
else if (value_option == "1") {
$('#txt_dni').attr('maxlength', 8);
}
else if (value_option == "2") {
$('#txt_dni').attr('maxlength', 10);
}
else if (value_option == "3") {
$('#txt_dni').attr('maxlength', 15);
}
});
function enableBtn(){
//$("input[type=submit]").removeAttr("disabled");
$('#btn_registrar').removeAttr("disabled");
}
function RucPlg(campo) {
this.campo = campo;
var esNulo = function() {
return (campo.value == null||campo.value=="");
}
var trim = function(cadena) {
cadena2 = "";
len = cadena.length;
for (var i = 0; i <= len; i++ ) {
if (cadena.charAt(i) != " " ) {
cadena2 += cadena.charAt(i);
}
}
return cadena2;
}
var esNumero = function () {
return !(isNaN(campo.value));
}
var onceNumeros = function () {
return campo.value.length == 11;
}
var tieneFormato = function() {
var valor = trim(campo.value);
if (esNumero(valor)) {
if (valor.length == 8) {
suma = 0
for (i=0; i<valor.length-1;i++){
digito = valor.charAt(i) - '0';
if ( i==0 ) suma += (digito*2)
else suma += (digito*(valor.length-i))
}
resto = suma % 11;
if ( resto == 1) resto = 11;
if ( resto + ( valor.charAt( valor.length-1 ) - '0' ) == 11 ){
return true
}
} else if ( valor.length == 11 ) {
suma = 0
x = 6
for (i=0; i<valor.length-1;i++){
if ( i == 4 ) x = 8
digito = valor.charAt(i) - '0';
x--
if ( i==0 ) suma += (digito*x)
else suma += (digito*x)
}
resto = suma % 11;
resto = 11 - resto
if ( resto >= 10) resto = resto - 10;
if ( resto == valor.charAt( valor.length-1 ) - '0' ){
return true
}
}
}
return false
}
this.esValido = function(){
return (!( esNulo() || !esNumero() || !onceNumeros() || !tieneFormato() ));
}
}
$('#show-password').change(function(){
if ($('#show-password').prop('checked')) {
$('#pwd').attr('type', 'text');
$('#label-show-password').text('Ocultar Contrasea');
}
else {
$('#pwd').attr('type', 'password');
$('#label-show-password').text('Ver Contrasea');
}
});
$('#show-password1').change(function(){
if ($('#show-password1').prop('checked')) {
$('#txt_clave').attr('type', 'text');
$('#label-show-password1').text('Ocultar Contrasea');
}
else {
$('#txt_clave').attr('type', 'password');
$('#label-show-password1').text('Ver Contrasea');
}
});
$('#show-password2').change(function(){
if ($('#show-password2').prop('checked')) {
$('#txt_clave2').attr('type', 'text');
$('#label-show-password2').text('Ocultar Contrasea');
}
else {
$('#txt_clave2').attr('type', 'password');
$('#label-show-password2').text('Ver Contrasea');
}
});
function muestra_seguridad_clave(clave, seguridad){
seguridad = seguridad_clave(clave);
seg = "Nivel de seguridad " + seguridad + "%";
$("#lblSeguridad").text(seg);
}
function seguridad_clave(clave){
var seguridad = 0;
var numeros ="0123456789";
var minusculas ="abcdefghijklmnopqrstuvwxyz";
var mayusculas ="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
var especiales ="{[(<!|#$%&/='@*+~^;:_,.-`?>)]}";
if (clave.length!=0){
if (tiene(numeros, clave)){
seguridad += 20;
}
if (tiene(minusculas, clave) && tiene(mayusculas, clave)){
seguridad += 20;
}
if (tiene(especiales, clave)){
seguridad += 30;
}
if (clave.length >= 6 && clave.length < 8){
seguridad += 20;
}else{
if (clave.length >= 8){
seguridad += 30;
}
}
}
return seguridad
}
function tiene(obj, texto){
for(i=0; i<texto.length; i++){
if (obj.indexOf(texto.charAt(i),0)!=-1){
return 1;
}
}
return 0;
}
function limpiar_error() {
$("#msg_error").html(" ");
}
</script>
</html>
Did this file decode correctly?
Original Code
<?php
include_once('./lang/Spanish.php');
$url_ws = URL_WS;
$url_ws_control = URL_WS_CONTROL;
$app_title = APP_TITLE;
$show_console_log = LANG_SESSION_SHOW_CONSOLE_LOG;
?>
<!DOCTYPE HTML>
<html>
<head>
<title><?= $app_title; ?></title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<meta name="description" content="Red de Conexin Industrial y Tecnolgica">
<meta name="author" content="totaltic.com">
<link rel="shortcut icon" href="images/favicon.ico" />
<link href="css/main.css" rel="stylesheet" />
<link href="css/slideshow.css" rel="stylesheet" />
</head>
<body id="page">
<div class="logo">
<img alt="NetCoInt" src="images/logo-netcoint.png">
</div>
<ul class="cb-slideshow">
<li class="cb-slideshow">
<span>Image 01</span>
</li>
<li class="cb-slideshow">
<span>Image 02</span>
</li>
<li class="cb-slideshow">
<span>Image 03</span>
</li>
<li class="cb-slideshow">
<span>Image 04</span>
</li>
<li class="cb-slideshow">
<span>Image 05</span>
</li>
<li class="cb-slideshow">
<span>Image 06</span>
</li>
</ul>
<div id="wrapper">
<!-- Header -->
<header id="header">
<div class="content">
<div class="inner">
<h1><?= $app_title; ?></h1>
<p>Maquinarias y Servicios al alcance de un clic<br />
Regstrate y accesa un universo de posibilidades</p>
</div>
</div>
<nav>
<ul>
<li><a href="#Intro">Quienes somos</a></li>
<li><a href="#Servicio">Servicios</a></li>
<li><a href="#Registro">Regstrate</a></li>
<li><a href="#Enter" onclick="limpiar_error()">Ingreso</a></li>
<li><a href="#Contact">Contacto</a></li>
</ul>
</nav>
</header>
<!-- Main -->
<div id="main">
<!-- Intro -->
<article id="Intro">
<h2 class="major">Quienes Somos</h2>
<span class="image main"><img src="images/logo_netcoint.png" alt="" /></span>
<span>
<video src="images/bg.mp4" width="100%" autoplay muted loop controls />
</span>
<p>Somos una plataforma diseada con la finalidad de integrar la informacin de los principales proveedores de maquinarias para minera y servicios insdustriales, los cuales ponemos a su alcance.</p>
<p>Usted puede solicitar los servicios de los principales proveedores del mercado minero, filtrados y ordenados por su capacidad de respuesta inmediata y por su calidad de servicio. De la misma manera puede ofertar el equipamiento con el que cuenta a fin de que este disponible para cualquier empresa que requiera de sus servicios, estos pueden inclusive ofertarse como servicios de personal.</p>
</article>
<!-- Servicio -->
<article id="Servicio">
<h2 class="major">Servicios</h2>
<span class="image main">
<img src="images/bg43.png" alt="" />
</span>
<p>La alternativa mas rentable para aquellas empresas que necesiten incorporar a sus proyectos, maquinaria pesada, con operadores calificados y un servicio de mantenimiento en campo de primer nivel.</p>
<p>Ponemos a disposicin de las empresas y organismos pblicos la capacidad del desarrollo de grandes proyectos urbansticos o constructivos.</p>
<p>Contamos con maquinaria pesada ptima para los sectores de la industria, la minera y la construccin con profesionales especializados en su manejo.</p>
</article>
<!-- Registro -->
<article id="Registro">
<h2 class="major">Regstrate
</h2>
<form method="post" action="control.php" id="frm_registro" name="frm_registro" autocomplete="off">
<!--
<div class="field">
<label>Tipo de Usuario</label>
<input type="radio" name="rdo_tipo" id="rdo_proveedor" value="rdo_proveedor" />
<label for="rdo_proveedor">Soy Proveedor</label>
<input type="radio" name="rdo_tipo" id="rdo_consumidor" value="rdo_consumidor" />
<label for="rdo_consumidor">Soy Consumidor</label>
</div>
-->
<div class="field half first">
<label for="sel_tipodocumento">Tipo Documento</label>
<select name="sel_tipodocumento" id="sel_tipodocumento">
</select>
</div>
<div class="field half">
<label for="txt_dni">N de Documento</label>
<input type="text" name="txt_dni" id="txt_dni" minlength="8" maxlength="8" onkeypress="return soloNumeros(event)" />
</div>
<div class="field third first">
<label for="txt_primer_apellido">Primer Apellido</label>
<input type="text" name="txt_primer_apellido" id="txt_primer_apellido" maxlength="50" style="text-transform: uppercase;" />
</div>
<div class="field third">
<label for="txt_segundo_apellido">Segundo Apellido</label>
<input type="text" name="txt_segundo_apellido" id="txt_segundo_apellido" maxlength="50" style="text-transform: uppercase;" />
</div>
<div class="field third">
<label for="txt_nombres">Nombre(s)</label>
<input type="text" name="txt_nombres" id="txt_nombres" maxlength="100" style="text-transform: uppercase;" />
</div>
<div class="field half first">
<label for="txt_ruc">RUC Empresa</label>
<input type="text" name="txt_ruc" id="txt_ruc" minlength="11" maxlength="11" onkeypress="return soloNumeros(event)" />
</div>
<div class="field half">
<label for="txt_razon_social">Razon Social</label>
<input type="text" name="txt_razon_social" id="txt_razon_social" maxlength="150" style="text-transform: uppercase;" />
</div>
<!--
<div class="field third first">
<label for="sel_cargo">Cargo</label>
<select name="sel_cargo" id="sel_cargo">
</select>
</div>
<div class="field third">
<label for="txt_telefono">Telfono fijo</label>
<input type="text" name="txt_telefono" id="txt_telefono" maxlength="50" />
</div>
<div class="field third">
<label for="txt_anexo">Anexo</label>
<input type="text" name="txt_anexo" id="txt_anexo" maxlength="30" />
</div>
-->
<div class="field third first">
<label for="txt_email">Correo</label>
<input type="email" name="txt_email" id="txt_email" maxlength="100" style="text-transform: lowercase;" />
</div>
<div class="field third">
<label for="txt_clave">Ingrese clave</label>
<input type="password" name="txt_clave" id="txt_clave" minlength="8" onkeyup="muestra_seguridad_clave(this.value)" />
</div>
<div class="field third">
<label for="txt_clave2">Reingrese clave</label>
<input type="password" name="txt_clave2" id="txt_clave2" />
</div>
<div class="field third first">
<img src="images/vacio.png" width="174" height="44">
</div>
<div class="field third">
<div>
<input type="checkbox" id="show-password1"><label for="show-password1" id="label-show-password1" style="text-transform: capitalize;">Ver Contrasea</label><br />
<span id="lblSeguridad" style="font-size: 0.8em"></span>
</div>
</div>
<div class="field third">
<div>
<input type="checkbox" id="show-password2"><label for="show-password2" id="label-show-password2" style="text-transform: capitalize;">Ver Contrasea</label><br />
</div>
</div>
<div class="field half first">
<label for="txt_clave2" id="help"><a href="#">Condiciones de uso</a></label>
<input type="checkbox" id="chk_condiciones" name="chk_condiciones">
<label for="chk_condiciones">Acepto</label>
</div>
<div class="field half">
<label for="img_captcha">Cdigo de Acceso</label>
<div class="g-recaptcha" data-sitekey="<?= LANG_CAPTCHA_SITE_KEY ?>" data-callback="enableBtn" ></div>
</div>
<div class="field first">
<ul class="actions">
<li>
<input type="button" value="Registrar" class="special" id="btn_registrar" name="btn_registrar" />
</li>
<li>
<input type="reset" value="Borrar" id="btn_cancelar_registro" name="btn_cancelar_registro" />
</li>
</ul>
</div>
<input type="hidden" name="profile" id="hidden_tipo_usuario" value="5">
</form>
</article>
<!-- Enter -->
<article id="Enter">
<h2 class="major">Ingreso a NetCoint</h2>
<form method="post" action="control.php" id="frm_ingreso">
<div class="field half first">
<label for="name" style="font-size: 1em">Usuario</label>
</div>
<div class="field half">
<input type="text" name="usuario" id="usuario" onkeypress="limpiar_error()" autocomplete="off" />
</div>
<div class="field half first">
<label for="pwd" style="font-size: 1em">Contrasea</label>
</div>
<div class="field half">
<input type="password" name="pwd" id="pwd" onkeypress="limpiar_error()" autocomplete="off" />
<div style="padding-top: 5px">
<input type="checkbox" id="show-password"> <label for="show-password" id="label-show-password" style="text-transform: capitalize;">Ver Contrasea</label>
</div>
</div>
<div class="field first" style="text-align: center;">
<span id="msg_error" style="color: #ff0; font-weight: bold;">
</span>
</div>
<div class="field half first">
<input type="button" value="Olvide mi Contrasea" id="btn_olvidar" name="btn_olvidar" onclick="location.href='#Clave'" />
</div>
<ul class="actions">
<li>
<input type="submit" value="Ingresar" class="special" />
</li>
<li>
<input type="reset" value="Borrar" id="btn_borrar" />
</li>
</ul>
</form>
</article>
<!-- Clave -->
<article id="Clave">
<h2 class="major">Recuperar Contrasea</h2>
<form method="post" action="#" id="frm_recuperacion" autocomplete="off">
<div class="field half first">
<label for="txt_recuperar_email">Correo electrnico</label>
<input type="email" name="txt_recuperar_email" id="txt_recuperar_email" maxlength="100" style="text-transform: lowercase;" />
</div>
<div class="field half">
<label> </label>
<input type="text" name="txt_recuperar_email2" style="border: 0px solid #000;" disabled="disabled" />
</div>
<div class="field first">
Ingrese la cuenta de correo electrnico que ingreso durante su registro.
<br />Se remitir los accesos a su cuenta de correo, previa validacin
</div>
<div class="field first" style="text-align: center;">
<span id="msg_error_recupero" style="color: #ff0; font-weight: bold;">
</span>
</div>
<ul class="actions">
<li>
<input type="submit" value="Enviar" class="special" id="btn_recuperar" name="btn_recuperar" />
</li>
<li>
<input type="reset" value="Borrar" id="btn_borrar_recupero" />
</li>
</ul>
</form>
</article>
<!-- Contact -->
<article id="Contact">
<h2 class="major">Contactenos</h2>
<p>Sede Surquillo: Domingo Oru N165
<br />Edificio Mi Banco- piso 7, Surquillo - Lima Per
<br />Telefono: +51 258 96 33
<br />Celular: 985 368 125
</p>
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3901.059830166491!2d-77.030325067743!3d-12.108056691426452!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x9105c813369b036d%3A0x1cd23d08159a98e5!2sAv.+Domingo+Oru%C3%A9+165%2C+Surquillo+15047!5e0!3m2!1ses-419!2spe!4v1517344884025" width="100%" frameborder="0" style="border:0" allowfullscreen>
</iframe>
<form method="post" action="#" autocomplete="off">
<div class="field half first">
<label for="contacto-nombres">Nombres</label>
<input type="text" name="contacto-nombres" id="contacto-nombres" />
</div>
<div class="field half">
<label for="email">Correo electrnico</label>
<input type="text" name="contacto-email" id="contacto-email" />
</div>
<div class="field first">
<label for="message">Mensaje</label>
<textarea name="message" id="message" rows="4"></textarea>
</div>
<ul class="actions">
<li>
<input type="submit" value="Enviar" class="special" />
</li>
<li>
<input type="reset" value="Cancelar" />
</li>
</ul>
</form>
<ul class="icons">
<li>
<a href="#" class="icon fa-twitter">
<span class="label">Twitter</span>
</a>
</li>
<li>
<a href="#" class="icon fa-facebook">
<span class="label">Facebook</span>
</a>
</li>
<li>
<a href="#" class="icon fa-instagram">
<span class="label">Instagram</span>
</a>
</li>
<li>
<a href="#" class="icon fa-github">
<span class="label">GitHub</span>
</a>
</li>
</ul>
</article>
</div>
<!-- Footer -->
<footer id="footer">
<!--p class="copyright">© NETCOINT 2018 - <?= date("Y") ?></p-->
<p class="copyright">Copyright © 2018 - All Rights Reserved - <a href="http://totaltic.pe" target="_blank"><span>Totaltic.pe</span></a></p>
</footer>
</div>
</body>
<script src="js/jquery.min.js"></script>
<script src="js/skel.min.js"></script>
<script src="js/util.js"></script>
<script src="js/main.js"></script>
<script src='https://www.google.com/recaptcha/api.js'></script>
<script src="js/utils.js"></script>
<link rel="stylesheet" href="css/jquery-confirm.min.css">
<script src="js/jquery-confirm.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
var url = location.href;
var n = url.indexOf("register");
if (n > 0) location.href = '#';
$('#btn_registrar').attr('disabled', 'disabled');
//$("#msg_error").hide();
$("#msg_error").html(" ");
$("#msg_error_recupero").html(" ");
//$("#frm_registro").submit(function(event) {
$("#btn_registrar").click(function() {
event.preventDefault();
var form = document.frm_registro;
ruc = new RucPlg(form.txt_ruc);
if (!ruc.esValido()){
alert('Por favor, ingrese numero de RUC valido.');
form.txt_ruc.focus();
return false;
}
doRegister_User('<?= $url_ws; ?>');
});
$("#frm_ingreso").submit(function(event) {
event.preventDefault();
doLogin_User('<?= $url_ws_control; ?>');
});
$("#frm_recuperacion").submit(function(event) {
event.preventDefault();
doRestore_Pass('<?= $url_ws; ?>');
});
$("#btn_cancelar_registro").click(function() {
$("#lblSeguridad").text("");
$('#show-password1').prop('checked', 'false');
$('#show-password2').prop('checked', 'false');
$('#txt_clave').attr('type', 'password');
$('#txt_clave2').attr('type', 'password');
$('#label-show-password1').text('Ver Contrasea');
$('#label-show-password2').text('Ver Contrasea');
});
// FILL COMBOBOX
doFill_TipoDocumento('<?= $url_ws; ?>');
//doFill_Cargo('<?= $url_ws; ?>');
//app_title = '<?= $app_title; ?>';
//show_console_log = '<?= $show_console_log; ?>';
});
$("#help").click(function() {
var url = 'condiciones.pdf';
window.open (url, 'condiciones','width=600,height=600,left=100,top=100,screenX=100,screenY=100');
});
$("#btn_borrar").click(function() {
$("#msg_error").html(" ");
$('#pwd').attr('type', 'password');
$('#label-show-password').text('Ver Contrasea');
$("#usuario").focus();
});
$("#btn_borrar_recupero").click(function() {
$("#msg_error_recupero").html(" ");
$("#txt_recuperar_email").focus();
});
$('#sel_tipodocumento').change(function () {
$('#txt_dni').val("");
var value_option = $('option:selected', this).val();
if (value_option == "0") {
$('#txt_dni').attr('maxlength', 8);
}
else if (value_option == "1") {
$('#txt_dni').attr('maxlength', 8);
}
else if (value_option == "2") {
$('#txt_dni').attr('maxlength', 10);
}
else if (value_option == "3") {
$('#txt_dni').attr('maxlength', 15);
}
});
function enableBtn(){
//$("input[type=submit]").removeAttr("disabled");
$('#btn_registrar').removeAttr("disabled");
}
function RucPlg(campo) {
this.campo = campo;
var esNulo = function() {
return (campo.value == null||campo.value=="");
}
var trim = function(cadena) {
cadena2 = "";
len = cadena.length;
for (var i = 0; i <= len; i++ ) {
if (cadena.charAt(i) != " " ) {
cadena2 += cadena.charAt(i);
}
}
return cadena2;
}
var esNumero = function () {
return !(isNaN(campo.value));
}
var onceNumeros = function () {
return campo.value.length == 11;
}
var tieneFormato = function() {
var valor = trim(campo.value);
if (esNumero(valor)) {
if (valor.length == 8) {
suma = 0
for (i=0; i<valor.length-1;i++){
digito = valor.charAt(i) - '0';
if ( i==0 ) suma += (digito*2)
else suma += (digito*(valor.length-i))
}
resto = suma % 11;
if ( resto == 1) resto = 11;
if ( resto + ( valor.charAt( valor.length-1 ) - '0' ) == 11 ){
return true
}
} else if ( valor.length == 11 ) {
suma = 0
x = 6
for (i=0; i<valor.length-1;i++){
if ( i == 4 ) x = 8
digito = valor.charAt(i) - '0';
x--
if ( i==0 ) suma += (digito*x)
else suma += (digito*x)
}
resto = suma % 11;
resto = 11 - resto
if ( resto >= 10) resto = resto - 10;
if ( resto == valor.charAt( valor.length-1 ) - '0' ){
return true
}
}
}
return false
}
this.esValido = function(){
return (!( esNulo() || !esNumero() || !onceNumeros() || !tieneFormato() ));
}
}
$('#show-password').change(function(){
if ($('#show-password').prop('checked')) {
$('#pwd').attr('type', 'text');
$('#label-show-password').text('Ocultar Contrasea');
}
else {
$('#pwd').attr('type', 'password');
$('#label-show-password').text('Ver Contrasea');
}
});
$('#show-password1').change(function(){
if ($('#show-password1').prop('checked')) {
$('#txt_clave').attr('type', 'text');
$('#label-show-password1').text('Ocultar Contrasea');
}
else {
$('#txt_clave').attr('type', 'password');
$('#label-show-password1').text('Ver Contrasea');
}
});
$('#show-password2').change(function(){
if ($('#show-password2').prop('checked')) {
$('#txt_clave2').attr('type', 'text');
$('#label-show-password2').text('Ocultar Contrasea');
}
else {
$('#txt_clave2').attr('type', 'password');
$('#label-show-password2').text('Ver Contrasea');
}
});
function muestra_seguridad_clave(clave, seguridad){
seguridad = seguridad_clave(clave);
seg = "Nivel de seguridad " + seguridad + "%";
$("#lblSeguridad").text(seg);
}
function seguridad_clave(clave){
var seguridad = 0;
var numeros ="0123456789";
var minusculas ="abcdefghijklmnopqrstuvwxyz";
var mayusculas ="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
var especiales ="{[(<!|#$%&/='@*+~^;:_,.-`?>)]}";
if (clave.length!=0){
if (tiene(numeros, clave)){
seguridad += 20;
}
if (tiene(minusculas, clave) && tiene(mayusculas, clave)){
seguridad += 20;
}
if (tiene(especiales, clave)){
seguridad += 30;
}
if (clave.length >= 6 && clave.length < 8){
seguridad += 20;
}else{
if (clave.length >= 8){
seguridad += 30;
}
}
}
return seguridad
}
function tiene(obj, texto){
for(i=0; i<texto.length; i++){
if (obj.indexOf(texto.charAt(i),0)!=-1){
return 1;
}
}
return 0;
}
function limpiar_error() {
$("#msg_error").html(" ");
}
</script>
</html>
Function Calls
| None |
Stats
| MD5 | 2ee32199756eec2bba59f3cda7a2cb3b |
| Eval Count | 0 |
| Decode Time | 88 ms |