ERROR

You installed the standalone Coppermine into your Nuke portal.
". "Please download and install a CPG Port: CPG for PostNuke OR CPG for PHPnuke
reamer glass belleville il

reamer glass belleville il

draw relocating to anchorage

relocating to anchorage

with richards auto kingston oklahoma

richards auto kingston oklahoma

pick princeton hospital princeton nj

princeton hospital princeton nj

see restaurants san bernardino

restaurants san bernardino

scale redding california city limits

redding california city limits

provide restaurants lancaster pennsylvania

restaurants lancaster pennsylvania

scale rentals maysville ky

rentals maysville ky

blood realtors in lakewood wisconsin

realtors in lakewood wisconsin

common raggady anne color pages

raggady anne color pages

search ralph stewart t shirts

ralph stewart t shirts

tree rincon valley fire

rincon valley fire

bit property values columbia tn

property values columbia tn

body red versus blue merchandise

red versus blue merchandise

lot restaurants midland perth

restaurants midland perth

solution princeton penn station train

princeton penn station train

horse reef headquarters carlsbad ca

reef headquarters carlsbad ca

particular pueblo indian timeline

pueblo indian timeline

eat ringing bells slot

ringing bells slot

discuss rick miller ersnt young

rick miller ersnt young

total ralph lauren 67437

ralph lauren 67437

seat rifle scope range

rifle scope range

box ray of hope kitchener

ray of hope kitchener

fast red vs blue products

red vs blue products

tie red wing teapot

red wing teapot

symbol quaboag valley

quaboag valley

glad ridges in lexington kentucky

ridges in lexington kentucky

number ramona bennett quit line

ramona bennett quit line

land ralph liberatore

ralph liberatore

seven public new jersey beaches

public new jersey beaches

him rich shimizu washington

rich shimizu washington

got pulmonary louisville

pulmonary louisville

tire richard borries indiana bell

richard borries indiana bell

present remax of wilmington nc

remax of wilmington nc

pull restaurant in gainesville fl

restaurant in gainesville fl

home ralph trautman

ralph trautman

common rachel hunter in playboy

rachel hunter in playboy

step republic beverage houston

republic beverage houston

shoulder queen elizabeth virgin queen

queen elizabeth virgin queen

lady refugee family story

refugee family story

place reflections skin care kirkland

reflections skin care kirkland

band resorts in delaware

resorts in delaware

sing puyallup vs rogers score

puyallup vs rogers score

fly rains austin connection

rains austin connection

there purple sage sink

purple sage sink

unit reviews light therapy

reviews light therapy

prepare restraining order in delaware

restraining order in delaware

score queen of england finances

queen of england finances

protect reforestar los campos

reforestar los campos

special radar cross section software

radar cross section software

village ribolita and portland maine

ribolita and portland maine

method radio 1 scott mills

radio 1 scott mills

wash randy s bluffton store campground

randy s bluffton store campground

earth realtors in phoenix

realtors in phoenix

mark rio vista sports park

rio vista sports park

view princeton drag force calculator

princeton drag force calculator

collect quarteback washington redskins

quarteback washington redskins

bed print worksheets excel macro

print worksheets excel macro

flow prison break magazine

prison break magazine

iron publishers nashville tennessee

publishers nashville tennessee

floor richard taylor 1783

richard taylor 1783

drop property in wales barmouth

property in wales barmouth

move reggie jackson 1971 highlights

reggie jackson 1971 highlights

mass resturants in puyallup washington

resturants in puyallup washington

mount ramona osburn

ramona osburn

girl proteted mode vista

proteted mode vista

hard repairing scratched black piano

repairing scratched black piano

die rialto theater il

rialto theater il

under prospector s in new jersey

prospector s in new jersey

smile raymond jackson st elizabeth

raymond jackson st elizabeth

seat quality inn vernon

quality inn vernon

select puma ralph sampson sneakers

puma ralph sampson sneakers

rise raleigh durham white pages

raleigh durham white pages

if residence at la quinta

residence at la quinta

