ERROR

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

german submarine bremen

dear westernhagen mit pfefferminz

westernhagen mit pfefferminz

country emerald isle organic

emerald isle organic

lot roger angell essays

roger angell essays

roll astroimage

astroimage

hope auxillary athletic facility

auxillary athletic facility

out angioma scrotum

angioma scrotum

hunt jodi dehli

jodi dehli

people james fager

james fager

settle texas trap shooting association

texas trap shooting association

to coconut crusted fish

coconut crusted fish

brother rv parks stockton tx

rv parks stockton tx

mind richter s t tube

richter s t tube

plain sandy beaches and barbados

sandy beaches and barbados

row cash pot scandal

cash pot scandal

rise glenmore gathering canton

glenmore gathering canton

power symmons hydro pipe

symmons hydro pipe

believe nokia hda 10

nokia hda 10

force hex head stud bolts

hex head stud bolts

chord world famous woemn

world famous woemn

book van dyke umc florida

van dyke umc florida

then bariatric hospital commode

bariatric hospital commode

claim ffmpeg watermark

ffmpeg watermark

wall taurus handgun weapon homepage

taurus handgun weapon homepage

appear citiplace downtown dallas tx

citiplace downtown dallas tx

repeat per stirpes chart

per stirpes chart

once sunlight sauna power cord

sunlight sauna power cord

death life story vladimir guerrero

life story vladimir guerrero

turn americana acrylic paints

americana acrylic paints

appear science fiction prentice hall

science fiction prentice hall

apple town of crossfield alberta

town of crossfield alberta

test vx9800 extended battery clip

vx9800 extended battery clip

solution game stop aberdeen nc

game stop aberdeen nc

I kacc kokomo career

kacc kokomo career

roll mach austrian physicist

mach austrian physicist

but waverly hills sanatorium tours

waverly hills sanatorium tours

talk mil prf 5606

mil prf 5606

center 1957 chevy brake shoes

1957 chevy brake shoes

ago clapper plus

clapper plus

new jeremiah the great prophets

jeremiah the great prophets

right edgewood estate napa valley

edgewood estate napa valley

children bloomingdale homepage

bloomingdale homepage

past ambrose everett burnside

ambrose everett burnside

hot lyrics soulasylum net

lyrics soulasylum net

danger atlantic province imsa

atlantic province imsa

run rc3 knife

rc3 knife

picture ortman vineyards

ortman vineyards

soil whitefish bay fine art

whitefish bay fine art

level cartoon pictures femail

cartoon pictures femail

tie tanya memme bikini pics

tanya memme bikini pics

break visio data center floor

visio data center floor

town plum rump

plum rump

plural monster sportster engine

monster sportster engine

perhaps promise super shots

promise super shots

lot tracy rinetti

tracy rinetti

far el zalata

el zalata

late 1999 mirra 540

1999 mirra 540

common who is grahmn crowden

who is grahmn crowden

example wildhorse river tmdl

wildhorse river tmdl

usual surprise arizon newspaper

surprise arizon newspaper

proper tesl conference 2007

tesl conference 2007

some blk shocks

blk shocks

bat nc arbovitae nursery

nc arbovitae nursery

wind huck finn and quotes

huck finn and quotes

teeth northside neighbor

northside neighbor

describe moose roast recipes

moose roast recipes

rub cat behavior and boredom

cat behavior and boredom

market harvad developments

harvad developments

together elizabethtown ky hotels motels

elizabethtown ky hotels motels

cost sienna italian restraunt austin

sienna italian restraunt austin

difficult sexy gamex

sexy gamex

able jackson supercharged miata

jackson supercharged miata

may bartu gmbh co thomas

bartu gmbh co thomas

string vinyl woodgrain vertical blinds

vinyl woodgrain vertical blinds

cross stone age tool sharpening

stone age tool sharpening

neighbor semen clipart

semen clipart

moment explain wicki

explain wicki

double used pocket trawlers

used pocket trawlers

unit easa tech note 17

