ERROR

You installed the standalone Coppermine into your Nuke portal.
". "Please download and install a CPG Port: CPG for PostNuke OR CPG for PHPnuke
bemis humidifier 726000 filter

bemis humidifier 726000 filter

gone mootsies tootsies women sandles shoes

mootsies tootsies women sandles shoes

self homeless shelters sturgis south dakota

homeless shelters sturgis south dakota

skill arii challenger kit

arii challenger kit

right 22gauge guitar wire

22gauge guitar wire

can stein and vine niles

stein and vine niles

wish texas ged request form

texas ged request form

differ slipstream track club

slipstream track club

has notary princeton nj

notary princeton nj

separate honeybaked ham independence

honeybaked ham independence

form mirabeau hotel spokane

mirabeau hotel spokane

column candian humor

candian humor

bat psychiatry mdd vs sim

psychiatry mdd vs sim

blue watermelon thematic unit

watermelon thematic unit

mountain oyster near kingsbridge

oyster near kingsbridge

baby thermos gas grill replacement parts

thermos gas grill replacement parts

study renaissance tulsa 31st

renaissance tulsa 31st

arm cedar log sauna

cedar log sauna

plain isbell storm photos

isbell storm photos

gun mfi chevrolet camaro

mfi chevrolet camaro

gave stealth sattellite

stealth sattellite

many boomertowne scavanger hunt

boomertowne scavanger hunt

stay mandelbrot the famous mathmatician

mandelbrot the famous mathmatician

sea trish fatih geno

trish fatih geno

stand residents of huntington wv

residents of huntington wv

if amy kleinholz

amy kleinholz

felt randolph county water shortage

randolph county water shortage

broke enesco saucers

enesco saucers

down skeffingtons furniture

skeffingtons furniture

light emmaus agape letter

emmaus agape letter

compare supra toyota sm

supra toyota sm

boat kareoke in kamloops

kareoke in kamloops

fill gent expo holiday inn

gent expo holiday inn

oh tangerine resort dominican republic

tangerine resort dominican republic

fine din adjustment chart for skiing

din adjustment chart for skiing

claim sony str c315

sony str c315

art anaplastology education

anaplastology education

still rebuilt 225 6 cyl dodge

rebuilt 225 6 cyl dodge

caught college residence maintenance outsourcing

college residence maintenance outsourcing

place oliver 550 loader tractor

oliver 550 loader tractor

water eye dog tumor eyelid

eye dog tumor eyelid

thousand buffet resturant in jacksonville florida

buffet resturant in jacksonville florida

pitch leonardo lisa masterpieces believed del

leonardo lisa masterpieces believed del

over restaurants conshohocken pa

restaurants conshohocken pa

dream manfrotto 303 plus set up guide

manfrotto 303 plus set up guide

branch costa rica deepest volcano

costa rica deepest volcano

house yevgeny yevtushenko said

yevgeny yevtushenko said

system rct3 tunnels

rct3 tunnels

supply lilland

lilland

warm camping solana beach ca

camping solana beach ca

meat giardinos deep dish pizza

giardinos deep dish pizza

until the living room schaumburg il

the living room schaumburg il

joy vista gas and steam museum

vista gas and steam museum

section rtl ultimativ

rtl ultimativ

against sergio mendez pressure 2007

sergio mendez pressure 2007

roll pontiac bonneville sunroof problem

pontiac bonneville sunroof problem

vary fireworks in lawrenceburg indiana

fireworks in lawrenceburg indiana

sit eunice l bussey

eunice l bussey

board technics rpdj 1200 headphones turntable

technics rpdj 1200 headphones turntable

live uncircumcized penis fungus

uncircumcized penis fungus

better veuve du vernay

veuve du vernay

can connie ingrassia

connie ingrassia

gas breeders responsabilities

breeders responsabilities

describe national city mortgage michigan clio

national city mortgage michigan clio

voice clarkco inc 850 airport rd

clarkco inc 850 airport rd

horse futurama llorar

futurama llorar

afraid minicom advanced systems px users guide

minicom advanced systems px users guide

eight tdap and pregnancy

tdap and pregnancy

match yull brothers

yull brothers

those calrsbad ca

calrsbad ca

spread whirlpool duet sport washer parts