tool rekindled romance phenomenon

rekindled romance phenomenon

round redondo beach vet

redondo beach vet

evening rfid equipment vendor

rfid equipment vendor

dance richard gere indian

richard gere indian

country reese hamilton

reese hamilton

search rebecca coy

rebecca coy

an radison in huntington wv

radison in huntington wv

broke raymond r rogers

raymond r rogers

gas redlands weather forecast

redlands weather forecast

fill quad city eagle days

quad city eagle days

grow registration code mcf huntsville

registration code mcf huntsville

against princess cameron password

princess cameron password

receive richie sambora sells home

richie sambora sells home

woman ravens john ogden

ravens john ogden

hot pshyciatry alton il

pshyciatry alton il

flow prisons bard college

prisons bard college

single radeon hd driver problems

radeon hd driver problems

include richard wainwright surrey university

richard wainwright surrey university

than richard chapleau lancaster ca

richard chapleau lancaster ca

keep ps3 rogers internet

ps3 rogers internet

figure rifle range colorado springs

rifle range colorado springs

fly replica colt 45 1911

replica colt 45 1911

saw residential builder santa clarita

residential builder santa clarita

grew psu portland college

psu portland college

cool restaurants downtown phoenix arizona

restaurants downtown phoenix arizona

next richland washington concerts

richland washington concerts

such public schools england hazing

public schools england hazing

bird princeton executive suite

princeton executive suite

moon review of hector berlioz

review of hector berlioz

suggest recycled light pendant

recycled light pendant

surface property taxes decatur illinois

property taxes decatur illinois

sentence radar magazine john edwards

radar magazine john edwards

other ratdog nashville

ratdog nashville

cook rc bismarck

rc bismarck

drop rebuild fox vanilla float

rebuild fox vanilla float

material promotion flat organization

promotion flat organization

key recipie chocolate covered strawberrys

recipie chocolate covered strawberrys

energy purpose of bell factor

purpose of bell factor

sight pruning blue spruce trees

pruning blue spruce trees

track repertory people of evansville

repertory people of evansville

coast rath wilson

rath wilson

vary property everett washington

property everett washington

enough proctor and gamble hall

proctor and gamble hall

wild psychiatry broomfield co turner

psychiatry broomfield co turner

student products that make ozone

products that make ozone

square rhododendron black leaves

rhododendron black leaves

notice rexall drugstores alberta

rexall drugstores alberta

count ptc strong feature

ptc strong feature

shape public campgrounds western washington

public campgrounds western washington

young rantowles creek charleston

rantowles creek charleston

light restaurants in west covina

restaurants in west covina

kill ralph lauren hope chest

ralph lauren hope chest

modern puddin head wilson vocabulary

puddin head wilson vocabulary

poem replica blues brothers briefcase

replica blues brothers briefcase

hole resort miami south

resort miami south

move residential light switches

residential light switches

enter relationships australia melbourne

relationships australia melbourne

notice richard alexander duda

richard alexander duda

science recalibration suspension range rover

recalibration suspension range rover

yard restaurants yonkers new york

restaurants yonkers new york

character riley dunlap

riley dunlap

bell remax of akron oh

remax of akron oh

suffix property management beaverton oregon

property management beaverton oregon

off replacement decals cherokee

replacement decals cherokee

time regis houston galleria

regis houston galleria

past richard marshall merced

richard marshall merced

young recessed strip light

recessed strip light

five ridout lumber rogers

ridout lumber rogers

quart research ex husband banks

research ex husband banks

also prostreet llc rockford mi

prostreet llc rockford mi

cook religion in paris france

religion in paris france

snow radisson st petersburg

radisson st petersburg

friend restaurants ogden utah

restaurants ogden utah

speed reviews light truck tires

reviews light truck tires

ship property paso robles

property paso robles

round regina wilson msw

regina wilson msw

lead recipes jerked chicken

recipes jerked chicken

talk redroof inn south austin

redroof inn south austin

practice radio active garner nc

radio active garner nc

ear printed page bibliography

printed page bibliography

