Location: PHPKode > projects > Azcar CMS > azucarcms/log.php
<?
/* vim: set expandtab tabstop=4 shiftwidth=4: */
// +----------------------------------------------------------------------+
// | PHP version 4.1.2                                                    |
// +----------------------------------------------------------------------+
// | Copyright (c) 2003 El grupo Emedia - Telesat                         |
// +----------------------------------------------------------------------+
// | Authors: John A. Vargas <hide@address.com>                  |
// +----------------------------------------------------------------------+
//
require_once 'lib/Log/Log.php';
require_once 'lib/Log/sql.php';

// Objeto que me mantiene un log del sistema
$conf = array('mode' => 0600,
              'timeFormat' => '%X %x', 
			  'dsn' => 'pgsql://user_cms:c0#hide@address.com/logs');

$log  = new Log_sql('log_cms', '', $conf);

$log->log(" Cambio de clave: {$usuario_cambiar->nombre} ", "CMS", "demo", "directorio", "crear_empleado");

?>
Return current item: Azcar CMS