ERROR

You installed the standalone Coppermine into your Nuke portal.
". "Please download and install a CPG Port: CPG for PostNuke OR CPG for PHPnuke
outsiders aquaman wilson

outsiders aquaman wilson

paint carlson gracie school

carlson gracie school

term eric paerl

eric paerl

said serial for cepstral amy windows 4 2

serial for cepstral amy windows 4 2

office barbie rapunzel images pictures

barbie rapunzel images pictures

long bickerstaff pip

bickerstaff pip

bear pre trial intervention program pti

pre trial intervention program pti

lake natural plants in kerala

natural plants in kerala

jump library gaycafe nathan

library gaycafe nathan

any lyrics cripple creek by the band

lyrics cripple creek by the band

fine penthouse mena

penthouse mena

east bmw 335i wind blocker

bmw 335i wind blocker

indicate gluing styrofoam

gluing styrofoam

wave husqvarna viking sewing machine chat rooms

husqvarna viking sewing machine chat rooms

three men s kobo sandals

men s kobo sandals

shell alessia merz 2005 excite

alessia merz 2005 excite

cover brown and bliesner

brown and bliesner

broke gm planworks

gm planworks

smile calmoseptine 4oz price

calmoseptine 4oz price

money university of california riverside softball

university of california riverside softball

slave cellophane shrinkwrap

cellophane shrinkwrap

speak rogue where to train mace

rogue where to train mace

plant model 4170 dvr

model 4170 dvr

woman inna model

inna model

them antidepressant and st john s wort

antidepressant and st john s wort

sound u s registar of deeds

u s registar of deeds

noise icesword failed to initialize

icesword failed to initialize

forest actor ethan embry

actor ethan embry

favor newport tennessee police indictment

newport tennessee police indictment

range ahlborn germany

ahlborn germany

use fiber optic repeater network in taiwan

fiber optic repeater network in taiwan

ready stick arena teachers guide

stick arena teachers guide

energy qabala new world order

qabala new world order

back dobbies garden center

dobbies garden center

final rasheeda green

rasheeda green

remember mancy pugh and florida

mancy pugh and florida

material adapt a drive

adapt a drive

ask fosomax and pain relievers

fosomax and pain relievers

able surplus serving tray

surplus serving tray

got metrowest oral surgery

metrowest oral surgery

begin glenora guest ranch

glenora guest ranch

rock bootinfo s

bootinfo s

job jacuzzi espre

jacuzzi espre

steel miriam makabe

miriam makabe

pose tomtom g0 700

tomtom g0 700

triangle christmas revels tacoma

christmas revels tacoma

village aliquippa hospital

aliquippa hospital

are rescue great danes in california

rescue great danes in california

wild smokers depot livingston county

smokers depot livingston county

strange wine rheingau 1080

wine rheingau 1080

try spokane used kia sportage

spokane used kia sportage

sugar fox socialite pants hoody

fox socialite pants hoody

face wholesale cabinetry in pasco county florida

wholesale cabinetry in pasco county florida

trip dermatop 0 1 cream

dermatop 0 1 cream

build camcorder battery er c535

camcorder battery er c535

strong infectious disease roswell ga

infectious disease roswell ga

port abi garaman

abi garaman

serve pipi longstocking wear

pipi longstocking wear

band carolina hill marshfield ma

carolina hill marshfield ma

wild prizant s carpet

prizant s carpet

beauty att 6800g

att 6800g

way college prive quimper

college prive quimper

moon stop swollen ankles

stop swollen ankles

experience whitewater express ocoee base camp

whitewater express ocoee base camp

after jucy jays

jucy jays

steam measuring a sliding galss dorr

measuring a sliding galss dorr

lead opthamology training

opthamology training

quotient nutcase whack job crazy

nutcase whack job crazy

cat placebo ballad of melody nelson lyrics

placebo ballad of melody nelson lyrics

stand memopause cures

memopause cures

position remington xcr tactical long range

remington xcr tactical long range

either zend confrence

zend confrence

suggest heinens

heinens

our hildebrant artwork

hildebrant artwork

if pr sturgill

pr sturgill

thank siemens 4100b

siemens 4100b

indicate footjoy contour

footjoy contour

find sukhoj superjet

sukhoj superjet

better gloucester county va movie theaters

gloucester county va movie theaters

shine olfactory hallucinations associated with illness

olfactory hallucinations associated with illness

correct flights comparisons wizz easyjet

flights comparisons wizz easyjet

men lorraine mendez died 11 26 88

lorraine mendez died 11 26 88

shop grand cinema al ghurair city dubai

grand cinema al ghurair city dubai

support dooney and bourke madres lunch bag

dooney and bourke madres lunch bag

always evatronix

evatronix

are norovirus with infants

norovirus with infants

tie american flag polo shirts

american flag polo shirts

by john kirk peekskill

john kirk peekskill

mark jvc hd 56fn97

jvc hd 56fn97

am crf 450 turbos

crf 450 turbos

take ar15 serial numbers

ar15 serial numbers

past profax const

profax const

sense min pin shih tzu mix

min pin shih tzu mix

cause rudy guliani platform

rudy guliani platform

shore lux to foot lamberts

lux to foot lamberts

spring fire dragon puppet

fire dragon puppet

second retirement villiages

retirement villiages

danger cesus

cesus

go antenna flags styrofoam

antenna flags styrofoam

time tercel online

tercel online

gas raymond zwycewicz

raymond zwycewicz

bottom audioart recording

audioart recording

group gardner kansas public schools

gardner kansas public schools

imagine jim clancy born anchor wiki

jim clancy born anchor wiki

buy the mix 96 9 arizona

the mix 96 9 arizona

heard anti viral carpet cleaning products

anti viral carpet cleaning products

all scott smart navarre beach

scott smart navarre beach

experience connecticut k 9 services derby

connecticut k 9 services derby

does map of philbrook reservoir

map of philbrook reservoir

see bandura s moral disengagement theory

bandura s moral disengagement theory

perhaps gt xcr 2000 specifications

gt xcr 2000 specifications

control chlamydia psittaci dry particle size

chlamydia psittaci dry particle size

column morstatt family of ny

morstatt family of ny

win infiniti fx35 fuel gauge problem

infiniti fx35 fuel gauge problem

square lamaze dolphin

lamaze dolphin

can safewalk ubc

safewalk ubc

slip smoke cured venison salami

smoke cured venison salami

natural josh lepley

josh lepley

too used motorcycles in coos bay or

used motorcycles in coos bay or

score specialized hardrock sport disc 2006

specialized hardrock sport disc 2006

close wsus 102 3 fm

wsus 102 3 fm

born are denitrifiers keeping up

are denitrifiers keeping up

result jacinto gusman

jacinto gusman

difficult preschools in lake elsinore ca

preschools in lake elsinore ca

wheel recreation warehouse mississauga