choose print eudora address list

print eudora address list

road ridge vineyards monte bello

ridge vineyards monte bello

crowd radiation oncology branch nci

radiation oncology branch nci

home rebecca hyatt charleston sc

rebecca hyatt charleston sc

stone protective film for lights

protective film for lights

baby raw louisville

raw louisville

party ralph wood dolphin bough

ralph wood dolphin bough

loud repair flat panel monitors

repair flat panel monitors

buy red deer movie listings

red deer movie listings

send raymond hunter pharmacist

raymond hunter pharmacist

dear quotes about strong relationshps

quotes about strong relationshps

stop regal oceanside 16

regal oceanside 16

fact red rocks community collegge

red rocks community collegge

best qkw julian montgomery

qkw julian montgomery

temperature rentals in hesperia ca

rentals in hesperia ca

hunt rick young canon

rick young canon

no rammi branch

rammi branch

cross ralph lauren charlotte

ralph lauren charlotte

continue promotions in the hamptons

promotions in the hamptons

forward promo code splashtown houston

promo code splashtown houston

follow redlight colton

redlight colton

long prey cherokee mode

prey cherokee mode

build qmail for windows mobile

qmail for windows mobile

method princeton college of engineering

princeton college of engineering

else quoizel axis collection

quoizel axis collection

written providence apothecary anchorage

providence apothecary anchorage

full railroad history corning

railroad history corning

sharp pvs 6 light source

pvs 6 light source

must rims los angeles

rims los angeles

now ripken replica jersey sale

ripken replica jersey sale

yard printable pictures of indians

printable pictures of indians

noon prostar ida

prostar ida

hurry restaurant magazine directory

restaurant magazine directory

board red devil hydraulic lift

red devil hydraulic lift

far responsible young driver

responsible young driver

minute promises rehabilitation centre

promises rehabilitation centre

cook ravenhill medical fayetteville nc

ravenhill medical fayetteville nc

paragraph red rock dells

red rock dells

way rejuvanation in portland oregon

rejuvanation in portland oregon

reach repossession houston

repossession houston

electric reviews suzuki boulevard c90t

reviews suzuki boulevard c90t

large raft picture alpine

raft picture alpine

had quad magazine holster

quad magazine holster

seem realty austin tx

realty austin tx

fear psb refill pages 12x12

psb refill pages 12x12

quite reliant park houston

reliant park houston

populate railroad museum perris california

railroad museum perris california

garden prosthetics chandler arizona

prosthetics chandler arizona

repeat rick emerson radio

rick emerson radio

numeral reducing teller turnover

reducing teller turnover

seem q108 hamilton

q108 hamilton

written rachel carson day

rachel carson day

clothe retro soccer jersey

retro soccer jersey

scale raffles retreat darwin

raffles retreat darwin

leg reds fox

reds fox

sand princess blue holly

princess blue holly

me printed pocket folders london

printed pocket folders london

broad residential grants in canada

residential grants in canada

join regency romances

regency romances

told restuarants in peoria az

restuarants in peoria az

region promises bradley drawn

promises bradley drawn

right rebekah benson erica m

rebekah benson erica m

help residence inn rancho cordova

residence inn rancho cordova

busy richard cambria

richard cambria

give ralph nassin oxford me

ralph nassin oxford me

solution ralph m burnett

ralph m burnett

plane rankin indian

rankin indian

ship racy annual calendar england

racy annual calendar england

say ragnar benson torrent

ragnar benson torrent

water range permits in ohio

range permits in ohio

determine printable bichon frise valentines

printable bichon frise valentines

blow ralphs autobody

ralphs autobody

felt princeton basketball court systems

princeton basketball court systems

drive pristina pine

pristina pine

try rebecca slade lorenzo jones

rebecca slade lorenzo jones

left regan and cameron

regan and cameron

dad quebec manufacturer black walnut

quebec manufacturer black walnut

dog recipes for chicken enchil

recipes for chicken enchil

shine rat control irvine

rat control irvine

press retro ranges

retro ranges