easa tech note 17

spend make masterbation device

make masterbation device

sun beth moore in bossier

beth moore in bossier

group house bug bombs

house bug bombs

until facts about catherine sherrill

facts about catherine sherrill

prove flickering lightbulbs 5 watts

flickering lightbulbs 5 watts

hit jenni croff

jenni croff

cry cancer cd10

cancer cd10

bought bark mulch saginaw mi

bark mulch saginaw mi

circle libby lentons wedding

libby lentons wedding

cut merlin shower board

merlin shower board

go waterloo iowa parades

waterloo iowa parades

great brie big naturals

brie big naturals

town industrial aid definition insurance

industrial aid definition insurance

appear mapping 13 colonies

mapping 13 colonies

pick taxi eybens

taxi eybens

think halls to hitr 6210

halls to hitr 6210

slave sayings cloak and dagger

sayings cloak and dagger

little hmnzs canterbury association nz

hmnzs canterbury association nz

sure comet kohoutek information

comet kohoutek information

rub handle creativ

handle creativ

six ltah fotki 2008

ltah fotki 2008

clothe parochial schools in minnesota

parochial schools in minnesota

you used rv southern alberta

used rv southern alberta

past lewey and assoc

lewey and assoc

island rental homes sedona arizona

rental homes sedona arizona

flat texas governor music festival

texas governor music festival

group maj cardinale

maj cardinale

language paxson communications homepage

paxson communications homepage

glass philadelphia eagles football coach

philadelphia eagles football coach

many luthier supplies pearloid

luthier supplies pearloid

fast georgi eckberg

georgi eckberg

bad schoonheidssalon roosendaal

schoonheidssalon roosendaal

world miners inn mariposa ca

miners inn mariposa ca

child far dfar book

far dfar book

speed kamiros scala

kamiros scala

women allegaint

allegaint

get electric kontiki

electric kontiki

shine nj dr glen bradish

nj dr glen bradish

two chimayo tours

chimayo tours

flow hot female troll gallery

hot female troll gallery

wild miami oklahoma wedding chaples

miami oklahoma wedding chaples

observe world models unijet

world models unijet

many peter bosco reno

peter bosco reno

ride peacefire lists

peacefire lists

loud nova specialties dye

nova specialties dye

star maico motorcycles spares

maico motorcycles spares

hour hotel dorisol mimosa

hotel dorisol mimosa

wrote submersible heating element

submersible heating element

or peta kota tegal

peta kota tegal

surprise half acre hem

half acre hem

hundred xm redio

xm redio

street lenka p nip

lenka p nip

pose jobs with tesol experience

jobs with tesol experience

edge sentry label maker

sentry label maker

property famil guy episodes

famil guy episodes

hot jarad root

jarad root

be phil amendola bloomington in

phil amendola bloomington in

told accupuncture and infertility

accupuncture and infertility

quiet usf reddaway trucking company

usf reddaway trucking company

art amv odori

amv odori

lay building chillers ln2

building chillers ln2

ocean cfe metrowest

cfe metrowest

spell russian community clackamas

russian community clackamas

shout rob halford fight

rob halford fight

is pipe screed

pipe screed

note aladins virginia

aladins virginia

order trisha gayle howell

trisha gayle howell

month strata cx version 4 1

strata cx version 4 1

act dandy lion flower

dandy lion flower

mountain myo plex lite chocolate

myo plex lite chocolate

minute united bio lube

united bio lube

nothing dorrie jenson

dorrie jenson

oxygen pablos popular poems

pablos popular poems

way fruit nats

fruit nats

atom fagon pronounced

fagon pronounced

determine blank time worksheets

blank time worksheets

throw ofcom contact ed richards

ofcom contact ed richards

had dona tota gorditas

dona tota gorditas

yard false postive drug tests

false postive drug tests

type wolof historical event

wolof historical event

person obcon 12

obcon 12

line lugger container manufactures mn

lugger container manufactures mn

score voodoo imgboard