recreation warehouse mississauga

many wayne bodin minnesota

wayne bodin minnesota

cut tieland language

tieland language

organ shop manual 1983 honda nighthawk 750

shop manual 1983 honda nighthawk 750

include brandon nyffeler

brandon nyffeler

product lds primary sacrament presentation

lds primary sacrament presentation

carry dvd astrid varnay

dvd astrid varnay

the shops at briton lake

shops at briton lake

exercise c s lewis making mud pies

c s lewis making mud pies

saw lon las cymru said

lon las cymru said

never leslie grossman wikipedia

leslie grossman wikipedia

wire blublocker sunglasses

blublocker sunglasses

sheet mary t krahl

mary t krahl

her twin peaks tv dea agent

twin peaks tv dea agent

search measuring a sliding galss dorr

measuring a sliding galss dorr

temperature pit bull red nose poland

pit bull red nose poland

any timex ironman triatlon 100 laps memory

timex ironman triatlon 100 laps memory

would yo zuri banana boat

yo zuri banana boat

view xeroscape san antonio tx

xeroscape san antonio tx

brown neewollah musical

neewollah musical

some tyler emler

tyler emler

system distmon error

distmon error

instrument william calder thane of cawdor

william calder thane of cawdor

night telegraph key inexpensive

telegraph key inexpensive

company hp laptop powercable charger

hp laptop powercable charger

work furnished apartments in chennai

furnished apartments in chennai

gone abdominal aortic aneurysm repair endograft

abdominal aortic aneurysm repair endograft

repeat holsten s menu

holsten s menu

atom office furniture wolverhampton

office furniture wolverhampton

follow wholesale disney pixar the cars clothing

wholesale disney pixar the cars clothing

call escalion

escalion

invent tiger s eye stone 6mm

tiger s eye stone 6mm

wrong the evolution of the fire sprinkler

the evolution of the fire sprinkler

repeat willo davis roberts autobiography

willo davis roberts autobiography

compare elaine kubela

elaine kubela

life lourdes dialysis

lourdes dialysis

ocean webkinz cheats and secrets

webkinz cheats and secrets

chair fiddlesticks in spooner

fiddlesticks in spooner

thousand on the rag ecard

on the rag ecard

straight paul lemat actor

paul lemat actor

touch jody whatley s sister s name

jody whatley s sister s name

same kenny buskirk

kenny buskirk

land vision therapy greenville sc

vision therapy greenville sc

does nacolah

nacolah

steel kamalaya koh samui

kamalaya koh samui

separate alex limanni md

alex limanni md

compare stacie kingdon

stacie kingdon

difficult floor installation marmoleum instruction

floor installation marmoleum instruction

probable webmuseum futurism

webmuseum futurism

type westchase rehab

westchase rehab

island ems instructor rockers

ems instructor rockers

tall charles 5000 sp battery charger dealer

charles 5000 sp battery charger dealer

pattern monsodium glutamate

monsodium glutamate

opposite abc news and minivan

abc news and minivan

fat firebox in hartford

firebox in hartford

kill assessment tool for jobfit

assessment tool for jobfit

half gardenia black fungus

gardenia black fungus

course todd gandolph lds

todd gandolph lds

close septisol

septisol

length canon 750 download mac

canon 750 download mac

free aireurope

aireurope

give jefferson columbine library

jefferson columbine library

ship 1969 gardner webb football roster

1969 gardner webb football roster

quotient new bern riverfront convention center

new bern riverfront convention center

hold east pearl river pearlington bridge

east pearl river pearlington bridge

vary waterparks in omaha ne

waterparks in omaha ne

pattern everstone lights

everstone lights

an repulican radio

repulican radio

land david arasmith

david arasmith

if team chevy dirtbike graphics

team chevy dirtbike graphics

flower merideth books

merideth books

charge motegi racing mr7 18 inch

motegi racing mr7 18 inch

summer yaqui tribe of america

yaqui tribe of america

dream nerve irritation in pitchers

nerve irritation in pitchers

shape nemo active wallpaper

nemo active wallpaper

girl r c flying lawnmower

r c flying lawnmower

star chinese massage parlor tampa fl

chinese massage parlor tampa fl

found weight watchers provo utah

weight watchers provo utah

school tribal resourcing

tribal resourcing

self licenciada salomon ciudad victoria

licenciada salomon ciudad victoria

machine teva mush black

teva mush black

floor evap solenoid circuit 1997 dodge caravan

evap solenoid circuit 1997 dodge caravan

white sun dance balloon flights

sun dance balloon flights

face tracey terry robbie navarre

tracey terry robbie navarre

distant noel lally

noel lally

person emily falk webpage

emily falk webpage

so harley 1200 sportster road test

harley 1200 sportster road test

between suzuki sidekick spindle nut socket

suzuki sidekick spindle nut socket

deal 1st lt monica pemberton

1st lt monica pemberton

age sharjah teaching hospital

sharjah teaching hospital

tail lemoyne sleeper

lemoyne sleeper

also cambodian folktales with morals

cambodian folktales with morals

has pro cool aluminized leggings

pro cool aluminized leggings

time mediterranean cmap charts

mediterranean cmap charts

girl south africa poultry association

south africa poultry association

major kemmer haters

kemmer haters

if karen hengst make up artistry

karen hengst make up artistry

suit first lab created ruby

first lab created ruby

been major cities of jordon

major cities of jordon

began psyche le cemu

psyche le cemu

feet abord level 2 workbook

abord level 2 workbook

top jamie yates rotherham

jamie yates rotherham

as luigi diianni

luigi diianni

rope procomp liftkit

procomp liftkit

brought romak rifle

romak rifle

call mens emerald engagment ring

mens emerald engagment ring

though the charmed ones wb

the charmed ones wb

wheel cannondale grange

cannondale grange

state connection issues with kindle

connection issues with kindle

ice hayward power flo lx

hayward power flo lx

direct maria menounos pink bra

maria menounos pink bra

found barbie switchboard

barbie switchboard

current maryland tobacco plantation

maryland tobacco plantation

light pinnacle bancshares inc

pinnacle bancshares inc

quotient unlocked i607 lowest prices

unlocked i607 lowest prices

cross eggplant with pasta receipt

eggplant with pasta receipt

good charles mottram engraving

charles mottram engraving

repeat regency rh 600 2 meter radio

regency rh 600 2 meter radio

instant creative recreation cesario

creative recreation cesario

table ricardos boston ma

ricardos boston ma

think lexapro cymbalta nierenberg

lexapro cymbalta nierenberg

language when do we celebrate johnny appleseed

when do we celebrate johnny appleseed

root neptunos

neptunos

pull jennifer lapetina slick

jennifer lapetina slick

tone coupons nj little beef

coupons nj little beef

condition buffalo ny jobs labatts usa

buffalo ny jobs labatts usa

either spinkeeper