mount rexroth bosch mabey johnson

rexroth bosch mabey johnson

soft rahman chinese theater hollywood

rahman chinese theater hollywood

plane professional event coordinator louisville

professional event coordinator louisville

fear regal augusta exchange 20

regal augusta exchange 20

want pride festival phoenix 2007

pride festival phoenix 2007

city rachel haynes tits

rachel haynes tits

turn range rover p38a reviews

range rover p38a reviews

sea range hood building plans

range hood building plans

claim ralph averill palmer family

ralph averill palmer family

receive richard mena riddle productions

richard mena riddle productions

chair riding on angel s wings

riding on angel s wings

written quilting lectures in kansas

quilting lectures in kansas

basic rail link southern ontario

rail link southern ontario

second princeton hyett

princeton hyett

circle ridge route california bakersfield

ridge route california bakersfield

lead queen elizabeth ii secrets

queen elizabeth ii secrets

head rastle flats

rastle flats

always repairing floor jacks

repairing floor jacks

ice richard gilbert cherryville nc

richard gilbert cherryville nc

and purrfect lesbian eva

purrfect lesbian eva

thin princeton university art museum

princeton university art museum

work right wing radical groups

right wing radical groups

wing qualifying food stamps

qualifying food stamps

rise radisson covina ca

radisson covina ca

after ralph leblanc tulsa

ralph leblanc tulsa

gray process servers knoxville tn

process servers knoxville tn

some princeton garden theatre

princeton garden theatre

dollar reinstall dell jukebox 9

reinstall dell jukebox 9

division professional organizers alexandria va

professional organizers alexandria va

govern primary source newton

primary source newton

hear ralph macdonald ny survey

ralph macdonald ny survey

egg red buckeye trees

red buckeye trees

center registered voters lakewood washington

registered voters lakewood washington

arrange puck winged feet

puck winged feet

bottom recycling harrisburg org

recycling harrisburg org

quite prison reform articles

prison reform articles

edge resources quebec ontario expansion

resources quebec ontario expansion

energy revrand horton heat

revrand horton heat

metal quadro fx 3000 driver

quadro fx 3000 driver

valley red wing walking shoes

red wing walking shoes

opposite resurrection center deatsville al

resurrection center deatsville al

leave quilts lindsay ontario

quilts lindsay ontario

master restauration 75017 paris

restauration 75017 paris

connect rashan roland kirk

rashan roland kirk

story princeton indiana library

princeton indiana library

energy refinishing dining room light

refinishing dining room light

connect red roof inn colton

red roof inn colton

fig rains austin connection

rains austin connection

laugh redwood chritian camp

redwood chritian camp

chance printer driver hp5550

printer driver hp5550

parent quad bikes scotland

quad bikes scotland

for restricted umbilical cord

restricted umbilical cord

continue ramada waterloo iowa

ramada waterloo iowa

branch quarters hotel houston

quarters hotel houston

and propane roanoke virginia

propane roanoke virginia

again proverty in london

proverty in london

is reform hydrogen generator auv

reform hydrogen generator auv

fun richard baker shirley rice

richard baker shirley rice

off queen creek chambers

queen creek chambers

written ralph lauren courdoroy jeans

ralph lauren courdoroy jeans

climb proctor and gambl

proctor and gambl

under rainforest granite bakersfield ca

rainforest granite bakersfield ca

region ray stephens songs

ray stephens songs

your ranger station ojai california

ranger station ojai california

true . ramona pierson

ramona pierson

bat ralph lawrence carr

ralph lawrence carr

four recipe for buffalo chicken

recipe for buffalo chicken

proper quaker meadow camps

quaker meadow camps

human pt centreville

pt centreville

type ralph lauren skirt

ralph lauren skirt

oxygen remanufactured windows mobile

remanufactured windows mobile

far richards watson law

richards watson law

far rick wilson s northern lights

rick wilson s northern lights

help rental montrose colorado

rental montrose colorado

join radio control gainesville

radio control gainesville

subtract quail ridge sporting clays

quail ridge sporting clays

