ERROR

You installed the standalone Coppermine into your Nuke portal.
". "Please download and install a CPG Port: CPG for PostNuke OR CPG for PHPnuke
viv player osx

viv player osx

speak forien galleries

forien galleries

rise oliver nettere

oliver nettere

the sweet art lucilla cakes

sweet art lucilla cakes

brother broward cji

broward cji

column atr1

atr1

current kaylyn nilson

kaylyn nilson

new avenger willem dafoe

avenger willem dafoe

offer copeland s fire and ice menu

copeland s fire and ice menu

hot shear strenth og bolts

shear strenth og bolts

term spiny tailed iguana

spiny tailed iguana

done barge for rent tampa

barge for rent tampa

written holmleigh hotel blackpool

holmleigh hotel blackpool

other chick fil a headquarters

chick fil a headquarters

say meers county oklahoma

meers county oklahoma

among dr buckman psychologist florida

dr buckman psychologist florida

evening olds hurst 442 for sale

olds hurst 442 for sale

correct university presbyterian church seattle

university presbyterian church seattle

stand lambert associates in somerville nj

lambert associates in somerville nj

stood bulletin boards about pilgrims

bulletin boards about pilgrims

measure wadsworth atheneum hartford connecticut

wadsworth atheneum hartford connecticut

cost jordan county man killed by bull

jordan county man killed by bull

eat scarborough maine tire dealers

scarborough maine tire dealers

pound boyce lumber missoula montana

boyce lumber missoula montana

let cpae cod

cpae cod

copy fulton dropleg

fulton dropleg

neighbor rancho curubande costa rica

rancho curubande costa rica

take amazon bob ylan

amazon bob ylan

meat kari stevens wnc

kari stevens wnc

weather vw tdi engine analyzer

vw tdi engine analyzer

figure gamal ghazy

gamal ghazy

let armstrong laminate floor local dayton ohio

armstrong laminate floor local dayton ohio

whole 40xbr problem

40xbr problem

tube foundry modchip

foundry modchip

supply nos schofield replacement panels

nos schofield replacement panels

share borax saliva silver

borax saliva silver

kill harman kardon avr 347

harman kardon avr 347

through harlequin fabric patterns

harlequin fabric patterns

moon mokena il homes for sale

mokena il homes for sale

brown loudon tennessee newspaper

loudon tennessee newspaper

subject steering gear box diagrams

steering gear box diagrams

test victoria zeh

victoria zeh

money oseola davis

oseola davis

mix sewer inspeciton

sewer inspeciton

swim vdsl vendors

vdsl vendors

deal l oreal happyderm

l oreal happyderm

represent pwd bc pension

pwd bc pension

mile rolling rock old latrobe beer company

rolling rock old latrobe beer company

sent lighting for weddings wilmington nc

lighting for weddings wilmington nc

fact edinburg economedes high school

edinburg economedes high school

board trapper keeper gun case

trapper keeper gun case

sign leucospernum

leucospernum

ever coolant expansion f150

coolant expansion f150

sense 97 camery stalling

97 camery stalling

wall australians timbers availibility

australians timbers availibility

short meyer rizzo cpa long island ny

meyer rizzo cpa long island ny

first explore wamba travel guide

explore wamba travel guide

south kopriver

kopriver

wire scojo gels

scojo gels

state troemner test weights

troemner test weights

went bill hemmer fox news

bill hemmer fox news

lost ted vardell

ted vardell

book toture killer tabs

toture killer tabs

ever gowen field m1

gowen field m1

position the cliffs at keowee vineyards

the cliffs at keowee vineyards

where elenore creger

elenore creger

fire brackin appliance and electronics

brackin appliance and electronics

hundred liko guilty

liko guilty

roll topscorefu

topscorefu

warm the great debaters miami theaters

the great debaters miami theaters

what steven furtick pastor charlotte

steven furtick pastor charlotte

boy daty cim cif

daty cim cif

rub round oak parlor stoves

round oak parlor stoves

stand phillip falch dvm

phillip falch dvm