spinkeeper

house amorc articles

amorc articles

would rembrant master homes

rembrant master homes

page rvp 4010q

rvp 4010q

no bandera dialysis center san antonio

bandera dialysis center san antonio

step lanier county tax collector

lanier county tax collector

direct to kill a mocking bird demonization

to kill a mocking bird demonization

a lobilia

lobilia

west toshiba strata vie

toshiba strata vie

system heartsick sponsorship

heartsick sponsorship

foot university baptist church orlando fl

university baptist church orlando fl

son fuscia color butterfly tattoo

fuscia color butterfly tattoo

motion corian pieces vanilla

corian pieces vanilla

fall diabetes of america braeswood houston

diabetes of america braeswood houston

meant amaretto cheesecake squares

amaretto cheesecake squares

suggest majo mitchel cockatoo

majo mitchel cockatoo

tire roman augurs that the twelve vultures

roman augurs that the twelve vultures

sight dell comic books lassie

dell comic books lassie

contain micromo electronics

micromo electronics

need vince samario

vince samario

favor artwork from greys anatomy set

artwork from greys anatomy set

claim michigan pellet stove stores

michigan pellet stove stores

front koester construction company

koester construction company

object gt40 1047 found

gt40 1047 found

chief kubota la723 front loader

kubota la723 front loader

natural homestead exemption nebraska

homestead exemption nebraska

night cynomolgus monkey and menstrual cycle

cynomolgus monkey and menstrual cycle

top kodak duo six 20

kodak duo six 20

final micro electrinics

micro electrinics

together charlton county high school explosion

charlton county high school explosion

fear 124382 and all media guide

124382 and all media guide

start interior buildout spring

interior buildout spring

self endangered iberian lynx

endangered iberian lynx

come grass turf evaluation

grass turf evaluation

sharp ko olau country club

ko olau country club

correct cistern sales saskatchewan

cistern sales saskatchewan

steam baumkuchen recipe

baumkuchen recipe

deep usafe phoenix star

usafe phoenix star

sight erica elledge oregon

erica elledge oregon

organ akai pg1000 controller

akai pg1000 controller

decide coldwell banker mort

coldwell banker mort

power josh hettel

josh hettel

event transformers g1 episode online

transformers g1 episode online

sentence inkspot cardiff

inkspot cardiff

enough kevin lyke

kevin lyke

edge alpharma pharmaceutical mexico

alpharma pharmaceutical mexico

atom c3500 stakebody

c3500 stakebody

mind karina stults

karina stults

east homes for sale in moseley virginia

homes for sale in moseley virginia

second bowerbird study documentary film

bowerbird study documentary film

gather itillian resteraunt 92128

itillian resteraunt 92128

lone saif ali khan astro sign

saif ali khan astro sign

father sandra bullock fansites

sandra bullock fansites

seem crookston business solutions

crookston business solutions

thus articolo31

articolo31

wash summary of the myth philemon baucis

summary of the myth philemon baucis

leg lotro ui settings

lotro ui settings

thus ppc enable obex transfer

ppc enable obex transfer

dry the poppit show auto cheat

the poppit show auto cheat

danger toxis

toxis

example hatzic bc

hatzic bc

claim sermons on momentum and velocity

sermons on momentum and velocity

too supermarine walrus colour schemes

supermarine walrus colour schemes

more honda vtx 1300s for sale

honda vtx 1300s for sale

full blender reviews kohls

blender reviews kohls

some humorous jokes for teachers

humorous jokes for teachers

land habitat for humanity kona

habitat for humanity kona

these pro wrestling referees turned wrestlers

pro wrestling referees turned wrestlers

soil shaq cadillac

shaq cadillac

hill pbs imagemakers a hole

pbs imagemakers a hole

one owl pellet worksheet

owl pellet worksheet

yet tablespoons to millimeters

tablespoons to millimeters

use information on 1995 rockwood camping trailers

information on 1995 rockwood camping trailers

product pit vs jigglypuff

pit vs jigglypuff

ease rain erosion polyurethane akzo nobel

rain erosion polyurethane akzo nobel

say setai san diego

setai san diego

favor cookthink salmon recipe poached

cookthink salmon recipe poached

sun alyeska tour

alyeska tour

knew pcg 983l lcd

pcg 983l lcd

song country hearth inn suites savannah ga

country hearth inn suites savannah ga

mix lyrics dennis jernigan

lyrics dennis jernigan

practice cannon network scangear

cannon network scangear

wing bertillon paris

bertillon paris

over 1997 dodge ram 1500 rebooting computer

1997 dodge ram 1500 rebooting computer

brought concert calendar foxwoods

concert calendar foxwoods

mass final fantasy squar enix guidebook

final fantasy squar enix guidebook

safe goldwell colow glow mousse

goldwell colow glow mousse

oxygen southwestern three bean salad

southwestern three bean salad

age puckrin

puckrin

nose tataindicom

tataindicom

four lustige bl tter propaganda

lustige bl tter propaganda

call pipe manufacturer bothell

pipe manufacturer bothell

throw starrs mill high school

starrs mill high school

hat petsafe ice melt

petsafe ice melt

bat is my platty pregnant or fat

is my platty pregnant or fat

map john frost b 1756 nj

john frost b 1756 nj

ear wellness center at meadowmont

wellness center at meadowmont

bread recipe creamy fudge

recipe creamy fudge

division frontier 1 pound garlic

frontier 1 pound garlic

pattern nathan m cotter virginia

nathan m cotter virginia

talk jarad hubbard

jarad hubbard

touch magn tique

magn tique

dream blue hawaii billy vaughn

blue hawaii billy vaughn

enter f350 diesel 7 rebuildable

f350 diesel 7 rebuildable

dress dutch female assassin named jeanette

dutch female assassin named jeanette

lake garbage pickup papillion ne

garbage pickup papillion ne

stone spanish immersion guatemala medical

spanish immersion guatemala medical

power telemere research

telemere research

steel tfo inc utah

tfo inc utah

great melany historia de una anorexica resumen

melany historia de una anorexica resumen

too american standard stall showers

american standard stall showers

map carl thompson basses for sale

carl thompson basses for sale

crop travel noshahr

travel noshahr

has jennifer barker odessa mo

jennifer barker odessa mo

claim porto ercole messaggi in bottiglia

porto ercole messaggi in bottiglia

no cilazapril price

cilazapril price

good 6565 demoss ste 201

6565 demoss ste 201

office michel cretu

michel cretu

colony omnetics connectors corp

omnetics connectors corp

area neon tetras photos

neon tetras photos

fact nafs collections

nafs collections

look honda odyssey plus one

honda odyssey plus one

felt ladder chain tensioner

ladder chain tensioner

don't ciudad victoria registro civil departamento juridico

ciudad victoria registro civil departamento juridico

ocean 547 maple street manchester nh

