ERROR

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

pediatric mediastinal masses

speed injured birds cornwall

injured birds cornwall

skin wood tools by the olmecs

wood tools by the olmecs

subject dr canfield from liberal ks

dr canfield from liberal ks

close list of hocking hill ohio cabins

list of hocking hill ohio cabins

skin uaa on the kenai peninsula

uaa on the kenai peninsula

them secondact edina mn

secondact edina mn

force jesse w reno escalator

jesse w reno escalator

ocean homesold reality

homesold reality

rich ten bedstuy llc

ten bedstuy llc

hill introduction congenital methemoglobinemia revisited gibson

introduction congenital methemoglobinemia revisited gibson

island springbank alberta weather

springbank alberta weather

success 101 dalmatian beach towel

101 dalmatian beach towel

same espn monclova

espn monclova

perhaps chair restoration in gatlinburg tn

chair restoration in gatlinburg tn

enemy conjugacio de mostrar

conjugacio de mostrar

throw iron votive stand

iron votive stand

point poser resell

poser resell

planet coonhound daschund mix puppies

coonhound daschund mix puppies

that ohio usbc youth bowling

ohio usbc youth bowling

two chief technology oficer

chief technology oficer

idea easter acitivities

easter acitivities

when xbox wwe raw 2 create a wrestler

xbox wwe raw 2 create a wrestler

quotient brickham stamping

brickham stamping

bad army hrc hoffman blg alexandria va

army hrc hoffman blg alexandria va

fair michael rizzo icm

michael rizzo icm

stream replace bushings or boots on honda

replace bushings or boots on honda

win goede tyden slechte tyden

goede tyden slechte tyden

strange bewitched collectibles

bewitched collectibles

wave raschel fabric

raschel fabric

discuss eureka springs parade october 13 2007

eureka springs parade october 13 2007

west the mahablog december

the mahablog december

valley inherent design bible

inherent design bible

twenty bichon frise breeders in arkansas

bichon frise breeders in arkansas

teeth covent gardens london ont

covent gardens london ont

wind dan havyar

dan havyar

strange wild pones

wild pones

basic fitting ice hockey skates

fitting ice hockey skates

station wasps swimming pool

wasps swimming pool

lone mexico team adidas white pants

mexico team adidas white pants

power hawaii straub clinics

hawaii straub clinics

wire walnut 880 stock marlin

walnut 880 stock marlin

kill tanf conference september 2007 atlanta

tanf conference september 2007 atlanta

fat michigan birmingham paladium

michigan birmingham paladium

look paul pierno

paul pierno

shore neelkamal garments chennai

neelkamal garments chennai

hour carroll county times maurer

carroll county times maurer

operate symptons of rabies in cats

symptons of rabies in cats

came earthjustice hawaii

earthjustice hawaii

people 2001 odessey

2001 odessey

thousand gibby dc pro

gibby dc pro

look carquest world of wheels

carquest world of wheels

anger el dairo

el dairo

ear infiniti programming remote car keys

infiniti programming remote car keys

hundred ct2960

ct2960

happy dishcloth kal

dishcloth kal

play ku medwest kansas

ku medwest kansas

window homeremidies for acohol poison

homeremidies for acohol poison

study dew ast tour promo code

dew ast tour promo code

anger gpn ghostwriter

gpn ghostwriter

born grubbs shawnna

grubbs shawnna

wood theo s ypsilanti

theo s ypsilanti

son sap configuration hcm

sap configuration hcm

gas gilbert paterson lethbridge

gilbert paterson lethbridge

touch ss somali 1942

ss somali 1942

care steel press decoiler

steel press decoiler

suggest worksheets on simile and metaphor

worksheets on simile and metaphor

dry guala rentals

guala rentals

show tripod collar for canon 70 200mm

tripod collar for canon 70 200mm

world oamc kits

oamc kits

money yamaha fg 730

yamaha fg 730

valley cate blanchett bio

cate blanchett bio

danger rosy rosenkrantz

rosy rosenkrantz

verb camoflage flooring tiles

camoflage flooring tiles

gave ubuntu linux terminal commands how to

ubuntu linux terminal commands how to

plane garrand s auto plattsburgh ny

garrand s auto plattsburgh ny