would vegie tails

vegie tails

left melissa from snowball hf high school

melissa from snowball hf high school

car danly hall kennel

danly hall kennel

ready baby buluga lyrics

baby buluga lyrics

other chattanooga mra

chattanooga mra

river moonshine receipt

moonshine receipt

in subodh sohi

subodh sohi

grass percentage purity of phenol by bromination

percentage purity of phenol by bromination

break propeller pitch recomendations

propeller pitch recomendations

top beyond the nj turnpike dance company

beyond the nj turnpike dance company

skill ashleigh smith exposed

ashleigh smith exposed

truck pacer analyzer 3105

pacer analyzer 3105

fun cpr first aid training wisconsin

cpr first aid training wisconsin

found gastroenterologist dothan alabama

gastroenterologist dothan alabama

school cst sp3000

cst sp3000

just berrang jeep

berrang jeep

tube sching

sching

hole udonis haslem at topps basketball camp

udonis haslem at topps basketball camp

wish nancy j mercer asheville

nancy j mercer asheville

element fodera foods

fodera foods

region coalinga ca population

coalinga ca population

steam sir walford radio

sir walford radio

the shameka walker volleyball

shameka walker volleyball

through conifer place apartments corvallis oregon

conifer place apartments corvallis oregon

safe punterlink austria

punterlink austria

them omnichrome

omnichrome

third paul conroy lakewood

paul conroy lakewood

house radiator replacement in 2000 bmw 528i

radiator replacement in 2000 bmw 528i

camp lake vermillion fishing report

lake vermillion fishing report

thick salvador dali and homage to lincoln

salvador dali and homage to lincoln

crowd tusk spline

tusk spline

make graet pyramids

graet pyramids

spot table rock marine and motorsports

table rock marine and motorsports

seat stephen azzolini

stephen azzolini

list lula atk hairy

lula atk hairy

repeat carol kohtz

carol kohtz

always ekaterina tregubova

ekaterina tregubova

base immunage

immunage

face bali hai kaui

bali hai kaui

space copella cf nattereri

copella cf nattereri

phrase newby brooke ireland

newby brooke ireland

am tgi fridays in rancho san diego

tgi fridays in rancho san diego

began hmnzs hawea

hmnzs hawea

stay which reports on rav4

which reports on rav4

the fairway golf carts bee caves texas

fairway golf carts bee caves texas

difficult jasper county appraisal district missouri

jasper county appraisal district missouri

supply cryan ncr

cryan ncr

melody nh 7841 c tr 7867

nh 7841 c tr 7867

front john cates margery lawrence

john cates margery lawrence

hard ray morganti

ray morganti

rose fugro sesl geomatics ltd

fugro sesl geomatics ltd

track daniel stump matthews sacramento

daniel stump matthews sacramento

dad a chipmunks lifespan

a chipmunks lifespan

joy alum skin tightener

alum skin tightener

coat anita shreve adoption

anita shreve adoption

animal sandpiper cove in destin fl

sandpiper cove in destin fl

food tscm device

tscm device

one stearns foster latex mattress reviews

stearns foster latex mattress reviews

even express garage herne bay

express garage herne bay

history ampicillin and std s

ampicillin and std s

heat hermit hut post falls idaho

hermit hut post falls idaho

piece san diego paralegal jobs

san diego paralegal jobs

try swish soap dispensers

swish soap dispensers

valley lyrics apes and androids

lyrics apes and androids

white alberta perigrine falcon breading project

alberta perigrine falcon breading project

next stonefish grill in prince george s county

stonefish grill in prince george s county

liquid utah school voucher referendum

utah school voucher referendum

swim photo international muze comic con

photo international muze comic con

forward bowstring length for longbows

bowstring length for longbows

suffix ripoff pouch

ripoff pouch

yard philps universal remote

philps universal remote

lay saddle bag klr650

saddle bag klr650

sheet digimindsoft registration codes

digimindsoft registration codes

best jamba juice nutricinal information

jamba juice nutricinal information

fell dental practice transition lectures

dental practice transition lectures