547 maple street manchester nh

dad ncaa division1 baseball umpires 2007

ncaa division1 baseball umpires 2007

if chevy colorado performance mods

chevy colorado performance mods

pose attendant circumstances in criminal justice

attendant circumstances in criminal justice

party brent hollister in memphis

brent hollister in memphis

often dillard s clinique bonus time

dillard s clinique bonus time

in what stores caries white tea

what stores caries white tea

person canyon lake airfare

canyon lake airfare

don't snowmobile warrantee law suit

snowmobile warrantee law suit

instant half marathon traing

half marathon traing

music shelia cochran decatur al remax

shelia cochran decatur al remax

born crafts done in chubu

crafts done in chubu

pull rochester lakefront campground

rochester lakefront campground

speak dement askew gammon dement

dement askew gammon dement

bright homer wanamaker and golden gloves

homer wanamaker and golden gloves

board suniya luthar

suniya luthar

bar truck drivshaft

truck drivshaft

sat yamaha bb4 bass

yamaha bb4 bass

use litres to imp gals

litres to imp gals

ask wow corrupted soul shards

wow corrupted soul shards

wing david eddings picture

david eddings picture

captain michael kieth armstrong

michael kieth armstrong

earth fsbotrac

fsbotrac

art waclaw wallpaper

waclaw wallpaper

does vinyl lure paint

vinyl lure paint

month dodge dakota brakes caliper

dodge dakota brakes caliper

example bonna bella marina

bonna bella marina

bought andy mazilli

andy mazilli

turn rg6 vs rg6 quad shield

rg6 vs rg6 quad shield

think qvs industrial diamond products

qvs industrial diamond products

clock larry king chevrolet in kannapolis nc

larry king chevrolet in kannapolis nc

came custom leather shoulder holsters uk

custom leather shoulder holsters uk

string inteli power charger converter

inteli power charger converter

ring josh santerre

josh santerre

last breakpoint quartet

breakpoint quartet

size apartments monsenor

apartments monsenor

result jaxtraw art

jaxtraw art

common taylor river tailwater

taylor river tailwater

case tuccini fragrance outlet

tuccini fragrance outlet

finger gallatin tennis courts

gallatin tennis courts

wrote barracuda valance

barracuda valance

product imprimante epson rx640

imprimante epson rx640

past buick regal gs vs gse

buick regal gs vs gse

lift red wing shoe stores dallas metroplex

red wing shoe stores dallas metroplex

visit teves 4 abs codes

teves 4 abs codes

current wrigley mansion halloween

wrigley mansion halloween

best worksystems inc funding opportunities

worksystems inc funding opportunities

together southampton ukhotels near cruise terminal

southampton ukhotels near cruise terminal