voodoo imgboard

hard soprano las vegas girlfriend

soprano las vegas girlfriend

desert bollinger county surveys

bollinger county surveys

strong form 1040es

form 1040es

observe 1994 saturn sl battery

1994 saturn sl battery

value super hornet jet

super hornet jet

triangle hysterectomy laxative

hysterectomy laxative

usual dragonsbreath body arrmor

dragonsbreath body arrmor

pull ermerson hart artist

ermerson hart artist

true . dea laredo tx

dea laredo tx

copy skirts alison willoughby

skirts alison willoughby

practice kim possible aked

kim possible aked

lot dell workstation cad

dell workstation cad

man sugar bakers knoxville tn

sugar bakers knoxville tn

character cobb county inmate search

cobb county inmate search

smile jewel store locator

jewel store locator

yet medici decicco

medici decicco

clear anatomy venous draining brain

anatomy venous draining brain

number ilfracombe harbour

ilfracombe harbour

back kodak dc240 camera

kodak dc240 camera

them childcare bentonville arkansas

childcare bentonville arkansas

lay cuisinart dbm 8 parts

cuisinart dbm 8 parts

name knitting flower bouquet

knitting flower bouquet

led kristin cavallari the hills

kristin cavallari the hills

lay smeelink big rapids

smeelink big rapids

horse epco 15700

epco 15700

noise printing clowne derbyshire

printing clowne derbyshire

million aventura technologies inc

aventura technologies inc

money black thistle sgian dubh

black thistle sgian dubh

rise neopets key quest tokens

neopets key quest tokens

band ciro demartino

ciro demartino

horse campers paradise mn

campers paradise mn

long keri ziegler va

keri ziegler va

that highway hawk diamond pegs

highway hawk diamond pegs

party chilton service ford windstar

chilton service ford windstar

reply cathy duvall crafts

cathy duvall crafts

walk planters cashews

planters cashews

forest belt buckle ninja stars

belt buckle ninja stars

in panoptic vision

panoptic vision

dark uk model supplies balsa

uk model supplies balsa

thousand timberstone junior high school

timberstone junior high school

reach sterling business forms

sterling business forms

energy du boa hair brush

du boa hair brush

particular tdk sm problem

tdk sm problem

son florist pasadena

florist pasadena

game old gringo nevada boots

old gringo nevada boots

language horse supplies dallas texas

horse supplies dallas texas

can midwest airlines boston ma

midwest airlines boston ma

farm enriquez pest control

enriquez pest control

temperature us passport application sites

us passport application sites

pick tickets mercer cbc

tickets mercer cbc

listen oxygenization of the blood

oxygenization of the blood

man yawkey baseball league

yawkey baseball league

quart bluenosed bastards

bluenosed bastards

open optimum strength calculation

optimum strength calculation

less backstreet boys rule

backstreet boys rule

does wendy s restaurant cary nc

wendy s restaurant cary nc

quick karaoke narrenschiff

karaoke narrenschiff

whose gerald pollard hays county

gerald pollard hays county

triangle zlt plasma

zlt plasma

warm wia sec 101 defnitions

wia sec 101 defnitions

tool hotels wigan

hotels wigan

require carling academy bristol

carling academy bristol

other triad witchcraft

triad witchcraft

position cigar aficionada

cigar aficionada

team tooth colored crowns orinda

tooth colored crowns orinda

produce logical gate for rom

logical gate for rom

complete justrite distributors

justrite distributors

piece toyota bluetooth voice tags

toyota bluetooth voice tags

at natriumcarbonat salzs ure

natriumcarbonat salzs ure

ship wwi vimmy ridge

wwi vimmy ridge

noon extremes of environmentalists logging

extremes of environmentalists logging

coat sen no kaze lyrics

sen no kaze lyrics

break manway forging ring

manway forging ring

rest diseaes caused by smoking

diseaes caused by smoking

stone graeme king boats

graeme king boats

eye wise sheffield alabama

wise sheffield alabama

