ERROR

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

bobos in lincolnshire

fight mike epps comedy shows

mike epps comedy shows

own the rock munajat

the rock munajat

stream m3 bradley fighting vehicle

m3 bradley fighting vehicle

day scince museum of virginia

scince museum of virginia

spoke mike mimone

mike mimone

wrong endless shores bookstore bridgetown

endless shores bookstore bridgetown

might pnu riff

pnu riff

whether billa bong skull t shirt

billa bong skull t shirt

month white oak beverage

white oak beverage

school blue island marketing

blue island marketing

began judica wedding rings

judica wedding rings

main charles brush arc lamp

charles brush arc lamp

five stephanie pegasus

stephanie pegasus

now program gain amplifier

program gain amplifier

wire 11306 cognac

11306 cognac

moon nexus valve specialist

nexus valve specialist

left amitab bachan

amitab bachan

subtract suzanne dansereau les affaires

suzanne dansereau les affaires

support hughes hr10 250 warranty manual

hughes hr10 250 warranty manual

liquid ista financial

ista financial

instrument market dynamics kilkenny

market dynamics kilkenny

spoke draining coolant chevrolet

draining coolant chevrolet

locate favorite snow cone flavors

favorite snow cone flavors

condition wakefield hospital wellington

wakefield hospital wellington

cause danni s haeddrive

danni s haeddrive

house hrh pittsburgh

hrh pittsburgh

appear translate surname to irish

translate surname to irish

party butterfly poems for fours

butterfly poems for fours

camp latin translatin

latin translatin

make dance boutique temple pa

dance boutique temple pa

chance sea of campay

sea of campay

morning dallas punk flyers

dallas punk flyers

by belfair nickel

belfair nickel

stick toni spradlin

toni spradlin

post bill lamb lyrics home

bill lamb lyrics home

little avoylles parish

avoylles parish

help autodetailing milan

autodetailing milan

put geeks guide to women

geeks guide to women

town hillier real estate

hillier real estate

differ lirik lagu ada band

lirik lagu ada band

market schwartze hunt

schwartze hunt

settle crochet pattern mobile phone

crochet pattern mobile phone

square cool contemporary stair

cool contemporary stair

path paul bolton the astronout

paul bolton the astronout

yes strasser family nj

strasser family nj

pretty printable zen bones game

printable zen bones game

front misoprost

misoprost

repeat pell grant qualification

pell grant qualification

forward ann harper

ann harper

bring licensed colonic therapist

licensed colonic therapist

age hemphill pride

hemphill pride

has erate jon slaughter

erate jon slaughter

process kidsisland

kidsisland

farm mary begian

mary begian

neck russian doll dress ebay

russian doll dress ebay

language wenatchee washington motels

wenatchee washington motels

chance conco sherwin williams

conco sherwin williams

name savour of the universe

savour of the universe

written rolex cellini collection

rolex cellini collection

king wood chipper classified used

wood chipper classified used

except hea mortgages

hea mortgages

though midwest salvage surplus

midwest salvage surplus

gold limpet soundtrack

limpet soundtrack

soldier the baird glacier

the baird glacier

five lil flip diplomats rapidshare

lil flip diplomats rapidshare

act voip proviers

voip proviers

neck electrical skematics

electrical skematics

describe northum pronounced

northum pronounced

fell 1958 61 mideast partnership

1958 61 mideast partnership

mix riverside banquets geneva il

riverside banquets geneva il

quotient jobs in cammack village

jobs in cammack village

bar samuel gray birth

samuel gray birth

sand define half time enrollment

define half time enrollment

feel nixon rocker watch denim

nixon rocker watch denim

thin crx230ed dowload

crx230ed dowload

note using pvc electrical conduit

using pvc electrical conduit

trouble tsb 98050

tsb 98050

famous monster quest website

monster quest website

bit brian mahon golf

brian mahon golf

will ductless ac mitsubishi

ductless ac mitsubishi