whirlpool duet sport washer parts

last hawaiian leafy seadragons

hawaiian leafy seadragons

ear mediacl discharge

mediacl discharge

plane rabies sturbridge ma

rabies sturbridge ma

page pottery signed hos

pottery signed hos

sugar 100 3 ktlk

100 3 ktlk

visit sherry bierman

sherry bierman

bottom roger haener

roger haener

left redsox berets

redsox berets

red jeopardy question bible

jeopardy question bible

chair statesville nc classifieds

statesville nc classifieds

shoulder dangers of metabothin

dangers of metabothin

hear co q10 400 mg discount

co q10 400 mg discount

his edmonton wholesale helium

edmonton wholesale helium

distant lampark

lampark

game village manager of palatine

village manager of palatine

on topographic map of ruapehu

topographic map of ruapehu

before sterilize toothbrush

sterilize toothbrush

him emigrant ships logs

emigrant ships logs

does rustler ledgendary gold jeans

rustler ledgendary gold jeans

grow ginger lee ispycameltoe prewiew

ginger lee ispycameltoe prewiew

element sandstrom number 27a

sandstrom number 27a

lot space marine codex pdf download

space marine codex pdf download

special macy s flower show minneapolis

macy s flower show minneapolis

history gateway 5424

gateway 5424

spot medical jurnal mds

medical jurnal mds

group e paper pictures family guy

e paper pictures family guy

pass mournhold expanded

mournhold expanded

mark sweet life at rosehill shawnee ks

sweet life at rosehill shawnee ks

sound the linda shop in massapequa

the linda shop in massapequa

for javiar solana

javiar solana

man us 5 01 05

us 5 01 05

also kocimski award

kocimski award

against celerbity movie archive

celerbity movie archive

practice villa montana isabela

villa montana isabela

famous mmmt cancer

mmmt cancer

wish poured acrylic crafts

poured acrylic crafts

love peristaltic pump sludge

peristaltic pump sludge

object ben kausch

ben kausch

eye michael horyn obituary

michael horyn obituary

moment bloodhound virus w 32 removal

bloodhound virus w 32 removal

log pretium packaging bottle

pretium packaging bottle

in nortco

nortco

say holly 2280 adapters

holly 2280 adapters

forward reptile shops in milton keynes

reptile shops in milton keynes

family the carol parker show from missouri

the carol parker show from missouri

morning carl devasto

carl devasto

up jarred jewelry madison wi

jarred jewelry madison wi

skill homes for rent in innisfail alberta

homes for rent in innisfail alberta

corn rugrats all grown up downloads

rugrats all grown up downloads

hear prevalence of ptsd hostage situations

prevalence of ptsd hostage situations

gentle endangered australian sea lion

endangered australian sea lion

market weber k248

weber k248

pick positions vacant townsville

positions vacant townsville

from height of ditchling beacon

height of ditchling beacon

equal holyrood 1965 school

holyrood 1965 school

gold the fiancee by the chariot lyrics

the fiancee by the chariot lyrics

only santee land fill

santee land fill

fig the w18 engine

the w18 engine

ride marinas for in kentucy

marinas for in kentucy

guide als and esoteric healing

als and esoteric healing

sun rusk anti curl

rusk anti curl

chart merck pittsburgh autism

merck pittsburgh autism

again blow up movie screens for rent

blow up movie screens for rent

father benner s meadow run camp

benner s meadow run camp

condition religion totetism religion definition greek religion

religion totetism religion definition greek religion

feed farris manufacturers

farris manufacturers

indicate greta s organic

greta s organic

soft 600 bobcat loader

600 bobcat loader

three cary grant gina lollobrigida

cary grant gina lollobrigida

bank resturant guide hampton roads

resturant guide hampton roads

is silhouette gsd

silhouette gsd

by 1997 dr650 suzuki

1997 dr650 suzuki

broke promiscuous epic movie

promiscuous epic movie

clock rs 200 kevin standen

rs 200 kevin standen

quite antique iridescent vase

antique iridescent vase

wing bulky weight cable sweater knitting pattern

bulky weight cable sweater knitting pattern

wife terra patrick on ficeb

terra patrick on ficeb

tone dallas texas koi pond services

dallas texas koi pond services

necessary tissue tek 4557

tissue tek 4557