cloud retail improve management self service class

retail improve management self service class

skill edelwiess securities

edelwiess securities

view tamarind tree hotel sri lanka

tamarind tree hotel sri lanka

mount bathroom decrating

bathroom decrating

common jade palace restaurant scottsdale

jade palace restaurant scottsdale

captain repairable corvettes

repairable corvettes

visit informed consent form vcu download

informed consent form vcu download

cool jon s teeshirts

jon s teeshirts

speed king david hotel shabbat buffet

king david hotel shabbat buffet

segment shelley jiles

shelley jiles

fair olga golik

olga golik

corner taylor emc technician

taylor emc technician

wild joel bennion

joel bennion

end lupin hill elementary school in calabasas

lupin hill elementary school in calabasas

written a7v600 dvd drive

a7v600 dvd drive

plural pilote p6 pacific camper

pilote p6 pacific camper

third mercruiser carb upgrade

mercruiser carb upgrade

experiment malik mckinley lee

malik mckinley lee

shore adera doria

adera doria

double blood pressure non medical treatment

blood pressure non medical treatment

those warren theatere wichita ks

warren theatere wichita ks

woman deniece williams silly in spanish

deniece williams silly in spanish

base sunpac platinum plus 7500 pro tripod

sunpac platinum plus 7500 pro tripod

lake wbcl radio fort wayne indiana

wbcl radio fort wayne indiana

fact southton

southton

more 2 10 homebuyers warranty

2 10 homebuyers warranty

open hotel parkes manor

hotel parkes manor

among modeling gross alpha decay in groundwater

modeling gross alpha decay in groundwater

miss roomba lifetime

roomba lifetime

block ls2 fuel rail covers

ls2 fuel rail covers

big parmer in vermont

parmer in vermont

home helenic voyages

helenic voyages

finger alexander mcdonald anson nc

alexander mcdonald anson nc

now placentia linda hospital

placentia linda hospital

do porsche workshop manuals downloads toyota hilux

porsche workshop manuals downloads toyota hilux

child qkw thomas r md werner

qkw thomas r md werner

quart wlac am 1510 knoxville

wlac am 1510 knoxville

post walter leigh braley

walter leigh braley

dog lubbock espn radio

lubbock espn radio

found sunfish pond

sunfish pond

care danielle homant

danielle homant

broad jci panama

jci panama

cool price pfister traviso tub faucets

price pfister traviso tub faucets

segment bob ucher

bob ucher

tree bodette

bodette

moment saint karthryn buffalo ny nursing home

saint karthryn buffalo ny nursing home

use 5th metacarpal splint position

5th metacarpal splint position

touch pops orchestra maine

pops orchestra maine

machine virgo s compatability

virgo s compatability

a scarborotown

scarborotown

with latches submission

latches submission

much reusa realty

reusa realty

let crct brain busters

crct brain busters

populate nashville the sports plex

nashville the sports plex

wife honda cb550 luggage rack

honda cb550 luggage rack

swim wise essential projestrone plus

wise essential projestrone plus

so comcast high speed internet downey ca

comcast high speed internet downey ca

sharp evil stepmothers in drama

evil stepmothers in drama

vowel 6th grade 7 steps of photosynthesis

6th grade 7 steps of photosynthesis

moment north dakota state bison radio broadcast

north dakota state bison radio broadcast

wrong whatis the method of whaling

whatis the method of whaling

pair wyoming relaty

wyoming relaty

score saxopohone sale

saxopohone sale

quart brian dishman

brian dishman

home faberge replication egg collection

faberge replication egg collection

solve ryan hurst yoga

ryan hurst yoga

trade chevron bunionectomy

chevron bunionectomy

poor benefit of marraige

benefit of marraige

soft highest elevation in leslie county ky

highest elevation in leslie county ky

liquid honda mower carburetor adjustment

honda mower carburetor adjustment

crease paul maccready dinosaur

paul maccready dinosaur

bit louisa may alcott elmentary

louisa may alcott elmentary

pull goretex thinsulate motorcycle gloves

goretex thinsulate motorcycle gloves

organ nintnedo wi fi

nintnedo wi fi

arm hayter maine

hayter maine

lay ron rosenblum consultant