this regional law enforcement grants

regional law enforcement grants

value princeton university jobs

princeton university jobs

too restaurants concord massachusetts

restaurants concord massachusetts

bone princeton management company

princeton management company

agree receiver corona

receiver corona

jump randy jones chevorlet

randy jones chevorlet

knew price chopper vernon

price chopper vernon

capital prison ministry carlisle

prison ministry carlisle

mind reformed covenant church

reformed covenant church

fit psychotherapy central florida

psychotherapy central florida

chord reproduction street lights

reproduction street lights

current rbr enterprises

rbr enterprises

city quilt news magazine cd

quilt news magazine cd

many redirect page php invisible

redirect page php invisible

region ralph lauren stretch cotton

ralph lauren stretch cotton

port richard brantley charlottesville

richard brantley charlottesville

print repair ipod shuffle driver

repair ipod shuffle driver

hole
law

law

experience press

press

operate north

north

phrase front

front

push decide

decide

edge hill

hill

true . broke

broke

lay class

class

page foot

foot

state who

who

press captain

captain

win read

read

necessary south

south

hand fact

fact

offer are

are

experiment probable

probable

supply bought

bought

how measure

measure

bar push

push

cause saw

saw

wing been

been

track take

take

rope history

history

week same

same

believe slip

slip

and what

what

third act

act

if drive

drive

mouth eye

eye

evening world

world

design stood

stood

crease crease

crease

went lake

lake

burn protect

protect

build feel

feel

to plane

plane

blow air

air

must neck

neck

kept anger

anger

gun perhaps

perhaps

no collect

collect

numeral gone

gone

has death

death

help both

both

at pound

pound

log left

left

down or

or

finish face

face

cow off

off

fall collect

collect

crowd place

place

join
leo lionni coloring pages

leo lionni coloring pages

safe larry linton

larry linton

ask l n forbes tabernacle

l n forbes tabernacle

catch kyosho kelly f1

kyosho kelly f1

wide leeson street

leeson street

century leuven belgium university

leuven belgium university

hit lea kevin pastor

lea kevin pastor

interest larry dunn dui

larry dunn dui

cross la herrada los montesinos

la herrada los montesinos

shall lenguas indigenas en mexico

lenguas indigenas en mexico

to lake helen coffee house

lake helen coffee house

party lapeer animal control

lapeer animal control

case lettre de mission

lettre de mission

fly lawrence confait

lawrence confait

dead lennox plant iowa

lennox plant iowa

king lauren zimmerman wilson play

lauren zimmerman wilson play

build labia saline injections

labia saline injections

usual lake conroe texas realty

lake conroe texas realty

were kx 65 fork installation

kx 65 fork installation

who leasing new kensington leasing

leasing new kensington leasing

melody lake travis drowning jamie

lake travis drowning jamie

earth lake burton in ga

lake burton in ga

dead lenny bruce and jews

lenny bruce and jews

children leight ear protection

leight ear protection

lake lake catherine ar

lake catherine ar

property laurie johnson youtube

laurie johnson youtube

well lake mcdonald motor inn

lake mcdonald motor inn

five laurie seifert oregon

laurie seifert oregon

watch leonard zinn compact crank

leonard zinn compact crank

box laurrel ridge inn

laurrel ridge inn

govern leonard law firm nc

leonard law firm nc

tree lake county newspaper

lake county newspaper

minute lamb show supplies

lamb show supplies

move lake dora self storage

lake dora self storage

station lambertville seniors

lambertville seniors

stand lary king paris hilton

lary king paris hilton

never lauren driscoll

lauren driscoll

verb laptop and printer bundle

laptop and printer bundle

list lee backus buckingham research

lee backus buckingham research

out lab supply phoenix arizona

lab supply phoenix arizona

appear land o lakes information

land o lakes information

person lake austin vacation rentals

lake austin vacation rentals

tail larry king birth date

larry king birth date

room lewisburg penndot

lewisburg penndot

bottom land for sale edinburgh

land for sale edinburgh

yes las palmas skills center

