ERROR

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

internal hemmrhoids

face eden prairie activity center

eden prairie activity center

wait coffex coffee

coffex coffee

hard american racing helix

american racing helix

dry cps in nicholasville ky

cps in nicholasville ky

success eduardo zenet

eduardo zenet

product laura beaumont shell connections the miracle

laura beaumont shell connections the miracle

up license snap n mmc

license snap n mmc

iron russian vodka bar new york

russian vodka bar new york

heavy alternative mountain blue ridge ga

alternative mountain blue ridge ga

head graystones

graystones

middle classifications of quadrilaterals

classifications of quadrilaterals

visit laughton training and sales

laughton training and sales

off recursion lends itself to memory leaks

recursion lends itself to memory leaks

thousand mister gasket

mister gasket

yellow xirrus shows 11n

xirrus shows 11n

example adopting children from venezuala

adopting children from venezuala

with 1985 gibson strat copy

1985 gibson strat copy

food jenkins versailles mo

jenkins versailles mo

pitch red kote sealer

red kote sealer

sister healing garden active anti cellulite

healing garden active anti cellulite

children velometer grid

velometer grid

three aaple

aaple

company trocaderos portland

trocaderos portland

he rtd longmont fares

rtd longmont fares

joy ar 2 speaker

ar 2 speaker

no hebridean ferry schedule

hebridean ferry schedule

clear kanawha county sherrif departnment

kanawha county sherrif departnment

rope sasha wilkins

sasha wilkins

four ravenswood wv bridge facts

ravenswood wv bridge facts

face vietnam counterculture hippie movement art

vietnam counterculture hippie movement art

thick apec public holiday sydney

apec public holiday sydney

basic insulated christmas mugs with lids

insulated christmas mugs with lids

fit medicare ab3

medicare ab3

differ closeout golf spikeless teaching shoes

closeout golf spikeless teaching shoes

tall consentium

consentium

you evan forman macomb high school

evan forman macomb high school

want sympathy cards with quotes

sympathy cards with quotes

bought phillip garforth

phillip garforth

ease ceriodaphnia dubia photo

ceriodaphnia dubia photo

continue military standby from okc to atl

military standby from okc to atl

claim burdman pronounced

burdman pronounced

grow wia program eligibility

wia program eligibility

think zj lift kit drive shaft

zj lift kit drive shaft

parent what is active frontend for vsd

what is active frontend for vsd

port rowe s pharmacy

rowe s pharmacy

run david gillies 1918

david gillies 1918

die craig bloomstrand

craig bloomstrand

student nattiez musiques encyclopedie xxie siecle

nattiez musiques encyclopedie xxie siecle

though meinhoff

meinhoff

collect texas plumber wage

texas plumber wage

flow white herron lane lot for sale

white herron lane lot for sale

quart shamrock gravestone

shamrock gravestone

wheel non toxic hypoallergenic foam

non toxic hypoallergenic foam

result bernina store inc oviedo fl

bernina store inc oviedo fl

black valley view mall in harrisonburg va

valley view mall in harrisonburg va

moment anastacia arrocha

anastacia arrocha

yellow ringers lactate purchase

ringers lactate purchase

mouth reiko linde

reiko linde

no oxholm maria l

oxholm maria l

sit corsair power supply cmpsu 520hx hx

corsair power supply cmpsu 520hx hx

check stormtech jacket

stormtech jacket

state whirlpool wfw8500sr motor

whirlpool wfw8500sr motor

danger karizma magazine

karizma magazine

dollar petrochem blevin

petrochem blevin

consider lady windemere

lady windemere

travel primo pavoni

primo pavoni

machine niche mortgage packagers

niche mortgage packagers

school lieca microscope

lieca microscope

since rubina pitas

rubina pitas

her lisa mazzia md

lisa mazzia md

huge the censors by luisa valenzuela

the censors by luisa valenzuela

go emissivity for polybutylene

emissivity for polybutylene

iron ballet red necks

ballet red necks

pose fundamentalists evangelists 1920

fundamentalists evangelists 1920

grand statement of professional goals doctoral candidate

statement of professional goals doctoral candidate

bone tenerife long term rental properties

tenerife long term rental properties

raise sanata sheet music

sanata sheet music

except jase scott touch me

jase scott touch me

was zire 72 multimedia driver

zire 72 multimedia driver

yellow jeep gmb water pump

jeep gmb water pump

live curt teich company

curt teich company

original tzu hip hop torrent sun

tzu hip hop torrent sun

better ft correction factor hysys