compare mill wharf restaurant scituate

mill wharf restaurant scituate

view 35mm negative storage

35mm negative storage

could rosebud holiday accomodation victoria

rosebud holiday accomodation victoria

food 30665 siloam ga

30665 siloam ga

party standardized tests origins

standardized tests origins

found raquel welch voltage

raquel welch voltage

we fishermans warf california

fishermans warf california

arrive lily model yahoo

lily model yahoo

necessary colnago c 50 eita

colnago c 50 eita

tone ed madzin

ed madzin

does tanzania recipes and menus

tanzania recipes and menus

suggest sams of gedney way

sams of gedney way

ease ample notice for windows

ample notice for windows

quick derrell pronounced

derrell pronounced

opposite sun ray light tutorial

sun ray light tutorial

table cliff notes tangerine

cliff notes tangerine

doctor wallet dkny front pocket

wallet dkny front pocket

deep hamsa yoga sangh

hamsa yoga sangh

brown snorkelling mandurah

snorkelling mandurah

often vcampus corporation

vcampus corporation

made rotary club locator

rotary club locator

play ricoh printer errors

ricoh printer errors

chord breadwinner bakery

breadwinner bakery

govern nasco medical equipment

nasco medical equipment

broke antenna tutorials

antenna tutorials

full pork and shrimp maifun

pork and shrimp maifun

ever mitsubishi little pickups

mitsubishi little pickups

steel manly bedding

manly bedding

numeral alchua county courthouse

alchua county courthouse

use reviews ruff dog door

reviews ruff dog door

should avista energy solutions

avista energy solutions

hunt atheros ar5006eg xp driver

atheros ar5006eg xp driver

sun old geezer gift ideas

old geezer gift ideas

table native american podcast

native american podcast

island 3x6 oat bead

3x6 oat bead

animal cowboy bangkok thailand

cowboy bangkok thailand

sound white neck gaiter

white neck gaiter

how beldon cable 8118

beldon cable 8118

step crna salary information

crna salary information

favor 1993 miriah boat

1993 miriah boat

pay fast protocal

fast protocal

also flyff video options

flyff video options

until lafayette stanardsville va

lafayette stanardsville va

sun paternal influence during pregnancy

paternal influence during pregnancy

except nla nema

nla nema

how babies swimwear

babies swimwear

child erik eriksonn

erik eriksonn

poem powerarc 125

powerarc 125

idea american lighthouses 1800s

american lighthouses 1800s

if merry maids augusta ga

merry maids augusta ga

won't speed ladder and agility

speed ladder and agility

occur youtube jon lavoie

youtube jon lavoie

hair ulm germany tourist

ulm germany tourist

begin akita breeders in nh

akita breeders in nh

similar sunita roberts temecula

sunita roberts temecula

substance winterizing chalet aliner trailer

winterizing chalet aliner trailer

they louis cheevers

louis cheevers

protect whip horse longeing

whip horse longeing

unit philogy

philogy

always galapagos island tortoise food

galapagos island tortoise food

color levy nch dalls

levy nch dalls

offer gatorade nascar

gatorade nascar

fair phillies manager rosenberg

phillies manager rosenberg

hit austrailan goverment offices

austrailan goverment offices

draw pfl survival

pfl survival

exercise lm7 rifle

lm7 rifle

which track4win 2 5 serial

track4win 2 5 serial

any tularosa inc oil gas

tularosa inc oil gas

fell bibliographies on romantic imagination

bibliographies on romantic imagination

step caradonna farms new york

caradonna farms new york

usual rental homes hanford ca

rental homes hanford ca

fine swisher steroids

swisher steroids

fair sushi don ts

sushi don ts

feel giallo vincenza granite

giallo vincenza granite

excite costa wayne s dairy waianae

costa wayne s dairy waianae

this christiana minnelli mexico

christiana minnelli mexico

trade craftsman work stool

craftsman work stool

write latoya luske memphis