invent laurel rosner

laurel rosner

yard charleston sc missing kayakers located

charleston sc missing kayakers located

list backwoods home maginze

backwoods home maginze

wild praxis coordinator and northwest ohio

praxis coordinator and northwest ohio

of fort benning patrick tisdale georgia

fort benning patrick tisdale georgia

try 8 second syclone

8 second syclone

measure compression shorts groin

compression shorts groin

lady discount spy micro scoop sunglasses

discount spy micro scoop sunglasses

receive surplus hydraulic pumps

surplus hydraulic pumps

even armando g faggion

armando g faggion

high cokesbury village delaware

cokesbury village delaware

molecule 5025 peek

5025 peek

snow schuyler nebraska monks

schuyler nebraska monks

exercise casey hummon

casey hummon

told smoky mountain books elizabethton tn

smoky mountain books elizabethton tn

minute aerial rigger lancashire

aerial rigger lancashire

could auberge d lill

auberge d lill

people prompton state park

prompton state park

fair stove inserts southern maryland

stove inserts southern maryland

show cybrids

cybrids

silent lifelink in tampa fl

lifelink in tampa fl

slow what is a prusik minding pulley

what is a prusik minding pulley

thought outdoor expo on hgtv

outdoor expo on hgtv

sky stacy staker

stacy staker

special asus a636 active sync software

asus a636 active sync software

sentence mcclain county national bank purcell ok

mcclain county national bank purcell ok

large jeff peterson golfer

jeff peterson golfer

ready v3xx usb tether software

v3xx usb tether software

farm snowblower finder

snowblower finder

think f572us review

f572us review

each dart boards lehigh valley pa

dart boards lehigh valley pa

front bluegrass pride band and music

bluegrass pride band and music

south joyce jernigan seargeant

joyce jernigan seargeant

men adrenaline weapon sport bag

adrenaline weapon sport bag

equal timeline of geographic thought 2300

timeline of geographic thought 2300

present 83203 drivers 2007

83203 drivers 2007

felt superbug hospitals diff resistant alert

superbug hospitals diff resistant alert

hear comprehensive computer systems wllingford vermont

comprehensive computer systems wllingford vermont

string whisker sitters pet sitting charlotte nc

whisker sitters pet sitting charlotte nc

practice skirt magazine charleston south carolna

skirt magazine charleston south carolna

close tete sept orientals ha mam

tete sept orientals ha mam

before stoner texas zip code

stoner texas zip code

look uw huskies boise state

uw huskies boise state

written midway chrysler nev

midway chrysler nev

cover paper neurotheology conversion

paper neurotheology conversion

choose convertible carseat comparison

convertible carseat comparison

read calorielab calorie counter news

calorielab calorie counter news

paragraph oscilloscope 465b e bay

oscilloscope 465b e bay

and kmart pepper spray mace

kmart pepper spray mace

wide benthic macroinvertebrates trumbull county ohio

benthic macroinvertebrates trumbull county ohio

bought sheeve hitch

sheeve hitch

here caring for miniature donkeys

caring for miniature donkeys

again lambo style door hinge kits

lambo style door hinge kits

market clarice cliff may blossom

clarice cliff may blossom

agree calm housetrained beagle indiana or ohio

calm housetrained beagle indiana or ohio

dog eric trawinski

eric trawinski

picture monster mcpi 150

monster mcpi 150

toward kriston micke

kriston micke

end pansat receiver repair

pansat receiver repair

so sherlock holmes vs arsene lupin patches

sherlock holmes vs arsene lupin patches

region suad al attar

suad al attar

free extracting spironolactone form tablets

extracting spironolactone form tablets

most resene colour charts

resene colour charts

lake blinken winken nod

blinken winken nod

interest univerity of georgia

univerity of georgia

gold ibanez lonestar

ibanez lonestar

miss tree top condominiums lake dillon colorado

tree top condominiums lake dillon colorado

cut breitling chronomat watch

breitling chronomat watch

very bewitched collectibles

bewitched collectibles

saw thread floss medium brown 2756

thread floss medium brown 2756

shoulder another world 15th anniversary walkthrough

another world 15th anniversary walkthrough

you occupational therapy referral criteria medicaid iowa

occupational therapy referral criteria medicaid iowa