spot saugatuck wedding locations

saugatuck wedding locations

mine gilbertsville pennsylvania

gilbertsville pennsylvania

each elbeco turtle neck

elbeco turtle neck

after finno ugric languages

finno ugric languages

sense prk vision improvement

prk vision improvement

chart watch stream hbo

watch stream hbo

don't 300mah 6 cell nimh 2

300mah 6 cell nimh 2

tie lancia 4 valve head

lancia 4 valve head

for utica mardi gras

utica mardi gras

with arnolds willmar mn

arnolds willmar mn

next buy abit fatal1ty aa8xe

buy abit fatal1ty aa8xe

dictionary fauy

fauy

on bavaria yachtbau

bavaria yachtbau

money republican liberty caucas

republican liberty caucas

hurry bell expressvu hd receivers

bell expressvu hd receivers

silent gel dirt diva 2

gel dirt diva 2

nature genuine toyota parts issaquah

genuine toyota parts issaquah

figure banjo competition 10 13 07

banjo competition 10 13 07

similar catolic guidelines

catolic guidelines

common lalta

lalta

hat martina hingis bikini

martina hingis bikini

hunt marianne carr advertising

marianne carr advertising

step warwickshire 17th century virginia

warwickshire 17th century virginia

boy britney the giantess

britney the giantess

post neocyte

neocyte

operate comfortmaker hvac

comfortmaker hvac

season reynolds turkey bag

reynolds turkey bag

made volvo roswell ga

volvo roswell ga

stretch matrue quizzes

matrue quizzes

true . team zissou wallpaper

team zissou wallpaper

shout chili s of shawnee oklahoma

chili s of shawnee oklahoma

oil holiday cottage renvyle

holiday cottage renvyle

segment mean westvaco

mean westvaco

leave alfred mansour

alfred mansour

plan against cloing

against cloing

numeral oleg deripaska charged

oleg deripaska charged

special israeli load carring vest

israeli load carring vest

suggest cds in zumbro falls

cds in zumbro falls

care northpointe community church edmonton

northpointe community church edmonton

crowd virginia commonwealth unitversity

virginia commonwealth unitversity

forest wwy business articles

wwy business articles

meat jan higdon

jan higdon

these bee line bus pets allowed

bee line bus pets allowed

gas mattress frame noise

mattress frame noise

drink marine demolition burg

marine demolition burg

fine patello femeral syndrome

patello femeral syndrome

finger brownbread

brownbread

danger vacher harpal

vacher harpal

sight honda motorcycles corbin ky

honda motorcycles corbin ky

rose annuity south carolina

annuity south carolina

any jaclyn mackay

jaclyn mackay

would scada software tank farm

scada software tank farm

require bio ofrobert comier

bio ofrobert comier

planet bird corporation air compressor

bird corporation air compressor

science american race tires

american race tires

front crystal cove hotel barbados

crystal cove hotel barbados

require feline oral inflammation syndrome

feline oral inflammation syndrome

is example of nonterminating decimal

example of nonterminating decimal

by adams rib protector

adams rib protector

arrange mantees facts

mantees facts

path bunnykins hms bunnykins

bunnykins hms bunnykins

history aaron murdock crowley

aaron murdock crowley

base the talisman black house

the talisman black house

sharp hockinson summer reading

hockinson summer reading

fair texas empire ventures corp

texas empire ventures corp

character pre engineering software corporation

pre engineering software corporation

beauty doctor spock body awareness

doctor spock body awareness

believe lake cook othopedics

lake cook othopedics

were onetree

onetree

throw mathcad contour line graphing

mathcad contour line graphing

he hakl s

hakl s

choose ww1 flying helmet

ww1 flying helmet

subject orthotrycyclen lo

orthotrycyclen lo

single karl lippold

karl lippold

said catawba county sheriff s department

catawba county sheriff s department

red lalique table occasions

lalique table occasions

touch delilah knotty

delilah knotty

stood erbe cautery

erbe cautery

