No regular expressions were active.
1 |
|
<?
|
|
1 |
|
<?
|
2 |
|
/*********
**********
**********
**********
**********
**********
**********
******
|
|
2 |
|
/*********
**********
**********
**********
**********
**********
**********
******
|
3 |
|
*
|
|
3 |
|
*
|
4 |
|
* IMPORTAN
T: This is
a commerc
ial produc
t made by
BoonEx Ltd
. and cann
ot be modi
fied for o
ther than
personal u
sage.
|
|
4 |
|
* IMPORTAN
T: This is
a commerc
ial produc
t made by
BoonEx Ltd
. and cann
ot be modi
fied for o
ther than
personal u
sage.
|
5 |
|
* This pro
duct canno
t be redis
tributed f
or free or
a fee wit
hout writt
en permiss
ion from B
oonEx Ltd.
|
|
5 |
|
* This pro
duct canno
t be redis
tributed f
or free or
a fee wit
hout writt
en permiss
ion from B
oonEx Ltd.
|
6 |
|
* This not
ice may no
t be remov
ed from th
e source c
ode.
|
|
6 |
|
* This not
ice may no
t be remov
ed from th
e source c
ode.
|
7 |
|
*
|
|
7 |
|
*
|
8 |
|
**********
**********
**********
**********
**********
**********
**********
*****/
|
|
8 |
|
**********
**********
**********
**********
**********
**********
**********
*****/
|
|
|
9 |
|
|
|
|
10 |
|
require_on
ce('header
.inc.php')
;
|
9 |
|
require_on
ce($sIncPa
th . "xml.
inc.php");
|
|
11 |
|
require_on
ce($sIncPa
th . "xml.
inc.php");
|
10 |
|
require_on
ce($sIncPa
th . "cons
tants.inc.
php");
|
|
12 |
|
require_on
ce($sIncPa
th . "cons
tants.inc.
php");
|
11 |
|
require_on
ce($sIncPa
th . "apiF
unctions.i
nc.php");
|
|
13 |
|
require_on
ce($sIncPa
th . "apiF
unctions.i
nc.php");
|
12 |
|
|
|
14 |
|
|
13 |
|
function i
sBoonexWid
getsRegist
ered()
|
|
15 |
|
function i
sBoonexWid
getsRegist
ered()
|
14 |
|
{
|
|
16 |
|
{
|
15 |
|
global
$sGlobalD
ir;
|
|
17 |
|
global
$sGlobalD
ir;
|
16 |
|
return
getSettin
gValue($sG
lobalDir,
"registere
d") == TRU
E_VAL;
|
|
18 |
|
return
getSettin
gValue($sG
lobalDir,
"registere
d") == TRU
E_VAL;
|
17 |
|
}
|
|
19 |
|
}
|
18 |
|
|
|
20 |
|
|
19 |
|
function g
etRayInteg
rationJS()
|
|
21 |
|
function g
etRayInteg
rationJS()
|
20 |
|
{
|
|
22 |
|
{
|
21 |
|
global
$sHomeUrl
;
|
|
23 |
|
global
$sHomeUrl
;
|
22 |
|
global
$sGlobalP
ath;
|
|
24 |
|
global
$sGlobalP
ath;
|
23 |
|
global
$sGlobalU
rl;
|
|
25 |
|
global
$sGlobalU
rl;
|
24 |
|
|
|
26 |
|
|
25 |
|
$sInte
grationDat
a = $sGlob
alPath . "
data/integ
ration.dat
";
|
|
27 |
|
$sInte
grationDat
a = $sGlob
alPath . "
data/integ
ration.dat
";
|
26 |
|
if(!fi
le_exists(
$sIntegrat
ionData) |
| filesize
($sIntegra
tionData)
== 0) retu
rn "";
|
|
28 |
|
if(!fi
le_exists(
$sIntegrat
ionData) |
| filesize
($sIntegra
tionData)
== 0) retu
rn "";
|
27 |
|
|
|
29 |
|
|
28 |
|
$sRetu
rn = '<scr
ipt type="
text/javas
cript" lan
guage="jav
ascript">v
ar sRayUrl
= "' . $s
HomeUrl .
'";' . @fi
le_get_con
tents($sIn
tegrationD
ata) . '</
script><sc
ript src="
' . $sGlob
alUrl . 'j
s/integrat
ion.js" ty
pe="text/j
avascript"
language=
"javascrip
t"></scrip
t>';
|
|
30 |
|
$sRetu
rn = '<scr
ipt type="
text/javas
cript" lan
guage="jav
ascript">v
ar sRayUrl
= "' . $s
HomeUrl .
'";' . @fi
le_get_con
tents($sIn
tegrationD
ata) . '</
script><sc
ript src="
' . $sGlob
alUrl . 'j
s/integrat
ion.js" ty
pe="text/j
avascript"
language=
"javascrip
t"></scrip
t>';
|
29 |
|
return
$sReturn;
|
|
31 |
|
return
$sReturn;
|
30 |
|
}
|
|
32 |
|
}
|
31 |
|
|
|
33 |
|
|
32 |
|
/**
|
|
34 |
|
/**
|
33 |
|
* Checks
if given w
idget exis
ts
|
|
35 |
|
* Checks
if given w
idget exis
ts
|
34 |
|
* @param
sWidget -
widget nam
e
|
|
36 |
|
* @param
sWidget -
widget nam
e
|
35 |
|
* @return
bExists -
true/fals
e
|
|
37 |
|
* @return
bExists -
true/fals
e
|
36 |
|
*/
|
|
38 |
|
*/
|
37 |
|
function w
idgetExist
s($sWidget
)
|
|
39 |
|
function w
idgetExist
s($sWidget
)
|
38 |
|
{
|
|
40 |
|
{
|
39 |
|
global
$sModules
Path;
|
|
41 |
|
global
$sModules
Path;
|
40 |
|
|
|
42 |
|
|
41 |
|
$sFile
Path = $sM
odulesPath
. $sWidge
t . "/xml/
main.xml";
|
|
43 |
|
$sFile
Path = $sM
odulesPath
. $sWidge
t . "/xml/
main.xml";
|
42 |
|
$bExis
ts = file_
exists($sF
ilePath) &
& filesize
($sFilePat
h) > 0;
|
|
44 |
|
$bExis
ts = file_
exists($sF
ilePath) &
& filesize
($sFilePat
h) > 0;
|
43 |
|
return
$bExists;
|
|
45 |
|
return
$bExists;
|
44 |
|
}
|
|
46 |
|
}
|
45 |
|
|
|
47 |
|
|
46 |
|
/**
|
|
48 |
|
/**
|
47 |
|
* Gets th
e embed co
de of nece
ssary widg
et's appli
cation.
|
|
49 |
|
* Gets th
e embed co
de of nece
ssary widg
et's appli
cation.
|
48 |
|
* @param
sModule -
module(wid
get) name.
|
|
50 |
|
* @param
sModule -
module(wid
get) name.
|
49 |
|
* @param
sApp - app
lication n
ame in the
widget.
|
|
51 |
|
* @param
sApp - app
lication n
ame in the
widget.
|
50 |
|
* @param
aParamValu
es - an as
sociative
array of p
arameters
to be pass
ed into th
e Flash ob
ject.
|
|
52 |
|
* @param
aParamValu
es - an as
sociative
array of p
arameters
to be pass
ed into th
e Flash ob
ject.
|
51 |
|
*/
|
|
53 |
|
*/
|
52 |
|
function g
etEmbedCod
e($sModule
, $sApp, $
aParamValu
es)
|
|
54 |
|
function g
etEmbedCod
e($sModule
, $sApp, $
aParamValu
es)
|
53 |
|
{
|
|
55 |
|
{
|
54 |
|
return
getApplic
ationConte
nt($sModul
e, $sApp,
$aParamVal
ues, true,
true);
|
|
56 |
|
return
getApplic
ationConte
nt($sModul
e, $sApp,
$aParamVal
ues, true,
true);
|
55 |
|
}
|
|
57 |
|
}
|
56 |
|
|
|
58 |
|
|
57 |
|
/**
|
|
59 |
|
/**
|
58 |
|
* Gets th
e content
of necessa
ry widget'
s applicat
ion.
|
|
60 |
|
* Gets th
e content
of necessa
ry widget'
s applicat
ion.
|
59 |
|
* @param
sModule -
module(wid
get) name.
|
|
61 |
|
* @param
sModule -
module(wid
get) name.
|
60 |
|
* @param
sApp - app
lication n
ame in the
widget.
|
|
62 |
|
* @param
sApp - app
lication n
ame in the
widget.
|
61 |
|
* @param
aParamValu
es - an as
sociative
array of p
arameters
to be pass
ed into th
e Flash ob
ject.
|
|
63 |
|
* @param
aParamValu
es - an as
sociative
array of p
arameters
to be pass
ed into th
e Flash ob
ject.
|
62 |
|
* @param
bInline -
whether yo
u want to
have it wi
th the ful
l page cod
e(for open
ing in a n
ew window)
|
|
64 |
|
* @param
bInline -
whether yo
u want to
have it wi
th the ful
l page cod
e(for open
ing in a n
ew window)
|
63 |
|
* or only
DIV with
flash obje
ct (for em
bedding in
to the exi
sting page
).
|
|
65 |
|
* or only
DIV with
flash obje
ct (for em
bedding in
to the exi
sting page
).
|
64 |
|
*/
|
|
66 |
|
*/
|
65 |
|
function g
etApplicat
ionContent
($sModule,
$sApp, $a
ParamValue
s = array(
), $bInlin
e = false,
$bEmbedCo
de = false
)
|
|
67 |
|
function g
etApplicat
ionContent
($sModule,
$sApp, $a
ParamValue
s = array(
), $bInlin
e = false,
$bEmbedCo
de = false
)
|
66 |
|
{
|
|
68 |
|
{
|
67 |
|
global
$sGlobalU
rl;
|
|
69 |
|
global
$sGlobalU
rl;
|
68 |
|
global
$sHomeUrl
;
|
|
70 |
|
global
$sHomeUrl
;
|
69 |
|
global
$sRayHome
Dir;
|
|
71 |
|
global
$sRayHome
Dir;
|
70 |
|
global
$sModules
Url;
|
|
72 |
|
global
$sModules
Url;
|
71 |
|
global
$sModules
Path;
|
|
73 |
|
global
$sModules
Path;
|
72 |
|
|
|
74 |
|
|
73 |
|
$sModu
le = isset
($sModule)
? $sModul
e : $_REQU
EST['modul
e'];
|
|
75 |
|
$sModu
le = isset
($sModule)
? $sModul
e : $_REQU
EST['modul
e'];
|
74 |
|
$sApp
= isset($s
App) ? $sA
pp : $_REQ
UEST['app'
];
|
|
76 |
|
$sApp
= isset($s
App) ? $sA
pp : $_REQ
UEST['app'
];
|
75 |
|
|
|
77 |
|
|
76 |
|
$sModu
leStatus =
getSettin
gValue($sM
odule, "st
atus", "ma
in");
|
|
78 |
|
$sModu
leStatus =
getSettin
gValue($sM
odule, "st
atus", "ma
in");
|
77 |
|
if($sM
oduleStatu
s == WIDGE
T_STATUS_N
OT_INSTALL
ED || $sMo
duleStatus
== WIDGET
_STATUS_DI
SABLED) re
turn "";
|
|
79 |
|
if($sM
oduleStatu
s == WIDGE
T_STATUS_N
OT_INSTALL
ED || $sMo
duleStatus
== WIDGET
_STATUS_DI
SABLED) re
turn "";
|
78 |
|
|
|
80 |
|
|
79 |
|
if(iss
et($aModul
es))unset(
$aModules)
;
|
|
81 |
|
if(iss
et($aModul
es))unset(
$aModules)
;
|
80 |
|
requir
e($sModule
sPath . $s
Module . "
/inc/heade
r.inc.php"
);
|
|
82 |
|
requir
e($sModule
sPath . $s
Module . "
/inc/heade
r.inc.php"
);
|
81 |
|
requir
e($sModule
sPath . $s
Module . "
/inc/const
ants.inc.p
hp");
|
|
83 |
|
requir
e($sModule
sPath . $s
Module . "
/inc/const
ants.inc.p
hp");
|
82 |
|
|
|
84 |
|
|
83 |
|
//---
Print cont
ainer ---/
/
|
|
85 |
|
//---
Print cont
ainer ---/
/
|
84 |
|
$sRayA
ppBaseDir
= $sModule
sUrl . $sM
odule . "/
";
|
|
86 |
|
$sRayA
ppBaseDir
= $sModule
sUrl . $sM
odule . "/
";
|
85 |
|
$sRayH
olderBaseD
ir = $sMod
ulesUrl .
"global/";
|
|
87 |
|
$sRayH
olderBaseD
ir = $sMod
ulesUrl .
"global/";
|
86 |
|
|
|
88 |
|
|
87 |
|
if(!is
set($bInli
ne))$bInli
ne = $aMod
ules[$sApp
]['inline'
];
|
|
89 |
|
if(!is
set($bInli
ne))$bInli
ne = $aMod
ules[$sApp
]['inline'
];
|
88 |
|
$iWidt
h = getSet
tingValue(
$sModule,
$sApp . "_
width");
|
|
90 |
|
$iWidt
h = getSet
tingValue(
$sModule,
$sApp . "_
width");
|
89 |
|
if(emp
ty($iWidth
)) $iWidth
= $aModul
es[$sApp][
'layout'][
'width'];
|
|
91 |
|
if(emp
ty($iWidth
)) $iWidth
= $aModul
es[$sApp][
'layout'][
'width'];
|
90 |
|
$iHeig
ht = getSe
ttingValue
($sModule,
$sApp . "
_height");
|
|
92 |
|
$iHeig
ht = getSe
ttingValue
($sModule,
$sApp . "
_height");
|
91 |
|
if(emp
ty($iHeigh
t)) $iHeig
ht = $aMod
ules[$sApp
]['layout'
]['height'
];
|
|
93 |
|
if(emp
ty($iHeigh
t)) $iHeig
ht = $aMod
ules[$sApp
]['layout'
]['height'
];
|
92 |
|
|
|
94 |
|
|
93 |
|
//---
Parameters
for conta
iner's div
---//
|
|
95 |
|
//---
Parameters
for conta
iner's div
---//
|
94 |
|
$sDivI
d = !empty
($aModules
[$sApp]['d
iv']['id']
) ? ' id="
' . $aModu
les[$sApp]
['div']['i
d'] . '"'
: '';
|
|
96 |
|
$sDivI
d = !empty
($aModules
[$sApp]['d
iv']['id']
) ? ' id="
' . $aModu
les[$sApp]
['div']['i
d'] . '"'
: '';
|
95 |
|
$sDivN
ame = !emp
ty($aModul
es[$sApp][
'div']['na
me']) ? '
name="' .
$aModules[
$sApp]['di
v']['name'
] . '"' :
'';
|
|
97 |
|
$sDivN
ame = !emp
ty($aModul
es[$sApp][
'div']['na
me']) ? '
name="' .
$aModules[
$sApp]['di
v']['name'
] . '"' :
'';
|
96 |
|
if(cou
nt($aModul
es[$sApp][
'div']['st
yle']))
|
|
98 |
|
if(cou
nt($aModul
es[$sApp][
'div']['st
yle']))
|
97 |
|
{
|
|
99 |
|
{
|
98 |
|
$s
DivStyle =
' style="
';
|
|
100 |
|
$s
DivStyle =
' style="
';
|
99 |
|
fo
reach($aMo
dules[$sAp
p]['div'][
'style'] a
s $sKey =>
$sValue)
|
|
101 |
|
fo
reach($aMo
dules[$sAp
p]['div'][
'style'] a
s $sKey =>
$sValue)
|
100 |
|
$sDivSty
le .= $sKe
y . ':' .
$sValue .
';';
|
|
102 |
|
$sDivSty
le .= $sKe
y . ':' .
$sValue .
';';
|
101 |
|
$s
DivStyle .
= '"';
|
|
103 |
|
$s
DivStyle .
= '"';
|
102 |
|
}
|
|
104 |
|
}
|
103 |
|
else $
sDivStyle=
'';
|
|
105 |
|
else $
sDivStyle=
'';
|
104 |
|
|
|
106 |
|
|
105 |
|
//---
Parameters
for SWF o
bject and
reloading
---//
|
|
107 |
|
//---
Parameters
for SWF o
bject and
reloading
---//
|
106 |
|
$aPara
metersRelo
ad = array
();
|
|
108 |
|
$aPara
metersRelo
ad = array
();
|
107 |
|
if(!is
set($_GET[
"module"])
)$aParamet
ersReload[
] = "modul
e=" . $sMo
dule;
|
|
109 |
|
if(!is
set($_GET[
"module"])
)$aParamet
ersReload[
] = "modul
e=" . $sMo
dule;
|
108 |
|
if(!is
set($_GET[
"app"]))$a
Parameters
Reload[] =
"app=" .
$sApp;
|
|
110 |
|
if(!is
set($_GET[
"app"]))$a
Parameters
Reload[] =
"app=" .
$sApp;
|
109 |
|
$sPara
meters = "
module=" .
$sModule
. "&ap
p=" . $sAp
p;
|
|
111 |
|
$sPara
meters = "
module=" .
$sModule
. "&ap
p=" . $sAp
p;
|
110 |
|
foreac
h($aModule
s[$sApp]['
parameters
'] as $sPa
rameter)
|
|
112 |
|
foreac
h($aModule
s[$sApp]['
parameters
'] as $sPa
rameter)
|
111 |
|
{
|
|
113 |
|
{
|
112 |
|
$s
Parameters
.= "&
" . $sPara
meter . "=
" . (isset
($aParamVa
lues[$sPar
ameter]) ?
$aParamVa
lues[$sPar
ameter] :
$_REQUEST[
$sParamete
r]);
|
|
114 |
|
$s
Parameters
.= "&
" . $sPara
meter . "=
" . (isset
($aParamVa
lues[$sPar
ameter]) ?
$aParamVa
lues[$sPar
ameter] :
$_REQUEST[
$sParamete
r]);
|
113 |
|
if
(!isset($_
GET[$sPara
meter]))$a
Parameters
Reload[] =
$sParamet
er . "=" .
(isset($a
ParamValue
s[$sParame
ter]) ? $a
ParamValue
s[$sParame
ter] : $_R
EQUEST[$sP
arameter])
;
|
|
115 |
|
if
(!isset($_
GET[$sPara
meter]))$a
Parameters
Reload[] =
$sParamet
er . "=" .
(isset($a
ParamValue
s[$sParame
ter]) ? $a
ParamValue
s[$sParame
ter] : $_R
EQUEST[$sP
arameter])
;
|
114 |
|
}
|
|
116 |
|
}
|
115 |
|
$sPara
meters .=
"&url=
" . $sHome
Url . "XML
.php";
|
|
117 |
|
$sPara
meters .=
"&url=
" . $sHome
Url . "XML
.php";
|
116 |
|
switch
($aInfo['m
ode'])
|
|
118 |
|
switch
($aInfo['m
ode'])
|
117 |
|
{
|
|
119 |
|
{
|
118 |
|
ca
se 'as3':
|
|
120 |
|
ca
se 'as3':
|
119 |
|
$sHolder
= "holder
_as3.swf";
|
|
121 |
|
$sHolder
= "holder
_as3.swf";
|
120 |
|
break;
|
|
122 |
|
break;
|
121 |
|
ca
se 'paid':
|
|
123 |
|
ca
se 'paid':
|
122 |
|
$sHolder
= "holder
.swf";
|
|
124 |
|
$sHolder
= "holder
.swf";
|
123 |
|
break;
|
|
125 |
|
break;
|
124 |
|
ca
se 'free':
|
|
126 |
|
ca
se 'free':
|
125 |
|
de
fault:
|
|
127 |
|
de
fault:
|
126 |
|
$sHolder
= "holder
_free.swf"
;
|
|
128 |
|
$sHolder
= "holder
_free.swf"
;
|
127 |
|
break;
|
|
129 |
|
break;
|
128 |
|
}
|
|
130 |
|
}
|
129 |
|
if(iss
et($aModul
es[$sApp][
'holder'])
) $sHolder
= $aModul
es[$sApp][
'holder']
. ".swf";
|
|
131 |
|
if(iss
et($aModul
es[$sApp][
'holder'])
) $sHolder
= $aModul
es[$sApp][
'holder']
. ".swf";
|
130 |
|
|
|
132 |
|
|
131 |
|
ob_sta
rt();
|
|
133 |
|
ob_sta
rt();
|
132 |
|
if(!$b
Inline)
|
|
134 |
|
if(!$b
Inline)
|
133 |
|
{
|
|
135 |
|
{
|
134 |
|
?>
|
|
136 |
|
?>
|
135 |
|
<!DOCT
YPE html P
UBLIC "-//
W3C//DTD X
HTML 1.0 T
ransitiona
l//EN" "ht
tp://www.w
3.org/TR/x
html1/DTD/
xhtml1-tra
nsitional.
dtd">
|
|
137 |
|
<!DOCT
YPE html P
UBLIC "-//
W3C//DTD X
HTML 1.0 T
ransitiona
l//EN" "ht
tp://www.w
3.org/TR/x
html1/DTD/
xhtml1-tra
nsitional.
dtd">
|
136 |
|
<html>
|
|
138 |
|
<html>
|
137 |
|
<h
ead>
|
|
139 |
|
<h
ead>
|
138 |
|
<title><
?=$aModule
s[$sApp]['
caption'];
?></title
>
|
|
140 |
|
<title><
?=$aModule
s[$sApp]['
caption'];
?></title
>
|
139 |
|
<meta ht
tp-equiv=C
ontent-Typ
e content=
"text/html
;charset=U
TF-8" />
|
|
141 |
|
<meta ht
tp-equiv=C
ontent-Typ
e content=
"text/html
;charset=U
TF-8" />
|
140 |
|
</
head>
|
|
142 |
|
</
head>
|
141 |
|
<b
ody style=
"margin:0;
padding:0
;" <?=$aM
odules[$sA
pp]['hResi
zable'] ||
$aModules
[$sApp]['v
Resizable'
] ? 'onLoa
d="resizeW
indow()" o
nResize="i
f ( window
.resizeWin
dow ) resi
zeWindow()
"' : ''; ?
> >
|
|
143 |
|
<b
ody style=
"margin:0;
padding:0
;" <?=$aM
odules[$sA
pp]['hResi
zable'] ||
$aModules
[$sApp]['v
Resizable'
] ? 'onLoa
d="resizeW
indow()" o
nResize="i
f ( window
.resizeWin
dow ) resi
zeWindow()
"' : ''; ?
> >
|
142 |
|
<?
|
|
144 |
|
<?
|
143 |
|
ec
ho getRayI
ntegration
JS();
|
|
145 |
|
ec
ho getRayI
ntegration
JS();
|
144 |
|
}
|
|
146 |
|
}
|
145 |
|
if(!$b
EmbedCode)
|
|
147 |
|
if(!$b
EmbedCode)
|
146 |
|
fo
reach($aMo
dules[$sAp
p]['js'] a
s $sJSUrl)
|
|
148 |
|
fo
reach($aMo
dules[$sAp
p]['js'] a
s $sJSUrl)
|
147 |
|
echo "\t
\t<script
src=\"" .
$sJSUrl .
"\" type=\
"text/java
script\" l
anguage=\"
javascript
\"></scrip
t>\n";
|
|
149 |
|
echo "\t
\t<script
src=\"" .
$sJSUrl .
"\" type=\
"text/java
script\" l
anguage=\"
javascript
\"></scrip
t>\n";
|
148 |
|
|
|
150 |
|
|
149 |
|
if(!$b
EmbedCode
&& ($aModu
les[$sApp]
['hResizab
le'] || $a
Modules[$s
App]['vRes
izable']))
|
|
151 |
|
if(!$b
EmbedCode
&& ($aModu
les[$sApp]
['hResizab
le'] || $a
Modules[$s
App]['vRes
izable']))
|
150 |
|
{
|
|
152 |
|
{
|
151 |
|
$i
MinWidth =
(int)$aMo
dules[$sAp
p]['minSiz
e']['width
'];
|
|
153 |
|
$i
MinWidth =
(int)$aMo
dules[$sAp
p]['minSiz
e']['width
'];
|
152 |
|
$i
MinHeight
= (int)$aM
odules[$sA
pp]['minSi
ze']['heig
ht'];
|
|
154 |
|
$i
MinHeight
= (int)$aM
odules[$sA
pp]['minSi
ze']['heig
ht'];
|
153 |
|
?>
|
|
155 |
|
?>
|
154 |
|
<scrip
t type="te
xt/javascr
ipt" langu
age="javas
cript">
|
|
156 |
|
<scrip
t type="te
xt/javascr
ipt" langu
age="javas
cript">
|
155 |
|
<!--
|
|
157 |
|
<!--
|
156 |
|
fu
nction res
izeWindow(
)
|
|
158 |
|
fu
nction res
izeWindow(
)
|
157 |
|
{
|
|
159 |
|
{
|
158 |
|
var fram
eWidth = 0
;
|
|
160 |
|
var fram
eWidth = 0
;
|
159 |
|
var fram
eHeight =
0;
|
|
161 |
|
var fram
eHeight =
0;
|
160 |
|
|
|
162 |
|
|
161 |
|
if(windo
w.innerWid
th)
|
|
163 |
|
if(windo
w.innerWid
th)
|
162 |
|
{
|
|
164 |
|
{
|
163 |
|
fram
eWidth = w
indow.inne
rWidth;
|
|
165 |
|
fram
eWidth = w
indow.inne
rWidth;
|
164 |
|
fram
eHeight =
window.inn
erHeight;
|
|
166 |
|
fram
eHeight =
window.inn
erHeight;
|
165 |
|
}
|
|
167 |
|
}
|
166 |
|
else if
(document.
documentEl
ement)
|
|
168 |
|
else if
(document.
documentEl
ement)
|
167 |
|
{
|
|
169 |
|
{
|
168 |
|
if(d
ocument.do
cumentElem
ent.client
Height)
|
|
170 |
|
if(d
ocument.do
cumentElem
ent.client
Height)
|
169 |
|
{
|
|
171 |
|
{
|
170 |
|
frameWidth
= documen
t.document
Element.cl
ientWidth;
|
|
172 |
|
frameWidth
= documen
t.document
Element.cl
ientWidth;
|
171 |
|
frameHeigh
t = docume
nt.documen
tElement.c
lientHeigh
t;
|
|
173 |
|
frameHeigh
t = docume
nt.documen
tElement.c
lientHeigh
t;
|
172 |
|
}
|
|
174 |
|
}
|
173 |
|
}
|
|
175 |
|
}
|
174 |
|
else if
(document.
body)
|
|
176 |
|
else if
(document.
body)
|
175 |
|
{
|
|
177 |
|
{
|
176 |
|
fram
eWidth = d
ocument.bo
dy.offsetW
idth;
|
|
178 |
|
fram
eWidth = d
ocument.bo
dy.offsetW
idth;
|
177 |
|
fram
eHeight =
document.b
ody.offset
Height;
|
|
179 |
|
fram
eHeight =
document.b
ody.offset
Height;
|
178 |
|
}
|
|
180 |
|
}
|
179 |
|
|
|
181 |
|
|
180 |
|
var o =
document.g
etElementB
yId('ray_<
?=$sApp; ?
>_object')
;
|
|
182 |
|
var o =
document.g
etElementB
yId('ray_<
?=$sApp; ?
>_object')
;
|
181 |
|
var e =
document.g
etElementB
yId('ray_<
?=$sApp; ?
>_embed');
|
|
183 |
|
var e =
document.g
etElementB
yId('ray_<
?=$sApp; ?
>_embed');
|
182 |
|
|
|
184 |
|
|
183 |
|
frameWid
th = (fram
eWidth < <
?=$iMinWid
th?>) ? <?
=$iMinWidt
h?> : fram
eWidth;
|
|
185 |
|
frameWid
th = (fram
eWidth < <
?=$iMinWid
th?>) ? <?
=$iMinWidt
h?> : fram
eWidth;
|
184 |
|
frameHei
ght = (fra
meHeight <
<?=$iMinH
eight?>) ?
<?=$iMinH
eight?> :
frameHeigh
t;
|
|
186 |
|
frameHei
ght = (fra
meHeight <
<?=$iMinH
eight?>) ?
<?=$iMinH
eight?> :
frameHeigh
t;
|
185 |
|
|
|
187 |
|
|
186 |
|
<?
|
|
188 |
|
<?
|
187 |
|
$sRet
= $aModule
s[$sApp]['
hResizable
'] ? "o.wi
dth = fram
eWidth;\n"
: "";
|
|
189 |
|
$sRet
= $aModule
s[$sApp]['
hResizable
'] ? "o.wi
dth = fram
eWidth;\n"
: "";
|
188 |
|
$sRet
.= $aModul
es[$sApp][
'vResizabl
e'] ? "o.h
eight = fr
ameHeight;
\n" : "";
|
|
190 |
|
$sRet
.= $aModul
es[$sApp][
'vResizabl
e'] ? "o.h
eight = fr
ameHeight;
\n" : "";
|
189 |
|
$sRet
.= "if(e !
= null){";
|
|
191 |
|
$sRet
.= "if(e !
= null){";
|
190 |
|
$sRet
.= $aModul
es[$sApp][
'hResizabl
e'] ? "e.w
idth = fra
meWidth;\n
" : "";
|
|
192 |
|
$sRet
.= $aModul
es[$sApp][
'hResizabl
e'] ? "e.w
idth = fra
meWidth;\n
" : "";
|
191 |
|
$sRet
.= $aModul
es[$sApp][
'vResizabl
e'] ? "e.h
eight = fr
ameHeight;
\n" : "";
|
|
193 |
|
$sRet
.= $aModul
es[$sApp][
'vResizabl
e'] ? "e.h
eight = fr
ameHeight;
\n" : "";
|
192 |
|
$sRet
.= "}";
|
|
194 |
|
$sRet
.= "}";
|
193 |
|
echo $
sRet;
|
|
195 |
|
echo $
sRet;
|
194 |
|
?>
|
|
196 |
|
?>
|
195 |
|
}
|
|
197 |
|
}
|
196 |
|
-->
|
|
198 |
|
-->
|
197 |
|
</scri
pt>
|
|
199 |
|
</scri
pt>
|
198 |
|
<?
|
|
200 |
|
<?
|
199 |
|
}
|
|
201 |
|
}
|
200 |
|
if(!$b
EmbedCode
&& $aModul
es[$sApp][
'reloadabl
e'])
|
|
202 |
|
if(!$b
EmbedCode
&& $aModul
es[$sApp][
'reloadabl
e'])
|
201 |
|
{
|
|
203 |
|
{
|
202 |
|
if
(!$bInline
) echo get
RedirectFo
rm($sModul
e, $sApp,
array_merg
e($_GET, $
_POST));
|
|
204 |
|
if
(!$bInline
) echo get
RedirectFo
rm($sModul
e, $sApp,
array_merg
e($_GET, $
_POST));
|
203 |
|
?>
|
|
205 |
|
?>
|
204 |
|
<scrip
t type="te
xt/javascr
ipt" langu
age="javas
cript">
|
|
206 |
|
<scrip
t type="te
xt/javascr
ipt" langu
age="javas
cript">
|
205 |
|
<!--
|
|
207 |
|
<!--
|
206 |
|
fu
nction rel
oad()
|
|
208 |
|
fu
nction rel
oad()
|
207 |
|
{
|
|
209 |
|
{
|
208 |
|
<?
|
|
210 |
|
<?
|
209 |
|
$sGet =
$_SERVER['
QUERY_STRI
NG'];
|
|
211 |
|
$sGet =
$_SERVER['
QUERY_STRI
NG'];
|
210 |
|
$sExtraG
et = implo
de("&", $a
Parameters
Reload);
|
|
212 |
|
$sExtraG
et = implo
de("&", $a
Parameters
Reload);
|
211 |
|
if(!empt
y($sGet) &
& !empty($
sExtraGet)
) $sGet .=
"&";
|
|
213 |
|
if(!empt
y($sGet) &
& !empty($
sExtraGet)
) $sGet .=
"&";
|
212 |
|
?>
|
|
214 |
|
?>
|
213 |
|
<?= !$bInl
ine ? "red
irect();"
: "locatio
n.href='"
. $_SERVER
['PHP_SELF
'] . "?" .
$sGet . $
sExtraGet
. "';" ?>
|
|
215 |
|
<?= !$bInl
ine ? "red
irect();"
: "locatio
n.href='"
. $_SERVER
['PHP_SELF
'] . "?" .
$sGet . $
sExtraGet
. "';" ?>
|
214 |
|
}
|
|
216 |
|
}
|
215 |
|
-->
|
|
217 |
|
-->
|
216 |
|
</scri
pt>
|
|
218 |
|
</scri
pt>
|
217 |
|
<?
|
|
219 |
|
<?
|
218 |
|
}
|
|
220 |
|
}
|
219 |
|
?>
|
|
221 |
|
?>
|
220 |
|
<div<?=$sD
ivId . $sD
ivName . $
sDivStyle?
>><object
classid="c
lsid:d27cd
b6e-ae6d-1
1cf-96b8-4
4455354000
0" codebas
e="http://
fpdownload
.macromedi
a.com/pub/
shockwave/
cabs/flash
/swflash.c
ab#version
=9,0,28,0"
<?='width
="' . $iWi
dth . '" h
eight="' .
$iHeight
. '"'; ?>
id="ray_<?
=$sApp; ?>
_object" a
lign="midd
le"><param
name="all
owScriptAc
cess" valu
e="always"
/><param
name="movi
e" value="
<?=$sRayHo
lderBaseDi
r . "app/"
. $sHolde
r; ?>" /><
param name
="quality"
value="hi
gh" /><par
am name="a
llowFullSc
reen" valu
e="true" /
><param na
me="base"
value="<?=
$sRayAppBa
seDir; ?>"
/><param
name="Flas
hVars" val
ue="<?=$sP
arameters;
?>" /><em
bed id="ra
y_<?=$sApp
; ?>_embed
" name="ra
y_<?=$sApp
; ?>" src=
"<?=$sRayH
olderBaseD
ir . "app/
" . $sHold
er; ?>" qu
ality="hig
h" allowFu
llScreen="
true" <?='
width="' .
$iWidth .
'" height
="' . $iHe
ight . '"'
; ?> align
="middle"
allowScrip
tAccess="a
lways" bas
e="<?=$sRa
yAppBaseDi
r; ?>" Fla
shVars="<?
=$sParamet
ers; ?>" p
luginspage
="http://w
ww.macrome
dia.com/go
/getflashp
layer" /><
/object></
div>
|
|
222 |
|
<div<?=$sD
ivId . $sD
ivName . $
sDivStyle?
>><object
classid="c
lsid:d27cd
b6e-ae6d-1
1cf-96b8-4
4455354000
0" codebas
e="http://
fpdownload
.macromedi
a.com/pub/
shockwave/
cabs/flash
/swflash.c
ab#version
=9,0,28,0"
<?='width
="' . $iWi
dth . '" h
eight="' .
$iHeight
. '"'; ?>
id="ray_<?
=$sApp; ?>
_object" a
lign="midd
le"><param
name="all
owScriptAc
cess" valu
e="always"
/><param
name="movi
e" value="
<?=$sRayHo
lderBaseDi
r . "app/"
. $sHolde
r; ?>" /><
param name
="quality"
value="hi
gh" /><par
am name="a
llowFullSc
reen" valu
e="true" /
><param na
me="base"
value="<?=
$sRayAppBa
seDir; ?>"
/><param
name="Flas
hVars" val
ue="<?=$sP
arameters;
?>" /><em
bed id="ra
y_<?=$sApp
; ?>_embed
" name="ra
y_<?=$sApp
; ?>" src=
"<?=$sRayH
olderBaseD
ir . "app/
" . $sHold
er; ?>" qu
ality="hig
h" allowFu
llScreen="
true" <?='
width="' .
$iWidth .
'" height
="' . $iHe
ight . '"'
; ?> align
="middle"
allowScrip
tAccess="a
lways" bas
e="<?=$sRa
yAppBaseDi
r; ?>" Fla
shVars="<?
=$sParamet
ers; ?>" p
luginspage
="http://w
ww.macrome
dia.com/go
/getflashp
layer" /><
/object></
div>
|
221 |
|
<?
|
|
223 |
|
<?
|
222 |
|
/* if(!$b
EmbedCode)
|
|
224 |
|
/* if(!$b
EmbedCode)
|
223 |
|
{
|
|
225 |
|
{
|
224 |
|
?>
|
|
226 |
|
?>
|
225 |
|
<scrip
t type="te
xt/javascr
ipt" langu
age="javas
cript">
|
|
227 |
|
<scrip
t type="te
xt/javascr
ipt" langu
age="javas
cript">
|
226 |
|
<!--
|
|
228 |
|
<!--
|
227 |
|
th
eObjects =
document.
getElement
sByTagName
("object")
;
|
|
229 |
|
th
eObjects =
document.
getElement
sByTagName
("object")
;
|
228 |
|
fo
r (var i =
0; i < th
eObjects.l
ength; i++
)
|
|
230 |
|
fo
r (var i =
0; i < th
eObjects.l
ength; i++
)
|
229 |
|
theObjec
ts[i].oute
rHTML = th
eObjects[i
].outerHTM
L;
|
|
231 |
|
theObjec
ts[i].oute
rHTML = th
eObjects[i
].outerHTM
L;
|
230 |
|
-->
|
|
232 |
|
-->
|
231 |
|
</scri
pt>
|
|
233 |
|
</scri
pt>
|
232 |
|
<?
|
|
234 |
|
<?
|
233 |
|
}*/
|
|
235 |
|
}*/
|
234 |
|
if(!$b
Inline)
|
|
236 |
|
if(!$b
Inline)
|
235 |
|
{
|
|
237 |
|
{
|
236 |
|
?>
|
|
238 |
|
?>
|
237 |
|
</
body>
|
|
239 |
|
</
body>
|
238 |
|
</html
>
|
|
240 |
|
</html
>
|
239 |
|
<?
|
|
241 |
|
<?
|
240 |
|
}
|
|
242 |
|
}
|
241 |
|
$sWidg
etContent
= ob_get_c
ontents();
|
|
243 |
|
$sWidg
etContent
= ob_get_c
ontents();
|
242 |
|
ob_end
_clean();
|
|
244 |
|
ob_end
_clean();
|
243 |
|
|
|
245 |
|
|
244 |
|
return
$sWidgetC
ontent;
|
|
246 |
|
return
$sWidgetC
ontent;
|
245 |
|
}
|
|
247 |
|
}
|
246 |
|
|
|
248 |
|
|
247 |
|
/**
|
|
249 |
|
/**
|
248 |
|
* Make re
direct and
send nece
ssary para
meters usi
ng POST me
thod.
|
|
250 |
|
* Make re
direct and
send nece
ssary para
meters usi
ng POST me
thod.
|
249 |
|
*/
|
|
251 |
|
*/
|
250 |
|
function g
etRedirect
Form($sMod
ule, $sApp
, $aReques
t)
|
|
252 |
|
function g
etRedirect
Form($sMod
ule, $sApp
, $aReques
t)
|
251 |
|
{
|
|
253 |
|
{
|
252 |
|
ob_sta
rt();
|
|
254 |
|
ob_sta
rt();
|
253 |
|
?>
|
|
255 |
|
?>
|
254 |
|
<form
style="mar
gin:0; pad
ding:0;" n
ame="<?= $
sModule .
"-" . $sAp
p; ?>" met
hod="POST"
action="<
?= $_SERVE
R['PHP_SEL
F']; ?>">
|
|
256 |
|
<form
style="mar
gin:0; pad
ding:0;" n
ame="<?= $
sModule .
"-" . $sAp
p; ?>" met
hod="POST"
action="<
?= $_SERVE
R['PHP_SEL
F']; ?>">
|
255 |
|
<i
nput type=
"hidden" n
ame="modul
e" value="
<?= $sModu
le; ?>" />
|
|
257 |
|
<i
nput type=
"hidden" n
ame="modul
e" value="
<?= $sModu
le; ?>" />
|
256 |
|
<i
nput type=
"hidden" n
ame="app"
value="<?=
$sApp; ?>
" />
|
|
258 |
|
<i
nput type=
"hidden" n
ame="app"
value="<?=
$sApp; ?>
" />
|
257 |
|
<?
|
|
259 |
|
<?
|
258 |
|
fo
reach($aRe
quest as $
sKey => $s
Value)
|
|
260 |
|
fo
reach($aRe
quest as $
sKey => $s
Value)
|
259 |
|
{
|
|
261 |
|
{
|
260 |
|
?>
|
|
262 |
|
?>
|
261 |
|
<input t
ype="hidde
n" name="<
?=htmlspec
ialchars($
sKey)?>" v
alue="<?=h
tmlspecial
chars($sVa
lue)?>" />
|
|
263 |
|
<input t
ype="hidde
n" name="<
?=htmlspec
ialchars($
sKey)?>" v
alue="<?=h
tmlspecial
chars($sVa
lue)?>" />
|
262 |
|
<?
|
|
264 |
|
<?
|
263 |
|
}
|
|
265 |
|
}
|
264 |
|
?>
|
|
266 |
|
?>
|
265 |
|
</form
>
|
|
267 |
|
</form
>
|
266 |
|
<scrip
t>
|
|
268 |
|
<scrip
t>
|
267 |
|
<!--
|
|
269 |
|
<!--
|
268 |
|
fu
nction red
irect()
|
|
270 |
|
fu
nction red
irect()
|
269 |
|
{
|
|
271 |
|
{
|
270 |
|
document
.forms['<?
= $sModule
. "-" . $
sApp; ?>']
.submit();
|
|
272 |
|
document
.forms['<?
= $sModule
. "-" . $
sApp; ?>']
.submit();
|
271 |
|
}
|
|
273 |
|
}
|
272 |
|
-->
|
|
274 |
|
-->
|
273 |
|
</scri
pt>
|
|
275 |
|
</scri
pt>
|
274 |
|
<?
|
|
276 |
|
<?
|
275 |
|
$sRetu
rn = ob_ge
t_contents
();
|
|
277 |
|
$sRetu
rn = ob_ge
t_contents
();
|
276 |
|
ob_end
_clean();
|
|
278 |
|
ob_end
_clean();
|
277 |
|
return
$sReturn;
|
|
279 |
|
return
$sReturn;
|
278 |
|
}
|
|
280 |
|
}
|
279 |
|
?>
|
|
281 |
|
?>
|