No regular expressions were active.
1 |
|
<?
|
|
|
2 |
|
|
|
|
3 |
|
/*********
**********
**********
**********
**********
**********
**********
******
|
|
|
4 |
|
*
D
olphin Sma
rt Communi
ty Builder
|
|
|
5 |
|
*
---------
--------
|
|
|
6 |
|
* begi
n
: M
on Mar 23
2006
|
|
|
7 |
|
* copy
right
: (
C) 2006 Bo
onEx Group
|
|
|
8 |
|
* webs
ite
: h
ttp://www.
boonex.com
/
|
|
|
9 |
|
* This fil
e is part
of Dolphin
- Smart C
ommunity B
uilder
|
|
|
10 |
|
*
|
|
|
11 |
|
* Dolphin
is free so
ftware. Th
is work is
licensed
under a Cr
eative Com
mons Attri
bution 3.0
License.
|
|
|
12 |
|
* http://c
reativecom
mons.org/l
icenses/by
/3.0/
|
|
|
13 |
|
*
|
|
|
14 |
|
* Dolphin
is distrib
uted in th
e hope tha
t it will
be useful,
but WITHO
UT ANY WAR
RANTY;
|
|
|
15 |
|
* without
even the i
mplied war
ranty of
MERCHANTAB
ILITY or F
ITNESS FOR
A PARTICU
LAR PURPOS
E.
|
|
|
16 |
|
* See the
Creative C
ommons Att
ribution 3
.0 License
for more
details.
|
|
|
17 |
|
* You shou
ld have re
ceived a c
opy of the
Creative
Commons At
tribution
3.0 Licens
e along wi
th Dolphin
,
|
|
|
18 |
|
* see lice
nse.txt fi
le; if not
, write to
marketing
@boonex.co
m
|
|
|
19 |
|
**********
**********
**********
**********
**********
**********
**********
*****/
|
|
|
20 |
|
|
|
|
21 |
|
require_on
ce( '../in
c/header.i
nc.php' );
|
|
|
22 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'd
b.inc.php'
);
|
|
|
23 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'l
anguages.i
nc.php' );
|
|
|
24 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'm
enu.inc.ph
p' );
|
|
|
25 |
|
|
|
|
26 |
|
header('Co
ntent-Type
: applicat
ion/xml');
|
|
|
27 |
|
$result =
'<?xml ver
sion="1.0"
encoding=
"'.$langHT
MLCharset.
'"?>';
|
|
|
28 |
|
|
|
|
29 |
|
$result .=
'<root>';
|
|
|
30 |
|
|
|
|
31 |
|
$iId = (in
t)$_COOKIE
['memberID
'];
|
|
|
32 |
|
|
|
|
33 |
|
if ( 'menu
' == $_REQ
UEST['acti
on'] )
|
|
|
34 |
|
{
|
|
|
35 |
|
|
|
|
36 |
|
if ( $
iName = $_
REQUEST['I
D'] )
|
|
|
37 |
|
{
|
|
|
38 |
|
$resul
t .= '<men
u>';
|
|
|
39 |
|
$resul
t .= showM
enuGroup(
$iName, $i
Id );
|
|
|
40 |
|
$resul
t .= '</me
nu>';
|
|
|
41 |
|
}
|
|
|
42 |
|
|
|
|
43 |
|
}
|
|
|
44 |
|
|
|
|
45 |
|
|
|
|
46 |
|
$resul
t .= '</ro
ot>';
|
|
|
47 |
|
|
|
|
48 |
|
echo $
result;
|
|
|
49 |
|
|
|
|
50 |
|
// =======
==========
==========
==========
==========
==========
==========
==========
======
|
|
|
51 |
|
// =======
==========
==========
====== FUN
CTIONS : =
==========
==========
==========
======
|
|
|
52 |
|
// =======
==========
==========
==========
==========
==========
==========
==========
======
|
|
|
53 |
|
|
|
|
54 |
|
function s
howMenuGro
up( $iName
, $iId = 0
)
|
|
|
55 |
|
{
|
|
|
56 |
|
global
$aMenu;
|
|
|
57 |
|
foreac
h ($aMenu
as $iVal =
> $aValue)
|
|
|
58 |
|
{
|
|
|
59 |
|
if
($aValue[
'MenuGroup
'] != $iNa
me) contin
ue;
|
|
|
60 |
|
if
(check_co
ndition($a
Value['Che
ck']) != T
RUE) conti
nue;
|
|
|
61 |
|
$s
MenuLink =
$iId <> 0
? add_id(
$aValue['L
ink'], $iI
d) : $aVal
ue['Link']
;
|
|
|
62 |
|
$s
Caption =
_t($aValu
e['Caption
']);
|
|
|
63 |
|
$r
et .= '<n
ode><name>
'.$sCaptio
n. '</name
>';
|
|
|
64 |
|
$r
et .= '<l
ink>'.$sMe
nuLink.'</
link></nod
e>';
|
|
|
65 |
|
}
|
|
|
66 |
|
return
$ret;
|
|
|
67 |
|
}
|
|
|