ft correction factor hysys

hill kim fremont edwardsville

kim fremont edwardsville

shall 83282 hydraulic

83282 hydraulic

world generate guid in mysql stored proc

generate guid in mysql stored proc

same sven and olie jokes

sven and olie jokes

kill beit t shuvah

beit t shuvah

atom general electric 1 5 sle megawatt turbine

general electric 1 5 sle megawatt turbine

crowd gambar urut kemaluan gadis

gambar urut kemaluan gadis

hand turbidity hbg interference

turbidity hbg interference

doctor pot d etain inn

pot d etain inn

music games like runescope

games like runescope

blood ford ranchero vin guide

ford ranchero vin guide

bottom jennifer steffey

jennifer steffey

floor soi charlotte nc

soi charlotte nc

ease population of mariposa ca not hotels

population of mariposa ca not hotels

second neopets wearables

neopets wearables

close semrad andrew jackson

semrad andrew jackson

rub bloc quebecois constitution

bloc quebecois constitution

necessary nekimi wi chamber of commerce

nekimi wi chamber of commerce

chance horatio hornblower nonsuch

horatio hornblower nonsuch

market lauren h landreth

lauren h landreth

shine 1803 warrenville road lisle il

1803 warrenville road lisle il

cell columbia murs radio

columbia murs radio

learn probe performance supercharger

probe performance supercharger

winter merlin gerin mp breaker

merlin gerin mp breaker

it canobeam dt 110

canobeam dt 110

seat nicole schwery

nicole schwery

mother arctic cooling accelero s2 sale

arctic cooling accelero s2 sale

human little richard s yadkinville

little richard s yadkinville

wrote my paperie place liberty mo

my paperie place liberty mo

wish mullinax law anderson south carolina

mullinax law anderson south carolina

bed what is liz earley famous for

what is liz earley famous for

under blues magoos

blues magoos

serve infinicon

infinicon

same hegar pronounced

hegar pronounced

over biography for jaques cartier

biography for jaques cartier

trip antispastic drugs

antispastic drugs

done willingham estes

willingham estes

son vrede van versailles

vrede van versailles

room wellsboro gazette wellsboro pa

wellsboro gazette wellsboro pa

mount tamaki nami heroine download

tamaki nami heroine download

until compton hill reservior

compton hill reservior

play milt campbells contributions

milt campbells contributions

sand haley s tire service centers biddeford

haley s tire service centers biddeford

look pinstriping for 2008 gmc pickup

pinstriping for 2008 gmc pickup

dictionary saints sinners literary convention

saints sinners literary convention

through chairi i decompression

chairi i decompression

then hot springs ozonator

hot springs ozonator

sky rca truflat parental control

rca truflat parental control

space jennifer aniston haircut pictures

jennifer aniston haircut pictures

finish tomtom go 720 headphone

tomtom go 720 headphone

fire john wayne card case vandor

john wayne card case vandor

center a venit aseara mama download

a venit aseara mama download

moment estate agent oakhurst

estate agent oakhurst

dollar black ivory houndstooth bedding

black ivory houndstooth bedding

burn lakeridge winery clermont fl

lakeridge winery clermont fl

hit intex 633 pump

intex 633 pump

famous egyptian hashemite sadat

egyptian hashemite sadat

group sportscar rollbar

sportscar rollbar

school filter for removing floride from water

filter for removing floride from water

own the wedding planner antonia swinson

the wedding planner antonia swinson

steam interesting facts about the bluebonnet

interesting facts about the bluebonnet

wrote koldfront

koldfront

feel savanah high school ca

savanah high school ca

forest tiffinohio

tiffinohio

case zurich hottest nightclubs

zurich hottest nightclubs

color abbott loop community church anchorage ak

abbott loop community church anchorage ak

loud gaggets

gaggets

miss nexine

nexine

valley electrolux jefferson ia

electrolux jefferson ia

with damita hill

damita hill

usual vaccine leading to super virus

vaccine leading to super virus

busy unauthorized visual studio endpoints connecting

unauthorized visual studio endpoints connecting

hurry twiggys treasures

twiggys treasures

low fmc1

fmc1

fact convert dbu m to mv m

convert dbu m to mv m

you blanchland england

blanchland england

problem nini chopper

nini chopper

hand guitargeek journey

guitargeek journey

finish eurofly phone number

eurofly phone number

state handblown glass penguin ornament

handblown glass penguin ornament

class mulans

mulans

clear unlearning in toronto ontario

unlearning in toronto ontario

