| |
| 159 |
|
$ima
gelist = g
et_image_l
ist($twg_a
lbum); |
|
159 |
|
$ima
gelist = g
et_image_l
ist($twg_a
lbum); |
| 160 |
|
$ski
p_thumbnai
l_page_dum
my = true;
// dummys
et for the
include!
|
|
160 |
|
$ski
p_thumbnai
l_page_dum
my = true;
// dummys
et for the
include!
|
| 161 |
|
incl
ude dirnam
e(__FILE__
) . "/navp
ath.inc.ph
p"; |
|
161 |
|
incl
ude dirnam
e(__FILE__
) . "/navp
ath.inc.ph
p"; |
| 162 |
|
|
|
|
| 163 |
|
if (
$imagelist
) { |
|
162 |
|
if (
$imagelist
) { |
| 164 |
|
$nr_im
ages = cou
nt($imagel
ist); |
|
163 |
|
$nr_im
ages = cou
nt($imagel
ist); |
| 165 |
|
|
|
|
| 166 |
|
//ILAs
oft GALLER
Y SUMMARY
|
|
|
| 167 |
|
if($il
a_summary)
|
|
|
| 168 |
|
echo "Su
mmary of "
. $nr_ima
ges . "&nb
sp;" . (($
nr_images
== 1) ? $l
ang_pictur
e : $lang_
pictures);
|
|
|
| 169 |
|
else |
|
|
| 170 |
|
echo $nr
_images .
" " .
(($nr_ima
ges == 1)
? $lang_pi
cture : $l
ang_pictur
es); |
|
164 |
|
echo $
nr_images
. " "
. (($nr_i
mages == 1
) ? $lang_
picture :
$lang_pict
ures); |
| 171 |
|
} el
se { |
|
165 |
|
} el
se { |
| 172 |
|
// not
sure if I
want to d
isplay tex
t here ;)
|
|
166 |
|
// not
sure if I
want to d
isplay tex
t here ;)
|
| |
| 197 |
|
printf
("<a href=
'%s' onmou
seout='MM_
swapImgRes
tore()' on
mouseover=
\"MM_swapI
mage('topt
humb','','
%sbuttons/
menu_up_ov
er.gif',1)
\"><img sr
c='%sbutto
ns/menu_up
.gif' alt=
'%s' title
='%s' id='
topthumb'
height='24
' /></a>",
$upper_le
vel , $ins
tall_dir,
$install_d
ir, $lang_
overview,
$lang_over
view); |
|
191 |
|
printf
("<a href=
'%s' onmou
seout='MM_
swapImgRes
tore()' on
mouseover=
\"MM_swapI
mage('topt
humb','','
%sbuttons/
menu_up_ov
er.gif',1)
\"><img sr
c='%sbutto
ns/menu_up
.gif' alt=
'%s' title
='%s' id='
topthumb'
height='24
' /></a>",
$upper_le
vel , $ins
tall_dir,
$install_d
ir, $lang_
overview,
$lang_over
view); |
| 198 |
|
printf
("<script
type='text
/javascrip
t'> functi
on key_up(
) { locati
on.href='%
s'; } </sc
ript>", $u
pper_level
js) ; |
|
192 |
|
printf
("<script
type='text
/javascrip
t'> functi
on key_up(
) { locati
on.href='%
s'; } </sc
ript>", $u
pper_level
js) ; |
| 199 |
|
} |
|
193 |
|
} |
| 200 |
|
|
|
|
| 201 |
|
|
|
|
| 202 |
|
|
|
|
| 203 |
|
//IL
Asoft GALL
ERY SUMMAR
Y |
|
|
| 204 |
|
if($
nr_images
> 0 && $il
a_summary
== false)
{ |
|
|
| 205 |
|
echo "
<a h
ref='" . $
_SERVER['P
HP_SELF']
. "?twg_al
bum=" . $a
lbum_enc .
"&twg
_summary'>
<img src='
".$install
_dir."butt
ons/menu_s
um_on.gif'
alt='Summ
ary' title
='Summary'
id='summa
ry_start'
height='24
' /></a>";
|
|
|
| 206 |
|
} el
seif($ila_
summary)
{ |
|
|
| 207 |
|
echo "
<a h
ref='" . $
_SERVER['P
HP_SELF']
. "?twg_al
bum=" . $a
lbum_enc .
"&twg
_offset=0'
><img src=
'".$instal
l_dir."but
tons/menu_
sum_off.gi
f' alt='Ex
it Summary
' title='E
xit Summar
y' id='sum
mary_end'
height='24
' /></a>";
|
|
|
| 208 |
|
} |
|
|
| 209 |
|
////
//////////
//////////
/ |
|
|
| 210 |
|
|
|
|
| 211 |
|
//IL
Asoft Gall
ery SlideS
how |
|
|
| 212 |
|
if (
$show_slid
eshow && $
nr_images
> 0) { |
|
|
| 213 |
|
if ($t
wg_slidesh
ow) { |
|
|
| 214 |
|
// the s
lidestop=t
rue is onl
y needed t
o find thi
s link wit
h javascri
pt and be
able to ex
cange this
|
|
|
| 215 |
|
// dynam
ically ->
if a user
stop the s
lidtwg_sho
w we can j
ump to the
actual tw
g_shown pi
cture !! |
|
|
| 216 |
|
printf("
&nbs
p;<a id='s
top_slides
how' href=
'%s?twg_al
bum=%s&
;twg_show=
%s%s'
onmouseout
='MM_swapI
mgRestore(
)' onmouse
over=\"MM_
swapImage(
'stop_slid
eshow_img'
,'','%sbut
tons/menu_
stop_over.
gif',1)\">
<img src='
%sbuttons/
menu_stop.
gif' alt='
%s' title=
'%s' id='s
top_slides
how_img' h
eight='24'
/></a>",
$_SERVER['
PHP_SELF']
, $album_e
nc, $image
_enc, $twg
_standalon
e, $instal
l_dir, $in
stall_dir,
$lang_sto
p_slidesho
w, $lang_s
top_slides
how); |
|
|
| 217 |
|
} else
{ |
|
|
| 218 |
|
printf("
&nbs
p;<a id='s
tart_slide
show' href
='%s?twg_a
lbum=%s&am
p;twg_show
=1%s&t
wg_slidesh
ow=true%s'
onmouseou
t='MM_swap
ImgRestore
()' onmous
eover=\"MM
_swapImage
('slidesho
w','','%sb
uttons/men
u_start_ov
er.gif',1)
\"><img sr
c='%sbutto
ns/menu_st
art.gif' a
lt='%s' ti
tle='%s' i
d='slidesh
ow' height
='24' /></
a>", $_SER
VER['PHP_S
ELF'], $al
bum_enc, $
image_enc,
$twg_stan
dalone, $i
nstall_dir
, $install
_dir, $lan
g_start_sl
ideshow, $
lang_start
_slideshow
); |
|
|
| 219 |
|
} |
|
|
| 220 |
|
} |
|
|
| 221 |
|
////
//////////
//////////
/ |
|
|
| 222 |
|
|
|
|
| 223 |
|
echo
" </
td>"; |
|
194 |
|
echo
" </
td>"; |
| 224 |
|
prin
tf("<td cl
ass='topna
vright' al
ign='right
'>"); |
|
195 |
|
prin
tf("<td cl
ass='topna
vright' al
ign='right
'>"); |
| 225 |
|
|
|
196 |
|
|
| |
| 228 |
|
echo
"<a oncli
ck='twg_sh
owSec(" .
$lang_heig
ht_tags_to
p . ")' id
='i_top_ta
gs' target
='details'
href='" .
$install_
dir . "i_f
rames/i_to
p_tags.php
?twg_album
=" . $albu
m_enc . $t
wg_standal
one . "'>"
. $lang_m
enu_top_ta
gs . "</a>
"; |
|
199 |
|
echo
"<a oncli
ck='twg_sh
owSec(" .
$lang_heig
ht_tags_to
p . ")' id
='i_top_ta
gs' target
='details'
href='" .
$install_
dir . "i_f
rames/i_to
p_tags.php
?twg_album
=" . $albu
m_enc . $t
wg_standal
one . "'>"
. $lang_m
enu_top_ta
gs . "</a>
"; |
| 229 |
|
} |
|
200 |
|
} |
| 230 |
|
|
|
201 |
|
|
| 231 |
|
|
|
|
| 232 |
|
|
|
|
| 233 |
|
if (
$show_topx
) { // onl
y twg_show
the top x
when the
view count
is enable
d |
|
202 |
|
if (
$show_topx
) { // onl
y twg_show
the top x
when the
view count
is enable
d |
| 234 |
|
$h
as_element
_before =
print_spac
er($has_el
ement_befo
re); |
|
203 |
|
$h
as_element
_before =
print_spac
er($has_el
ement_befo
re); |
| 235 |
|
echo "
<a href='"
. $_SERVE
R['PHP_SEL
F'] . "?tw
g_album="
. $album_e
nc . "&
;twg_top10
=" . $topx
_default .
$twg_stan
dalone . "
'>" . spri
ntf($lang_
topx, $num
ber_top10)
. "</a>";
|
|
204 |
|
echo "
<a href='"
. $_SERVE
R['PHP_SEL
F'] . "?tw
g_album="
. $album_e
nc . "&
;twg_top10
=" . $topx
_default .
$twg_stan
dalone . "
'>" . spri
ntf($lang_
topx, $num
ber_top10)
. "</a>";
|
| |
| |
| 242 |
|
function p
rint_thumb
nails($twg
_album, $t
wg_offset,
$werte, $
index, $tw
g_foffset)
|
|
242 |
|
function p
rint_thumb
nails($twg
_album, $t
wg_offset,
$werte, $
index, $tw
g_foffset)
|
| 243 |
|
{
|
|
243 |
|
{
|
| 244 |
|
gl
obal $thum
bnails_x,
$thumbnail
s_y, $cach
edir, $kwe
rte, $kind
ex, $based
ir;
|
|
244 |
|
gl
obal $thum
bnails_x,
$thumbnail
s_y, $cach
edir, $kwe
rte, $kind
ex, $based
ir;
|
| 245 |
|
gl
obal $exte
nsion_thum
b, $top10,
$privatel
ogin;
|
|
245 |
|
gl
obal $exte
nsion_thum
b, $top10,
$privatel
ogin;
|
| 246 |
|
gl
obal $ila_
summary,$e
xtension_s
mall,$smal
l_pic_size
;
|
|
|
| 247 |
|
gl
obal $lang
_thumb_for
ward, $lan
g_thumb_ba
ck, $insta
ll_dir, $u
se_origina
l_on_thumb
spage;
|
|
246 |
|
gl
obal $lang
_thumb_for
ward, $lan
g_thumb_ba
ck, $insta
ll_dir, $u
se_origina
l_on_thumb
spage;
|
| 248 |
|
gl
obal $twg_
standalone
, $twg_sta
ndalonejs,
$double_e
ncode_urls
, $autodet
ect_maximu
m_thumbnai
ls;
|
|
247 |
|
gl
obal $twg_
standalone
, $twg_sta
ndalonejs,
$double_e
ncode_urls
, $autodet
ect_maximu
m_thumbnai
ls;
|
| 249 |
|
gl
obal $thum
b_pic_size
, $show_nu
mber_of_co
mments, $l
ang_commen
ts, $disab
le_direct_
thumbs_acc
ess;
|
|
248 |
|
gl
obal $thum
b_pic_size
, $show_nu
mber_of_co
mments, $l
ang_commen
ts, $disab
le_direct_
thumbs_acc
ess;
|
| |
| 291 |
|
$space
x += $left
_htm_width
;
|
|
290 |
|
$space
x += $left
_htm_width
;
|
| 292 |
|
}
|
|
291 |
|
}
|
| 293 |
|
|
|
292 |
|
|
| 294 |
|
if(!
$ila_summa
ry) {
|
|
|
| 295 |
|
$thumb
nails_x =
floor(($_S
ESSION["br
owserx"] -
$spacex)
/ ($thumb_
pic_size +
5));
|
|
293 |
|
$thu
mbnails_x
= floor(($
_SESSION["
browserx"]
- $spacex
) / ($thum
b_pic_size
+ 5));
|
| 296 |
|
$thumb
nails_y =
floor(($_S
ESSION["br
owsery"] -
50 - $off
set_text)
/ ($thumb_
pic_size +
5));
|
|
294 |
|
$thu
mbnails_y
= floor(($
_SESSION["
browsery"]
- 50 - $o
ffset_text
) / ($thum
b_pic_size
+ 5));
|
| 297 |
|
} el
se {
|
|
|
| 298 |
|
$thumb
nails_x =
floor(($_S
ESSION["br
owserx"] -
$spacex)
/ ($small_
pic_size +
5));
|
|
|
| 299 |
|
$thumb
nails_y =
floor(($_S
ESSION["br
owsery"] -
50 - $off
set_text)
/ ($small_
pic_size +
5));
|
|
|
| 300 |
|
}
|
|
|
| 301 |
|
}
|
|
295 |
|
}
|
| 302 |
|
|
|
296 |
|
|
| 303 |
|
if
($show_su
bdirs_firs
t) {
|
|
297 |
|
if
($show_su
bdirs_firs
t) {
|
| |
| 312 |
|
$thu
mbnails_y
= ceil($to
tal / $thu
mbnails_x)
+ $minus_
rows + 1;
// one sav
ty
|
|
306 |
|
$thu
mbnails_y
= ceil($to
tal / $thu
mbnails_x)
+ $minus_
rows + 1;
// one sav
ty
|
| 313 |
|
}
|
|
307 |
|
}
|
| 314 |
|
|
|
308 |
|
|
| 315 |
|
if
($ila_summ
ary) {
|
|
|
| 316 |
|
$thu
mbnails_y=
20;
|
|
|
| 317 |
|
}
|
|
|
| 318 |
|
|
|
|
| 319 |
|
$alignme
nt = "";
|
|
309 |
|
$alignme
nt = "";
|
| 320 |
|
if ($sho
w_caption_
on_thumbs)
{
|
|
310 |
|
if ($sho
w_caption_
on_thumbs)
{
|
| 321 |
|
$align
ment= " to
p";
|
|
311 |
|
$align
ment= " to
p";
|
| 322 |
|
}
|
|
312 |
|
}
|
| 323 |
|
$l
thumbnails
= $thumbn
ails_x * (
$thumbnail
s_y - $min
us_rows) ;
|
|
|
| 324 |
|
pr
int_thumbn
ail_page_l
inks(count
($imagelis
t), $lthum
bnails, $a
lbum_enc,
$twg_offse
t, $werte,
$index, $
twg_foffse
t);
|
|
|
| 325 |
|
|
|
313 |
|
|
| 326 |
|
if
($imageli
st[0] != "
") {
|
|
314 |
|
if
($imageli
st[0] != "
") {
|
| 327 |
|
echo
"<table s
ummary=''
class='thu
mbnails' c
ellpadding
='0' cells
pacing='0'
>\n";
|
|
315 |
|
echo
"<table s
ummary=''
class='thu
mbnails' c
ellpadding
='0' cells
pacing='0'
>\n";
|
| |
| 335 |
|
$aktimage
= replace_
valid_url(
$aktimage)
;
|
|
323 |
|
$aktimage
= replace_
valid_url(
$aktimage)
;
|
| 336 |
|
$replaced_
album = st
r_replace(
"/", "_",
$twg_album
);
|
|
324 |
|
$replaced_
album = st
r_replace(
"/", "_",
$twg_album
);
|
| 337 |
|
$thumbimag
e = urlenc
ode($repla
ced_album
. "_" . ur
ldecode($a
ktimage));
|
|
325 |
|
$thumbimag
e = urlenc
ode($repla
ced_album
. "_" . ur
ldecode($a
ktimage));
|
| 338 |
|
if(!$ila_s
ummary)
|
|
|
| 339 |
|
$t
humb = "./
" . $cache
dir . "/"
. $thumbim
age . "."
. $extensi
on_thumb;
|
|
326 |
|
$thumb = "
./" . $cac
hedir . "/
" . $thumb
image . ".
" . $exten
sion_thumb
;
|
| 340 |
|
else
|
|
|
| 341 |
|
$t
humb = "./
" . $cache
dir . "/"
. $thumbim
age . "."
. $extensi
on_small;
|
|
|
| 342 |
|
$ccount =
getKomment
arCount($i
magelist[$
imageid],
$twg_album
, $kwerte,
$kindex);
|
|
327 |
|
$ccount =
getKomment
arCount($i
magelist[$
imageid],
$twg_album
, $kwerte,
$kindex);
|
| 343 |
|
if
(!
$ila_summa
ry
&&
(!
file_exist
s($thumb)
||
$disable_d
irect_thum
bs_access)
)
{
|
|
328 |
|
if
(!
file_exist
s($thumb)
||
$disable_d
irect_thum
bs_access)
{
|
| 344 |
|
$s
rc_value =
$install_
dir . "ima
ge.php?twg
_album=" .
$album_en
c . "&
twg_type=t
humb&t
wg_show="
. $aktimag
e;
|
|
329 |
|
$s
rc_value =
$install_
dir . "ima
ge.php?twg
_album=" .
$album_en
c . "&
twg_type=t
humb&t
wg_show="
. $aktimag
e;
|
| 345 |
|
if
($show_cl
ipped_imag
es) {
|
|
330 |
|
if
($show_cl
ipped_imag
es) {
|
| 346 |
|
$the
ight = " h
eight='" .
$thumb_pi
c_size . "
' width='"
. $thumb_
pic_size .
"' ";
|
|
331 |
|
$the
ight = " h
eight='" .
$thumb_pi
c_size . "
' width='"
. $thumb_
pic_size .
"' ";
|
| |
| 351 |
|
if
($double_
encode_url
s) {
|
|
336 |
|
if
($double_
encode_url
s) {
|
| 352 |
|
$thu
mbimage =
urlencode(
$thumbimag
e);
|
|
337 |
|
$thu
mbimage =
urlencode(
$thumbimag
e);
|
| 353 |
|
}
|
|
338 |
|
}
|
| 354 |
|
if
(!$ila_sum
mary)
|
|
|
| 355 |
|
$src
_value = "
./" . $cac
hedir . "/
" . urlenc
ode($thumb
image) . "
." . $exte
nsion_thum
b;
|
|
339 |
|
$s
rc_value =
"./" . $c
achedir .
"/" . urle
ncode($thu
mbimage) .
"." . $ex
tension_th
umb;
|
| 356 |
|
el
se
|
|
340 |
|
if
($show_cli
pped_image
s
)
{
|
| 357 |
|
$src
_value = "
./" . $cac
hedir . "/
" . urlenc
ode($thumb
image) . "
." . $exte
nsion_smal
l;
|
|
|
| 358 |
|
if
($show_cli
pped_image
s
&&
!$ila_summ
ary
)
{
|
|
|
| 359 |
|
$the
ight = " h
eight='" .
$thumb_pi
c_size . "
' width='"
. $thumb_
pic_size .
"' ";
|
|
341 |
|
$the
ight = " h
eight='" .
$thumb_pi
c_size . "
' width='"
. $thumb_
pic_size .
"' ";
|
| 360 |
|
}
else {
|
|
342 |
|
}
else {
|
| 361 |
|
$isi
ze = getim
agesize ($
thumb);
|
|
343 |
|
$isi
ze = getim
agesize ($
thumb);
|
| |
| 397 |
|
}
|
|
379 |
|
}
|
| 398 |
|
}
|
|
380 |
|
}
|
| 399 |
|
|
|
381 |
|
|
| 400 |
|
if
($show_cap
tion_on_th
umbs
&&
!$ila_summ
ary
)
{
|
|
382 |
|
if
($show_cap
tion_on_th
umbs
)
{
|
| 401 |
|
$t
humbtitel
= "<tr><td
class='th
umb_text'
style='wid
th:" . $th
umb_pic_si
ze . "px'>
" . $b . "
</td></tr>
";
|
|
383 |
|
$t
humbtitel
= "<tr><td
class='th
umb_text'
style='wid
th:" . $th
umb_pic_si
ze . "px'>
" . $b . "
</td></tr>
";
|
| 402 |
|
} else {
|
|
384 |
|
} else {
|
| 403 |
|
$t
humbtitel
= "";
|
|
385 |
|
$t
humbtitel
= "";
|
| 404 |
|
}
|
|
386 |
|
}
|
| 405 |
|
if
($activate
_lightbox_
thumb
&&
!$ila_summ
ary
)
{
|
|
387 |
|
if
($activate
_lightbox_
thumb
)
{
|
| 406 |
|
if
(!$activa
te_lightbo
x_thumb_fu
ll) {
|
|
388 |
|
if
(!$activa
te_lightbo
x_thumb_fu
ll) {
|
| 407 |
|
prin
tf("<td cl
ass='thumb
nails".$al
ignment."'
><table s
ummary=''
class='thu
mbnails' c
ellpadding
='%s' cell
spacing='%
s'><tr><td
class='th
umbnails'
onMouseOve
r=\"this.c
lassName='
twg_hoverT
humbnail'\
" onMouseO
ut=\"this.
className=
'twg_unhov
erThumbnai
l'\"><div
style='pos
ition:abso
lute;z-ind
ex:45;text
-align:cen
ter;'><a %
s rel='lig
htbox[road
trip]' %s
><img onMo
useover='t
his.classN
ame=\"imag
efull\";'
onMouseout
='this.cla
ssName=\"i
magealpha\
";' class=
'imagealph
a' src='%s
buttons/op
enlight.gi
f' alt=''>
</a></div>
<a %s><img
src='%s'
%s %s /></
a></td></t
r>%s</tabl
e></td>",
$thumb_cel
lpadding,
$thumb_cel
lspacing,
$titel, $h
reffull ,
$install_d
ir, $href
, $src_val
ue, $besch
reibung, $
theight, $
thumbtitel
);
|
|
389 |
|
prin
tf("<td cl
ass='thumb
nails".$al
ignment."'
><table s
ummary=''
class='thu
mbnails' c
ellpadding
='%s' cell
spacing='%
s'><tr><td
class='th
umbnails'
onMouseOve
r=\"this.c
lassName='
twg_hoverT
humbnail'\
" onMouseO
ut=\"this.
className=
'twg_unhov
erThumbnai
l'\"><div
style='pos
ition:abso
lute;z-ind
ex:45;text
-align:cen
ter;'><a %
s rel='lig
htbox[road
trip]' %s
><img onMo
useover='t
his.classN
ame=\"imag
efull\";'
onMouseout
='this.cla
ssName=\"i
magealpha\
";' class=
'imagealph
a' src='%s
buttons/op
enlight.gi
f' alt=''>
</a></div>
<a %s><img
src='%s'
%s %s /></
a></td></t
r>%s</tabl
e></td>",
$thumb_cel
lpadding,
$thumb_cel
lspacing,
$titel, $h
reffull ,
$install_d
ir, $href
, $src_val
ue, $besch
reibung, $
theight, $
thumbtitel
);
|
| 408 |
|
}
else {
|
|
390 |
|
}
else {
|
| |
| 424 |
|
$t
humbnails_
y = $thumb
nails_y -
$minus_row
s;
|
|
406 |
|
$t
humbnails_
y = $thumb
nails_y -
$minus_row
s;
|
| 425 |
|
$t
humbnails
= $thumbna
ils_x * $t
humbnails_
y ;
|
|
407 |
|
$t
humbnails
= $thumbna
ils_x * $t
humbnails_
y ;
|
| 426 |
|
$a
ctpage = 0
;
|
|
408 |
|
$a
ctpage = 0
;
|
| 427 |
|
|
|
409 |
|
if
(count($i
magelist)
> $thumbna
ils) {
|
| 428 |
|
pr
int_thumbn
ail_page_l
inks(count
($imagelis
t), $lthum
bnails, $a
lbum_enc,
$twg_offse
t, $werte,
$index, $
twg_foffse
t);
|
|
410 |
|
if (
$twg_offse
t > 0) {
|
| 429 |
|
|
|
411 |
|
$hrefl
ast = spri
ntf("%s?tw
g_album=%s
&twg_o
ffset=%s%s
", $_SERVE
R['PHP_SEL
F'], $albu
m_enc, $tw
g_offset -
$thumbnai
ls, $twg_s
tandalone)
;
|
| |
|
412 |
|
$hrefl
astjs = sp
rintf("%s?
twg_album=
%s&twg_off
set=%s%s",
$_SERVER[
'PHP_SELF'
], $album_
enc, $twg_
offset - $
thumbnails
, $twg_sta
ndalonejs)
;
|
| |
|
413 |
|
echo '
<script ty
pe="text/j
avascript"
> function
key_back(
) { locati
on.href="'
. $hrefla
stjs . '"
} </script
>';
|
| |
|
414 |
|
printf
(" <a href
='%s'>%s</
a>", $href
last , $la
ng_thumb_b
ack);
|
| |
|
415 |
|
}
|
| |
|
416 |
|
prin
t " |";
|
| |
|
417 |
|
$num
pages = ce
il(count($
imagelist)
/ ($thumb
nails_x *
$thumbnail
s_y));
|
| |
|
418 |
|
for(
$i = 0; $i
< $numpag
es ; $i++)
{
|
| |
|
419 |
|
$twg_o
ffset_ = $
i * ($thum
bnails_x *
$thumbnai
ls_y);
|
| |
|
420 |
|
if ($t
wg_offset
== $twg_of
fset_) {
|
| |
|
421 |
|
$actpage
= $i;
|
| |
|
422 |
|
echo "<s
pan class=
'twg_bold'
>";
|
| |
|
423 |
|
}
|
| |
|
424 |
|
printf
(" <a href
='%s?twg_a
lbum=%s&am
p;twg_offs
et=%s%s'>%
s</a>", $_
SERVER['PH
P_SELF'],
$album_enc
, $twg_off
set_, $twg
_standalon
e, $i + 1)
;
|
| |
|
425 |
|
if ($t
wg_offset
== $twg_of
fset_) {
|
| |
|
426 |
|
echo "</
span>";
|
| |
|
427 |
|
}
|
| |
|
428 |
|
echo "
| ";
|
| |
|
429 |
|
}
|
| |
|
430 |
|
if (
$actpage !
= $numpage
s - 1) {
|
| |
|
431 |
|
$hrefn
ext = spri
ntf("%s?tw
g_album=%s
&twg_o
ffset=%s%s
", $_SERVE
R['PHP_SEL
F'], $albu
m_enc, $tw
g_offset +
$thumbnai
ls, $twg_s
tandalone)
;
|
| |
|
432 |
|
$hrefn
extjs = sp
rintf("%s?
twg_album=
%s&twg_off
set=%s%s",
$_SERVER[
'PHP_SELF'
], $album_
enc, $twg_
offset + $
thumbnails
, $twg_sta
ndalonejs)
;
|
| |
|
433 |
|
echo '
<script ty
pe="text/j
avascript"
> function
key_forew
ard() { lo
cation.hre
f="' . $hr
efnextjs .
'" } </sc
ript>';
|
| |
|
434 |
|
printf
(" <a href
='%s'>%s</
a>", $href
next , $la
ng_thumb_f
orward);
|
| |
|
435 |
|
}
|
| |
|
436 |
|
}
|
| 430 |
|
if
(!$show_s
ubdirs_fir
st) {
|
|
437 |
|
if
(!$show_s
ubdirs_fir
st) {
|
| 431 |
|
show
_folders($
path, $twg
_foffset);
|
|
438 |
|
show
_folders($
path, $twg
_foffset);
|
| 432 |
|
}
|
|
439 |
|
}
|
| |
| 437 |
|
$akt
image = re
place_vali
d_url($akt
image);
|
|
444 |
|
$akt
image = re
place_vali
d_url($akt
image);
|
| 438 |
|
$rep
laced_albu
m = str_re
place("/",
"_", $twg
_album);
|
|
445 |
|
$rep
laced_albu
m = str_re
place("/",
"_", $twg
_album);
|
| 439 |
|
$thu
mbimage =
urlencode(
$replaced_
album . "_
" . urldec
ode($aktim
age));
|
|
446 |
|
$thu
mbimage =
urlencode(
$replaced_
album . "_
" . urldec
ode($aktim
age));
|
| 440 |
|
|
|
|
| 441 |
|
if(!
$ila_summa
ry)
|
|
|
| 442 |
|
$thumb
= "./" .
$cachedir
. "/" . $t
humbimage
. "." . $e
xtension_t
humb;
|
|
447 |
|
$thu
mb = "./"
. $cachedi
r . "/" .
$thumbimag
e . "." .
$extension
_thumb;
|
| 443 |
|
else
|
|
|
| 444 |
|
$thumb
= "./" .
$cachedir
. "/" . $t
humbimage
. "." . $e
xtension_s
mall;
|
|
|
| 445 |
|
$cco
unt = getK
ommentarCo
unt($image
list[$imag
eid], $twg
_album, $k
werte, $ki
ndex);
|
|
448 |
|
$cco
unt = getK
ommentarCo
unt($image
list[$imag
eid], $twg
_album, $k
werte, $ki
ndex);
|
| 446 |
|
if (
!file_exis
ts($thumb)
|| $disab
le_direct_
thumbs_acc
ess) {
|
|
449 |
|
if (
!file_exis
ts($thumb)
|| $disab
le_direct_
thumbs_acc
ess) {
|
| 447 |
|
$prelo
ad .= "'"
. $install
_dir . "im
age.php?tw
g_album="
. $album_e
nc . "&twg
_type=thum
b&twg_show
=" . $akti
mage . "'"
;
|
|
450 |
|
$prelo
ad .= "'"
. $install
_dir . "im
age.php?tw
g_album="
. $album_e
nc . "&twg
_type=thum
b&twg_show
=" . $akti
mage . "'"
;
|
| 448 |
|
} el
se {
|
|
451 |
|
} el
se {
|
| 449 |
|
if ($d
ouble_enco
de_urls) {
|
|
452 |
|
if ($d
ouble_enco
de_urls) {
|
| 450 |
|
$thumbim
age = urle
ncode($thu
mbimage);
|
|
453 |
|
$thumbim
age = urle
ncode($thu
mbimage);
|
| 451 |
|
}
|
|
454 |
|
}
|
| 452 |
|
if(!$i
la_summary
)
|
|
|
| 453 |
|
$preload
.= "'./"
. $cachedi
r . "/" .
urlencode(
$thumbimag
e) . "." .
$extensio
n_thumb .
"'";
|
|
455 |
|
$prelo
ad .= "'./
" . $cache
dir . "/"
. urlencod
e($thumbim
age) . "."
. $extens
ion_thumb
. "'";
|
| 454 |
|
else
|
|
|
| 455 |
|
$preload
.= "'./"
. $cachedi
r . "/" .
urlencode(
$thumbimag
e) . "." .
$extensio
n_small .
"'";
|
|
|
| 456 |
|
}
|
|
456 |
|
}
|
| 457 |
|
$pre
load .= ",
";
|
|
457 |
|
$pre
load .= ",
";
|
| 458 |
|
$ima
geid++;
|
|
458 |
|
$ima
geid++;
|
| |
| 463 |
|
}
|
|
463 |
|
}
|
| 464 |
|
}
|
|
464 |
|
}
|
| 465 |
|
|
|
465 |
|
|
| 466 |
|
function p
rint_thumb
nail_page_
links($cim
agelist, $
thumbnails
, $album_e
nc, $twg_o
ffset, $we
rte, $inde
x, $twg_fo
ffset) {
|
|
|
| 467 |
|
gl
obal $thum
bnails_x,
$thumbnail
s_y, $cach
edir, $kwe
rte, $kind
ex, $based
ir;
|
|
|
| 468 |
|
gl
obal $exte
nsion_thum
b, $top10,
$privatel
ogin;
|
|
|
| 469 |
|
gl
obal $ila_
summary,$e
xtension_s
mall,$smal
l_pic_size
;
|
|
|
| 470 |
|
gl
obal $lang
_thumb_for
ward, $lan
g_thumb_ba
ck, $insta
ll_dir, $u
se_origina
l_on_thumb
spage;
|
|
|
| 471 |
|
gl
obal $twg_
standalone
, $twg_sta
ndalonejs,
$double_e
ncode_urls
, $autodet
ect_maximu
m_thumbnai
ls;
|
|
|
| 472 |
|
gl
obal $thum
b_pic_size
, $show_nu
mber_of_co
mments, $l
ang_commen
ts, $disab
le_direct_
thumbs_acc
ess;
|
|
|
| 473 |
|
gl
obal $show
_subdirs_f
irst, $sho
w_clipped_
images, $t
humb_pic_s
ize, $othe
r_file_for
mats, $sho
w_other_fo
rmats_at_t
humb;
|
|
|
| 474 |
|
gl
obal $acti
vate_light
box_thumb,
$activate
_lightbox_
thumb_full
, $show_ca
ption_on_t
humbs;
|
|
|
| 475 |
|
gl
obal $thum
b_cellpadd
ing, $thum
b_cellspac
ing, $left
_htm_width
, $album_t
ree_width,
$enable_a
lbum_tree;
|
|
|
| 476 |
|
gl
obal $oper
a, $album_
tree_defau
lt_open,$t
humbnail_o
ffset_y;
|
|
|
| 477 |
|
|
|
|
| 478 |
|
if
($cimagel
ist > $thu
mbnails) {
|
|
|
| 479 |
|
if (
$twg_offse
t > 0) {
|
|
|
| 480 |
|
if(!$i
la_summary
) {
|
|
|
| 481 |
|
$hreflas
t = sprint
f("%s?twg_
album=%s&a
mp;twg_off
set=%s%s",
$_SERVER[
'PHP_SELF'
], $album_
enc, $twg_
offset - $
thumbnails
, $twg_sta
ndalone);
|
|
|
| 482 |
|
$hreflas
tjs = spri
ntf("%s?tw
g_album=%s
&twg_offse
t=%s%s", $
_SERVER['P
HP_SELF'],
$album_en
c, $twg_of
fset - $th
umbnails,
$twg_stand
alonejs);
|
|
|
| 483 |
|
} else
{
|
|
|
| 484 |
|
$hreflas
t = sprint
f("%s?twg_
album=%s&a
mp;twg_sum
mary&t
wg_offset=
%s%s", $_S
ERVER['PHP
_SELF'], $
album_enc,
$twg_offs
et - $thum
bnails, $t
wg_standal
one);
|
|
|
| 485 |
|
$hreflas
tjs = spri
ntf("%s?tw
g_album=%s
&twg_summa
ry&twg_off
set=%s%s",
$_SERVER[
'PHP_SELF'
], $album_
enc, $twg_
offset - $
thumbnails
, $twg_sta
ndalonejs)
;
|
|
|
| 486 |
|
}
|
|
|
| 487 |
|
echo '
<script ty
pe="text/j
avascript"
> function
key_back(
) { locati
on.href="'
. $hrefla
stjs . '"
} </script
>';
|
|
|
| 488 |
|
printf
(" <a href
='%s'>%s</
a>", $href
last , $la
ng_thumb_b
ack);
|
|
|
| 489 |
|
}
|
|
|
| 490 |
|
prin
t " |";
|
|
|
| 491 |
|
$num
pages = ce
il($cimage
list / ($t
humbnails_
x * $thumb
nails_y));
|
|
|
| 492 |
|
for(
$i = 0; $i
< $numpag
es ; $i++)
{
|
|
|
| 493 |
|
$twg_o
ffset_ = $
i * ($thum
bnails_x *
$thumbnai
ls_y);
|
|
|
| 494 |
|
if ($t
wg_offset
== $twg_of
fset_) {
|
|
|
| 495 |
|
$actpage
= $i;
|
|
|
| 496 |
|
echo "<s
pan class=
'twg_bold'
>";
|
|
|
| 497 |
|
}
|
|
|
| 498 |
|
if(!$i
la_summary
) {
|
|
|
| 499 |
|
printf("
<a href='
%s?twg_alb
um=%s&
twg_offset
=%s%s'>%s<
/a>", $_SE
RVER['PHP_
SELF'], $a
lbum_enc,
$twg_offse
t_, $twg_s
tandalone,
$i + 1);
|
|
|
| 500 |
|
} else
{
|
|
|
| 501 |
|
printf("
<a href='
%s?twg_alb
um=%s&
twg_summar
y&twg_
offset=%s%
s'>%s</a>"
, $_SERVER
['PHP_SELF
'], $album
_enc, $twg
_offset_,
$twg_stand
alone, $i
+ 1);
|
|
|
| 502 |
|
}
|
|
|
| 503 |
|
if ($t
wg_offset
== $twg_of
fset_) {
|
|
|
| 504 |
|
echo "</
span>";
|
|
|
| 505 |
|
}
|
|
|
| 506 |
|
echo "
| ";
|
|
|
| 507 |
|
}
|
|
|
| 508 |
|
if (
$actpage !
= $numpage
s - 1) {
|
|
|
| 509 |
|
if(!$i
la_summary
) {
|
|
|
| 510 |
|
$hrefnex
t = sprint
f("%s?twg_
album=%s&a
mp;twg_off
set=%s%s",
$_SERVER[
'PHP_SELF'
], $album_
enc, $twg_
offset + $
thumbnails
, $twg_sta
ndalone);
|
|
|
| 511 |
|
$hrefnex
tjs = spri
ntf("%s?tw
g_album=%s
&twg_offse
t=%s%s", $
_SERVER['P
HP_SELF'],
$album_en
c, $twg_of
fset + $th
umbnails,
$twg_stand
alonejs);
|
|
|
| 512 |
|
} else
{
|
|
|
| 513 |
|
$hrefnex
t = sprint
f("%s?twg_
album=%s&a
mp;twg_sum
mary&t
wg_offset=
%s%s", $_S
ERVER['PHP
_SELF'], $
album_enc,
$twg_offs
et + $thum
bnails, $t
wg_standal
one);
|
|
|
| 514 |
|
$hrefnex
tjs = spri
ntf("%s?tw
g_album=%s
&twg_summa
ry&twg_off
set=%s%s",
$_SERVER[
'PHP_SELF'
], $album_
enc, $twg_
offset + $
thumbnails
, $twg_sta
ndalonejs)
;
|
|
|
| 515 |
|
}
|
|
|
| 516 |
|
echo '
<script ty
pe="text/j
avascript"
> function
key_forew
ard() { lo
cation.hre
f="' . $hr
efnextjs .
'" } </sc
ript>';
|
|
|
| 517 |
|
printf
(" <a href
='%s'>%s</
a>", $href
next , $la
ng_thumb_f
orward);
|
|
|
| 518 |
|
}
|
|
|
| 519 |
|
}
|
|
|
| 520 |
|
}
|
|
|
| 521 |
|
|
|
|
| 522 |
|
function p
rint_album
_tree($bas
edir)
|
|
466 |
|
function p
rint_album
_tree($bas
edir)
|
| 523 |
|
{
|
|
467 |
|
{
|
| 524 |
|
gl
obal $albu
m_tree_wid
th, $autoc
lose_tree,
$album_tr
ee_default
_open;
|
|
468 |
|
gl
obal $albu
m_tree_wid
th, $autoc
lose_tree,
$album_tr
ee_default
_open;
|
| |