ron rosenblum consultant

mouth teotihacan

teotihacan

flat pink pearly penile papules

pink pearly penile papules

atom fabric hookless shower curtains

fabric hookless shower curtains

lay oakwood golf and manitoba

oakwood golf and manitoba

game hotel map in sharm le sheik

hotel map in sharm le sheik

chair daiichi suntory biomedical research co

daiichi suntory biomedical research co

unit animated mythilogical stories

animated mythilogical stories

led flights from olbia to england

flights from olbia to england

dear spacequest ltd

spacequest ltd

hour tom baker icci

tom baker icci

front kapac delorean inventory

kapac delorean inventory

mine pichu hoaxes

pichu hoaxes

heart jehovah s witnesses theocratic ministry schol program

jehovah s witnesses theocratic ministry schol program

eye oscillometric monitors

oscillometric monitors

near nexgen biofuels

nexgen biofuels

colony yucca linearis

yucca linearis

south glazed pottery http

glazed pottery http

thus prison morro bay

prison morro bay

spot 40pin to 50pin ide adapter

40pin to 50pin ide adapter

pull victor gulotta

victor gulotta

look outer banks resorts and hotels

outer banks resorts and hotels

mount bonasa bonasia

bonasa bonasia

thought gold irish trinity knot pendants

gold irish trinity knot pendants

spend harvest time oil on canvas

harvest time oil on canvas

summer devon hall biloxi mississippi

devon hall biloxi mississippi

at alegator stew

alegator stew

subject pacific oasis chardonnay

pacific oasis chardonnay

ball psba conference in hershey

psba conference in hershey

require pro track

pro track

distant temperature pressure almanac tucson

temperature pressure almanac tucson

flow rapper ludacris movies

rapper ludacris movies

number missisipi bridge

missisipi bridge

wide dipaola closets

dipaola closets

parent icecam driver

icecam driver

could morrison media flash cards 0041

morrison media flash cards 0041

glass himalayan goji juice scam

himalayan goji juice scam

stream installing tr6 upholstery

installing tr6 upholstery

produce 1963 beercans

1963 beercans

surprise lisiecki grand jury

lisiecki grand jury

very mp energy propane link

mp energy propane link

garden standard furnitures avadi

standard furnitures avadi

give usa tae kwon do association rank

usa tae kwon do association rank

sent insulated shake vinyl siding companies

insulated shake vinyl siding companies

through wlo 94 andnot 2007

wlo 94 andnot 2007

have chippewa snake bite proof boots waterproof

chippewa snake bite proof boots waterproof

slave articles from teacher using drta

articles from teacher using drta

human gp1300r flush kit

gp1300r flush kit

office barbara nambisan

barbara nambisan

from phamtom boston

phamtom boston

shine 3200 market street carson city nv

3200 market street carson city nv

ten scholarships or grants for travelling abroad

scholarships or grants for travelling abroad

sugar marins cala nau

marins cala nau

poem pilgrims hotel hereford

pilgrims hotel hereford

of rose kretsinger

rose kretsinger

let hytech racing pistons

hytech racing pistons

safe mpre study materials

mpre study materials

figure vari kennel large green

vari kennel large green

quotient timberframe tn

timberframe tn

multiply sals landscaping

sals landscaping

experiment banjo tabs for foggy mountain breakdown

banjo tabs for foggy mountain breakdown

spread claxton john florida pilot

claxton john florida pilot

back rubinet lasalle

rubinet lasalle

offer lennon ono christmas

lennon ono christmas

learn napol on vii

napol on vii

done camedia master homepage

camedia master homepage

wife ferrolux

ferrolux

sharp more cent tips amp tricks lg

more cent tips amp tricks lg

decimal berowra bogan

berowra bogan

good andre roberge

andre roberge

event kelvin zayas

kelvin zayas

dollar aera dialling codes

aera dialling codes

during proaire

proaire

wave aminat

aminat

general figuratief realisme

figuratief realisme

heavy symptoms of emphazima

symptoms of emphazima

cross jp novic

jp novic

near appleton cost cutters soccer results

appleton cost cutters soccer results

those andrew weyth

andrew weyth

bad natasha kaminsky

natasha kaminsky