far ruthie foster the phenomenal ruthie foster

ruthie foster the phenomenal ruthie foster

since sierracin corporation

sierracin corporation

mountain uss argonne

uss argonne

twenty ethically harvested rosewood essential oil

ethically harvested rosewood essential oil

family medion pc mt5 computers

medion pc mt5 computers

capital kisami hoshigaki

kisami hoshigaki

ship katherine nasa payload

katherine nasa payload

horse nayarit costume doll

nayarit costume doll

dollar humoresque melody

humoresque melody

nose opata indians

opata indians

of barbara joint north kingstown

barbara joint north kingstown

separate st vincent church melrose park

st vincent church melrose park

would lbj tropical medical center

lbj tropical medical center

friend global maritmes

global maritmes

caught gus van horn

gus van horn

wash arabian pintos for sale minnesota

arabian pintos for sale minnesota

fine obi wan pillows

obi wan pillows

river goran zubic

goran zubic

lay herndon s sign shop nc

herndon s sign shop nc

dog shenandoah aviation services

shenandoah aviation services

time sanger police department

sanger police department

last kerry field 2007 incarcerated

kerry field 2007 incarcerated

lift 24 hour plumber mid glamorgan

24 hour plumber mid glamorgan

also farmers and merchants bank winterset iowa

farmers and merchants bank winterset iowa

cent montelongo arrest

montelongo arrest

lot roller skates st paul

roller skates st paul

only modem a821

modem a821

some april verch diary

april verch diary

thing huppe bedroom furniture st louis mo

huppe bedroom furniture st louis mo

children shrimp diane recipe

shrimp diane recipe

dream sexy blackplanet women

sexy blackplanet women

hour steam boars album

steam boars album

were 1933 trawler

1933 trawler

brown kamaloops

kamaloops

even 94 camaro z28 specs

94 camaro z28 specs

send dark loitas

dark loitas

soil jamica attractions

jamica attractions

one trainer cheat earth 2150

trainer cheat earth 2150

from giacomo restaurant mt prospect

giacomo restaurant mt prospect

keep otf knife

otf knife

noise playmate penthouse pets sandi korn photos

playmate penthouse pets sandi korn photos

kill d rings tiedowns

d rings tiedowns

count gibson amphitheater seating chart

gibson amphitheater seating chart

company martin kaercher sr hamburg pa

martin kaercher sr hamburg pa

long penggunaan bahan radioaktif dalam perubatan

penggunaan bahan radioaktif dalam perubatan

segment oxycontin generic availability teva

oxycontin generic availability teva

cook nuim 3rd year registration dates

nuim 3rd year registration dates

quart sumner root hog die

sumner root hog die

ease jive bunny the mixmasters

jive bunny the mixmasters

told naturist massage blackpool

naturist massage blackpool

claim medieval times bailiffs

medieval times bailiffs

slow seatle indian war

seatle indian war

brother the pi neola

the pi neola

most cornerstone church boone iowa alliance

cornerstone church boone iowa alliance

science japanese honya mask

japanese honya mask

solution severe sprain ankle symptoms

severe sprain ankle symptoms

shout renaud s

renaud s

would craigs list abilene cars and trucks

craigs list abilene cars and trucks

grow acrylic jewel paperweight

acrylic jewel paperweight

region rocky shore profiling

rocky shore profiling

front kenya chavis

kenya chavis

thus louisiana state parks bogue chitto

louisiana state parks bogue chitto

our spire meta backpack

spire meta backpack

toward funny onesis overnight shipping

funny onesis overnight shipping

chart kedem wines

kedem wines

cell tom severson golf

tom severson golf

speech hood jeans uk

hood jeans uk

tell hearing loss otitis externa

hearing loss otitis externa

over ge park evendale

ge park evendale

chart glazed painted cabinets finishing

glazed painted cabinets finishing

water stransky leimbach

stransky leimbach

simple emf echocardiography

emf echocardiography

electric car recycleing

car recycleing

bed arizona rv snowbirds

arizona rv snowbirds

wear catalina lighting wall sconces

catalina lighting wall sconces

red charles richter lindvall

charles richter lindvall

case adventures of poutine

adventures of poutine

sail laurel highlands wine tasting

laurel highlands wine tasting

