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( '../in
c/header.i
nc.php' );
|
|
21 |
|
require_on
ce( '../in
c/header.i
nc.php' );
|
22 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'a
dmin_desig
n.inc.php'
);
|
|
22 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'a
dmin_desig
n.inc.php'
);
|
23 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'u
tils.inc.p
hp' );
|
|
23 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'u
tils.inc.p
hp' );
|
24 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'c
heckout.in
c.php' );
|
|
24 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'c
heckout.in
c.php' );
|
25 |
|
|
|
25 |
|
|
26 |
|
$logged['a
dmin']
=
member_aut
h(
1
);
|
|
26 |
|
$logged['a
dmin']
=
member_aut
h(
1
,
true,
true
);
|
27 |
|
|
|
27 |
|
|
28 |
|
$_page['he
ader'] = "
Payment pr
oviders";
|
|
28 |
|
$_page['he
ader'] = "
Payment pr
oviders";
|
29 |
|
$_page['he
ader_text'
] = "Manag
e payment
providers"
;
|
|
29 |
|
$_page['he
ader_text'
] = "Manag
e payment
providers"
;
|
30 |
|
|
|
30 |
|
|
31 |
|
define( 'P
AYMENT_MOD
ULE_AS_HEA
DER', 'on'
);
|
|
31 |
|
define( 'P
AYMENT_MOD
ULE_AS_HEA
DER', 'on'
);
|
32 |
|
|
|
32 |
|
|
33 |
|
/**
|
|
33 |
|
/**
|
34 |
|
* Prints
payment pr
ovider set
up box
|
|
34 |
|
* Prints
payment pr
ovider set
up box
|
35 |
|
*
|
|
35 |
|
*
|
36 |
|
* @param
array $pro
viderArr
- arra
y with pro
vider data
obtained
from the d
atabase
|
|
36 |
|
* @param
array $pro
viderArr
- arra
y with pro
vider data
obtained
from the d
atabase
|
37 |
|
* @param
bool $useP
ostData
- indi
cates if P
OST data s
hould be u
sed to sho
w configur
ation
|
|
37 |
|
* @param
bool $useP
ostData
- indi
cates if P
OST data s
hould be u
sed to sho
w configur
ation
|
38 |
|
*
|
|
38 |
|
*
|
39 |
|
*
|
|
39 |
|
*
|
40 |
|
*/
|
|
40 |
|
*/
|
41 |
|
function P
PShowProvi
derBox( $p
roviderArr
, $usePost
Data = fal
se )
|
|
41 |
|
function P
PShowProvi
derBox( $p
roviderArr
, $usePost
Data = fal
se )
|
42 |
|
{
|
|
42 |
|
{
|
43 |
|
global
$dir;
|
|
43 |
|
global
$dir;
|
44 |
|
global
$site;
|
|
44 |
|
global
$site;
|
45 |
|
|
|
45 |
|
|
46 |
|
$provi
derActive
= $usePost
Data ? $_P
OST['provi
der_active
'] == 'on'
: $provid
erArr['Act
ive'];
|
|
46 |
|
$provi
derActive
= $usePost
Data ? $_P
OST['provi
der_active
'] == 'on'
: $provid
erArr['Act
ive'];
|
47 |
|
$provi
derMode =
$usePostDa
ta ? $_POS
T['provide
r_mode'] :
$provider
Arr['Mode'
];
|
|
47 |
|
$provi
derMode =
$usePostDa
ta ? $_POS
T['provide
r_mode'] :
$provider
Arr['Mode'
];
|
48 |
|
$provi
derDebug =
$usePostD
ata ? $_PO
ST['provid
er_debug']
== 'on' :
$provider
Arr['Debug
'];
|
|
48 |
|
$provi
derDebug =
$usePostD
ata ? $_PO
ST['provid
er_debug']
== 'on' :
$provider
Arr['Debug
'];
|
49 |
|
|
|
49 |
|
|
50 |
|
?>
|
|
50 |
|
?>
|
51 |
|
<form id="
f<?= $prov
iderArr['N
ame'] ?>Pr
oviderForm
" action="
<?= $_SERV
ER['PHP_SE
LF'] ?>" m
ethod="pos
t" style="
margin: 10
px;">
|
|
51 |
|
<form id="
f<?= $prov
iderArr['N
ame'] ?>Pr
oviderForm
" action="
<?= $_SERV
ER['PHP_SE
LF'] ?>" m
ethod="pos
t" style="
margin: 10
px;">
|
52 |
|
<input typ
e="hidden"
name="act
ion" value
="validate
_or_save"
/>
|
|
52 |
|
<input typ
e="hidden"
name="act
ion" value
="validate
_or_save"
/>
|
53 |
|
<input typ
e="hidden"
name="pro
v_id" valu
e="<?= $pr
oviderArr[
'ID'] ?>"
/>
|
|
53 |
|
<input typ
e="hidden"
name="pro
v_id" valu
e="<?= $pr
oviderArr[
'ID'] ?>"
/>
|
54 |
|
<div class
="section_
header" st
yle="width
: 500px; t
ext-align:
left; mar
gin: 2px;"
>
|
|
54 |
|
<div class
="section_
header" st
yle="width
: 500px; t
ext-align:
left; mar
gin: 2px;"
>
|
55 |
|
<?= pr
ocess_line
_output($p
roviderArr
['Caption'
]) ?>
|
|
55 |
|
<?= pr
ocess_line
_output($p
roviderArr
['Caption'
]) ?>
|
56 |
|
</div>
|
|
56 |
|
</div>
|
57 |
|
<div class
="section_
row" style
="width: 5
00px; padd
ing: 2px;"
>
|
|
57 |
|
<div class
="section_
row" style
="width: 5
00px; padd
ing: 2px;"
>
|
58 |
|
<table
cellpaddi
ng="4" cel
lspacing="
0" border=
"0" width=
"500" clas
s="text">
|
|
58 |
|
<table
cellpaddi
ng="4" cel
lspacing="
0" border=
"0" width=
"500" clas
s="text">
|
59 |
|
<t
r>
|
|
59 |
|
<t
r>
|
60 |
|
<td alig
n="left" w
idth="130"
>Active</t
d>
|
|
60 |
|
<td alig
n="left" w
idth="130"
>Active</t
d>
|
61 |
|
<td alig
n="left" w
idth="270"
><input ty
pe="checkb
ox" class=
"no" name=
"provider_
active" id
="provider
<?= $provi
derArr['ID
'] ?>_acti
ve_id" <?=
$provider
Active ? '
checked="c
hecked"' :
'' ?> /><
/td>
|
|
61 |
|
<td alig
n="left" w
idth="270"
><input ty
pe="checkb
ox" class=
"no" name=
"provider_
active" id
="provider
<?= $provi
derArr['ID
'] ?>_acti
ve_id" <?=
$provider
Active ? '
checked="c
hecked"' :
'' ?> /><
/td>
|
62 |
|
<td rows
pan="4" wi
dth="100"
align="rig
ht" valign
="top"><?=
strlen($p
roviderArr
['LogoFile
name']) >
0 && file_
exists($di
r['checkou
t'] . 'ima
ges/' . $p
roviderArr
['LogoFile
name']) ?
"<img src=
\"{$site['
checkout']
}images/{$
providerAr
r['LogoFil
ename']}\"
alt=\"".
process_li
ne_output(
$providerA
rr['Captio
n']) ."\"
/>" : '&nb
sp;' ?></t
d>
|
|
62 |
|
<td rows
pan="4" wi
dth="100"
align="rig
ht" valign
="top"><?=
strlen($p
roviderArr
['LogoFile
name']) >
0 && file_
exists($di
r['checkou
t'] . 'ima
ges/' . $p
roviderArr
['LogoFile
name']) ?
"<img src=
\"{$site['
checkout']
}images/{$
providerAr
r['LogoFil
ename']}\"
alt=\"".
process_li
ne_output(
$providerA
rr['Captio
n']) ."\"
/>" : '&nb
sp;' ?></t
d>
|
63 |
|
</
tr>
|
|
63 |
|
</
tr>
|
64 |
|
<t
r>
|
|
64 |
|
<t
r>
|
65 |
|
<td alig
n="left" w
idth="130"
>Mode</td>
|
|
65 |
|
<td alig
n="left" w
idth="130"
>Mode</td>
|
66 |
|
<td alig
n="left">
|
|
66 |
|
<td alig
n="left">
|
67 |
|
<sel
ect name="
provider_m
ode" id="p
rovider<?=
$provider
Arr['ID']
?>_mode_id
">
|
|
67 |
|
<sel
ect name="
provider_m
ode" id="p
rovider<?=
$provider
Arr['ID']
?>_mode_id
">
|
68 |
|
<option va
lue="live"
<?= $prov
iderMode =
= 'live' ?
'selected
="selected
"' : '' ?>
>Live</op
tion>
|
|
68 |
|
<option va
lue="live"
<?= $prov
iderMode =
= 'live' ?
'selected
="selected
"' : '' ?>
>Live</op
tion>
|
69 |
|
<option va
lue="test-
approve" <
?= $provid
erMode ==
'test-appr
ove' ? 'se
lected="se
lected"' :
'' ?> >Te
st (approv
e)</option
>
|
|
69 |
|
<option va
lue="test-
approve" <
?= $provid
erMode ==
'test-appr
ove' ? 'se
lected="se
lected"' :
'' ?> >Te
st (approv
e)</option
>
|
70 |
|
<option va
lue="test-
decline" <
?= $provid
erMode ==
'test-decl
ine' ? 'se
lected="se
lected"' :
'' ?> >Te
st (declin
e)</option
>
|
|
70 |
|
<option va
lue="test-
decline" <
?= $provid
erMode ==
'test-decl
ine' ? 'se
lected="se
lected"' :
'' ?> >Te
st (declin
e)</option
>
|
71 |
|
</se
lect>
|
|
71 |
|
</se
lect>
|
72 |
|
</td>
|
|
72 |
|
</td>
|
73 |
|
</
tr>
|
|
73 |
|
</
tr>
|
74 |
|
<t
r>
|
|
74 |
|
<t
r>
|
75 |
|
<td alig
n="left" w
idth="130"
>Debug out
put</td>
|
|
75 |
|
<td alig
n="left" w
idth="130"
>Debug out
put</td>
|
76 |
|
<td alig
n="left"><
input type
="checkbox
" class="n
o" name="p
rovider_de
bug" id="p
rovider<?=
$provider
Arr['ID']
?>_debug_i
d" <?= $pr
oviderDebu
g ? 'check
ed="checke
d"' : '' ?
> /></td>
|
|
76 |
|
<td alig
n="left"><
input type
="checkbox
" class="n
o" name="p
rovider_de
bug" id="p
rovider<?=
$provider
Arr['ID']
?>_debug_i
d" <?= $pr
oviderDebu
g ? 'check
ed="checke
d"' : '' ?
> /></td>
|
77 |
|
</
tr>
|
|
77 |
|
</
tr>
|
78 |
|
<t
r>
|
|
78 |
|
<t
r>
|
79 |
|
<td alig
n="left" w
idth="130"
>Supports
recurring<
/td>
|
|
79 |
|
<td alig
n="left" w
idth="130"
>Supports
recurring<
/td>
|
80 |
|
<td alig
n="left" h
eight="24"
><?= $prov
iderArr['S
upportsRec
urring'] ?
'yes' : '
no' ?></td
>
|
|
80 |
|
<td alig
n="left" h
eight="24"
><?= $prov
iderArr['S
upportsRec
urring'] ?
'yes' : '
no' ?></td
>
|
81 |
|
</
tr>
|
|
81 |
|
</
tr>
|
82 |
|
<?
|
|
82 |
|
<?
|
83 |
|
$param
Res = db_r
es( "SELEC
T `Name`,
`Caption`,
`Type`, `
Extra`, `V
alue` FROM
`PaymentP
arameters`
WHERE `ID
Provider`
= {$provid
erArr['ID'
]} AND `Ch
angable` O
RDER BY `I
D`" );
|
|
83 |
|
$param
Res = db_r
es( "SELEC
T `Name`,
`Caption`,
`Type`, `
Extra`, `V
alue` FROM
`PaymentP
arameters`
WHERE `ID
Provider`
= {$provid
erArr['ID'
]} AND `Ch
angable` O
RDER BY `I
D`" );
|
84 |
|
while
( $paramAr
r = mysql_
fetch_asso
c($paramRe
s) )
|
|
84 |
|
while
( $paramAr
r = mysql_
fetch_asso
c($paramRe
s) )
|
85 |
|
{
|
|
85 |
|
{
|
86 |
|
?>
|
|
86 |
|
?>
|
87 |
|
<t
r>
|
|
87 |
|
<t
r>
|
88 |
|
<td alig
n="left" w
idth="130"
><?= proce
ss_line_ou
tput($para
mArr['Capt
ion']) ?><
/td>
|
|
88 |
|
<td alig
n="left" w
idth="130"
><?= proce
ss_line_ou
tput($para
mArr['Capt
ion']) ?><
/td>
|
89 |
|
<td alig
n="left" c
olspan="2"
>
|
|
89 |
|
<td alig
n="left" c
olspan="2"
>
|
90 |
|
<?
|
|
90 |
|
<?
|
91 |
|
$p
aramValue
= $usePost
Data ? $_P
OST["provi
der_{$para
mArr['Name
']}"] : $p
aramArr['V
alue'];
|
|
91 |
|
$p
aramValue
= $usePost
Data ? $_P
OST["provi
der_{$para
mArr['Name
']}"] : $p
aramArr['V
alue'];
|
92 |
|
sw
itch ( $pa
ramArr['Ty
pe'] )
|
|
92 |
|
sw
itch ( $pa
ramArr['Ty
pe'] )
|
93 |
|
{
|
|
93 |
|
{
|
94 |
|
case 'ch
eck':
|
|
94 |
|
case 'ch
eck':
|
95 |
|
echo
"<input t
ype=\"chec
kbox\" cla
ss=\"no\"
name=\"pro
vider_{$pa
ramArr['Na
me']}\" id
=\"provide
r{$provide
rArr['ID']
}_{$paramA
rr['Name']
}_id\" ".
($paramVal
ue == 'on'
? 'checke
d="checked
"' : '') .
" />";
|
|
95 |
|
echo
"<input t
ype=\"chec
kbox\" cla
ss=\"no\"
name=\"pro
vider_{$pa
ramArr['Na
me']}\" id
=\"provide
r{$provide
rArr['ID']
}_{$paramA
rr['Name']
}_id\" ".
($paramVal
ue == 'on'
? 'checke
d="checked
"' : '') .
" />";
|
96 |
|
brea
k;
|
|
96 |
|
brea
k;
|
97 |
|
|
|
97 |
|
|
98 |
|
case 'en
um':
|
|
98 |
|
case 'en
um':
|
99 |
|
echo
"<select
name=\"pro
vider_{$pa
ramArr['Na
me']}\" id
=\"provide
r{$provide
rArr['ID']
}_{$paramA
rr['Name']
}_id\">\n"
;
|
|
99 |
|
echo
"<select
name=\"pro
vider_{$pa
ramArr['Na
me']}\" id
=\"provide
r{$provide
rArr['ID']
}_{$paramA
rr['Name']
}_id\">\n"
;
|
100 |
|
$val
s = preg_s
plit("/[,\
']+/", $pa
ramArr['Ex
tra'], -1,
PREG_SPLI
T_NO_EMPTY
);
|
|
100 |
|
$val
s = preg_s
plit("/[,\
']+/", $pa
ramArr['Ex
tra'], -1,
PREG_SPLI
T_NO_EMPTY
);
|
101 |
|
fore
ach ( $val
s as $v )
|
|
101 |
|
fore
ach ( $val
s as $v )
|
102 |
|
{
|
|
102 |
|
{
|
103 |
|
echo "<opt
ion value=
\"{$v}\" "
. ($paramV
alue == $v
? 'select
ed="select
ed"' : '')
.">". htm
lspecialch
ars($v) ."
</option>"
;
|
|
103 |
|
echo "<opt
ion value=
\"{$v}\" "
. ($paramV
alue == $v
? 'select
ed="select
ed"' : '')
.">". htm
lspecialch
ars($v) ."
</option>"
;
|
104 |
|
}
|
|
104 |
|
}
|
105 |
|
echo
"</select
>\n";
|
|
105 |
|
echo
"</select
>\n";
|
106 |
|
brea
k;
|
|
106 |
|
brea
k;
|
107 |
|
|
|
107 |
|
|
108 |
|
case 'te
xt':
|
|
108 |
|
case 'te
xt':
|
109 |
|
echo
"<input t
ype=\"text
\" class=\
"no\" name
=\"provide
r_{$paramA
rr['Name']
}\" id=\"p
rovider{$p
roviderArr
['ID']}_{$
paramArr['
Name']}_id
\" value=\
"". htmlsp
ecialchars
($paramVal
ue) ."\" s
tyle=\"wid
th: 250px;
\" />";
|
|
109 |
|
echo
"<input t
ype=\"text
\" class=\
"no\" name
=\"provide
r_{$paramA
rr['Name']
}\" id=\"p
rovider{$p
roviderArr
['ID']}_{$
paramArr['
Name']}_id
\" value=\
"". htmlsp
ecialchars
($paramVal
ue) ."\" s
tyle=\"wid
th: 250px;
\" />";
|
110 |
|
brea
k;
|
|
110 |
|
brea
k;
|
111 |
|
|
|
111 |
|
|
112 |
|
default:
|
|
112 |
|
default:
|
113 |
|
echo
' ';
|
|
113 |
|
echo
' ';
|
114 |
|
brea
k;
|
|
114 |
|
brea
k;
|
115 |
|
}
|
|
115 |
|
}
|
116 |
|
?>
|
|
116 |
|
?>
|
117 |
|
</td>
|
|
117 |
|
</td>
|
118 |
|
</
tr>
|
|
118 |
|
</
tr>
|
119 |
|
<?
|
|
119 |
|
<?
|
120 |
|
}
|
|
120 |
|
}
|
121 |
|
?>
|
|
121 |
|
?>
|
122 |
|
<t
r>
|
|
122 |
|
<t
r>
|
123 |
|
<td cols
pan="3">
|
|
123 |
|
<td cols
pan="3">
|
124 |
|
<tab
le cellpad
ding="0" c
ellspacing
="0" borde
r="0" widt
h="100%">
|
|
124 |
|
<tab
le cellpad
ding="0" c
ellspacing
="0" borde
r="0" widt
h="100%">
|
125 |
|
<tr>
|
|
125 |
|
<tr>
|
126 |
|
<td al
ign="left"
><a href="
javascript
:void(null
);" onclic
k="javascr
ipt: windo
w.open('<?
= $_SERVER
['PHP_SELF
'] ?>?acti
on=help&am
p;prov_id=
<?= $provi
derArr['ID
'] ?>', 'w
<?= $provi
derArr['Na
me'] ?>Hel
pWindow',
'width=500
, height=4
00, left=3
50, top=10
0, scrollb
ars=yes, c
opyhistory
=no, direc
tories=no,
menubar=n
o, locatio
n=no, resi
zable=no')
;">Payment
provider
setup inst
ructions</
a></td>
|
|
126 |
|
<td al
ign="left"
><a href="
javascript
:void(null
);" onclic
k="javascr
ipt: windo
w.open('<?
= $_SERVER
['PHP_SELF
'] ?>?acti
on=help&am
p;prov_id=
<?= $provi
derArr['ID
'] ?>', 'w
<?= $provi
derArr['Na
me'] ?>Hel
pWindow',
'width=500
, height=4
00, left=3
50, top=10
0, scrollb
ars=yes, c
opyhistory
=no, direc
tories=no,
menubar=n
o, locatio
n=no, resi
zable=no')
;">Payment
provider
setup inst
ructions</
a></td>
|
127 |
|
<td al
ign="right
" width="6
0" style="
padding-ri
ght: 2px;"
><input ty
pe="submit
" class="n
o" name="p
rovider_sa
ve" value=
"Save" sty
le="width:
60px; ver
tical-alig
n: middle;
" /></td>
|
|
127 |
|
<td al
ign="right
" width="6
0" style="
padding-ri
ght: 2px;"
><input ty
pe="submit
" class="n
o" name="p
rovider_sa
ve" value=
"Save" sty
le="width:
60px; ver
tical-alig
n: middle;
" /></td>
|
128 |
|
<td al
ign="right
" width="1
90"><input
type="sub
mit" class
="no" name
="provider
_validate"
value="Va
lidate sav
ed configu
ration" st
yle="width
: 190px; v
ertical-al
ign: middl
e;" /></td
>
|
|
128 |
|
<td al
ign="right
" width="1
90"><input
type="sub
mit" class
="no" name
="provider
_validate"
value="Va
lidate sav
ed configu
ration" st
yle="width
: 190px; v
ertical-al
ign: middl
e;" /></td
>
|
129 |
|
</tr>
|
|
129 |
|
</tr>
|
130 |
|
</ta
ble>
|
|
130 |
|
</ta
ble>
|
131 |
|
</td>
|
|
131 |
|
</td>
|
132 |
|
</
tr>
|
|
132 |
|
</
tr>
|
133 |
|
</tabl
e>
|
|
133 |
|
</tabl
e>
|
134 |
|
</div>
|
|
134 |
|
</div>
|
135 |
|
</form>
|
|
135 |
|
</form>
|
136 |
|
<?
|
|
136 |
|
<?
|
137 |
|
}
|
|
137 |
|
}
|
138 |
|
|
|
138 |
|
|
139 |
|
/**
|
|
139 |
|
/**
|
140 |
|
* Saves p
ayment pro
vider sett
ings and p
arameters
to the dat
abase
|
|
140 |
|
* Saves p
ayment pro
vider sett
ings and p
arameters
to the dat
abase
|
141 |
|
*
|
|
141 |
|
*
|
142 |
|
* @param
int $provi
derID
- payment
provider I
D
|
|
142 |
|
* @param
int $provi
derID
- payment
provider I
D
|
143 |
|
*
|
|
143 |
|
*
|
144 |
|
*
|
|
144 |
|
*
|
145 |
|
*/
|
|
145 |
|
*/
|
146 |
|
function P
PSaveProvi
derData( $
providerID
)
|
|
146 |
|
function P
PSaveProvi
derData( $
providerID
)
|
147 |
|
{
|
|
147 |
|
{
|
148 |
|
$provi
derActive
= $_POST['
provider_a
ctive'] ==
'on' ? '1
' : '0';
|
|
148 |
|
$provi
derActive
= $_POST['
provider_a
ctive'] ==
'on' ? '1
' : '0';
|
149 |
|
switch
( $_POST[
'provider_
mode'] )
|
|
149 |
|
switch
( $_POST[
'provider_
mode'] )
|
150 |
|
{
|
|
150 |
|
{
|
151 |
|
ca
se 'live':
|
|
151 |
|
ca
se 'live':
|
152 |
|
ca
se 'test-a
pprove':
|
|
152 |
|
ca
se 'test-a
pprove':
|
153 |
|
ca
se 'test-d
ecline':
|
|
153 |
|
ca
se 'test-d
ecline':
|
154 |
|
$provide
rMode = $_
POST['prov
ider_mode'
];
|
|
154 |
|
$provide
rMode = $_
POST['prov
ider_mode'
];
|
155 |
|
break;
|
|
155 |
|
break;
|
156 |
|
de
fault:
|
|
156 |
|
de
fault:
|
157 |
|
$provide
rMode = 'l
ive';
|
|
157 |
|
$provide
rMode = 'l
ive';
|
158 |
|
break;
|
|
158 |
|
break;
|
159 |
|
}
|
|
159 |
|
}
|
160 |
|
$provi
derDebug =
$_POST['p
rovider_de
bug'] == '
on' ? '1'
: '0';
|
|
160 |
|
$provi
derDebug =
$_POST['p
rovider_de
bug'] == '
on' ? '1'
: '0';
|
161 |
|
|
|
161 |
|
|
162 |
|
$res =
db_res( "
UPDATE `Pa
ymentProvi
ders` SET
|
|
162 |
|
$res =
db_res( "
UPDATE `Pa
ymentProvi
ders` SET
|
163 |
|
`Activ
e` = {$pro
viderActiv
e},
|
|
163 |
|
`Activ
e` = {$pro
viderActiv
e},
|
164 |
|
`Mode`
= '{$prov
iderMode}'
,
|
|
164 |
|
`Mode`
= '{$prov
iderMode}'
,
|
165 |
|
`Debug
` = {$prov
iderDebug}
|
|
165 |
|
`Debug
` = {$prov
iderDebug}
|
166 |
|
WHERE `ID`
= {$provi
derID}" );
|
|
166 |
|
WHERE `ID`
= {$provi
derID}" );
|
167 |
|
|
|
167 |
|
|
168 |
|
if ( !
$res )
|
|
168 |
|
if ( !
$res )
|
169 |
|
re
turn false
;
|
|
169 |
|
re
turn false
;
|
170 |
|
|
|
170 |
|
|
171 |
|
$param
Res = db_r
es( "SELEC
T `ID`, `N
ame`, `Typ
e` FROM `P
aymentPara
meters` WH
ERE `IDPro
vider` = {
$providerI
D} AND `Ch
angable` O
RDER BY `I
D`" );
|
|
171 |
|
$param
Res = db_r
es( "SELEC
T `ID`, `N
ame`, `Typ
e` FROM `P
aymentPara
meters` WH
ERE `IDPro
vider` = {
$providerI
D} AND `Ch
angable` O
RDER BY `I
D`" );
|
172 |
|
while
( $paramAr
r = mysql_
fetch_asso
c($paramRe
s) )
|
|
172 |
|
while
( $paramAr
r = mysql_
fetch_asso
c($paramRe
s) )
|
173 |
|
{
|
|
173 |
|
{
|
174 |
|
$p
aramValue
= process_
db_input(
$_POST["pr
ovider_{$p
aramArr['N
ame']}"] )
;
|
|
174 |
|
$p
aramValue
= process_
db_input(
$_POST["pr
ovider_{$p
aramArr['N
ame']}"] )
;
|
175 |
|
$r
es = db_re
s( "UPDATE
`PaymentP
arameters`
SET `Valu
e` = '{$pa
ramValue}'
WHERE `ID
` = {$para
mArr['ID']
}" );
|
|
175 |
|
$r
es = db_re
s( "UPDATE
`PaymentP
arameters`
SET `Valu
e` = '{$pa
ramValue}'
WHERE `ID
` = {$para
mArr['ID']
}" );
|
176 |
|
if
( !$res )
|
|
176 |
|
if
( !$res )
|
177 |
|
return f
alse;
|
|
177 |
|
return f
alse;
|
178 |
|
}
|
|
178 |
|
}
|
179 |
|
|
|
179 |
|
|
180 |
|
return
true;
|
|
180 |
|
return
true;
|
181 |
|
}
|
|
181 |
|
}
|
182 |
|
|
|
182 |
|
|
183 |
|
/**
|
|
183 |
|
/**
|
184 |
|
* Prints
payment pr
ovider set
up help me
ssage
|
|
184 |
|
* Prints
payment pr
ovider set
up help me
ssage
|
185 |
|
*
|
|
185 |
|
*
|
186 |
|
* @param
int $provi
derID
- payment
provider I
D
|
|
186 |
|
* @param
int $provi
derID
- payment
provider I
D
|
187 |
|
*
|
|
187 |
|
*
|
188 |
|
* @return
string
- HTML con
tent of he
lp body
|
|
188 |
|
* @return
string
- HTML con
tent of he
lp body
|
189 |
|
*
|
|
189 |
|
*
|
190 |
|
*
|
|
190 |
|
*
|
191 |
|
*/
|
|
191 |
|
*/
|
192 |
|
function P
PShowHelp(
$provider
ID )
|
|
192 |
|
function P
PShowHelp(
$provider
ID )
|
193 |
|
{
|
|
193 |
|
{
|
194 |
|
$style
s = <<<EOS
|
|
194 |
|
$style
s = <<<EOS
|
195 |
|
p.help
_text
|
|
195 |
|
p.help
_text
|
196 |
|
{
|
|
196 |
|
{
|
197 |
|
fo
nt-family:
Arial;
|
|
197 |
|
fo
nt-family:
Arial;
|
198 |
|
fo
nt-size: s
mall;
|
|
198 |
|
fo
nt-size: s
mall;
|
199 |
|
fo
nt-weight:
normal;
|
|
199 |
|
fo
nt-weight:
normal;
|
200 |
|
co
lor: black
;
|
|
200 |
|
co
lor: black
;
|
201 |
|
te
xt-align:
justify;
|
|
201 |
|
te
xt-align:
justify;
|
202 |
|
}
|
|
202 |
|
}
|
203 |
|
|
|
203 |
|
|
204 |
|
p.help
_caption
|
|
204 |
|
p.help
_caption
|
205 |
|
{
|
|
205 |
|
{
|
206 |
|
fo
nt-family:
Arial;
|
|
206 |
|
fo
nt-family:
Arial;
|
207 |
|
fo
nt-size: m
edium;
|
|
207 |
|
fo
nt-size: m
edium;
|
208 |
|
fo
nt-weight:
bold;
|
|
208 |
|
fo
nt-weight:
bold;
|
209 |
|
co
lor: black
;
|
|
209 |
|
co
lor: black
;
|
210 |
|
te
xt-align:
left;
|
|
210 |
|
te
xt-align:
left;
|
211 |
|
}
|
|
211 |
|
}
|
212 |
|
EOS;
|
|
212 |
|
EOS;
|
213 |
|
|
|
213 |
|
|
214 |
|
ob_sta
rt();
|
|
214 |
|
ob_sta
rt();
|
215 |
|
|
|
215 |
|
|
216 |
|
$provi
derRes = d
b_res( "SE
LECT `Capt
ion`, `Hel
p` FROM `P
aymentProv
iders` WHE
RE `ID` =
$providerI
D" );
|
|
216 |
|
$provi
derRes = d
b_res( "SE
LECT `Capt
ion`, `Hel
p` FROM `P
aymentProv
iders` WHE
RE `ID` =
$providerI
D" );
|
217 |
|
$provi
derArr = m
ysql_fetch
_assoc($pr
oviderRes)
;
|
|
217 |
|
$provi
derArr = m
ysql_fetch
_assoc($pr
oviderRes)
;
|
218 |
|
?>
|
|
218 |
|
?>
|
219 |
|
<h3 style=
"font-fami
ly: Arial;
font-size
: large; f
ont-weight
: normal;
color: bla
ck;"><b><?
= process_
line_outpu
t($provide
rArr['Capt
ion']) ?><
/b> setup
instructio
ns</h3>
|
|
219 |
|
<h3 style=
"font-fami
ly: Arial;
font-size
: large; f
ont-weight
: normal;
color: bla
ck;"><b><?
= process_
line_outpu
t($provide
rArr['Capt
ion']) ?><
/b> setup
instructio
ns</h3>
|
220 |
|
<?= proces
s_html_out
put($provi
derArr['He
lp'], 255)
?>
|
|
220 |
|
<?= proces
s_html_out
put($provi
derArr['He
lp'], 255)
?>
|
221 |
|
<?
|
|
221 |
|
<?
|
222 |
|
|
|
222 |
|
|
223 |
|
$conte
nt = ob_ge
t_contents
();
|
|
223 |
|
$conte
nt = ob_ge
t_contents
();
|
224 |
|
ob_end
_clean();
|
|
224 |
|
ob_end
_clean();
|
225 |
|
return
PopupPage
Template(
'Payment p
rovider se
tup instru
ctions', $
content, '
', $styles
);
|
|
225 |
|
return
PopupPage
Template(
'Payment p
rovider se
tup instru
ctions', $
content, '
', $styles
);
|
226 |
|
}
|
|
226 |
|
}
|
227 |
|
|
|
227 |
|
|
228 |
|
|
|
228 |
|
|
229 |
|
$settings_
status_tex
t = '';
|
|
229 |
|
$settings_
status_tex
t = '';
|
230 |
|
$status_te
xt = '';
|
|
230 |
|
$status_te
xt = '';
|
231 |
|
|
|
231 |
|
|
232 |
|
if ( $_REQ
UEST['acti
on'] == 'h
elp' && (i
nt)$_REQUE
ST['prov_i
d'] )
|
|
232 |
|
if ( $_REQ
UEST['acti
on'] == 'h
elp' && (i
nt)$_REQUE
ST['prov_i
d'] )
|
233 |
|
{
|
|
233 |
|
{
|
234 |
|
$provi
der_id = (
int)$_REQU
EST['prov_
id'];
|
|
234 |
|
$provi
der_id = (
int)$_REQU
EST['prov_
id'];
|
235 |
|
echo P
PShowHelp(
$provider_
id);
|
|
235 |
|
echo P
PShowHelp(
$provider_
id);
|
236 |
|
exit()
;
|
|
236 |
|
exit()
;
|
237 |
|
}
|
|
237 |
|
}
|
238 |
|
elseif ( $
_REQUEST['
action'] =
= 'validat
e_or_save'
&& isset(
$_REQUEST[
'provider_
save']) &&
(int)$_RE
QUEST['pro
v_id'] )
|
|
238 |
|
elseif ( $
_REQUEST['
action'] =
= 'validat
e_or_save'
&& isset(
$_REQUEST[
'provider_
save']) &&
(int)$_RE
QUEST['pro
v_id'] )
|
239 |
|
{
|
|
239 |
|
{
|
240 |
|
$provi
der_id = (
int)$_REQU
EST['prov_
id'];
|
|
240 |
|
$provi
der_id = (
int)$_REQU
EST['prov_
id'];
|
241 |
|
$save_
res = PPSa
veProvider
Data( $pro
vider_id )
;
|
|
241 |
|
$save_
res = PPSa
veProvider
Data( $pro
vider_id )
;
|
242 |
|
if ( $
save_res )
|
|
242 |
|
if ( $
save_res )
|
243 |
|
$s
tatus_text
= 'Paymen
t provider
settings
were succe
ssfully sa
ved';
|
|
243 |
|
$s
tatus_text
= 'Paymen
t provider
settings
were succe
ssfully sa
ved';
|
244 |
|
else
|
|
244 |
|
else
|
245 |
|
$s
tatus_text
= 'Failed
to save p
ayment pro
vider sett
ings';
|
|
245 |
|
$s
tatus_text
= 'Failed
to save p
ayment pro
vider sett
ings';
|
246 |
|
}
|
|
246 |
|
}
|
247 |
|
elseif ( $
_REQUEST['
action'] =
= 'validat
e_or_save'
&& isset(
$_REQUEST[
'provider_
validate']
) && (int)
$_REQUEST[
'prov_id']
)
|
|
247 |
|
elseif ( $
_REQUEST['
action'] =
= 'validat
e_or_save'
&& isset(
$_REQUEST[
'provider_
validate']
) && (int)
$_REQUEST[
'prov_id']
)
|
248 |
|
{
|
|
248 |
|
{
|
249 |
|
$provi
der_id = (
int)$_REQU
EST['prov_
id'];
|
|
249 |
|
$provi
der_id = (
int)$_REQU
EST['prov_
id'];
|
250 |
|
$provi
der_res =
db_res( "S
ELECT `Nam
e`, `Check
outFilenam
e` FROM `P
aymentProv
iders` WHE
RE `ID` =
{$provider
_id}" );
|
|
250 |
|
$provi
der_res =
db_res( "S
ELECT `Nam
e`, `Check
outFilenam
e` FROM `P
aymentProv
iders` WHE
RE `ID` =
{$provider
_id}" );
|
251 |
|
if ( !
$provider_
res || mys
ql_num_row
s($provide
r_res) ==
0 )
|
|
251 |
|
if ( !
$provider_
res || mys
ql_num_row
s($provide
r_res) ==
0 )
|
252 |
|
{
|
|
252 |
|
{
|
253 |
|
$s
tatus_text
= 'Wrong
payment pr
ovider spe
cified';
|
|
253 |
|
$s
tatus_text
= 'Wrong
payment pr
ovider spe
cified';
|
254 |
|
}
|
|
254 |
|
}
|
255 |
|
else
|
|
255 |
|
else
|
256 |
|
{
|
|
256 |
|
{
|
257 |
|
$p
rovider_ar
r = mysql_
fetch_asso
c( $provid
er_res );
|
|
257 |
|
$p
rovider_ar
r = mysql_
fetch_asso
c( $provid
er_res );
|
258 |
|
if
( strlen(
trim($prov
ider_arr['
CheckoutFi
lename']))
)
|
|
258 |
|
if
( strlen(
trim($prov
ider_arr['
CheckoutFi
lename']))
)
|
259 |
|
$checkou
t_filename
= $provid
er_arr['Ch
eckoutFile
name'];
|
|
259 |
|
$checkou
t_filename
= $provid
er_arr['Ch
eckoutFile
name'];
|
260 |
|
el
se
|
|
260 |
|
el
se
|
261 |
|
$checkou
t_filename
= $dir['c
heckout']
. $provide
r_arr['Nam
e'] . '.ph
p';
|
|
261 |
|
$checkou
t_filename
= $dir['c
heckout']
. $provide
r_arr['Nam
e'] . '.ph
p';
|
262 |
|
if
( !file_e
xists( $ch
eckout_fil
ename ) )
|
|
262 |
|
if
( !file_e
xists( $ch
eckout_fil
ename ) )
|
263 |
|
{
|
|
263 |
|
{
|
264 |
|
$status_
text = 'Ch
eckout fil
e not foun
d';
|
|
264 |
|
$status_
text = 'Ch
eckout fil
e not foun
d';
|
265 |
|
}
|
|
265 |
|
}
|
266 |
|
el
se
|
|
266 |
|
el
se
|
267 |
|
{
|
|
267 |
|
{
|
268 |
|
require_
once( $che
ckout_file
name );
|
|
268 |
|
require_
once( $che
ckout_file
name );
|
269 |
|
|
|
269 |
|
|
270 |
|
$validat
e_res = mo
duleValida
teConfigur
ation( $st
atus_text
);
|
|
270 |
|
$validat
e_res = mo
duleValida
teConfigur
ation( $st
atus_text
);
|
271 |
|
if ( $va
lidate_res
)
|
|
271 |
|
if ( $va
lidate_res
)
|
272 |
|
{
|
|
272 |
|
{
|
273 |
|
$sta
tus_text =
'Configur
ation is v
alid';
|
|
273 |
|
$sta
tus_text =
'Configur
ation is v
alid';
|
274 |
|
}
|
|
274 |
|
}
|
275 |
|
}
|
|
275 |
|
}
|
276 |
|
}
|
|
276 |
|
}
|
277 |
|
}
|
|
277 |
|
}
|
278 |
|
elseif ( $
_REQUEST['
action'] =
= 'save_se
ttings' )
|
|
278 |
|
elseif ( $
_REQUEST['
action'] =
= 'save_se
ttings' )
|
279 |
|
{
|
|
279 |
|
{
|
280 |
|
$res_s
etparam1 =
setParam(
'currency
_code', $_
POST['curr
ency_code'
] );
|
|
280 |
|
$res_s
etparam1 =
setParam(
'currency
_code', $_
POST['curr
ency_code'
] );
|
281 |
|
$res_s
etparam3 =
setParam(
'enable_r
ecurring',
$_POST['e
nable_recu
rring'] );
|
|
281 |
|
$res_s
etparam3 =
setParam(
'enable_r
ecurring',
$_POST['e
nable_recu
rring'] );
|
282 |
|
if ( $
res_setpar
am1 && $re
s_setparam
3 )
|
|
282 |
|
if ( $
res_setpar
am1 && $re
s_setparam
3 )
|
283 |
|
{
|
|
283 |
|
{
|
284 |
|
$c
urrency_co
de = proce
ss_pass_da
ta($_POST[
'currency_
code']);
|
|
284 |
|
$c
urrency_co
de = proce
ss_pass_da
ta($_POST[
'currency_
code']);
|
285 |
|
$e
nable_recu
rring = $_
POST['enab
le_recurri
ng'] == 'o
n';
|
|
285 |
|
$e
nable_recu
rring = $_
POST['enab
le_recurri
ng'] == 'o
n';
|
286 |
|
$s
ettings_st
atus_text
= 'Setting
s successf
ully saved
';
|
|
286 |
|
$s
ettings_st
atus_text
= 'Setting
s successf
ully saved
';
|
287 |
|
}
|
|
287 |
|
}
|
288 |
|
else
|
|
288 |
|
else
|
289 |
|
{
|
|
289 |
|
{
|
290 |
|
$s
ettings_st
atus_text
= 'Failed
to save se
ttings';
|
|
290 |
|
$s
ettings_st
atus_text
= 'Failed
to save se
ttings';
|
291 |
|
}
|
|
291 |
|
}
|
292 |
|
}
|
|
292 |
|
}
|
293 |
|
|
|
293 |
|
|
294 |
|
TopCodeAdm
in();
|
|
294 |
|
TopCodeAdm
in();
|
295 |
|
ContentBlo
ckHead("Co
mmon setti
ngs");
|
|
295 |
|
ContentBlo
ckHead("Co
mmon setti
ngs");
|
296 |
|
|
|
296 |
|
|
297 |
|
if ( strle
n($setting
s_status_t
ext) )
|
|
297 |
|
if ( strle
n($setting
s_status_t
ext) )
|
298 |
|
echo "
|
|
298 |
|
echo "
|
299 |
|
<center>
|
|
299 |
|
<center>
|
300 |
|
<div c
lass=\"err
\">{$setti
ngs_status
_text}</di
v>
|
|
300 |
|
<div c
lass=\"err
\">{$setti
ngs_status
_text}</di
v>
|
301 |
|
</center>"
;
|
|
301 |
|
</center>"
;
|
302 |
|
?>
|
|
302 |
|
?>
|
303 |
|
|
|
303 |
|
|
304 |
|
<center>
|
|
304 |
|
<center>
|
305 |
|
<form id="
settingsFo
rm" action
="<?= $_SE
RVER['PHP_
SELF'] ?>"
method="p
ost" style
="margin:
0px;">
|
|
305 |
|
<form id="
settingsFo
rm" action
="<?= $_SE
RVER['PHP_
SELF'] ?>"
method="p
ost" style
="margin:
0px;">
|
306 |
|
<input typ
e="hidden"
name="act
ion" value
="save_set
tings" />
|
|
306 |
|
<input typ
e="hidden"
name="act
ion" value
="save_set
tings" />
|
307 |
|
<div class
="section_
header" st
yle="width
: 440px; m
argin: 2px
;">Setting
s</div>
|
|
307 |
|
<div class
="section_
header" st
yle="width
: 440px; m
argin: 2px
;">Setting
s</div>
|
308 |
|
<div class
="section_
row" style
="width: 4
40px; padd
ing: 2px;"
>
|
|
308 |
|
<div class
="section_
row" style
="width: 4
40px; padd
ing: 2px;"
>
|
309 |
|
<table
cellpaddi
ng="4" cel
lspacing="
0" border=
"0" width=
"100%" cla
ss="text">
|
|
309 |
|
<table
cellpaddi
ng="4" cel
lspacing="
0" border=
"0" width=
"100%" cla
ss="text">
|
310 |
|
<t
r>
|
|
310 |
|
<t
r>
|
311 |
|
<td alig
n="left"><
?= getPara
mDesc('cur
rency_code
') ?></td>
|
|
311 |
|
<td alig
n="left"><
?= getPara
mDesc('cur
rency_code
') ?></td>
|
312 |
|
<td alig
n="right"
width="24"
>
|
|
312 |
|
<td alig
n="right"
width="24"
>
|
313 |
|
<sel
ect name="
currency_c
ode" style
="width: 2
00px;">
|
|
313 |
|
<sel
ect name="
currency_c
ode" style
="width: 2
00px;">
|
314 |
|
<?
|
|
314 |
|
<?
|
315 |
|
$code_
res = db_r
es( "SELEC
T `Currenc
yCode`, `C
urrency` F
ROM `Count
ries` WHE
RE `Curren
cyCode` IS
NOT NULL
GROUP BY `
CurrencyCo
de`" );
|
|
315 |
|
$code_
res = db_r
es( "SELEC
T `Currenc
yCode`, `C
urrency` F
ROM `Count
ries` WHE
RE `Curren
cyCode` IS
NOT NULL
GROUP BY `
CurrencyCo
de`" );
|
316 |
|
while
( $code_ar
r = mysql_
fetch_asso
c($code_re
s) )
|
|
316 |
|
while
( $code_ar
r = mysql_
fetch_asso
c($code_re
s) )
|
317 |
|
{
|
|
317 |
|
{
|
318 |
|
ec
ho "<optio
n value=\"
{$code_arr
['Currency
Code']}\"
". ($curre
ncy_code =
= $code_ar
r['Currenc
yCode'] ?
'selected=
"selected"
' : '') ."
>{$code_ar
r['Currenc
yCode']} (
{$code_arr
['Currency
']})</opti
on>\n";
|
|
318 |
|
ec
ho "<optio
n value=\"
{$code_arr
['Currency
Code']}\"
". ($curre
ncy_code =
= $code_ar
r['Currenc
yCode'] ?
'selected=
"selected"
' : '') ."
>{$code_ar
r['Currenc
yCode']} (
{$code_arr
['Currency
']})</opti
on>\n";
|
319 |
|
}
|
|
319 |
|
}
|
320 |
|
?>
|
|
320 |
|
?>
|
321 |
|
</se
lect>
|
|
321 |
|
</se
lect>
|
322 |
|
</td>
|
|
322 |
|
</td>
|
323 |
|
</
tr>
|
|
323 |
|
</
tr>
|
324 |
|
<t
r>
|
|
324 |
|
<t
r>
|
325 |
|
<td alig
n="left">
|
|
325 |
|
<td alig
n="left">
|
326 |
|
<lab
el for="en
able_recur
ring_id"><
?= getPara
mDesc('ena
ble_recurr
ing') ?></
label>
|
|
326 |
|
<lab
el for="en
able_recur
ring_id"><
?= getPara
mDesc('ena
ble_recurr
ing') ?></
label>
|
327 |
|
</td>
|
|
327 |
|
</td>
|
328 |
|
<td alig
n="right"
width="24"
>
|
|
328 |
|
<td alig
n="right"
width="24"
>
|
329 |
|
<inp
ut type="c
heckbox" c
lass="no"
name="enab
le_recurri
ng" id="en
able_recur
ring_id" <
?= $enable
_recurring
? 'checke
d="checked
"' : '' ?>
/>
|
|
329 |
|
<inp
ut type="c
heckbox" c
lass="no"
name="enab
le_recurri
ng" id="en
able_recur
ring_id" <
?= $enable
_recurring
? 'checke
d="checked
"' : '' ?>
/>
|
330 |
|
</td>
|
|
330 |
|
</td>
|
331 |
|
</
tr>
|
|
331 |
|
</
tr>
|
332 |
|
<t
r>
|
|
332 |
|
<t
r>
|
333 |
|
<td alig
n="center"
colspan="
2"><input
type="subm
it" class=
"no" name=
"settings_
save" valu
e="Save" s
tyle="widt
h: 60px;"
/></td>
|
|
333 |
|
<td alig
n="center"
colspan="
2"><input
type="subm
it" class=
"no" name=
"settings_
save" valu
e="Save" s
tyle="widt
h: 60px;"
/></td>
|
334 |
|
</
tr>
|
|
334 |
|
</
tr>
|
335 |
|
</tabl
e>
|
|
335 |
|
</tabl
e>
|
336 |
|
</div>
|
|
336 |
|
</div>
|
337 |
|
</form>
|
|
337 |
|
</form>
|
338 |
|
</center>
|
|
338 |
|
</center>
|
339 |
|
|
|
339 |
|
|
340 |
|
<?
|
|
340 |
|
<?
|
341 |
|
ContentBlo
ckFoot();
|
|
341 |
|
ContentBlo
ckFoot();
|
342 |
|
ContentBlo
ckHead("Ma
nage payme
nt provide
rs");
|
|
342 |
|
ContentBlo
ckHead("Ma
nage payme
nt provide
rs");
|
343 |
|
|
|
343 |
|
|
344 |
|
if ( strle
n($status_
text) )
|
|
344 |
|
if ( strle
n($status_
text) )
|
345 |
|
echo "
|
|
345 |
|
echo "
|
346 |
|
<center>
|
|
346 |
|
<center>
|
347 |
|
<div c
lass=\"err
\">{$statu
s_text}</d
iv>
|
|
347 |
|
<div c
lass=\"err
\">{$statu
s_text}</d
iv>
|
348 |
|
</center>"
;
|
|
348 |
|
</center>"
;
|
349 |
|
?>
|
|
349 |
|
?>
|
350 |
|
|
|
350 |
|
|
351 |
|
<center>
|
|
351 |
|
<center>
|
352 |
|
|
|
352 |
|
|
353 |
|
<?
|
|
353 |
|
<?
|
354 |
|
$payments_
res = db_r
es( "SELEC
T `ID`, `N
ame`, `Cap
tion`, `Ac
tive`, `Mo
de`, `Debu
g`, `Suppo
rtsRecurri
ng`, `Logo
Filename`
FROM `Paym
entProvide
rs`" );
|
|
354 |
|
$payments_
res = db_r
es( "SELEC
T `ID`, `N
ame`, `Cap
tion`, `Ac
tive`, `Mo
de`, `Debu
g`, `Suppo
rtsRecurri
ng`, `Logo
Filename`
FROM `Paym
entProvide
rs`" );
|
355 |
|
while ( $p
ayment_arr
= mysql_f
etch_assoc
($payments
_res) )
|
|
355 |
|
while ( $p
ayment_arr
= mysql_f
etch_assoc
($payments
_res) )
|
356 |
|
{
|
|
356 |
|
{
|
357 |
|
PPShow
ProviderBo
x( $paymen
t_arr );
|
|
357 |
|
PPShow
ProviderBo
x( $paymen
t_arr );
|
358 |
|
}
|
|
358 |
|
}
|
359 |
|
?>
|
|
359 |
|
?>
|
360 |
|
|
|
360 |
|
|
361 |
|
</center>
|
|
361 |
|
</center>
|
362 |
|
|
|
362 |
|
|
363 |
|
<?
|
|
363 |
|
<?
|
364 |
|
|
|
364 |
|
|
365 |
|
ContentBlo
ckFoot();
|
|
365 |
|
ContentBlo
ckFoot();
|
366 |
|
BottomCode
();
|
|
366 |
|
BottomCode
();
|
367 |
|
?>
|
|
367 |
|
?>
|