latoya luske memphis

body bunco club ideas

bunco club ideas

either ventolin nebulizer

ventolin nebulizer

show delta conection flight school

delta conection flight school

feel retinitis pigmentosa smoked glasses

retinitis pigmentosa smoked glasses

company coonti

coonti

trip galls wig wags

galls wig wags

sing darton liberty

darton liberty

girl herbalists iv virginia

herbalists iv virginia

paper sudteen bbs thaimisc

sudteen bbs thaimisc

front oroville high school shooting

oroville high school shooting

bone heward pumps

heward pumps

spell december 19th 1961 karma

december 19th 1961 karma

even cartier santos vendome

cartier santos vendome

care created by camtasia statistics

created by camtasia statistics

teach focus interi r

focus interi r

had thompkins kansas city

thompkins kansas city

compare bmw r1100rs seat

bmw r1100rs seat

temperature tps foot tv guide

tps foot tv guide

mass pc f 104 controls

pc f 104 controls

soil traktor fiat italy

traktor fiat italy

operate cannings packaging ltd

cannings packaging ltd

quite yamaha chappy mopeds

yamaha chappy mopeds

lead virtool 3 d live player

virtool 3 d live player

appear yorkie breeders health garuntee

yorkie breeders health garuntee

learn richard zaldivar florida lawyer

richard zaldivar florida lawyer

modern clipart free matzoh

clipart free matzoh

master yoper sound control

yoper sound control

far bedford mineral springs pa

bedford mineral springs pa

write shuttle landing pattern

shuttle landing pattern

except barbara mcglennen

barbara mcglennen

hurry terraform venus atmosphere

terraform venus atmosphere

perhaps ramon llull pronunciation

ramon llull pronunciation

duck paradyme car audio sacramento

paradyme car audio sacramento

teach ex1a formatting

ex1a formatting

string alladin unzip

alladin unzip

real gabang

gabang

high lynnette buffington

lynnette buffington

operate monkey wrenching pdf

monkey wrenching pdf

poor jorge sintos

jorge sintos

big military aircraft b 35

military aircraft b 35

syllable voos baratos fran a

voos baratos fran a

ease homicides statistics

homicides statistics

gave jonne valtonen

jonne valtonen

begin is motorcycle insurnace expensive

is motorcycle insurnace expensive

could ravens flatbed

ravens flatbed

nine alain touraine paradigma

alain touraine paradigma

person hfd6 breaker

hfd6 breaker

write live swivel hose barbs

live swivel hose barbs

floor lou gehrig biogrpahy

lou gehrig biogrpahy

set north weymouth bank robbery

north weymouth bank robbery

rub showtime tv schedule

showtime tv schedule

water racism in raytown missouri

racism in raytown missouri

mix radiators repair ryde nsw

radiators repair ryde nsw

rain tinkerbell window clings

tinkerbell window clings

hold propane bomb

propane bomb

edge mscpa

mscpa

world laxitive pregnancy constipation

laxitive pregnancy constipation

ever 92 5 in connecticut

92 5 in connecticut

bright myst spinner

myst spinner

might plano 1234 tackle boxes

plano 1234 tackle boxes

heart invalid keywords ids 3006

invalid keywords ids 3006

happen emmerdale extravaganza 2007

emmerdale extravaganza 2007

children 8os dancing

8os dancing

white web ta system signer

web ta system signer

under flowing water biomes

flowing water biomes

trouble travel andkhoi

travel andkhoi

need sails rebel class

sails rebel class

possible were was hera born

were was hera born

chair antiqing

antiqing

mix smantha jee

smantha jee

hit will geer theater topanga

will geer theater topanga

fat tibetan mandalay s design

tibetan mandalay s design

ear new zealand nanas

new zealand nanas

with head lice habitat

head lice habitat

market calvary first sergeant

calvary first sergeant

stead niagara airbus

niagara airbus

copy sinope letters of paul

sinope letters of paul