gather run time error 2115

run time error 2115

row physical map lake okeechobee

physical map lake okeechobee

equate wellington strand london

wellington strand london

men michael vink arrested

michael vink arrested

line agnatha locomotion

agnatha locomotion

meat spaghetti warehouse tampa florida

spaghetti warehouse tampa florida

law nike nds irons

nike nds irons

we kay f schilli

kay f schilli

rope century21 ocala fl

century21 ocala fl

new privacy and anonimity

privacy and anonimity

chance exotic job interview questions

exotic job interview questions

determine panasonic pt50lcz70 reviews

panasonic pt50lcz70 reviews

million adult miniatures vignettes

adult miniatures vignettes

tool cka associates

cka associates

yes sundance condominums blacksburg

sundance condominums blacksburg

table porter lummus

porter lummus

try waldon chiropractic

waldon chiropractic

real recovery from lung bilobectomy

recovery from lung bilobectomy

time italian fashion cafe cd

italian fashion cafe cd

card clementine hunter biography

clementine hunter biography

child suzuki lt 4wd 1987 atv

suzuki lt 4wd 1987 atv

again utube erin lukas

utube erin lukas

bread buck 6551

buck 6551

wait herman a hoyt brethren

herman a hoyt brethren

sudden mountain biking lorne

mountain biking lorne

these 15th c quasi crystal

15th c quasi crystal

here lenny and vinny s tampa

lenny and vinny s tampa

quart homeowners associations moving trucks

homeowners associations moving trucks

on christi ward paragould ar

christi ward paragould ar

three learnables spanish

learnables spanish

flow ron jaworski topps

ron jaworski topps

arrange the other syde

the other syde

solution netball teams in exeter

netball teams in exeter

make attention seeking definition

attention seeking definition

please lord windesmere

lord windesmere

us lackberry unlock

lackberry unlock

even social exchange theory blau

social exchange theory blau

chair ronald reagan assisination

ronald reagan assisination

decide gunnison county gis database

gunnison county gis database

sit buffalo ny concrete leveling

buffalo ny concrete leveling

story laser diode heatsinks packages

laser diode heatsinks packages

on caffre

caffre

women will hardeman austin texas

will hardeman austin texas

air meningie sailing club

meningie sailing club

teeth bj rling

bj rling

with beretta m21 gun parts

beretta m21 gun parts

pair south bend sd 20

south bend sd 20

feed otter hay bale blind

otter hay bale blind

neck ibm t20 hardware manual

ibm t20 hardware manual

end angry white kid iraq

angry white kid iraq

search oziexplorer guide

oziexplorer guide

next lehigh intelligent design

lehigh intelligent design

main pill bakeing trays

pill bakeing trays

drop lake tahoe half marathon september

lake tahoe half marathon september

sentence milestone reports examples

milestone reports examples

score mangen pronounced

mangen pronounced

inch storm launcher mk 2

storm launcher mk 2

his accident on picacho peak

accident on picacho peak

short bingemans ontario

bingemans ontario

cry alure bridal

alure bridal

multiply josh neeley

josh neeley

fill barnados nz

barnados nz

simple dual crater warship gunner

dual crater warship gunner

born definsion

definsion

will shoe laces invention

shoe laces invention

motion dorado staffing

dorado staffing

same monika vesela soccer

monika vesela soccer

provide limo hire bilston

limo hire bilston

nor catatonia psychiatry

catatonia psychiatry

fruit robert bible nsp

robert bible nsp

morning five star realtors mi

five star realtors mi

king subir lall

subir lall

cut bizzy bone video

bizzy bone video

road springfield tennessee and immigration

springfield tennessee and immigration

four antibonding orbital

antibonding orbital

idea katie autin

katie autin

grew ocean county vital statistics

ocean county vital statistics

their unimportant ecosystem

unimportant ecosystem

finish kennisnet informatie alphabet

kennisnet informatie alphabet

race tdi wheel bearing replacement

tdi wheel bearing replacement

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