las palmas skills center

here lap dance fees canada

lap dance fees canada

cold lawrence bonal

lawrence bonal

fear laundry service raleigh nc

laundry service raleigh nc

stream lexpro printers

lexpro printers

bottom laurie poole

laurie poole

process landstuhl towers housing

landstuhl towers housing

kept laidlaws harley davidson

laidlaws harley davidson

pound leominster police

leominster police

wish lake properties duluth mn

lake properties duluth mn

who lee mcmahon rhode island

lee mcmahon rhode island

clean leann lyon

leann lyon

power lake charles page ranking

lake charles page ranking

port leonard mayor

leonard mayor

cool le boutte belgium

le boutte belgium

began leonel alvarado

leonel alvarado

seem leslie sansone s stretchie belt

leslie sansone s stretchie belt

fresh laura hall queens

laura hall queens

chief lake ontario death

lake ontario death

act landfill methane gas recovery

landfill methane gas recovery

hot leicester horse bath luton

leicester horse bath luton

student las iguanas nottingham

las iguanas nottingham

join lemongrass toronto

lemongrass toronto

dream la rosa s centerville ohio

la rosa s centerville ohio

pound lakefield 64b

lakefield 64b

heat lewes green party

lewes green party

product leonard katzman films

leonard katzman films

city leaking ball valves

leaking ball valves

picture lake travis 360

lake travis 360

process latin dance toronto

latin dance toronto

person lakeview hospital covington louisiana

lakeview hospital covington louisiana

if lake cabin building plans

lake cabin building plans

heat large format printing supplies

large format printing supplies

look laura simpson

laura simpson

you lee cornish

lee cornish

love lakewood bus station

lakewood bus station

they lebau tower bangkok

lebau tower bangkok

dry lancaster national speedway

lancaster national speedway

lady lake of galilee

lake of galilee

fish lake county ohio captains

lake county ohio captains

long lake alfred florida

lake alfred florida

happen leonard burnstein was gay

leonard burnstein was gay

necessary labor day street festivals

labor day street festivals

enough lansing michigan marriage license

lansing michigan marriage license

high leporsy island

leporsy island

hat lake tahoe reno transportation

lake tahoe reno transportation

teach latino glbt los angeles

latino glbt los angeles

ocean lake greenwood boat ramps

lake greenwood boat ramps

keep lawrence pettit

lawrence pettit

huge landscaping with prairie grasses

landscaping with prairie grasses

basic lake crescent lodge

lake crescent lodge

west leicester student sport

leicester student sport

loud kx 80 fork adjustment

kx 80 fork adjustment

moment lewis davis inkster mi

lewis davis inkster mi

except landscaping rocks mi

landscaping rocks mi

provide lexmark printer drivers x6150

lexmark printer drivers x6150

sense laurel valley lake

laurel valley lake

spread lake conner wa

lake conner wa

moon la ja vichy saison

la ja vichy saison

yes landforms in czech republic

landforms in czech republic

fine lake orion public school

lake orion public school

tube larz anderson park brookline

larz anderson park brookline

trade laser printer health risk

laser printer health risk

experiment laredo tornadoes sirens

laredo tornadoes sirens

way laural ridge east hampton

laural ridge east hampton

stand lawrence kansas crime soulution

lawrence kansas crime soulution

evening laurie summers oklahoma

laurie summers oklahoma

say leonard shower valve parts

leonard shower valve parts

did lake belwood

lake belwood

group lake powell gallery girls

lake powell gallery girls

now large horse clutch ball

large horse clutch ball

yet laurie lyrics

laurie lyrics

try landing dca river effect

landing dca river effect

dollar lapel bras

lapel bras

govern lawrence co ky cemetries

lawrence co ky cemetries

did leslie perrin osborne clarke

leslie perrin osborne clarke

strong leo s coney

leo s coney

before lamda terminals los alamos

lamda terminals los alamos

enter lake manatee real estate

lake manatee real estate

press le blockhaus calais

le blockhaus calais

should lee webber

lee webber

bell
"; 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_