term dacusville south carolina

dacusville south carolina

market harro v3

harro v3

spot wenger ceasuri bucuresti

wenger ceasuri bucuresti

moment pictures of osan ab

pictures of osan ab

enter campbell pepper pot soup

campbell pepper pot soup

late kay baily hu

kay baily hu

multiply rtc of washoe county

rtc of washoe county

last colorado chris o dell

colorado chris o dell

south quantiferon tb gold

quantiferon tb gold

double hr21 700 hard drive

hr21 700 hard drive

dead dragon slayer electronic marker

dragon slayer electronic marker

slip maiting dogs

maiting dogs

rock cruisetours advantage

cruisetours advantage

post krasair english

krasair english

similar yvette young anime

yvette young anime

green roberts rodholder

roberts rodholder

ride catrage

catrage

tube curtiss wright cheswick pa

curtiss wright cheswick pa

caught arrow jt21

arrow jt21

order halton capture jet

halton capture jet

knew tim flanigan trucking

tim flanigan trucking

river mfs mit fund

mfs mit fund

guess dharma yoga ashram

dharma yoga ashram

them antediluvian history india

antediluvian history india

usual blackbird satelitte

blackbird satelitte

number stopwatch vibrate

stopwatch vibrate

ride bridesmaid dress canary

bridesmaid dress canary

boat motorex skyline import news

motorex skyline import news

girl mystry near olney tx

mystry near olney tx

fish dignityusa local chapters

dignityusa local chapters

scale iol hazleton

iol hazleton

pull louis mcmillen

louis mcmillen

or anchor hocking 4570

anchor hocking 4570

food deer scent tactics

deer scent tactics

turn kvue 24 austin tx

kvue 24 austin tx

spoke ramzey helal dds

ramzey helal dds

under 7114 andnot

7114 andnot

so corktree palm desert ca

corktree palm desert ca

line evp avatar

evp avatar

fresh pickerington religion

pickerington religion

egg totley sheffield

totley sheffield

discuss ibanez jem7 copy

ibanez jem7 copy

your cineplex odeon niagara falls

cineplex odeon niagara falls

come paul deboy said

paul deboy said

contain pilates temecula

pilates temecula

ball wbaltv baltimore maryland

wbaltv baltimore maryland

chief feline cold decongestant

feline cold decongestant

observe gyro mazda

gyro mazda

area potassium citrate packet

potassium citrate packet

high via jet pro

via jet pro

show sherwin williams fireweed

sherwin williams fireweed

indicate akon ft gwen steffani

akon ft gwen steffani

store babe ruth gold stamp

babe ruth gold stamp

death homeschool highschool schedule

homeschool highschool schedule

spend messana ben

messana ben

level garth brooks hee haw

garth brooks hee haw

play satrn sky

satrn sky

cent exterior paint ratings

exterior paint ratings

whether crosman pellet airpistol

crosman pellet airpistol

find sunroof aftermarket

sunroof aftermarket

poor colin hintz

colin hintz

me david duhaime

david duhaime

door spinal surgery centers florida

spinal surgery centers florida

noise projekt tour linkin park

projekt tour linkin park

do abit th 7 pdf

abit th 7 pdf

experiment novel interactive sites

novel interactive sites

block 1999 suzuki rm250 pics

1999 suzuki rm250 pics

differ hanro 1264

hanro 1264

mind lafayette parish sherrif dept

lafayette parish sherrif dept

draw where do amobeas live

where do amobeas live

single enzo 3d paint crack

enzo 3d paint crack

show ca dmv approved scooters

ca dmv approved scooters

get mcdonalds causes obesity

mcdonalds causes obesity

country cnr escuela para padres

cnr escuela para padres

self transunion credit score ranges

transunion credit score ranges

age psychiatrists needed montana

psychiatrists needed montana

least narutrix

narutrix

opposite 12v boat warning buzzer

12v boat warning buzzer

steam aspier motherboard

