1 |
dashley |
35 |
<?php
|
2 |
|
|
//$Header: /hl/cvsroots/gpl01/gpl01/webprojs/fboprime/sw/phplib/logview.inc,v 1.2 2006/07/09 20:39:10 dashley Exp $
|
3 |
|
|
//--------------------------------------------------------------------------------------------------------------
|
4 |
|
|
//logview.inc--FboPrime Log Viewing Support Functions
|
5 |
|
|
//Copyright (C) 2006 David T. Ashley
|
6 |
|
|
//
|
7 |
|
|
//This program is free software; you can redistribute it and/or
|
8 |
|
|
//modify it under the terms of the GNU General Public License
|
9 |
|
|
//as published by the Free Software Foundation; either version 2
|
10 |
|
|
//of the License, or (at your option) any later version.
|
11 |
|
|
//
|
12 |
|
|
//This program is distributed in the hope that it will be useful,
|
13 |
|
|
//but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14 |
|
|
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15 |
|
|
//GNU General Public License for more details.
|
16 |
|
|
//
|
17 |
|
|
//You should have received a copy of the GNU General Public License
|
18 |
|
|
//along with this program; if not, write to the Free Software
|
19 |
|
|
//Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
20 |
|
|
//********************************************************************************
|
21 |
|
|
//This contains functions used in development and debugging of FBO-Prime. The
|
22 |
|
|
//contents of this file are kept separate to avoid introducing baggage into
|
23 |
|
|
//the production software.
|
24 |
|
|
//--------------------------------------------------------------------------------------------------------------
|
25 |
|
|
require_once("global.inc");
|
26 |
|
|
require_once("log.inc");
|
27 |
|
|
//
|
28 |
|
|
//--------------------------------------------------------------------------------------------------------------
|
29 |
|
|
function LOGVIEW_type_to_text($type_in)
|
30 |
|
|
{
|
31 |
|
|
if ($type_in == LOG_ET_UNKNOWN_MISC)
|
32 |
|
|
return("UNKNOWN_MISC");
|
33 |
|
|
else if ($type_in == LOG_ET_PAGEHIT)
|
34 |
|
|
return("PAGEHIT");
|
35 |
|
|
else if ($type_in == LOG_ET_ERRDBCONN)
|
36 |
|
|
return("ERRDBCONN");
|
37 |
|
|
else if ($type_in == LOG_ET_LOGIN_OK)
|
38 |
|
|
return("LOGIN_OK");
|
39 |
|
|
else if ($type_in == LOG_ET_LOGIN_FAIL)
|
40 |
|
|
return("LOGIN_FAIL");
|
41 |
|
|
else if ($type_in == LOG_ET_LOGOUT_VOL)
|
42 |
|
|
return("LOGOUT_VOL");
|
43 |
|
|
else if ($type_in == LOG_ET_LOGOUT_TIME)
|
44 |
|
|
return("LOGOUT_TIME");
|
45 |
|
|
else if ($type_in == LOG_ET_REVAL_OK)
|
46 |
|
|
return("REVAL_OK");
|
47 |
|
|
else if ($type_in == LOG_ET_SEC_SID_FORGED)
|
48 |
|
|
return("SEC_SID_FORGED");
|
49 |
|
|
else if ($type_in == LOG_ET_SEC_LOGOUT_IP)
|
50 |
|
|
return("SEC_LOGOUT_IP");
|
51 |
|
|
else if ($type_in == LOG_ET_MAINT_PERIODIC)
|
52 |
|
|
return("MAINT_PERIODIC");
|
53 |
|
|
else if ($type_in == LOG_ET_UNCATEGORIZED)
|
54 |
|
|
return("UNCATEGORIZED");
|
55 |
|
|
else
|
56 |
|
|
return("INVALID_SPECIFIED");
|
57 |
|
|
}
|
58 |
|
|
//
|
59 |
|
|
//--------------------------------------------------------------------------------------------------------------
|
60 |
|
|
//End of $RCSfile: logview.inc,v $.
|
61 |
|
|
//--------------------------------------------------------------------------------------------------------------
|
62 |
|
|
?>
|