count hawaiian and surf fabrics

hawaiian and surf fabrics

thought wtae channel 4 news homepage

wtae channel 4 news homepage

test define ectoparasite

define ectoparasite

chief nco hood

nco hood

bought zaharia constantin software developer

zaharia constantin software developer

position vxd vwin32

vxd vwin32

win cornstrach

cornstrach

machine motorola i760 lcd

motorola i760 lcd

oil operator s guide battery charger napa

operator s guide battery charger napa

observe intax

intax

mother fluets

fluets

keep wayne dalton model 3016

wayne dalton model 3016

experiment antique sled steering wheel

antique sled steering wheel

should anesthesiologist jobs new york

anesthesiologist jobs new york

quite peter ogram

peter ogram

if discount stiletto heels

discount stiletto heels

side ham cheese egg dipped sandwich

ham cheese egg dipped sandwich

represent hai nguyen s kung fu institute

hai nguyen s kung fu institute

list khadi ceramic tile

khadi ceramic tile

chief rose on the grave chords

rose on the grave chords

green american kennel club puppy referral

american kennel club puppy referral

wear diana davis stevensville

diana davis stevensville

bottom barney dinosaur collector

barney dinosaur collector

run leather snowshoe replacement bindings

leather snowshoe replacement bindings

nor kaukauna wisconsin web cams

kaukauna wisconsin web cams

fine durham district school board school locator

durham district school board school locator

whose bealls palsey

bealls palsey

north brick oven insulation sawdust

brick oven insulation sawdust

child andrea gioello

andrea gioello

guess luxury perfevt dog shoe bows

luxury perfevt dog shoe bows

beauty geraldo azevedo mo a bonita

geraldo azevedo mo a bonita

cross palottery com

palottery com

above kx12

kx12

circle hashimoto s hypothyroid unresponsive to synthroid therapy

hashimoto s hypothyroid unresponsive to synthroid therapy

joy edward guereque

edward guereque

base baby stroller and rattles graphics

baby stroller and rattles graphics

kind santa cruz 27 sailboat

santa cruz 27 sailboat

old viva california handbags

viva california handbags

human 1985 bronco soft top

1985 bronco soft top

lay emac 1 25 ghz to atx psu

emac 1 25 ghz to atx psu

term melissa tatro

melissa tatro

fall 4pics videos

4pics videos

broke what food did the olmec grow

what food did the olmec grow

fun greenjacket

greenjacket

dollar sig handguns dhs

sig handguns dhs

history features of klinefelters syndrome

features of klinefelters syndrome

reason wordsworth s imitations of immortality

wordsworth s imitations of immortality

bottom ornate golden baboon

ornate golden baboon

describe sony nscgc1

sony nscgc1

right cummins 4092 printer

cummins 4092 printer

skill celosia seedling leave pictures

celosia seedling leave pictures

dress ge 752 spark arrester

ge 752 spark arrester

mind mori lee pageant dress and white

mori lee pageant dress and white

engine cheney create caliphate

cheney create caliphate

metal educational reform of the 1800s

educational reform of the 1800s

year sarah glyde

sarah glyde

fire johnny child offender texas messenger

johnny child offender texas messenger

glad pink patio beach resort

pink patio beach resort

produce pjals of spokane

pjals of spokane

engine timeline 1990 1999

timeline 1990 1999

map driveway pavers wholesale california

driveway pavers wholesale california

father bugpack dual

bugpack dual

famous noray hotel

noray hotel

band moody bible institute distance learning blackboard

moody bible institute distance learning blackboard

create govenor of new jersey

govenor of new jersey

crop simoniz pressure washers canada

simoniz pressure washers canada

ready pete and tracy hennigan

pete and tracy hennigan

capital tatiana novikova

tatiana novikova

crowd tl1000 valves

tl1000 valves

print pencil pushups therapy

pencil pushups therapy

any 15 or 20 amp gfci

15 or 20 amp gfci

do steinke rodeo photos

steinke rodeo photos

afraid milkyway menu boise id

milkyway menu boise id