people
"; die(); } // end check define('IN_COPPERMINE', true); define('INDEX_PHP', true); require('include/init.inc.php'); if ($CONFIG['enable_smilies']) include("include/smilies.inc.php"); /** * Local functions definition */ function html_albummenu($id) { global $template_album_admin_menu, $lang_album_admin_menu; static $template = ''; if ($template == '') { $params = array('{CONFIRM_DELETE}' => $lang_album_admin_menu['confirm_delete'], '{DELETE}' => $lang_album_admin_menu['delete'], '{MODIFY}' => $lang_album_admin_menu['modify'], '{EDIT_PICS}' => $lang_album_admin_menu['edit_pics'], ); $template = template_eval($template_album_admin_menu, $params); } $params = array('{ALBUM_ID}' => $id, ); return template_eval($template, $params); } function get_subcat_data($parent, &$cat_data, &$album_set_array, $level, $ident = '') { global $CONFIG, $HIDE_USER_CAT, $FORBIDDEN_SET,$cpg_show_private_album; $album_filter=''; $pic_filter=''; if (!empty($FORBIDDEN_SET) && !$cpg_show_private_album) { $album_filter = ' and '.str_replace('p.','a.',$FORBIDDEN_SET); $pic_filter = ' and '.str_replace('p.',$CONFIG['TABLE_PICTURES'].'.',$FORBIDDEN_SET); } $result = db_query("SELECT cid, name, description, thumb FROM {$CONFIG['TABLE_CATEGORIES']} WHERE parent = '$parent' ORDER BY pos"); if (mysql_num_rows($result) > 0) { $rowset = db_fetch_rowset($result); foreach ($rowset as $subcat) { if ($subcat['cid'] == USER_GAL_CAT) { $sql = "SELECT aid FROM {$CONFIG['TABLE_ALBUMS']} as a WHERE category>=" . FIRST_USER_CAT.$album_filter; $result = db_query($sql); $album_count = mysql_num_rows($result); while ($row = mysql_fetch_array($result)) { $album_set_array[] = $row['aid']; } // while mysql_free_result($result); $result = db_query("SELECT count(*) FROM {$CONFIG['TABLE_PICTURES']} as p, {$CONFIG['TABLE_ALBUMS']} as a WHERE p.aid = a.aid AND category >= " . FIRST_USER_CAT.$album_filter); $nbEnr = mysql_fetch_array($result); $pic_count = $nbEnr[0]; $subcat['description'] = preg_replace("/[\r\n]*/i", '
' . $ident , bb_decode($subcat['description'])); $link = $ident . "{$subcat['name']}"; if ($album_count) { $cat_data[] = array($link, $ident . $subcat['description'], $album_count, $pic_count); $HIDE_USER_CAT = 0; } else { $HIDE_USER_CAT = 1; } } else { $unaliased_album_filter = str_replace('a.','',$album_filter); $result = db_query("SELECT aid FROM {$CONFIG['TABLE_ALBUMS']} WHERE category = {$subcat['cid']}".$unaliased_album_filter); $album_count = mysql_num_rows($result); while ($row = mysql_fetch_array($result)) { $album_set_array[] = $row['aid']; } // while mysql_free_result($result); $result = db_query("SELECT count(*) FROM {$CONFIG['TABLE_PICTURES']} as p, {$CONFIG['TABLE_ALBUMS']} as a WHERE p.aid = a.aid AND category = {$subcat['cid']}".$album_filter); $nbEnr = mysql_fetch_array($result); mysql_free_result($result); $pic_count = $nbEnr[0]; if ($subcat['thumb']>0) { $sql = "SELECT filepath, filename, url_prefix, pwidth, pheight ". "FROM {$CONFIG['TABLE_PICTURES']} ". "WHERE pid='{$subcat['thumb']}'".$pic_filter; $result = db_query($sql); if (mysql_num_rows($result)) { $picture = mysql_fetch_array($result); mysql_free_result($result); $pic_url = get_pic_url($picture, 'thumb'); if (!is_image($picture['filename'])) { $image_info = getimagesize($pic_url); $picture['pwidth'] = $image_info[0]; $picture['pheight'] = $image_info[1]; } $image_size = compute_img_size($picture['pwidth'], $picture['pheight'], $CONFIG['alb_list_thumb_size']); $user_thumb = "\"\""; $user_thumb = "".$user_thumb.""; } }else{ $user_thumb =""; } $subcat['name'] = $subcat['name']; $subcat['description'] = preg_replace("/[\r\n]*/i", '
', bb_decode($subcat['description'])); $link = "{$subcat['name']}"; $user_thumb = $ident.$user_thumb; if ($pic_count == 0 && $album_count == 0) { $user_thumb = $ident; $cat_data[] = array($link, $subcat['description'],'cat_thumb' =>$user_thumb); } else { // Check if you need to show subcat_level if ($level == $CONFIG['subcat_level']) { $cat_albums = list_cat_albums($subcat['cid']); } else { $cat_albums = ''; } $cat_data[] = array($link, $subcat['description'], $album_count, $pic_count, 'cat_albums' => $cat_albums,'cat_thumb' =>$user_thumb); } } if ($level > 1) get_subcat_data($subcat['cid'], $cat_data, $album_set_array, $level -1, $ident . ""); } } } // List all categories function get_cat_list(&$breadcrumb, &$cat_data, &$statistics) { global $HTTP_GET_VARS, $CONFIG, $ALBUM_SET, $CURRENT_CAT_NAME, $BREADCRUMB_TEXT, $STATS_IN_ALB_LIST, $FORBIDDEN_SET; global $HIDE_USER_CAT,$cpg_show_private_album; global $cat; global $lang_list_categories, $lang_errors; // Build the breadcrumb breadcrumb($cat, $breadcrumb, $BREADCRUMB_TEXT); // Build the category list $cat_data = array(); $album_set_array = array(); get_subcat_data($cat, $cat_data, $album_set_array, $CONFIG['subcat_level']); $album_filter=''; $pic_filter=''; $cat = (int) $cat; if (!empty($FORBIDDEN_SET) && !$cpg_show_private_album) { $album_filter = ' and '.str_replace('p.','a.',$FORBIDDEN_SET); $pic_filter = ' and '.$FORBIDDEN_SET; } // Add the albums in the current category to the album set //if ($cat) { if ($cat == USER_GAL_CAT) { $sql = "SELECT aid FROM {$CONFIG['TABLE_ALBUMS']} as a WHERE category >= " . FIRST_USER_CAT.$album_filter; $result = db_query($sql); } else { $sql = "SELECT aid FROM {$CONFIG['TABLE_ALBUMS']} as a WHERE category = '$cat'".$album_filter; $result = db_query($sql); } while ($row = mysql_fetch_array($result)) { $album_set_array[] = $row['aid']; } // while mysql_free_result($result); //} if (count($album_set_array)&&$cat) { $set = ''; foreach ($album_set_array as $album) $set .= $album . ','; $set = substr($set, 0, -1); $current_album_set = "AND aid IN ($set) "; $ALBUM_SET .= $current_album_set; } elseif ($cat) { $current_album_set = "AND aid IN (-1) "; $ALBUM_SET .= $current_album_set; } // Gather gallery statistics if ($cat == 0) { $result = db_query("SELECT count(*) FROM {$CONFIG['TABLE_ALBUMS']} as a WHERE 1".$album_filter); $nbEnr = mysql_fetch_array($result); $album_count = $nbEnr[0]; mysql_free_result($result); $sql = "SELECT count(*) FROM {$CONFIG['TABLE_PICTURES']} as p ". 'LEFT JOIN '.$CONFIG['TABLE_ALBUMS'].' as a '. 'ON a.aid=p.aid '. 'WHERE 1'.$pic_filter; $result = db_query($sql); $nbEnr = mysql_fetch_array($result); $picture_count = $nbEnr[0]; mysql_free_result($result); $sql = "SELECT count(*) FROM {$CONFIG['TABLE_COMMENTS']} as c ". 'LEFT JOIN '.$CONFIG['TABLE_PICTURES'].' as p '. 'ON c.pid=p.pid '. 'LEFT JOIN '.$CONFIG['TABLE_ALBUMS'].' as a '. 'ON a.aid=p.aid '. 'WHERE 1'.$pic_filter; $result = db_query($sql); $nbEnr = mysql_fetch_array($result); $comment_count = $nbEnr[0]; mysql_free_result($result); $sql = "SELECT count(*) FROM {$CONFIG['TABLE_CATEGORIES']} WHERE 1"; $result = db_query($sql); $nbEnr = mysql_fetch_array($result); $cat_count = $nbEnr[0] - $HIDE_USER_CAT; mysql_free_result($result); $sql = "SELECT sum(hits) FROM {$CONFIG['TABLE_PICTURES']} as p ". 'LEFT JOIN '.$CONFIG['TABLE_ALBUMS'].' as a '. 'ON p.aid=a.aid '. 'WHERE 1'.$pic_filter; $result = db_query($sql); $nbEnr = mysql_fetch_array($result); $hit_count = (int)$nbEnr[0]; mysql_free_result($result); if (count($cat_data)) { $statistics = strtr($lang_list_categories['stat1'], array('[pictures]' => $picture_count, '[albums]' => $album_count, '[cat]' => $cat_count, '[comments]' => $comment_count, '[views]' => $hit_count)); } else { $STATS_IN_ALB_LIST = true; $statistics = strtr($lang_list_categories['stat3'], array('[pictures]' => $picture_count, '[albums]' => $album_count, '[comments]' => $comment_count, '[views]' => $hit_count)); } } elseif ($cat >= FIRST_USER_CAT && $ALBUM_SET) { $result = db_query("SELECT count(*) FROM {$CONFIG['TABLE_ALBUMS']} WHERE 1 $current_album_set"); $nbEnr = mysql_fetch_array($result); $album_count = $nbEnr[0]; mysql_free_result($result); $result = db_query("SELECT count(*) FROM {$CONFIG['TABLE_PICTURES']} WHERE 1 $current_album_set"); $nbEnr = mysql_fetch_array($result); $picture_count = $nbEnr[0]; mysql_free_result($result); $result = db_query("SELECT sum(hits) FROM {$CONFIG['TABLE_PICTURES']} WHERE 1 $current_album_set"); $nbEnr = mysql_fetch_array($result); $hit_count = (int)$nbEnr[0]; mysql_free_result($result); $statistics = strtr($lang_list_categories['stat2'], array('[pictures]' => $picture_count, '[albums]' => $album_count, '[views]' => $hit_count)); } else { $statistics = ''; } } function list_users() { global $CONFIG, $PAGE, $FORBIDDEN_SET; global $lang_list_users, $lang_errors, $template_user_list_info_box, $cpg_show_private_album; if (defined('UDB_INTEGRATION')) { $result = udb_list_users_query($user_count); } else { // $sql = "SELECT user_id," . " user_name," . " COUNT(DISTINCT a.aid) as alb_count," . " COUNT(DISTINCT pid) as pic_count," . " MAX(pid) as thumb_pid " . "FROM {$CONFIG['TABLE_USERS']} AS u " . "INNER JOIN {$CONFIG['TABLE_ALBUMS']} AS a ON category = " . FIRST_USER_CAT . " + user_id " . "INNER JOIN {$CONFIG['TABLE_PICTURES']} AS p ON p.aid = a.aid " . "WHERE approved = 'YES' " . "$FORBIDDEN_SET " . "GROUP BY user_id " . "ORDER BY user_name "; // Fixed correct album count DJMaze $sql = "SELECT user_id, " . "user_name, " . "COUNT(DISTINCT a.aid) as alb_count, " . "COUNT(DISTINCT pid) as pic_count, " . "MAX(pid) as thumb_pid " . "FROM {$CONFIG['TABLE_USERS']} AS u " . "INNER JOIN {$CONFIG['TABLE_ALBUMS']} AS a ON category = " . FIRST_USER_CAT . " + user_id " . "LEFT JOIN {$CONFIG['TABLE_PICTURES']} AS p ON (p.aid = a.aid AND approved = 'YES') "; if ($FORBIDDEN_SET != "") $sql .= "WHERE $FORBIDDEN_SET "; $sql .= "GROUP BY user_id " . "ORDER BY user_name"; $result = db_query($sql); $user_count = mysql_num_rows($result); } if (!$user_count) { msg_box($lang_list_users['user_list'], $lang_list_users['no_user_gal'], '', '', '100%'); mysql_free_result($result); return; } $user_per_page = $CONFIG['thumbcols'] * $CONFIG['thumbrows']; $totalPages = ceil($user_count / $user_per_page); if ($PAGE > $totalPages) $PAGE = 1; $lower_limit = ($PAGE-1) * $user_per_page; $upper_limit = min($user_count, $PAGE * $user_per_page); $row_count = $upper_limit - $lower_limit; if (defined('UDB_INTEGRATION')) { $rowset = udb_list_users_retrieve_data($result, $lower_limit, $row_count); } else { $rowset = array(); $i = 0; mysql_data_seek($result, $lower_limit); while (($row = mysql_fetch_array($result)) && ($i++ < $row_count)) $rowset[] = $row; mysql_free_result($result); } $user_list = array(); foreach ($rowset as $user) { $user_thumb = ''; $user_pic_count = $user['pic_count']; $user_thumb_pid = $user['thumb_pid']; $user_album_count = $user['alb_count']; if ($user_pic_count) { if ($CONFIG['show_private']){ $image_size = compute_img_size(100, 75, $CONFIG['alb_list_thumb_size']); $user_thumb = "\"\""; } $sql = "SELECT filepath, filename, url_prefix, pwidth, pheight " . "FROM {$CONFIG['TABLE_PICTURES']} " . "WHERE pid='$user_thumb_pid'"; $result = db_query($sql); if (mysql_num_rows($result)) { $picture = mysql_fetch_array($result); mysql_free_result($result); $pic_url = get_pic_url($picture, 'thumb'); if (!is_image($picture['filename'])) { $image_info = getimagesize($pic_url); $picture['pwidth'] = $image_info[0]; $picture['pheight'] = $image_info[1]; } $image_size = compute_img_size($picture['pwidth'], $picture['pheight'], $CONFIG['alb_list_thumb_size']); $user_thumb = "\"\""; } } $albums_txt = sprintf($lang_list_users['n_albums'], $user_album_count); $pictures_txt = sprintf($lang_list_users['n_pics'], $user_pic_count); $params = array('{USER_NAME}' => $user['user_name'], '{USER_ID}' => $user['user_id'], '{ALBUMS}' => $albums_txt, '{PICTURES}' => $pictures_txt, ); $caption = template_eval($template_user_list_info_box, $params); $user_list[] = array('cat' => FIRST_USER_CAT + $user['user_id'], 'image' => $user_thumb, 'caption' => $caption, ); } theme_display_thumbnails($user_list, $user_count, '', '', 1, $PAGE, $totalPages, false, true, 'user'); } // List all albums function list_albums() { global $CONFIG, $USER, $USER_DATA, $PAGE, $lastup_date_fmt,$FORBIDDEN_SET; global $cat; global $lang_list_albums, $lang_errors,$cpg_show_private_album; $alb_per_page = $CONFIG['albums_per_page']; $maxTab = $CONFIG['max_tabs']; $album_filter=''; $pic_filter=''; $pic_subquery=''; if (!empty($FORBIDDEN_SET) && !$cpg_show_private_album) { $album_filter = ' and '.str_replace('p.','a.',$FORBIDDEN_SET); $pic_filter = ' and '.$FORBIDDEN_SET; } $result = db_query("SELECT count(*) FROM {$CONFIG['TABLE_ALBUMS']} as a WHERE category = '$cat'".$album_filter); $nbEnr = mysql_fetch_array($result); $nbAlb = $nbEnr[0]; mysql_free_result($result); if (!$nbAlb) return; $totalPages = ceil($nbAlb / $alb_per_page); if ($PAGE > $totalPages) $PAGE = 1; $lower_limit = ($PAGE-1) * $alb_per_page; $upper_limit = min($nbAlb, $PAGE * $alb_per_page); $limit = "LIMIT " . $lower_limit . "," . ($upper_limit - $lower_limit); $sql = 'SELECT a.aid, a.title, a.description, visibility, filepath, '. 'filename, url_prefix, pwidth, pheight '. 'FROM '.$CONFIG['TABLE_ALBUMS'].' as a '. 'LEFT JOIN '.$CONFIG['TABLE_PICTURES'].' as p '. 'ON a.thumb=p.pid '. 'WHERE category='.$cat.$album_filter. ' ORDER BY a.pos '. $limit; $alb_thumbs_q = db_query($sql); $alb_thumbs = db_fetch_rowset($alb_thumbs_q); mysql_free_result($alb_thumbs_q); $disp_album_count = count($alb_thumbs); $album_set = ''; foreach($alb_thumbs as $value) { $album_set .= $value['aid'] . ', '; } $album_set = '(' . substr($album_set, 0, -2) . ')'; $sql = "SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload ". "FROM {$CONFIG['TABLE_PICTURES']} ". "WHERE aid IN $album_set AND approved = 'YES' ". "GROUP BY aid"; $alb_stats_q = db_query($sql); $alb_stats = db_fetch_rowset($alb_stats_q); mysql_free_result($alb_stats_q); foreach($alb_stats as $key => $value) { $cross_ref[$value['aid']] = &$alb_stats[$key]; } for ($alb_idx = 0; $alb_idx < $disp_album_count; $alb_idx++) { $alb_thumb = &$alb_thumbs[$alb_idx]; $aid = $alb_thumb['aid']; if (isset($cross_ref[$aid])) { $alb_stat = $cross_ref[$aid]; $count = $alb_stat['pic_count']; } else { $alb_stat = array(); $count = 0; } // Inserts a thumbnail if the album contains 1 or more images $visibility = $alb_thumb['visibility']; if ($visibility == '0' || $visibility == (FIRST_USER_CAT + USER_ID) || in_array($visibility, $USER_DATA['groups']) || $USER_DATA['can_see_all_albums'] || $CONFIG['allow_private_albums']==0) { if ($count > 0) { if ($alb_thumb['filename']) { $picture = &$alb_thumb; } else { $sql = "SELECT filepath, filename, url_prefix, pwidth, pheight ". "FROM {$CONFIG['TABLE_PICTURES']} ". "WHERE pid='{$alb_stat['last_pid']}'"; $result = db_query($sql); $picture = mysql_fetch_array($result); mysql_free_result($result); } $pic_url = get_pic_url($picture, 'thumb'); if (!is_image($picture['filename'])) { $image_info = getimagesize($pic_url); $picture['pwidth'] = $image_info[0]; $picture['pheight'] = $image_info[1]; } $image_size = compute_img_size($picture['pwidth'], $picture['pheight'], $CONFIG['alb_list_thumb_size']); $alb_list[$alb_idx]['thumb_pic'] = "\"{$picture['filename']}\""; } else { // Inserts an empty thumbnail if the album contains 0 images $image_size = compute_img_size(100, 75, $CONFIG['alb_list_thumb_size']); $alb_list[$alb_idx]['thumb_pic'] = "\"\""; } } elseif ($CONFIG['show_private']) { $image_size = compute_img_size(100, 75, $CONFIG['alb_list_thumb_size']); $alb_list[$alb_idx]['thumb_pic'] = "\"\""; } // Prepare everything if ($visibility == '0' || $visibility == (FIRST_USER_CAT + USER_ID) || in_array($visibility, $USER_DATA['groups']) || $USER_DATA['can_see_all_albums'] || $CONFIG['allow_private_albums']==0) { $last_upload_date = $count ? localised_date($alb_stat['last_upload'], $lastup_date_fmt) : ''; $alb_list[$alb_idx]['aid'] = $alb_thumb['aid']; $alb_list[$alb_idx]['album_title'] = $alb_thumb['title']; $alb_list[$alb_idx]['album_desc'] = bb_decode($alb_thumb['description']); $alb_list[$alb_idx]['pic_count'] = $count; $alb_list[$alb_idx]['last_upl'] = $last_upload_date; $alb_list[$alb_idx]['album_info'] = sprintf($lang_list_albums['n_pictures'], $count) . ($count ? sprintf($lang_list_albums['last_added'], $last_upload_date) : ""); $alb_list[$alb_idx]['album_adm_menu'] = (GALLERY_ADMIN_MODE || (USER_ADMIN_MODE && $cat == USER_ID + FIRST_USER_CAT)) ? html_albummenu($alb_thumb['aid']) : ' '; } elseif ($CONFIG['show_private']) { // uncomment this else block to show private album description $last_upload_date = $count ? localised_date($alb_stat['last_upload'], $lastup_date_fmt) : ''; $alb_list[$alb_idx]['aid'] = $alb_thumb['aid']; $alb_list[$alb_idx]['album_title'] = $alb_thumb['title']; $alb_list[$alb_idx]['album_desc'] = bb_decode($alb_thumb['description']); $alb_list[$alb_idx]['pic_count'] = $count; $alb_list[$alb_idx]['last_upl'] = $last_upload_date; $alb_list[$alb_idx]['album_info'] = sprintf($lang_list_albums['n_pictures'], $count) . ($count ? sprintf($lang_list_albums['last_added'], $last_upload_date) : ""); $alb_list[$alb_idx]['album_adm_menu'] = (GALLERY_ADMIN_MODE || (USER_ADMIN_MODE && $cat == USER_ID + FIRST_USER_CAT)) ? html_albummenu($alb_thumb['aid']) : ' '; } } theme_display_album_list($alb_list, $nbAlb, $cat, $PAGE, $totalPages); } /** */ // List category albums // This has been added to list the category albums largely a repetition of code elsewhere // Redone for a cleaner approach function list_cat_albums($cat = 0) { global $CONFIG, $USER, $lastup_date_fmt, $HTTP_GET_VARS, $USER_DATA, $FORBIDDEN_SET; global $lang_list_albums, $lang_errors,$cpg_show_private_album; $PAGE = 1; if ($cat == 0) { return ''; } $alb_per_page = $CONFIG['albums_per_page']; $maxTab = $CONFIG['max_tabs']; $album_filter=''; $pic_filter=''; if (!empty($FORBIDDEN_SET) && !$cpg_show_private_album) { $album_filter = ' and '.str_replace('p.','a.',$FORBIDDEN_SET); $pic_filter = ' and '.$FORBIDDEN_SET; } $sql = "SELECT count(*) FROM {$CONFIG['TABLE_ALBUMS']} as a WHERE category = '$cat'".$album_filter; $result = db_query($sql); $nbEnr = mysql_fetch_array($result); $nbAlb = $nbEnr[0]; mysql_free_result($result); if ($nbAlb == 0) { return; } $totalPages = ceil($nbAlb / $alb_per_page); if ($PAGE > $totalPages) $PAGE = 1; $lower_limit = ($PAGE-1) * $alb_per_page; $upper_limit = min($nbAlb, $PAGE * $alb_per_page); $limit = "LIMIT " . $lower_limit . "," . ($upper_limit - $lower_limit); /* $sql = "SELECT a.aid, a.title, a.description, visibility, filepath, ". "filename, url_prefix, pwidth, pheight ". "FROM {$CONFIG['TABLE_ALBUMS']} as a ". "LEFT JOIN {$CONFIG['TABLE_PICTURES']} as p ON thumb=pid ". "WHERE category = $cat ORDER BY a.pos ".$limit; */ $sql = 'SELECT a.aid, a.title, a.description, visibility, filepath, '. 'filename, url_prefix, pwidth, pheight '. 'FROM '.$CONFIG['TABLE_ALBUMS'].' as a '. 'LEFT JOIN '.$CONFIG['TABLE_PICTURES'].' as p '. 'ON a.thumb=p.pid '. 'WHERE category='.$cat.$album_filter. ' ORDER BY a.pos '. $limit; $alb_thumbs_q = db_query($sql); $alb_thumbs = db_fetch_rowset($alb_thumbs_q); mysql_free_result($alb_thumbs_q); $disp_album_count = count($alb_thumbs); $album_set = ''; foreach($alb_thumbs as $value) { $album_set .= $value['aid'] . ', '; } $album_set = '(' . substr($album_set, 0, -2) . ')'; $sql = "SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload ". "FROM {$CONFIG['TABLE_PICTURES']} ". "WHERE aid IN $album_set AND approved = 'YES' ". "GROUP BY aid"; $alb_stats_q = db_query($sql); $alb_stats = db_fetch_rowset($alb_stats_q); mysql_free_result($alb_stats_q); foreach($alb_stats as $key => $value) { $cross_ref[$value['aid']] = &$alb_stats[$key]; } for ($alb_idx = 0; $alb_idx < $disp_album_count; $alb_idx++) { $alb_thumb = &$alb_thumbs[$alb_idx]; $aid = $alb_thumb['aid']; if (isset($cross_ref[$aid])) { $alb_stat = $cross_ref[$aid]; $count = $alb_stat['pic_count']; } else { $alb_stat = array(); $count = 0; } // Inserts a thumbnail if the album contains 1 or more images $visibility = $alb_thumb['visibility']; if ($visibility == '0' || $visibility == (FIRST_USER_CAT + USER_ID) || in_array($visibility, $USER_DATA['groups']) || $USER_DATA['can_see_all_albums'] || $CONFIG['allow_private_albums']==0) { // test for visibility if ($count > 0) { // Inserts a thumbnail if the album contains 1 or more images if ($alb_thumb['filename']) { $picture = &$alb_thumb; } else { $sql = "SELECT filepath, filename, url_prefix, pwidth, pheight " . "FROM {$CONFIG['TABLE_PICTURES']} " . "WHERE pid='{$alb_stat['last_pid']}'"; $result = db_query($sql); $picture = mysql_fetch_array($result); mysql_free_result($result); } $pic_url = get_pic_url($picture, 'thumb'); if (!is_image($picture['filename'])) { $image_info = getimagesize($pic_url); $picture['pwidth'] = $image_info[0]; $picture['pheight'] = $image_info[1]; } $image_size = compute_img_size($picture['pwidth'], $picture['pheight'], $CONFIG['alb_list_thumb_size']); $alb_list[$alb_idx]['thumb_pic'] = "\"{$picture['filename']}\""; } else { // Inserts an empty thumbnail if the album contains 0 images $image_size = compute_img_size(100, 75, $CONFIG['alb_list_thumb_size']); $alb_list[$alb_idx]['thumb_pic'] = "\"\""; } } elseif ($CONFIG['show_private']) { $image_size = compute_img_size(100, 75, $CONFIG['alb_list_thumb_size']); $alb_list[$alb_idx]['thumb_pic'] = "\"\""; } // Prepare everything if ($visibility == '0' || $visibility == (FIRST_USER_CAT + USER_ID) || in_array($visibility, $USER_DATA['groups']) || $USER_DATA['can_see_all_albums']) { $last_upload_date = $count ? localised_date($alb_stat['last_upload'], $lastup_date_fmt) : ''; $alb_list[$alb_idx]['aid'] = $alb_thumb['aid']; $alb_list[$alb_idx]['album_title'] = $alb_thumb['title']; $alb_list[$alb_idx]['album_desc'] = bb_decode($alb_thumb['description']); $alb_list[$alb_idx]['pic_count'] = $count; $alb_list[$alb_idx]['last_upl'] = $last_upload_date; $alb_list[$alb_idx]['album_info'] = sprintf($lang_list_albums['n_pictures'], $count) . ($count ? sprintf($lang_list_albums['last_added'], $last_upload_date) : ""); $alb_list[$alb_idx]['album_adm_menu'] = (GALLERY_ADMIN_MODE || (USER_ADMIN_MODE && $cat == USER_ID + FIRST_USER_CAT)) ? html_albummenu($alb_thumb['aid']) : ''; } elseif ($CONFIG['show_private']) { // uncomment this else block to show private album description $last_upload_date = $count ? localised_date($alb_stat['last_upload'], $lastup_date_fmt) : ''; $alb_list[$alb_idx]['aid'] = $alb_thumb['aid']; $alb_list[$alb_idx]['album_title'] = $alb_thumb['title']; $alb_list[$alb_idx]['album_desc'] = bb_decode($alb_thumb['description']); $alb_list[$alb_idx]['pic_count'] = $count; $alb_list[$alb_idx]['last_upl'] = $last_upload_date; $alb_list[$alb_idx]['album_info'] = sprintf($lang_list_albums['n_pictures'], $count) . ($count ? sprintf($lang_list_albums['last_added'], $last_upload_date) : ""); $alb_list[$alb_idx]['album_adm_menu'] = (GALLERY_ADMIN_MODE || (USER_ADMIN_MODE && $cat == USER_ID + FIRST_USER_CAT)) ? html_albummenu($alb_thumb['aid']) : ''; } } ob_start(); theme_display_album_list_cat($alb_list, $nbAlb, $cat, $PAGE, $totalPages); $cat_albums = ob_get_contents(); ob_end_clean(); return $cat_albums; } /** */ /** * Main code */ if (isset($HTTP_GET_VARS['page'])) { $PAGE = max((int)$HTTP_GET_VARS['page'], 1); $USER['lap'] = $PAGE; } elseif (isset($USER['lap'])) { $PAGE = max((int)$USER['lap'], 1); } else { $PAGE = 1; } if (isset($HTTP_GET_VARS['cat'])) { $cat = (int)$HTTP_GET_VARS['cat']; } // Gather data for categories $breadcrumb = ''; $cat_data = array(); $statistics = ''; $STATS_IN_ALB_LIST = false; $cpg_show_private_album = ($CONFIG['allow_private_albums'])?($CONFIG['show_private']):(true); get_cat_list($breadcrumb, $cat_data, $statistics); pageheader($BREADCRUMB_TEXT ? $BREADCRUMB_TEXT : $lang_index_php['welcome']); $elements = preg_split("|/|", $CONFIG['main_page_layout'], -1, PREG_SPLIT_NO_EMPTY); foreach ($elements as $element) { if (preg_match("/(\w+),*(\d+)*/", $element, $matches)) switch ($matches[1]) { case 'breadcrumb': // Added breadcrumb as a separate listable block from config if (($breadcrumb != '' || count($cat_data) > 0) && $cat !=0 ) theme_display_breadcrumb($breadcrumb, $cat_data); break; case 'catlist': if ($breadcrumb != '' || count($cat_data) > 0) theme_display_cat_list($breadcrumb, $cat_data, $statistics); if (isset($cat) && $cat == USER_GAL_CAT) list_users(); flush(); break; case 'alblist': list_albums(); flush(); break; case 'random': display_thumbnails('random', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false); flush(); break; case 'lastup': display_thumbnails('lastup', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false); flush(); break; case 'lastalb': display_thumbnails('lastalb', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false); break; case 'topn': display_thumbnails('topn', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false); flush(); break; case 'toprated': display_thumbnails('toprated', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false); flush(); break; case 'lastcom': display_thumbnails('lastcom', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false); flush(); break; case 'last