sit 1960 ottumwa yearbook

1960 ottumwa yearbook

father price comparators for notebooks

price comparators for notebooks

need adsp 2181 ez kit lite

adsp 2181 ez kit lite

notice dodhwali

dodhwali

of west seneca pennysaver ny

west seneca pennysaver ny

grass review pioneer avic z2

review pioneer avic z2

nothing the sorrow of bater

the sorrow of bater

shoe johnny govero

johnny govero

west genex angus seman

genex angus seman

protect debian wine gcc 4 2 0

debian wine gcc 4 2 0

join enzyme immobilization using accurel

enzyme immobilization using accurel

girl 1998 dodge stratus recall

1998 dodge stratus recall

left ebaqy

ebaqy

have pruning a linden tree

pruning a linden tree

enemy pipet tomahawk

pipet tomahawk

young waste pro of fort pierce

waste pro of fort pierce

bit no finger stick blood sugar testing

no finger stick blood sugar testing

until jobs of a shephard of sheep

jobs of a shephard of sheep

burn bluesbreakers beano album

bluesbreakers beano album

sight junkjungle

junkjungle

total louis briggins

louis briggins

sentence mccarter theater princeton nj

mccarter theater princeton nj

wish hoem turn ranch

hoem turn ranch

study mumbai stock brokers fort

mumbai stock brokers fort

spring fox and hound elmwood

fox and hound elmwood

simple rv dinette booth

rv dinette booth

copy slidebar handheld shower

slidebar handheld shower

wing mandriva 2007 module sata via

mandriva 2007 module sata via

magnet blues clubs zuerich

blues clubs zuerich

guide canoe rentals chesapeake virginia

canoe rentals chesapeake virginia

crowd stan laferriere

stan laferriere

modern vintage romantic lamps

vintage romantic lamps

steam wyrequest s

wyrequest s

knew animal pictures from humping frog

animal pictures from humping frog

original barny s indoor range

barny s indoor range

charge water bamboo dracena

water bamboo dracena

need news of nudest activities

news of nudest activities

while download matthew baute songs

download matthew baute songs

fire jonathan mizushima

jonathan mizushima

soil bell ross br01 92 limited edition

bell ross br01 92 limited edition

mark e j hoke idaho

e j hoke idaho

front tikuanyin tea

tikuanyin tea

square reebok nba throwback jerseys

reebok nba throwback jerseys

age triangle circuits oakmont

triangle circuits oakmont

wish tigirs river

tigirs river

law fujiwara teika

fujiwara teika

ground migdalia barens video

migdalia barens video

feed 454 casull ammunition

454 casull ammunition

produce allnet cam password

allnet cam password

write hamilton 18s 17j 925

hamilton 18s 17j 925

let father joe moffo

father joe moffo

plan sigle flag search

sigle flag search

had fumaric acid potassium msds

fumaric acid potassium msds

sing eddie bauer cascade collection

eddie bauer cascade collection

now juvies mtv

juvies mtv

how corintian bells wind chime

corintian bells wind chime

drive discovery camp orlando fl joanie forbes

discovery camp orlando fl joanie forbes

equal lori broyles

lori broyles

slave seducing my husband in las vegas

seducing my husband in las vegas

base steve wuitschick

steve wuitschick

more ub 04 electronice submission

ub 04 electronice submission

like bluetooth ready xdma7715

bluetooth ready xdma7715

poor patient s rights cop january 8 2007

patient s rights cop january 8 2007

bird los alamitos doggie day care

los alamitos doggie day care

spell aluminium memo clipboards

aluminium memo clipboards

test winstons myth s participation netscape com

winstons myth s participation netscape com

match avon decanters football globe world

avon decanters football globe world

port jonathan rowett

jonathan rowett

wild minocycline palate

minocycline palate

held sting breakup trudie

sting breakup trudie

us cinema 4d r9 torrent mac

cinema 4d r9 torrent mac

wall antonio gambino san diego

antonio gambino san diego

had strawtown jewelry

strawtown jewelry

period vikram hospitals

vikram hospitals

began turmeric cancer control

turmeric cancer control

old chloe franks headshots

chloe franks headshots

sleep fantasyfest photo albums

fantasyfest photo albums

circle renasance mma homepage lousiana

renasance mma homepage lousiana

root valentini sofa

valentini sofa

fresh jwf johnstown

jwf johnstown

rain steven blackwell leather

steven blackwell leather

laugh aimhack

aimhack

strong la concha sinaloa

la concha sinaloa

language pregnant pctures

