SHARE
TWEET

Untitled

a guest Jun 15th, 2017 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $server->register('registerEvents',
  2.         array('InternalCode' => 'xsd:string',
  3.               'Session' => 'xsd:string',
  4.                 'Login' => 'xsd:string',
  5.                 'AplicationName' => 'xsd:string',
  6.                 'ActionCode' => 'xsd:string',
  7.       ),
  8.         array('return' => 'xsd:string'),
  9.               'urn:convertwsdl',
  10.               'urn:convertwsdl#registerEvents',
  11.               'rpc',
  12.               'encoded',
  13.               'Registra los eventos realizados en el visor'
  14. );
  15.  
  16.  
  17. function registerEvents($InternalCode, $usuario,
  18.         $Session,$Login, $AplicationName,$ActionCode)
  19. {
  20.     switch ($ActionCode)
  21.     {   case "0":
  22.             $action = "impresion de imagen";
  23.             break;
  24.         case "1":
  25.             $action = "Descarga de imagen";
  26.             break;
  27.         case "3":
  28.             $action = "Presentacion de imagen";
  29.             break;
  30.     }
  31.  
  32.     $dbhost = 'localhost';
  33.     $dbuser = 'root';
  34.     $dbpass = '';
  35.  
  36.     $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die  ('Error connecting to mysql');
  37.     $dbname = 'visor';
  38.     $mysql_select_db($dbname);
  39.     $query = "INSERT INTO auditoria (fecha/hora, session, usuario, aplicacion, codigo_interno_aplicacion, accion) VALUES (NOW(), $Session, $usuario, $AplicationName, $InternalCode, $action)";
  40.  
  41.     $mysql_close($conn);
  42.  
  43. return $action;
  44. }
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