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( 'inc/h
eader.inc.
php' );
|
|
|
22 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'd
esign.inc.
php' );
|
|
|
23 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'p
rofiles.in
c.php' );
|
|
|
24 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'm
embers.inc
.php' );
|
|
|
25 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'u
tils.inc.p
hp' );
|
|
|
26 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_ROOT . "
templates/
tmpl_{$tmp
l}/scripts
/BxTemplCm
tsView.php
" );
|
|
|
27 |
|
|
|
|
28 |
|
if ( !( $l
ogged['adm
in'] = mem
ber_auth(
1, false )
) )
|
|
|
29 |
|
if ( !
( $logged[
'member']
= member_a
uth( 0, fa
lse ) ) )
|
|
|
30 |
|
if
( !( $log
ged['aff']
= member_
auth( 2, f
alse )) )
|
|
|
31 |
|
$logged[
'moderator
'] = membe
r_auth( 3,
false );
|
|
|
32 |
|
|
|
|
33 |
|
|
|
|
34 |
|
$sSys = is
set($_REQU
EST['sys']
) ? $_REQU
EST['sys']
: '';
|
|
|
35 |
|
$sAction =
isset($_R
EQUEST['ac
tion']) &&
preg_matc
h ('/^[A-Z
a-z_-]+$/'
, $_REQUES
T['action'
]) ? $_REQ
UEST['acti
on'] : '';
|
|
|
36 |
|
$iId = (in
t)$_REQUES
T['id'];
|
|
|
37 |
|
|
|
|
38 |
|
$oCmts = n
ew BxTempl
CmtsView('
', 0);
|
|
|
39 |
|
|
|
|
40 |
|
if ($sSys
&& $sActio
n && $iId
&& $oCmts-
>isValidSy
stem($sSys
))
|
|
|
41 |
|
{
|
|
|
42 |
|
$oCmts
= new BxT
emplCmtsVi
ew($sSys,
$iId, true
);
|
|
|
43 |
|
|
|
|
44 |
|
$sMeth
od = 'acti
on' . $sAc
tion;
|
|
|
45 |
|
echo $
oCmts->$sM
ethod();
|
|
|
46 |
|
}
|
|
|
47 |
|
|
|
|
48 |
|
?>
|