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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 35 - (hide annotations) (download)
Sat Oct 8 23:35:33 2016 UTC (7 years, 8 months ago) by dashley
File size: 2720 byte(s)
Initial commit.
1 dashley 35 <?php
2     //$Header: /hl/cvsroots/gpl01/gpl01/webprojs/fboprime/sw/phplib/sidx.inc,v 1.1 2006/09/25 23:25:04 dashley Exp $
3     //********************************************************************************
4     //Copyright (C) 2006 David T. Ashley
5     //********************************************************************************
6     //This program or source file is free software; you can redistribute it and/or
7     //modify it under the terms of the GNU General Public License as published by
8     //the Free Software Foundation; either version 2 of the License, or (at your
9     //option) any later version.
10     //
11     //This program or source file is distributed in the hope that it will
12     //be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
13     //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14     //GNU General Public License for more details.
15     //
16     //You may have received a copy of the GNU General Public License
17     //along with this program; if not, write to the Free Software
18     //Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19     //********************************************************************************
20     //Dave Ashley, 04/06
21     //
22     //This source file provides the code to create and manipulate session
23     //identifiers (SIDs) that is not required in the dayview scheduling page.
24     //The format of the SGUID is documented in the FBO-Prime manual.
25     //
26     require_once("sid.inc");
27     //
28     //
29     //--------------------------------------------------------------------------------
30     //Reformats an SID string to include dots at strategic places for more
31     //human-friendly display.
32     //
33     function SID_dotted_display_string_a($sid_in)
34     {
35     if (! is_string($sid_in))
36     {
37     //Don't know what this is ... it isn't an sid. Just send it back.
38     return($sid_in);
39     }
40     else if (strlen($sid_in) != 66)
41     {
42     //This doesn't seem to be the right length for an sid. Give it back.
43     return($sid_in);
44     }
45     else
46     {
47     //Seems right.
48     return(
49     SubStr($sid_in, 0, 2)
50     .
51     "."
52     .
53     SubStr($sid_in, 2, 2)
54     .
55     "."
56     .
57     SubStr($sid_in, 4, 11)
58     .
59     "."
60     .
61     SubStr($sid_in, 15, 9)
62     .
63     "."
64     .
65     SubStr($sid_in, 24, 10)
66     .
67     "."
68     .
69     SubStr($sid_in, 34, 32)
70     );
71     }
72     }
73     //
74     //--------------------------------------------------------------------------------
75     //End of $RCSfile: sidx.inc,v $.
76     //--------------------------------------------------------------------------------
77     ?>

dashley@gmail.com
ViewVC Help
Powered by ViewVC 1.1.25