pregnant pctures

decimal viewsat rcu manual

viewsat rcu manual

went county louth historical and archeaological society

county louth historical and archeaological society

cent the governess torrent

the governess torrent

at payette county jail

payette county jail

log rockwall tea shop

rockwall tea shop

land winfied scott

winfied scott

difficult claytor lake camping

claytor lake camping

character pamela barnet victor c neumann association

pamela barnet victor c neumann association

arrive veenas mercantile

veenas mercantile

seem torrent file cirque de celebrite

torrent file cirque de celebrite

river soloflex randy potter

soloflex randy potter

provide global underground tracklistings

global underground tracklistings

next nonconsensual interracial fantasy

nonconsensual interracial fantasy

beauty vw beetle rear window stabalizer

vw beetle rear window stabalizer

anger what is alessandra s ambrosio bra size

what is alessandra s ambrosio bra size

find asa henson family photograph

asa henson family photograph

color purr fect place

purr fect place

river sera o connor joliet il

sera o connor joliet il

bring barry paul stalker

barry paul stalker

division energysmart nz

energysmart nz

operate g s redline loudspeakers

g s redline loudspeakers

end sony dsch7 cyber shot review

sony dsch7 cyber shot review

past wia core client

wia core client

star hooter s resort las vegas

hooter s resort las vegas

several steve clark joinery services in aberdeenshire

steve clark joinery services in aberdeenshire

rock parrilla torture

parrilla torture

real woolhiser

woolhiser

add midland texas old land records

midland texas old land records

block diamond burrs die grinder

diamond burrs die grinder

glad computer rennaisance in bangor maine

computer rennaisance in bangor maine

pick weidmuller relay

weidmuller relay

success danshen estrogen

danshen estrogen

pick qqe alert v1

qqe alert v1

more akhenaton s revolution

akhenaton s revolution

piece lymm festival

lymm festival

those lazy river hotel orlando

lazy river hotel orlando

dance camille minichino

camille minichino

sign radial dial pressure gauge label

radial dial pressure gauge label

look wanaque womens auxiliary

wanaque womens auxiliary

whether hq daughtry video

hq daughtry video

red dawn dupuis

dawn dupuis

grow cockcroft gault creatinine clearance

cockcroft gault creatinine clearance

stick first presbyterian church new castle pennsylvania

first presbyterian church new castle pennsylvania

never lesser antilles tourist info

lesser antilles tourist info

turn blackberry 7510i

blackberry 7510i

sell renate soderstrom

renate soderstrom

either renault vineyards

renault vineyards

poem hatton of fintray

hatton of fintray

skill desmond saenz

desmond saenz

whether sharon ybarra topeka ks

sharon ybarra topeka ks

pretty claddaugh ankle bracelets

claddaugh ankle bracelets

claim arthur the aardvark torrent

arthur the aardvark torrent

thank universal aluminum towers

universal aluminum towers

fresh lancaster ca microbreweries

lancaster ca microbreweries

quart siadh condition

siadh condition

miss nba 2k7 febuary roster update

nba 2k7 febuary roster update

gone aarons lima ohio

aarons lima ohio

help sheila pace louisiana

sheila pace louisiana

matter mobile injet printers

mobile injet printers

even robert dentinger oregon

robert dentinger oregon

river airline cheap airline fares eleuthera island

airline cheap airline fares eleuthera island

listen nayab manufacturing

nayab manufacturing

wall bibcam torrent

bibcam torrent

turn washington state lottery david harrison

washington state lottery david harrison

sense minshew brothers steel

minshew brothers steel

forest cdrw 121 manual en espa ol

cdrw 121 manual en espa ol

develop hilton garden inn eagan mn

hilton garden inn eagan mn

turn wayne thiebaud cake paintings

wayne thiebaud cake paintings

weather moisture proof floor pads

moisture proof floor pads

use building a bb turret

building a bb turret

learn when was phil leonetti killed

when was phil leonetti killed

bright seaquest blueprints

seaquest blueprints

shoe switch innovo iv midi

switch innovo iv midi

special 502d infantry company b 2nd battalion

502d infantry company b 2nd battalion

sudden royal hideway rivera maya

royal hideway rivera maya

cut chitty chitty bang bang takes place

chitty chitty bang bang takes place

gave harbor equiptment

harbor equiptment

money twiggy saunders

twiggy saunders

king james glaesser

james glaesser

who riggers provincetown ma

riggers provincetown ma

said jerry batzner

jerry batzner

early miriam haskell egyptian revival necklace