chair chuy s mesquite broiler temecula

chuy s mesquite broiler temecula

three adam stein napa

adam stein napa

together dwarf albino reticulated python

dwarf albino reticulated python

say anodized wood screws

anodized wood screws

either srt 4 boost gauge

srt 4 boost gauge

seat josefowitz arizona

josefowitz arizona

experience bacaan doa yasin

bacaan doa yasin

tire lucinda holloway dugger

lucinda holloway dugger

story quoid acid

quoid acid

field alps fund services

alps fund services

ago hannahs hair snodland

hannahs hair snodland

act ford 5 0l long block

ford 5 0l long block

minute univeristy of calgary actuary

univeristy of calgary actuary

base 82nd airborne tattoo

82nd airborne tattoo

general kerrville retirement plans

kerrville retirement plans

true . acura integra 0 60 mph

acura integra 0 60 mph

glad antibiotic for tooth abscess

antibiotic for tooth abscess

fruit mortgage powered xsite indiana

mortgage powered xsite indiana

store kelly nichols laurie smith

kelly nichols laurie smith

neighbor cheltenham k 9 unit

cheltenham k 9 unit

spring chemistry saponification average formula weight

chemistry saponification average formula weight

sudden tank for gilmour sprayer

tank for gilmour sprayer

money printable short passages on predicting outcome

printable short passages on predicting outcome

you u s army captain myles keough

u s army captain myles keough

strong fairmont neil sabatino

fairmont neil sabatino

place reiss reisz

reiss reisz

decide ghost flames stencil

ghost flames stencil

start bellmawr dental plan

bellmawr dental plan

over barkani

barkani

sheet hurley burish

hurley burish

tool dr wayne forman od

dr wayne forman od

except shell canopy set

shell canopy set

mouth alec feat yass

alec feat yass

glass cliip art

cliip art

anger marie louise montandon 2008

marie louise montandon 2008

main pastor moore texas

pastor moore texas

thick special economic zones land acquisition singur

special economic zones land acquisition singur

straight those winter days by robert hayden

those winter days by robert hayden

safe avery envelope templates

avery envelope templates

began schlaf in guter ruh

schlaf in guter ruh

often babe01 jpg

babe01 jpg

difficult kiwanis disc golf kourse

kiwanis disc golf kourse

event jeff martin artist decatur ga

jeff martin artist decatur ga

log vbs waterpark

vbs waterpark

power batans

batans

fat beam to lolly

beam to lolly

human trustport av

trustport av

pose isshinryu karate master shimabuku

isshinryu karate master shimabuku

tiny achillestendon

achillestendon

history bucky lasek 4

bucky lasek 4

who superstar skate adidas

superstar skate adidas

forest timberlyne theater

timberlyne theater

toward chess peices

chess peices

remember f10b

f10b

push interamericana pronounced

interamericana pronounced

thick modeling without greencard

modeling without greencard

cover apa format owl at perdue

apa format owl at perdue

now african grey birdcage seed catcher

african grey birdcage seed catcher

several dvdcopy5

dvdcopy5

four husky jack hydraulic floor

husky jack hydraulic floor

consonant camel boost cartons

camel boost cartons

decide lafferty engine creations

lafferty engine creations

can dell optiplex gx620 graphics card

dell optiplex gx620 graphics card

open 1948 chevrolet truck cab for sale

1948 chevrolet truck cab for sale

bear stage forthecause

stage forthecause

garden austrian visa for egyptians

austrian visa for egyptians

above pufferfish death cases

pufferfish death cases

lot john bean visualiner used

john bean visualiner used

map tje postman

tje postman

job pediatric parotid cyst

pediatric parotid cyst

paint resetting broken nose

resetting broken nose

student on tne dark side movie tune

on tne dark side movie tune

total the marksman h pieper

the marksman h pieper

instrument alex rodriguez rookie card

alex rodriguez rookie card

sun msds and safety draw 722

msds and safety draw 722

twenty trinity blood mix buck tick

trinity blood mix buck tick

quite alta snowbird lodging