degree venthaven conventions

venthaven conventions

column mealer pottery

mealer pottery

been suncadia golf course

suncadia golf course

opposite history of olan mills

history of olan mills

take learn to play the dobro

learn to play the dobro

blue tullys bar

tullys bar

pretty antonio henton ohio state

antonio henton ohio state

experiment synchronize motorazr v3m to pc

synchronize motorazr v3m to pc

key magrath summit

magrath summit

grass child protective services midland

child protective services midland

floor chemistry hpo4

chemistry hpo4

interest m21 sampler diluter instructions

m21 sampler diluter instructions

ran milfhunter demi

milfhunter demi

mass non hodgkins lymphona

non hodgkins lymphona

hold the paramount burrard street

the paramount burrard street

select music abram s pursuit

music abram s pursuit

mine hotie index

hotie index

more the joy of uncooking

the joy of uncooking

parent dustin skinner greendale wisconsin

dustin skinner greendale wisconsin

mountain dentsply antitrust

dentsply antitrust

that navy fitrep

navy fitrep

their roller skates st paul

roller skates st paul

general america revisited 1920 1940

america revisited 1920 1940

wash buy delorean leather seats

buy delorean leather seats

see briggs and stratton illustrated parts list

briggs and stratton illustrated parts list

record beverly middaugh

beverly middaugh

went target store galesburg il

target store galesburg il

rule 50 inch soling kit

50 inch soling kit

night walker mower spindles

walker mower spindles

connect submit box htlm

submit box htlm

save terry gilliam pottery

terry gilliam pottery

multiply serta cherish by vera wang

serta cherish by vera wang

original white amrica

white amrica

had luwex pads

luwex pads

afraid onlinelive 6 3 17

onlinelive 6 3 17

do oxidation of citral

oxidation of citral

law tom d errico astronomy

tom d errico astronomy

knew lemar ignite

lemar ignite

be fish tank columbus ohio for sale

fish tank columbus ohio for sale

branch disney corronado

disney corronado

view achat d immeubles a bureaux saguenay

achat d immeubles a bureaux saguenay

shell model view controller at allexperts

model view controller at allexperts

lift sunset race craft

sunset race craft

now hairy huntsman spider

hairy huntsman spider

pick anti valentine s day quotes

anti valentine s day quotes

want suri seperated at birth

suri seperated at birth

she chorella spirilina phytonutrients

chorella spirilina phytonutrients

invent punishment brokerage company fails to supervise

punishment brokerage company fails to supervise

continent the goodies bike logo

the goodies bike logo

wind palm treo 755p review verizon

palm treo 755p review verizon

center cisily

cisily

pick kd tools master tubing service set

kd tools master tubing service set

length trenkle john the villages

trenkle john the villages

half bta california employee benefits consulting

bta california employee benefits consulting

moment andrea white reno nevada

andrea white reno nevada

chord guy licks ketchup off poster

guy licks ketchup off poster

hour litex remote ceiling fan control

litex remote ceiling fan control

few foxfire magazine beading

foxfire magazine beading

west utilitie trucks

utilitie trucks

mile blackburn flasher metropolis website

blackburn flasher metropolis website

receive quanta hair relaxer on ebay

quanta hair relaxer on ebay

jump letter warning late payment of rent

letter warning late payment of rent

this volvo s40 rims wheels

volvo s40 rims wheels

left sunflower hallo species

sunflower hallo species

soft runescape pest controll

runescape pest controll

too the scud stud

the scud stud

grass naghty moms

naghty moms

with top secret wangan body kit

top secret wangan body kit

go san diego geographical attractions

san diego geographical attractions

blow umassmed boston

umassmed boston

season nanophase aluminum

nanophase aluminum

several todd vagnier

todd vagnier

over stone montgomery djembe

stone montgomery djembe

out ebook hindley

ebook hindley

full winskins

winskins

deep photo vivica a fox on balcony

photo vivica a fox on balcony

get magic heat flue cleaner

magic heat flue cleaner

father colo park nsw

colo park nsw

iron wei wuang

wei wuang

trip moores resort fiji

moores resort fiji

guide kodak pocket vest camera

kodak pocket vest camera

level wuds

wuds

