No regular expressions were active.
1 |
|
<?php
|
|
1 |
|
<?php
|
2 |
|
|
|
2 |
|
|
3 |
|
/*********
**********
**********
**********
**********
**********
**********
******
|
|
3 |
|
/*********
**********
**********
**********
**********
**********
**********
******
|
4 |
|
*
D
olphin Sma
rt Communi
ty Builder
|
|
4 |
|
*
D
olphin Sma
rt Communi
ty Builder
|
5 |
|
*
---------
--------
|
|
5 |
|
*
---------
--------
|
6 |
|
* begi
n
: M
on Mar 23
2006
|
|
6 |
|
* begi
n
: M
on Mar 23
2006
|
7 |
|
* copy
right
: (
C) 2006 Bo
onEx Group
|
|
7 |
|
* copy
right
: (
C) 2006 Bo
onEx Group
|
8 |
|
* webs
ite
: h
ttp://www.
boonex.com
/
|
|
8 |
|
* webs
ite
: h
ttp://www.
boonex.com
/
|
9 |
|
* This fil
e is part
of Dolphin
- Smart C
ommunity B
uilder
|
|
9 |
|
* This fil
e is part
of Dolphin
- Smart C
ommunity B
uilder
|
10 |
|
*
|
|
10 |
|
*
|
11 |
|
* Dolphin
is free so
ftware. Th
is work is
licensed
under a Cr
eative Com
mons Attri
bution 3.0
License.
|
|
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/
|
|
12 |
|
* http://c
reativecom
mons.org/l
icenses/by
/3.0/
|
13 |
|
*
|
|
13 |
|
*
|
14 |
|
* Dolphin
is distrib
uted in th
e hope tha
t it will
be useful,
but WITHO
UT ANY WAR
RANTY;
|
|
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.
|
|
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.
|
|
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
,
|
|
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
|
|
18 |
|
* see lice
nse.txt fi
le; if not
, write to
marketing
@boonex.co
m
|
19 |
|
**********
**********
**********
**********
**********
**********
**********
*****/
|
|
19 |
|
**********
**********
**********
**********
**********
**********
**********
*****/
|
20 |
|
|
|
20 |
|
|
21 |
|
require_on
ce( 'inc/h
eader.inc.
php' );
|
|
21 |
|
require_on
ce( 'inc/h
eader.inc.
php' );
|
22 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'd
esign.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
rof.inc.ph
p' );
|
|
23 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'p
rof.inc.ph
p' );
|
24 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'u
tils.inc.p
hp' );
|
|
24 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'u
tils.inc.p
hp' );
|
25 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'p
rofiles.in
c.php' );
|
|
25 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'p
rofiles.in
c.php' );
|
26 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 's
dating.inc
.php' );
|
|
26 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 's
dating.inc
.php' );
|
27 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'i
mages.inc.
php' );
|
|
27 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'i
mages.inc.
php' );
|
28 |
|
|
|
28 |
|
|
29 |
|
|
|
29 |
|
|
30 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_CLASSES
. 'BxDolEv
ents.php'
);
|
|
30 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_CLASSES
. 'BxDolEv
ents.php'
);
|
31 |
|
|
|
31 |
|
|
32 |
|
// -------
-------- p
age variab
les and lo
gin
|
|
32 |
|
// -------
-------- p
age variab
les and lo
gin
|
33 |
|
|
|
33 |
|
|
34 |
|
$_page['na
me_index']
= 55;
|
|
34 |
|
$_page['na
me_index']
= 55;
|
35 |
|
$_page['cs
s_name'] =
'sdating.
css';
|
|
35 |
|
$_page['cs
s_name'] =
'sdating.
css';
|
36 |
|
$_page['ex
tra_css']
= $oTemplC
onfig -> s
CalendarCs
s;
|
|
36 |
|
$_page['ex
tra_css']
= $oTemplC
onfig -> s
CalendarCs
s;
|
37 |
|
$_page['ex
tra_js']
=
$oTemplCon
fig
->
sTinyMceEd
itor
Compact
JS;
|
|
37 |
|
$_page['ex
tra_js']
=
$oTemplCon
fig
->
sTinyMceEd
itor
JS;
|
38 |
|
|
|
38 |
|
|
39 |
|
//$logged[
'member']
= member_a
uth( 0, fa
lse );
|
|
|
40 |
|
check_logg
ed();
|
|
39 |
|
check_logg
ed();
|
41 |
|
|
|
40 |
|
|
42 |
|
$_page['he
ader'] = _
t("_sdatin
g_h");
|
|
41 |
|
$_page['he
ader'] = _
t("_sdatin
g_h");
|
43 |
|
$_page['he
ader_text'
] = _t("_s
dating_h")
;
|
|
42 |
|
$_page['he
ader_text'
] = _t("_s
dating_h")
;
|
44 |
|
|
|
43 |
|
|
45 |
|
$oEvents =
new BxDol
Events();
|
|
44 |
|
$oEvents =
new BxDol
Events();
|
46 |
|
if ($logge
d['admin']
)
|
|
45 |
|
if ($logge
d['admin']
)
|
47 |
|
$oEven
ts->bAdmin
Mode = TRU
E;
|
|
46 |
|
$oEven
ts->bAdmin
Mode = TRU
E;
|
48 |
|
|
|
47 |
|
|
49 |
|
$_ni = $_p
age['name_
index'];
|
|
48 |
|
$_ni = $_p
age['name_
index'];
|
50 |
|
$_page_con
t[$_ni]['p
age_main_c
ode'] = Pa
geCompPage
MainCode()
;
|
|
49 |
|
$_page_con
t[$_ni]['p
age_main_c
ode'] = Pa
geCompPage
MainCode()
;
|
51 |
|
|
|
50 |
|
|
52 |
|
// if Spee
dDating di
sabled the
n don't sh
ow anythin
g
|
|
|
53 |
|
if ( !$en_
sdating )
{
|
|
|
54 |
|
$_page
['name_ind
ex'] = 0;
|
|
|
55 |
|
$_page
_cont[0]['
page_main_
code'] = '
';
|
|
|
56 |
|
PageCo
de();
|
|
|
57 |
|
exit()
;
|
|
|
58 |
|
}
|
|
|
59 |
|
|
|
|
60 |
|
function P
ageCompPag
eMainCode(
) {
|
|
51 |
|
function P
ageCompPag
eMainCode(
) {
|
61 |
|
global
$oEvents;
|
|
52 |
|
global
$oEvents;
|
62 |
|
$bEven
tCreating
= (getPara
m('enable_
event_crea
ting') ==
'on');
|
|
53 |
|
$bEven
tCreating
= (getPara
m('enable_
event_crea
ting') ==
'on');
|
63 |
|
$sRetH
tml = '';
|
|
54 |
|
$sRetH
tml = '';
|
64 |
|
$sRetH
tml .= $oE
vents -> P
rintComman
dForms();
|
|
55 |
|
$sRetH
tml .= $oE
vents -> P
rintComman
dForms();
|
65 |
|
|
|
56 |
|
|
66 |
|
// put
in main c
ode approp
riate valu
es
|
|
|
67 |
|
switch
( $_REQUE
ST['action
'] ) {
|
|
57 |
|
switch
( $_REQUE
ST['action
'] ) {
|
68 |
|
ca
se 'edit_e
vent':
|
|
58 |
|
//
print func
tions
|
69 |
|
$iEventI
D = (int)(
$_POST['Ed
itEventID'
]);
|
|
|
70 |
|
$sRetHtm
l .= $oEve
nts->PageS
DatingNewE
ventForm($
iEventID);
|
|
|
71 |
|
break;
|
|
|
72 |
|
ca
se 'event_
save':
|
|
|
73 |
|
$iEventI
D = (int)(
$_POST['Ed
itedEventI
D']);
|
|
|
74 |
|
//if (is
set($_POST
['event_sa
ve'])) {
|
|
|
75 |
|
$aPo
stAdv = $o
Events ->
FillPostEv
entArrByPo
stValues()
;
|
|
|
76 |
|
$aEr
r = $oEven
ts -> Chec
kEventErro
rs( $aPost
Adv );
|
|
|
77 |
|
if(
empty( $aE
rr ) ) {
|
|
|
78 |
|
$add_res =
$oEvents-
>SDAddEven
t($iEventI
D);//like
update
|
|
|
79 |
|
$_REQUEST[
'event_id'
] = $iEven
tID;
|
|
|
80 |
|
$sRetHtml
.= $oEvent
s->PageSDa
tingShowIn
fo();
|
|
|
81 |
|
} el
se {
|
|
|
82 |
|
$sRetHtml
.= $oEvent
s->PageSDa
tingNewEve
ntForm($iE
ventID, $a
Err);
|
|
|
83 |
|
}
|
|
|
84 |
|
//} else
{
|
|
|
85 |
|
// $sRe
tHtml .= $
oEvents->P
ageSDating
NewEventFo
rm($iEvent
ID);
|
|
|
86 |
|
//}
|
|
|
87 |
|
break;
|
|
|
88 |
|
ca
se 'delete
_event':
|
|
|
89 |
|
$sRetHtm
l .= $oEve
nts->PageS
DatingDele
teEvent();
|
|
|
90 |
|
$sRetHtm
l .= $oEve
nts->PageS
DatingShow
Events();
|
|
|
91 |
|
break;
|
|
|
92 |
|
ca
se 'show':
|
|
59 |
|
ca
se 'show':
|
93 |
|
$sRetHtm
l .= $oEve
nts->PageS
DatingShow
Events();
|
|
60 |
|
$sRetHtm
l .= $oEve
nts->PageS
DatingShow
Events();
|
94 |
|
break;
|
|
61 |
|
break;
|
95 |
|
ca
se 'search
':
|
|
|
96 |
|
$sRetHtm
l .= $oEve
nts->PageS
DatingShow
Form();
|
|
|
97 |
|
$sRetHtm
l .= $oEve
nts->PageS
DatingShow
Events();
|
|
|
98 |
|
break;
|
|
|
99 |
|
ca
se 'show_i
nfo':
|
|
62 |
|
ca
se 'show_i
nfo':
|
100 |
|
$sRetHtm
l .= $oEve
nts->PageS
DatingShow
Info();
|
|
63 |
|
$sRetHtm
l .= $oEve
nts->PageS
DatingShow
Info();
|
101 |
|
break;
|
|
64 |
|
break;
|
102 |
|
ca
se 'calend
ar':
|
|
|
103 |
|
$sRetHtm
l .= $oEve
nts->PageS
DatingCale
ndar();
|
|
|
104 |
|
break;
|
|
|
105 |
|
ca
se 'show_p
art':
|
|
65 |
|
ca
se 'show_p
art':
|
106 |
|
$sRetHtm
l .= $oEve
nts->PageS
DatingShow
Participan
ts();
|
|
66 |
|
$sRetHtm
l .= $oEve
nts->PageS
DatingShow
Participan
ts();
|
107 |
|
break;
|
|
67 |
|
break;
|
108 |
|
case
'se
lect_m
a
t
ch':
|
|
68 |
|
case
'se
a
r
ch':
|
109 |
|
$sRetHtml
.=
$oEvents->
PageSDatin
gS
electMatc
h
e
s();
|
|
69 |
|
$sRetHtm
l .= $oEve
nts->PageS
DatingShow
Form();
|
|
|
70 |
|
$sRetHtml
.=
$oEvents->
PageSDatin
gS
h
owEv
e
nt
s();
|
110 |
|
break;
|
|
71 |
|
break;
|
111 |
|
ca
se 'search
_by_tag':
|
|
72 |
|
ca
se 'search
_by_tag':
|
112 |
|
$sRetHtm
l .= $oEve
nts->ShowS
earchResul
t();
|
|
73 |
|
$sRetHtm
l .= $oEve
nts->ShowS
earchResul
t();
|
113 |
|
break;
|
|
74 |
|
break;
|
|
|
75 |
|
ca
se 'calend
ar':
|
|
|
76 |
|
$sRetHtm
l .= $oEve
nts->PageS
DatingCale
ndar();
|
|
|
77 |
|
break;
|
|
|
78 |
|
|
|
|
79 |
|
/*
case 'sele
ct_match':
|
|
|
80 |
|
$sRetHtm
l .= $oEve
nts->PageS
DatingSele
ctMatches(
);
|
|
|
81 |
|
break;*/
|
|
|
82 |
|
|
|
|
83 |
|
//
forms of e
diting
|
114 |
|
ca
se 'new':
|
|
84 |
|
ca
se 'new':
|
115 |
|
if ($bEv
entCreatin
g) {
|
|
85 |
|
if ($bEv
entCreatin
g) {
|
116 |
|
if (
isset($_PO
ST['event_
save'])) {
|
|
86 |
|
if (
isset($_PO
ST['event_
save'])) {
|
117 |
|
$aPostAdv
= $oEvents
-> FillPo
stEventArr
ByPostValu
es();
|
|
87 |
|
$aPostAdv
= $oEvents
-> FillPo
stEventArr
ByPostValu
es();
|
118 |
|
$aErr = $o
Events ->
CheckEvent
Errors( $a
PostAdv );
|
|
88 |
|
$aErr = $o
Events ->
CheckEvent
Errors( $a
PostAdv );
|
119 |
|
if( empty(
$aErr ) )
{
|
|
89 |
|
if( empty(
$aErr ) )
{
|
120 |
|
$add_r
es = $oEve
nts->SDAdd
Event();
|
|
90 |
|
$add_r
es = $oEve
nts->SDAdd
Event();
|
121 |
|
$_REQU
EST['event
_id'] = my
sql_insert
_id();
|
|
91 |
|
$_REQU
EST['event
_id'] = my
sql_insert
_id();
|
122 |
|
$sRetH
tml .= $oE
vents->Pag
eSDatingSh
owInfo();
|
|
92 |
|
$sRetH
tml .= $oE
vents->Pag
eSDatingSh
owInfo();
|
123 |
|
} else {
|
|
93 |
|
} else {
|
124 |
|
$sRetH
tml .= $oE
vents->Pag
eSDatingNe
wEventForm
(-1, $aErr
);
|
|
94 |
|
$sRetH
tml .= $oE
vents->Pag
eSDatingNe
wEventForm
(-1, $aErr
);
|
125 |
|
}
|
|
95 |
|
}
|
126 |
|
} el
se {
|
|
96 |
|
} el
se {
|
127 |
|
$sRetHtml
.= $oEvent
s->PageSDa
tingNewEve
ntForm(-1)
;
|
|
97 |
|
$sRetHtml
.= $oEvent
s->PageSDa
tingNewEve
ntForm(-1)
;
|
128 |
|
}
|
|
98 |
|
}
|
129 |
|
} else
|
|
99 |
|
} else
|
130 |
|
$sRe
tHtml .= '
';
|
|
100 |
|
$sRe
tHtml .= '
';
|
131 |
|
break;
|
|
101 |
|
break;
|
|
|
102 |
|
ca
se 'edit_e
vent':
|
|
|
103 |
|
$iEventI
D = (int)(
$_POST['Ed
itEventID'
]);
|
|
|
104 |
|
$sRetHtm
l .= $oEve
nts->PageS
DatingNewE
ventForm($
iEventID);
|
|
|
105 |
|
break;
|
132 |
|
|
|
106 |
|
|
|
|
107 |
|
//
non safe f
unctions
|
|
|
108 |
|
ca
se 'event_
save':
|
|
|
109 |
|
$iEventI
D = (int)(
$_POST['Ed
itedEventI
D']);
|
|
|
110 |
|
$aPostAd
v = $oEven
ts -> Fill
PostEventA
rrByPostVa
lues();
|
|
|
111 |
|
$aErr =
$oEvents -
> CheckEve
ntErrors(
$aPostAdv
);
|
|
|
112 |
|
if( empt
y( $aErr )
) {
|
|
|
113 |
|
$add
_res = $oE
vents->SDA
ddEvent($i
EventID);/
/like upda
te
|
|
|
114 |
|
$_RE
QUEST['eve
nt_id'] =
$iEventID;
|
|
|
115 |
|
$sRe
tHtml .= $
oEvents->P
ageSDating
ShowInfo()
;
|
|
|
116 |
|
} else {
|
|
|
117 |
|
$sRe
tHtml .= $
oEvents->P
ageSDating
NewEventFo
rm($iEvent
ID, $aErr)
;
|
|
|
118 |
|
}
|
|
|
119 |
|
break;
|
|
|
120 |
|
ca
se 'delete
_event':
|
|
|
121 |
|
$sRetHtm
l .= $oEve
nts->PageS
DatingDele
teEvent();
|
|
|
122 |
|
$sRetHtm
l .= $oEve
nts->PageS
DatingShow
Events();
|
|
|
123 |
|
break;
|
133 |
|
de
fault:
|
|
124 |
|
de
fault:
|
134 |
|
$sRetHtm
l .= '';
|
|
125 |
|
$sRetHtm
l .= $oEve
nts->PageS
DatingShow
Events();
|
135 |
|
}
|
|
126 |
|
}
|
136 |
|
return
$sRetHtml
;
|
|
127 |
|
return
$sRetHtml
;
|
137 |
|
}
|
|
128 |
|
}
|
138 |
|
|
|
129 |
|
|
139 |
|
PageCode()
;
|
|
130 |
|
PageCode()
;
|
140 |
|
|
|
131 |
|
|
141 |
|
?>
|
|
132 |
|
?>
|