SHARE
TWEET

Untitled

a guest Jun 15th, 2017 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function registerEvents($InternalCode, $usuario,
  2.         $Session,$Login, $AplicationName,$ActionCode)
  3. {
  4.     switch ($ActionCode)
  5.     {   case "0":
  6.             $action = "impresion de imagen";
  7.             break;
  8.         case "1":
  9.             $action = "Descarga de imagen";
  10.             break;
  11.         case "3":
  12.             $action = "Presentacion de imagen";
  13.             break;
  14.     }
  15.  
  16.     $dbhost = 'localhost';
  17.     $dbuser = 'root';
  18.     $dbpass = '';
  19.  
  20.     $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die  ('Error connecting to mysql');
  21.     $dbname = 'visor';
  22.     $mysql_select_db($dbname);
  23.     $query = "INSERT INTO auditoria (fecha/hora, session, usuario, aplicacion, codigo_interno_aplicacion, accion) VALUES (NOW(), $Session, $usuario, $AplicationName, $InternalCode, $action)";
  24.  
  25.     $mysql_close($conn);
  26.  
  27. return $action;
  28. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top