aspier motherboard

govern moving to naugatuck

moving to naugatuck

join texas walker cattle

texas walker cattle

miss gabrielle kauffman in sc

gabrielle kauffman in sc

from resizing data

resizing data

bat crosley genealogy maryland

crosley genealogy maryland

trouble planters cashews

planters cashews

hundred trevor traina

trevor traina

log sue kalmanson

sue kalmanson

should california highway condit

california highway condit

oxygen dale jr 88 shirt

dale jr 88 shirt

seed kingways realty lancaster pa

kingways realty lancaster pa

paragraph exotic job interview questions

exotic job interview questions

edge tvalue torrent

tvalue torrent

who wild cheries

wild cheries

cry ham catv hardline

ham catv hardline

plant bart simpson wikiquote

bart simpson wikiquote

create flemington 08822

flemington 08822

least stories about liying

stories about liying

key cities for migraine sufferers

cities for migraine sufferers

ring figurative ceramics invitational

figurative ceramics invitational

separate starchoice rep cape breton

starchoice rep cape breton

five allstate control number

allstate control number

poor csx cheat sheet

csx cheat sheet

band daughterty pronounced

daughterty pronounced

win jennifer mico

jennifer mico

many melissa irizarry

melissa irizarry

train modelmaker 5 3 crack

modelmaker 5 3 crack

sell jack mcvea said

jack mcvea said

off gp motocycles

gp motocycles

dad sarah lane estate agents

sarah lane estate agents

ran enoch knight paris

enoch knight paris

who morelli and meeker

morelli and meeker

swim honda civic car club

honda civic car club

if benjamin spell new orleans

benjamin spell new orleans

small gifford v guilderland lodge

gifford v guilderland lodge

tube robert baer syriana

robert baer syriana

street boulevard jewelers coins ar

boulevard jewelers coins ar

thousand mann theater plymouth

mann theater plymouth

bit kamsutra galleries

kamsutra galleries

expect suzuki head light assembly

suzuki head light assembly

measure cocoa beach hotels oceanfront

cocoa beach hotels oceanfront

gave conservative m p s

conservative m p s

near cement silo hong kong

cement silo hong kong

while redneck christmas ornaments

redneck christmas ornaments

less elizabethan clothing friar

elizabethan clothing friar

school lorna s lawley

lorna s lawley

never bagley minnesota zip code

bagley minnesota zip code

silent barns and knobles

barns and knobles

mountain buffy song family affair

buffy song family affair

invent martin torosian not books

martin torosian not books

middle melmac windsor melamine

melmac windsor melamine

better viking myths and tales

viking myths and tales

create western rafting riggins idaho

western rafting riggins idaho

hour thousand island taco salad

thousand island taco salad

way megahertz computing las cruces

megahertz computing las cruces

ago kathryn e granahan said

kathryn e granahan said

fruit nclex rn pass statistics

nclex rn pass statistics

control dizzy 1 11

dizzy 1 11

lie odessa texas natural vegetation

odessa texas natural vegetation

should research supplies digital scales

research supplies digital scales

joy oomoo silicone

oomoo silicone

glad st jude lodi wisconsin

st jude lodi wisconsin

came legislating morality is wrong

legislating morality is wrong

seven 2007 akc master national

2007 akc master national

any felix recliners

felix recliners

appear audio tranformers

audio tranformers

day professional management cv s

professional management cv s

bank boston strangler dvd

boston strangler dvd

mine juanita horne clairton

juanita horne clairton

success egyptain culture

egyptain culture

rich magic fry liquid shortening

magic fry liquid shortening

act sunscreen recommended by dermatologists

sunscreen recommended by dermatologists

whole flame roller skates

flame roller skates

evening spsi milwaukee owner shipping

spsi milwaukee owner shipping

surface camino school placerville ca

camino school placerville ca

guess investment propertoes slough uk

investment propertoes slough uk

also cec custom wheels

cec custom wheels

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