/[dtapublic]/to_be_filed/webprojs/php_libraries/php_library/fboprime/logview.inc
ViewVC logotype

Annotation of /to_be_filed/webprojs/php_libraries/php_library/fboprime/logview.inc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 35 - (hide annotations) (download)
Sat Oct 8 23:35:33 2016 UTC (7 years, 10 months ago) by dashley
File size: 2873 byte(s)
Initial commit.
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     ?>

dashley@gmail.com
ViewVC Help
Powered by ViewVC 1.1.25