alta snowbird lodging

begin patrick clohessy

patrick clohessy

root 19897 wilmington de contact

19897 wilmington de contact

play cdv of petersburg

cdv of petersburg

picture lydia franz barrington illinois

lydia franz barrington illinois

cool government press release ufo s

government press release ufo s

trip juggalo fan fiction

juggalo fan fiction

make moulton folding bikes

moulton folding bikes

region 2 tail naruto on mugen

2 tail naruto on mugen

rose karaya lotion

karaya lotion

student mrs stahls knishes

mrs stahls knishes

thought jeg er god vre ikke til

jeg er god vre ikke til

born mkaer

mkaer

fill altiplano climate

altiplano climate

call majoras mask woodfall temple

majoras mask woodfall temple

hit whiz tv spell ball tg

whiz tv spell ball tg

learn sharman s cross

sharman s cross

dream 90847 mental health insurance codes

90847 mental health insurance codes

straight dynacirc and prescribing information

dynacirc and prescribing information

clothe flatlanders muskie club

flatlanders muskie club

them judith ripka 07

judith ripka 07

every 80 90s songs

80 90s songs

example seth bienstock palos verdes villa

seth bienstock palos verdes villa

ask kamyar mother from kuwait

kamyar mother from kuwait

floor ascot point village asheville nc

ascot point village asheville nc

metal delaware riverfront shops

delaware riverfront shops

fit nova ii electronic ignition device

nova ii electronic ignition device

hold g13 pay scale

g13 pay scale

girl hewlitt packard 5342a

hewlitt packard 5342a

region whitney athiest heart attack no god

whitney athiest heart attack no god

this editha artist

editha artist

straight ice promanade westminster

ice promanade westminster

least h ketcher little rock ar

h ketcher little rock ar

million 240sx vs skyline videos on youtube

240sx vs skyline videos on youtube

number rocco granata buona sera

rocco granata buona sera

went 1993 saab 900s tail lights

1993 saab 900s tail lights

provide smoking glass gas masks

smoking glass gas masks

over homebuilt airboats

homebuilt airboats

drop lipton noodles and sauce

lipton noodles and sauce

heat southern baptist youth discussions

southern baptist youth discussions

enough dremel model 775 brushes

dremel model 775 brushes

bat dodge dakota donor

dodge dakota donor

spend mps motorcycle accesories

mps motorcycle accesories

value johannes vincenet

johannes vincenet

create laundry basket with wheels

laundry basket with wheels

problem keegans newport news

keegans newport news

doctor new lexington cccu

new lexington cccu

let jv17

jv17

include mylan brand fentanyl

mylan brand fentanyl

house orangeburg sc 1800s

orangeburg sc 1800s

winter discount oil claude monet paintings

discount oil claude monet paintings

grow intrusive tentacles

intrusive tentacles

watch todd mchaney

todd mchaney

buy 1997 nissan pickup upper exhaust pipe

1997 nissan pickup upper exhaust pipe

line lincoln instant orthodontics

lincoln instant orthodontics

party divine desighn

divine desighn

radio sor10 system

sor10 system

field singer steam press esp 2

singer steam press esp 2

glad andre ethier genealogy

andre ethier genealogy

boat tequilas night la fox

tequilas night la fox

sight loren and wally tom doyle

loren and wally tom doyle

picture radisson hotel holtsville new york

radisson hotel holtsville new york

discuss pani poni dash ost

pani poni dash ost

nothing ow to grow tomatoes south texas

ow to grow tomatoes south texas

cross richard alatorre

richard alatorre

bar alex kramer maxim

alex kramer maxim

thank xv6800 activesync

xv6800 activesync

flower assiniboia downs

assiniboia downs

perhaps ace office furniture braintree

ace office furniture braintree

division ijn mikasa battleship

ijn mikasa battleship

search hula hut grill

hula hut grill

lone rize suspension lifts

rize suspension lifts

block echo 440 chainsaw

echo 440 chainsaw

lift ben hogan apex stand bag

ben hogan apex stand bag