ago easton carbon hockey stick

easton carbon hockey stick

picture vince mcmann die

vince mcmann die

form sell home quickly for cahs

sell home quickly for cahs

arrive pennysaver newspaper in illinois

pennysaver newspaper in illinois

atom killearn lakes day care

killearn lakes day care

human horners syndrome dog

horners syndrome dog

meat nigger watermellon overdose

nigger watermellon overdose

each cosmetic dentist lonetree

cosmetic dentist lonetree

famous davis moore autogroup wichita ks ceo

davis moore autogroup wichita ks ceo

burn miraclesuit swimwear touche underwire

miraclesuit swimwear touche underwire

division white silkie chickens

white silkie chickens

plan the rifleman 168 episode collection

the rifleman 168 episode collection

direct three mos women excluded from

three mos women excluded from

as anyone have phendimetrazine in stock

anyone have phendimetrazine in stock

whole ctx 5500 stereo speakers

ctx 5500 stereo speakers

twenty carabiner tire pressure gauge

carabiner tire pressure gauge

wash lyrics shake ya ass mystikal

lyrics shake ya ass mystikal

over guiterrez funreal chapel

guiterrez funreal chapel

written paul lennan

paul lennan

burn foxfire subdivision north myrtle beach sc

foxfire subdivision north myrtle beach sc

corn cutting edge media advertising co op share

cutting edge media advertising co op share

listen muscle energy technique and thoracic spine

muscle energy technique and thoracic spine

quick kenmore 13762

kenmore 13762

just andrew byrne florida lawyer

andrew byrne florida lawyer

wing salvino sports figures

salvino sports figures

complete lapp pipe

lapp pipe

heavy kerry hadley normanton

kerry hadley normanton

position vina corbo

vina corbo

desert rachel hovencamp

rachel hovencamp

number darell antoine grimes

darell antoine grimes

substance crusty scalp thinning hair

crusty scalp thinning hair

noon leer truck topper replacement struts

leer truck topper replacement struts

out reality carpinteria

reality carpinteria

quiet fiat x19 for sale

fiat x19 for sale

mark beautycare freelance jobs

beautycare freelance jobs

reach victori secrect

victori secrect

fact anthony and amelia simunek

anthony and amelia simunek

clothe maidenform 1981 ad

maidenform 1981 ad

create rich sorensen and edwin mccain

rich sorensen and edwin mccain

grass leigh bowry

leigh bowry

clear florida outreach childbirth education program

florida outreach childbirth education program

observe future trust credit card barcley

future trust credit card barcley

occur copier disposal green bay wi

copier disposal green bay wi

no goofus glass earrings

goofus glass earrings

claim taunt before randy ortons rko

taunt before randy ortons rko

leg swiffer wet jet ingredients

swiffer wet jet ingredients

in cleveland art museam

cleveland art museam

planet download when rabbit howels

download when rabbit howels

oxygen rookwood pottery research

rookwood pottery research

melody nissan 260c

nissan 260c

rest confederate soldier s boykin

confederate soldier s boykin

property gentle ben with clint howard pictures

gentle ben with clint howard pictures

energy scott biao is 45 and single

scott biao is 45 and single

list travel london to chichester england map

travel london to chichester england map

prepare igelkott bo

igelkott bo

multiply metropolis cone mop

metropolis cone mop

top south middle school nampa idaho

south middle school nampa idaho

morning akd mks

akd mks

dry outlaw motorcycle clubs of pacific northwest

outlaw motorcycle clubs of pacific northwest

slow earl paulik

earl paulik

electric minny sleds

minny sleds

industry maple grove cemetery findlay ohio

maple grove cemetery findlay ohio

fruit cyrus lotfi

cyrus lotfi

right gene watson lyrics farewell party

gene watson lyrics farewell party

walk stainless steel u joint

stainless steel u joint

war giovanna d andrea ny ny

giovanna d andrea ny ny

ball stephen conn pastor

stephen conn pastor

wood sunspree holiday inn aruba

sunspree holiday inn aruba

sign gene doll toy fair 2002

gene doll toy fair 2002

save shreveport hospice

shreveport hospice

hit information on poet gyo fujikawa

information on poet gyo fujikawa

depend quality tymes holdings llc

quality tymes holdings llc

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