This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @ Autor: Ricardo Carpintero | |
// @ Ayuda : info@solucionesvigo.es | |
// @ Objetivo | |
// La intencion es crear librería de control de teclado y eventos de raton. | |
// Obtenemos la tecla pulsada según input y dato, y poder realizar las acciones que indiquemos. | |
// Informacion de event | |
// http://librosweb.es/libro/javascript/capitulo_6/obteniendo_informacion_del_evento_objeto_event.html | |
// @ parametros que recibimos. | |
// event -> Objeto, donde podemos obtener el numero tecla, typo de evento ( mouse o key). | |
// id_input -> Nombre del id donde se ejecuto la funcion. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function ComprobarCodbarras($codbarras){ | |
// Objetivo | |
// Comprobar que el digito de control del codbarras recibido es correcto. | |
// fuente: http://mimosa.pntic.mec.es/jgomez53/matema/practica/digcontrol.htm | |
$ultimo_digito = substr($codbarras, -1); // Obtenermos digito de control | |
$codbarras_sinDC= substr($codbarras, 0, -1); // Obtenemos codbarras sin digito de control |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* sublayout products | |
* ORIGINAL DE : | |
* @package VirtueMart | |
* @author Max Milbers | |
* @link http://www.virtuemart.net | |
* @copyright Copyright (c) 2014 VirtueMart Team. All rights reserved. | |
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL2, see LICENSE.php | |
* @version $Id: cart.php 7682 2014-02-26 17:07:20Z Milbo $ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo '<pre>'; | |
$debugs = debug_backtrace(); | |
print_r('Cantidad:'.count($debugs).'<br/>'); | |
foreach ($debugs as $debug){ | |
echo 'linea:'.$debug['line'].' del fichero:'.$debug['file']; | |
if ($debug['object']){ | |
echo '<br/> Objeto->'.get_class($debug['object']).'<br/>'; | |
} | |
echo '<br/> funcion:'.$debug['function']; | |
if($debug['class']){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Autor: Ricardo Carpintero Gil | |
* Post donde hablo de esto : https://ayuda.svigo.es/index.php/programacion/php/296-sessiones-en-php | |
* | |
* */ | |
// --- Inicializo variables --- / | |
$CookieInfo = ''; | |
$cache_expire = ''; | |
$status = ''; | |
// ----- Codigo php antes de escribir nada para funciones correctamente -------------- // |