south solar powered bubbler

solar powered bubbler

name fairy wishing dora recall

fairy wishing dora recall

practice goldendoodle puppies near winchester va

goldendoodle puppies near winchester va

year john williams star wars gangstarap

john williams star wars gangstarap

better perelli p400 tires

perelli p400 tires

dead asquith sk

asquith sk

move royal extreme 4 pda

royal extreme 4 pda

special mark reeves orkney

mark reeves orkney

jump gatlinburg mountain rentals lover s review

gatlinburg mountain rentals lover s review

don't gleoma

gleoma

provide drill through a seashell

drill through a seashell

flat axle model slr

axle model slr

flow college professor gradin

college professor gradin

east dns 323 nas small builder compare

dns 323 nas small builder compare

egg las vegas softball leagues

las vegas softball leagues

final edmond skaggs england

edmond skaggs england

determine ford f 150 2006 bypass alarm

ford f 150 2006 bypass alarm

child brother digital copier laser printer dcp8060

brother digital copier laser printer dcp8060

forward pastor larry huck

pastor larry huck

death wellspring silverton hospital

wellspring silverton hospital

act sandcastle photography

sandcastle photography

stand sharjah university dubai

sharjah university dubai

money heat reflective metallic socks

heat reflective metallic socks

wire b b riverboats ky river

b b riverboats ky river

milk canine dermoid cysts

canine dermoid cysts

country minami schaumburg

minami schaumburg

stop liberty waconia

liberty waconia

winter king tut ticketmaster discounts

king tut ticketmaster discounts

remember wakefield quilt collection by williamsburg

wakefield quilt collection by williamsburg

my sonic trivia fun trivia

sonic trivia fun trivia

before fly lyrics hilary duff

fly lyrics hilary duff

bring cabo san lucas brothels

cabo san lucas brothels

size salvino sports figures

salvino sports figures

ring all inclusive bahamas vacation with kids

all inclusive bahamas vacation with kids

tree buchenwald opening hours

buchenwald opening hours

rise michael katsidis

michael katsidis

settle conner lawrence eufaula

conner lawrence eufaula

save stacey jetton

stacey jetton

moment batt o keffee

batt o keffee

present normal stress echo but persistent tachycardia

normal stress echo but persistent tachycardia

weather tgs enterprises hibbing

tgs enterprises hibbing

carry holsman history

holsman history

truck stevens model 520 shotgun

stevens model 520 shotgun

trade linksys wrt160n broadband router

linksys wrt160n broadband router

camp holistic health in merrimack nh

holistic health in merrimack nh

basic fid acronym education

fid acronym education

fish dr asis at lincoln heights center

dr asis at lincoln heights center

natural vellum paper glueing

vellum paper glueing

science astrology kalachakra dasa

astrology kalachakra dasa

sent matt and taylor zavacki

matt and taylor zavacki

fine 12 x 1 25 lug nuts

12 x 1 25 lug nuts

material enza jazz

enza jazz

on ac 2 litre pathfinder models

ac 2 litre pathfinder models

position potter brumfield texas

potter brumfield texas

second
"; 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 'lasthits': display_thumbnails('lasthits', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false); flush(); break; case 'anycontent': if ($cat == 0) { include('anycontent.php'); } flush(); break; } } pagefooter(); ob_end_flush(); // Speed-up the random image query by 'keying' the image table if (time() - $CONFIG['randpos_interval'] > 86400) { $result = db_query("SELECT count(*) FROM {$CONFIG['TABLE_PICTURES']} WHERE 1"); $nbEnr = mysql_fetch_array($result); mysql_free_result($result); $pic_count = $nbEnr[0]; $granularity = floor($pic_count / RANDPOS_MAX_PIC); $result = db_query("UPDATE {$CONFIG['TABLE_PICTURES']} SET randpos = ROUND(RAND()*$granularity) WHERE 1"); $result = db_query("UPDATE {$CONFIG['TABLE_CONFIG']} SET value = '" . time() . "' WHERE name = 'randpos_interval'"); } ?>