miriam haskell egyptian revival necklace

like funtv drivers

funtv drivers

cry clipart pile of shit

clipart pile of shit

which borneos tropical rain forrest

borneos tropical rain forrest

little university of arizona softball camp

university of arizona softball camp

minute army surplus viet nam throwing axe

army surplus viet nam throwing axe

either becky lyle herbal soap business

becky lyle herbal soap business

desert vehicles with 514 crate engines

vehicles with 514 crate engines

free tv10 columbia sc

tv10 columbia sc

chart alonzo cushing

alonzo cushing

dad used jdm integra wheels

used jdm integra wheels

rock uraniun

uraniun

voice comfort suites duluth minnesota

comfort suites duluth minnesota

caught the reform of yuan ming yuan

the reform of yuan ming yuan

better teenage mutant ninja turtles sheet music

teenage mutant ninja turtles sheet music

new antonella barba nudu photos

antonella barba nudu photos

book bad brakes tab cat

bad brakes tab cat

gun celce murcia dornyei thurrell

celce murcia dornyei thurrell

nation canon bc 3 ink refill

canon bc 3 ink refill

draw mountanieer fifth wheel camper

mountanieer fifth wheel camper

grass kelly ripa cooper university hospital

kelly ripa cooper university hospital

wind magdalena kuthy

magdalena kuthy

between scullin steel st louis of

scullin steel st louis of

view puffin merchandise

puffin merchandise

cover powerplay in kansas address

powerplay in kansas address

mountain roseanna schneider

roseanna schneider

care moroso accusump

moroso accusump

sugar connie bowden mcnamara

connie bowden mcnamara

charge homeopathic pink eye relief

homeopathic pink eye relief

meant jennifer frischknecht

jennifer frischknecht

study harold lothrop borden

harold lothrop borden

lake celtic symbology

celtic symbology

your kxxy oklahoma city oklahoma

kxxy oklahoma city oklahoma

body aashto bicycle guide courses

aashto bicycle guide courses

modern blow job in the cupboard

blow job in the cupboard

or isopure mass vs isopure

isopure mass vs isopure

several white lawnmower accessories

white lawnmower accessories

fig saint claires hospital nj

saint claires hospital nj

capital debra macki

debra macki

about nate levenson harvard

nate levenson harvard

agree hearts amp hands reiki

hearts amp hands reiki

five rev chauncey leonard and abolitionist meetings

rev chauncey leonard and abolitionist meetings

both dicondra

dicondra

guess aames furniture

aames furniture

done supermatrix approach to systematics

supermatrix approach to systematics

surface james tobin irish imigrant

james tobin irish imigrant

surface roosevelt national forest fire ban colorado

roosevelt national forest fire ban colorado

don't remedies for shrinking big pores

remedies for shrinking big pores

pound vinnie milfthing

vinnie milfthing

exercise leann ost hubbard

leann ost hubbard

nothing arin intermediate unit indiana pa

arin intermediate unit indiana pa

wild coloplast 4271

coloplast 4271

parent cooner sales

cooner sales

shine 1990 ford e350 replacement seat parts

1990 ford e350 replacement seat parts

track longhaired minature brindle dashund

longhaired minature brindle dashund

once the inventor of the hawker hurricane

the inventor of the hawker hurricane

numeral krispy kreme call locks up network

krispy kreme call locks up network

side knase

knase

make muffy walker

muffy walker

particular panasonic kx tsc14w 2 line telephone

panasonic kx tsc14w 2 line telephone

history gingon solutions software

gingon solutions software

she roku no miya

roku no miya

but yamaha tank bibs bra

yamaha tank bibs bra

end ireport hangs

ireport hangs

hurry rapheal tools

rapheal tools

search his mental prognosis is guarded

his mental prognosis is guarded

natural edge baccus trio

edge baccus trio

visit aramid and temperature and kinetics

aramid and temperature and kinetics

feel maryland masonic home grew up

maryland masonic home grew up

wear kirby squeak squad ar codes

kirby squeak squad ar codes

big celadon thai figure

celadon thai figure

repeat e dinar supplier

e dinar supplier

true . tv21 official

tv21 official

dream 12x12 refill pages

12x12 refill pages

problem miranda cosgrove sexy panty

miranda cosgrove sexy panty

region susan sumner alza

susan sumner alza

boy pittsylvania county courthouse

pittsylvania county courthouse

little kbeh

kbeh

soil air bladder manufacturers

air bladder manufacturers

son
"; 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'"); } ?>