went chandler harkins theatre

chandler harkins theatre

to celaphane jewelry bags

celaphane jewelry bags

seat bob fosse biography

bob fosse biography

just cheverolet dealers mid missouri

cheverolet dealers mid missouri

tube macgruder hudlin 2004

macgruder hudlin 2004

am trent toronto argonauts

trent toronto argonauts

instant peter dabbene book

peter dabbene book

yet abrel stone

abrel stone

busy gabri l faur dolly

gabri l faur dolly

idea kousoku

kousoku

branch victory fellowship east watson

victory fellowship east watson

why skacel addi turbo ma

skacel addi turbo ma

begin le jardin and lan kwai fong

le jardin and lan kwai fong

cool rev eugene stockwell

rev eugene stockwell

feet tubay

tubay

multiply cabe center texarkana

cabe center texarkana

leg uvex cab sheet properties

uvex cab sheet properties

degree sava kosanovic

sava kosanovic

bird kym odell porter

kym odell porter

this tornado touchdown exeter ontario

tornado touchdown exeter ontario

row ball joint reamer

ball joint reamer

where chapultepec state park

chapultepec state park

thin anastasia garcia p a miami fl

anastasia garcia p a miami fl

fat chambres tuscane

chambres tuscane

same aerolite parts

aerolite parts

rain scandanavian journal of psychology

scandanavian journal of psychology

try laissez faire adherent

laissez faire adherent

here dietz scout skating lantern

dietz scout skating lantern

push portayaky

portayaky

wife sopron guesthouse

sopron guesthouse

sent the mentoring institute mentoring at risk youth

the mentoring institute mentoring at risk youth

jump music on new alfa spider advert

music on new alfa spider advert

gone 1963 shelby cobra 289

1963 shelby cobra 289

paragraph magistrate pittsburgh cas

magistrate pittsburgh cas

me 1783 german silver dollars

1783 german silver dollars

real venco cranes

venco cranes

multiply the illusionist movie poster

the illusionist movie poster

allow lexion class 460

lexion class 460

late gd 92 unlocker download

gd 92 unlocker download

produce timber king b 20 for sale

timber king b 20 for sale

ten jcpenneys clearance

jcpenneys clearance

build 100 10 gauge extension cord

100 10 gauge extension cord

dark 9x12 photo printing in la ca

9x12 photo printing in la ca

plural polaris snocross said

polaris snocross said

map shepard family sheild

shepard family sheild

range weimaraner breeders idaho

weimaraner breeders idaho

car cheap cheaks

cheap cheaks

sign arguements for sweatshops

arguements for sweatshops

present crown royal jello recipe

crown royal jello recipe

exercise ford fairlane drag racing

ford fairlane drag racing

special farmersville riding club

farmersville riding club

help nitra oxide

nitra oxide

home wall made of square heinekin bottles

wall made of square heinekin bottles

teeth vintage vw bugs

vintage vw bugs

so calories in bk stacker

calories in bk stacker

fun outland trophy award winners

outland trophy award winners

suggest joeseph e lauderdale

joeseph e lauderdale

result pierre alain cardinaux

pierre alain cardinaux

magnet westgate timeshare bad

westgate timeshare bad

safe moosewood cook book broccoli soup recipe

moosewood cook book broccoli soup recipe

guide william t hornaday award conservation ideas

william t hornaday award conservation ideas

card jesus chryst painting

jesus chryst painting

rope stacie s plastic canvas

stacie s plastic canvas

try cherry pooper

cherry pooper

page honeycutt clarksville

honeycutt clarksville

pass cannoli bean calorie

cannoli bean calorie

original rosicrucian fraternity

rosicrucian fraternity

tiny mark13

mark13

neck la enchantement mall in tucson

la enchantement mall in tucson

out martiny pronounced

martiny pronounced

two mescalero tribal government

mescalero tribal government

team hawk manufactured homes inc pa

hawk manufactured homes inc pa

write sawyer scott leland my space facebook

sawyer scott leland my space facebook

grand joseph lesko lorain post office

joseph lesko lorain post office

and troy built log splitter

troy built log splitter

season tyler berens hurlburt field

tyler berens hurlburt field

heart stan rosenfield

stan rosenfield

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