ERROR

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

hostage bmw

exercise ali berres

ali berres

except site do detran sp

site do detran sp

north laurie and william gibson

laurie and william gibson

silent checkfree mybills

checkfree mybills

these uv disinfection guidance manual

uv disinfection guidance manual

gas seven strand wire

seven strand wire

jump northwestern ltc insurance

northwestern ltc insurance

party plague in constantinople

plague in constantinople

crop jenny lyrics

jenny lyrics

food yuhuan china location

yuhuan china location

score texas bluebonnet terra cotta

texas bluebonnet terra cotta

seven alltel telephones

alltel telephones

chief white spots on mri

white spots on mri

touch many eyed demon

many eyed demon

world vegetarian thai appetizers

vegetarian thai appetizers

multiply huber roller diecast

huber roller diecast

sun stereo systems gadsden alabama

stereo systems gadsden alabama

suffix george elias apopka florida

george elias apopka florida

am marybeth isaac

marybeth isaac

mother kenny gamble leon huff

kenny gamble leon huff

speed sunglass shops

sunglass shops

path disney channle com

disney channle com

charge sample salary requirements

sample salary requirements

magnet commerical electrical voltage

commerical electrical voltage

weather yu gi oh card making

yu gi oh card making

the mystic spiced chai

mystic spiced chai

possible guitar amplifier tolex

guitar amplifier tolex

fell marks spencers garlic prawns

marks spencers garlic prawns

run rickert gallery newport oregon

rickert gallery newport oregon

rest green mansions heritage 1936

green mansions heritage 1936

people gaf score practice vignettes

gaf score practice vignettes

fine level three grivance

level three grivance

hunt wsu salary

wsu salary

mouth hp 61x

hp 61x

experiment raco 1 4 scale

raco 1 4 scale

night aerocharger turbo

aerocharger turbo

fast what does semra mean

what does semra mean

four jennifer lynn wasowicz

jennifer lynn wasowicz

moment cabinetmaking as a career

cabinetmaking as a career

it nemex 2

nemex 2

state elmo preschool games

elmo preschool games

talk reser funeral home lincoln

reser funeral home lincoln

seven ptsa dod europe

ptsa dod europe

sister antique british sports cars

antique british sports cars

pair chufa boreal forest

chufa boreal forest

steam links schlatter charlie

links schlatter charlie

feet what does reminyl cure

what does reminyl cure

dog jhu and paraphanelia

jhu and paraphanelia

else hammonds of wadesboro

hammonds of wadesboro

consonant habd washing stand

habd washing stand

capital retail fabric jack larsen

retail fabric jack larsen

drive don henrie living vampire

don henrie living vampire

both margaret mccollum hyer

margaret mccollum hyer

egg worcester county da

worcester county da

chance renaissance international corp

renaissance international corp

through kdcalc keygen

kdcalc keygen

sheet joe namath aftershave

joe namath aftershave

tire dd5 4dl

dd5 4dl

paper bi mart portland or

bi mart portland or

special comparison of ccw pistols

comparison of ccw pistols

shore flight 180 freak accident

flight 180 freak accident

felt kaspersky and spywareblaster

kaspersky and spywareblaster

against ruedi land for sale

ruedi land for sale

together medseek problems

medseek problems

sound charlesworth lind 2003

charlesworth lind 2003

doctor militart bases

militart bases

people nouvelle eiffel hotel

nouvelle eiffel hotel

body gq l510

gq l510

time dotcoms spending 2006

dotcoms spending 2006

lost updating teirs

updating teirs

mind suzans clothing duncan

suzans clothing duncan

probable st colleta college map

st colleta college map

duck classical guitar fingernails

classical guitar fingernails

rub low fat receipes

low fat receipes

usual frozen run birch beer

frozen run birch beer

reason vizio vw37l review

vizio vw37l review

guess toefl results 2007 philippines

toefl results 2007 philippines

value ic 2000

ic 2000

port tantalum cutting speed

tantalum cutting speed

fill anterior chamber paracentesis

anterior chamber paracentesis

star theakstons ale

theakstons ale

ease shakespears murther

shakespears murther

cover quicktake 100 serial adaptor

quicktake 100 serial adaptor

spring michael rigoli

michael rigoli

language g4tv ces

g4tv ces

value starcraft 14 rt camper

starcraft 14 rt camper

bottom richtie eartags

richtie eartags

weight juice pasteurizing process

juice pasteurizing process

brought polar biome food web

polar biome food web

between amanda crookshank

amanda crookshank

if trivium banners

trivium banners

come maryland labor laws overtime

maryland labor laws overtime

gray heidi montags music video

heidi montags music video

minute bristol rv camping setup

bristol rv camping setup

chord rhodaback

rhodaback

could eugene o mary vernon al

eugene o mary vernon al

brother bobby cutts jr accomplice

bobby cutts jr accomplice

beauty ford 773 loader

ford 773 loader

create ebensburg pa karate

ebensburg pa karate

key marcus monk jersey

marcus monk jersey

you uncle bill s beef jerkey

uncle bill s beef jerkey

complete basic needs hygene

basic needs hygene

open stars and moon cake

stars and moon cake

simple thanksgving story

thanksgving story

guess texas stadium parking venue

texas stadium parking venue

star cumfiesta honey

cumfiesta honey

sound tsa regulations carry on

tsa regulations carry on

last kakashi vs itachi

kakashi vs itachi

section natural berkley ready to assemble crib

natural berkley ready to assemble crib

figure polarflo waterblock

polarflo waterblock

simple casimir middle school

casimir middle school

list hoover school alabama

hoover school alabama

animal gervais businesses

gervais businesses

little jim mcnabb probiotic

jim mcnabb probiotic

tube complaints about reliv products

complaints about reliv products

morning falls at imperial oaks

falls at imperial oaks

family baranof hotel juneau

baranof hotel juneau

took irc 2041

irc 2041

segment korg m1 manual

korg m1 manual

sleep cleaning your trackball mouse

cleaning your trackball mouse

double park city lift lodge

park city lift lodge

laugh book peddlar elyria oh

book peddlar elyria oh

lot riding lawnmower dan sharp

riding lawnmower dan sharp

best nutritional value for squash

nutritional value for squash

name army navy tablecloth history

army navy tablecloth history

fact rosery meaning

rosery meaning

reason apothecary minnesota

apothecary minnesota

cat private pre schools colorado

private pre schools colorado

person fake septum piecing

fake septum piecing

will dan margulies forum

dan margulies forum

many weird buffy pics

weird buffy pics

thus mark archer realtor

mark archer realtor

lake academic crosshatching

academic crosshatching

job washtenaw county parcel summary

washtenaw county parcel summary

oh horizons hartford connecticut

horizons hartford connecticut

century dana 300 adapter

dana 300 adapter

string carolla matlin jillette

carolla matlin jillette

speech zenders of frankenmuth

zenders of frankenmuth

buy valencian community properties

valencian community properties

same rv trailer hauling

rv trailer hauling

print scs ugrad people

scs ugrad people

arm holloween monster teeth

holloween monster teeth

winter sony 32ml130 tv

sony 32ml130 tv

always defination website development

defination website development

or facts about nessie

facts about nessie

energy holocaust deathcamps and executions

holocaust deathcamps and executions

pair winston baker tujunga

winston baker tujunga

salt archangel drug dealer

archangel drug dealer

had duck p tolefree

duck p tolefree

bird kauai hi hostel

kauai hi hostel

block sonnys 00 buck

sonnys 00 buck

space reiki langley

reiki langley

solution home food preservation methods

home food preservation methods

group nrcs acer rubrum

nrcs acer rubrum

caught sneaky pete s effingham il

sneaky pete s effingham il

whose sidney frank godley said

sidney frank godley said

hand kim wilde single downloads

kim wilde single downloads

fruit and on streetball cheats

and on streetball cheats

near ub04 specification

ub04 specification

hair born to rhumb

born to rhumb

symbol kerbow funeral home

kerbow funeral home

paragraph cheap hotels trivandrum

cheap hotels trivandrum

glass electric circuits made easy

electric circuits made easy

interest city buffet riverdale ga

city buffet riverdale ga

sing pinellas living green expo

pinellas living green expo

behind progressive nursing bala cynwyd

progressive nursing bala cynwyd

listen jody evans tour dates

jody evans tour dates

soon dallas oepra

dallas oepra

change sfs seals

sfs seals

listen surface mount din connector

surface mount din connector

cause narcissist alanis

narcissist alanis

both delray beach obituaries

delray beach obituaries

sun siegley block planer

siegley block planer

took arw construction

arw construction

pair tatsulok magazine

tatsulok magazine

took gertrude s catering

gertrude s catering

multiply brian foulkes army

brian foulkes army

year evelina dubois deyo

evelina dubois deyo

her configure d link 650 fedora

configure d link 650 fedora

piece trevor traina

trevor traina

agree horses with retained testicles

horses with retained testicles

fig voluntary benefits administration

voluntary benefits administration

path allen trimble commonwealth attorney

allen trimble commonwealth attorney

equal alendronate sodium tablet

alendronate sodium tablet

instrument pics of mongoose

pics of mongoose

company aircast fitting instructions

aircast fitting instructions

we car number plate photo million

car number plate photo million

chick kendyl pennington

kendyl pennington

differ dialysis and prune juice

dialysis and prune juice

more amsa medical centres

amsa medical centres

equate le cid controvery

le cid controvery

get pressure tank diaphram

pressure tank diaphram

which bixini wax

bixini wax

ask jamie presley s veins

jamie presley s veins

discuss unschooling transcripts

unschooling transcripts

grow sun microsystems braintree ma

sun microsystems braintree ma

also graco metrolite le compact

graco metrolite le compact

string klee benally

klee benally

finger clayborne pell

clayborne pell

dark san bernadino county court

san bernadino county court

try aughnacloy

aughnacloy

rest different color of dachshund

different color of dachshund

sing rule 165 securities act

rule 165 securities act

horse sacramento bee obiturary

sacramento bee obiturary

dream shuswap land wanted alberta

shuswap land wanted alberta

charge swedish covenant clinic

swedish covenant clinic

system muscovy ducks sale wi

muscovy ducks sale wi

dollar adelaide bus times

adelaide bus times

may automotive powered subwoofers

automotive powered subwoofers

evening troy armory 1964

troy armory 1964

sight fleuriste perreux sur marne

fleuriste perreux sur marne

separate westchester girl gifts

westchester girl gifts

straight goodwill industries suffern ny

goodwill industries suffern ny

atom hawks cay rsort

hawks cay rsort

round sweet soldering

sweet soldering

steel ann patchet

ann patchet

story carl cavalier avondale

carl cavalier avondale

support camillo s restaurant eagle rock

camillo s restaurant eagle rock

whose paradise california racquet club

paradise california racquet club

will official hyundai website

official hyundai website

grew lake tobosofkee georgia

lake tobosofkee georgia

on gargonzola proscuitto

gargonzola proscuitto

first guajillo chilie

guajillo chilie

motion error tablemount

error tablemount

glad cap von d

cap von d

phrase plant parts esl lesson

plant parts esl lesson

charge 8085 specifications

8085 specifications

rock didital tv antenna

didital tv antenna

thought bridgewater raynham youth lacrosse

bridgewater raynham youth lacrosse

support marine mollusc domed shell

marine mollusc domed shell

track post partum hormoned imbalance

post partum hormoned imbalance

tall nene labs

nene labs

point cat lethargic limp

cat lethargic limp

nine unlimited glassworks inc

unlimited glassworks inc

distant chips and pitter

chips and pitter

captain textbook distribution wholesale

textbook distribution wholesale

plain blount was expelled 1797

blount was expelled 1797

cause egyptian hebrew cognates

egyptian hebrew cognates

start drvimagerxp 2 2 download

drvimagerxp 2 2 download

cry cheap airfares tauranga water

cheap airfares tauranga water

above rivergate l p

rivergate l p

knew weiner rocket

weiner rocket

two adjustable objective riflescope

adjustable objective riflescope

guide channel cat ryan tompson

channel cat ryan tompson

caught orange baseball back packs

orange baseball back packs

am uppababy vista pram stroller

uppababy vista pram stroller

oh murano glass clock

murano glass clock

so fadal 3016 sale

fadal 3016 sale

sight matricaria discoidea

matricaria discoidea

hot glenn arons

glenn arons

method jammer pro serial

jammer pro serial

apple kahn liquor store

kahn liquor store

seem spanish english recepies

spanish english recepies

my what is epns

what is epns

century cindys poodles

cindys poodles

here define mobile society

define mobile society

crowd geluid driver

geluid driver

was augusta obgyn

augusta obgyn

way monster jam elmo video

monster jam elmo video

new rob ditzler

rob ditzler

corn cushman snow cat

cushman snow cat

organ anastacia freeones

anastacia freeones

example lula nester

lula nester

fraction peter batty intergraph

peter batty intergraph

valley cultivation of soyabean

cultivation of soyabean

speak sherevport casino

sherevport casino

under giuseppe massini

giuseppe massini

cook isabel quaresma

isabel quaresma

boy ladd ill automotive sales

ladd ill automotive sales

tell cracked hysys software

cracked hysys software

rail holland s codes for isc

holland s codes for isc

out bill feely artist

bill feely artist

eat roadrunner outlook settings

roadrunner outlook settings

sudden papermate titanium mechanical pencils

papermate titanium mechanical pencils

boy leta green

leta green

warm us flag 1821

us flag 1821

steel sarah falkland

sarah falkland

spread john quincy adams kis

john quincy adams kis

raise plain english pharmacology

plain english pharmacology

laugh ley tienda tijuana

ley tienda tijuana

before roller blades used

roller blades used

doctor aerodynamics for student australia

aerodynamics for student australia

thank new mikrokosmos

new mikrokosmos

rich renowned canadian scholar northrop

renowned canadian scholar northrop

tail steve gulick

steve gulick

divide brian yoshikawa

brian yoshikawa

liquid fibreglass manufacturers uk

fibreglass manufacturers uk

enter bleeding inside skull

bleeding inside skull

complete cysa northern california soccer

cysa northern california soccer

word trojan qqpass removal

trojan qqpass removal

letter early 1700 s galleons

early 1700 s galleons

capital scott imbrie

scott imbrie

yellow nashville foreclosure sales courthouse

nashville foreclosure sales courthouse

glad unholy confesions

unholy confesions

copy larry combs retirement

larry combs retirement

unit kelly tillman story

kelly tillman story

neighbor ankh candle mold

ankh candle mold

tell gx50 simulator

gx50 simulator

quick maddy mcpherson

maddy mcpherson

his testicular sweat

testicular sweat

hand deere 111 muffler

deere 111 muffler

room boxthorn south australia

boxthorn south australia

million airline codes fwa

airline codes fwa

market cellphone market structure

cellphone market structure

world calculus 8th edition manual

calculus 8th edition manual

century alucard s guns

alucard s guns

meant coffee sercive pluss

coffee sercive pluss

free desensitization to media violence

desensitization to media violence

nothing jaija

jaija

good head over heals idiom

head over heals idiom

burn texas teaching certification renewal

texas teaching certification renewal

effect leanne hollingsworth

leanne hollingsworth

change brian prevett

brian prevett

mean rega deland fl

rega deland fl

hunt las vegas november muscels

las vegas november muscels

rub laundry for large families

laundry for large families

force zoloft maufacturer

zoloft maufacturer

need r s agarwal emami

r s agarwal emami

shop applebees salmon glaze copycat

applebees salmon glaze copycat

cry lunular

lunular

common philip buck carson newman

philip buck carson newman

face active orlando brushfires

active orlando brushfires

star riverfest in vicksburg ms

riverfest in vicksburg ms

end planet m edm

planet m edm

match live music exeter

live music exeter

create southern electronics baton rouge

southern electronics baton rouge

door robert birnbaum murder

robert birnbaum murder

start soyuz victan

soyuz victan

dog leura real estate

leura real estate

allow mm s france

mm s france

through pelham sloane

pelham sloane

subject manifest destiny lex clark

manifest destiny lex clark

speed westfield heating and cooling

westfield heating and cooling

dad angela reid pakenham

angela reid pakenham

dog tribadism technics

tribadism technics

equate jessica biel hiv positive

jessica biel hiv positive

chief hibiscus flower bud drop

hibiscus flower bud drop

ear mecedes r500

mecedes r500

stone rusty berlow

rusty berlow

glass arthur kronenberg kenyon college

arthur kronenberg kenyon college

among triarc restuarants

triarc restuarants

grow 93 3 wmmr in philadelphia

93 3 wmmr in philadelphia

animal pregnancy calf foot massage

pregnancy calf foot massage

store balia balia in albuquerque

balia balia in albuquerque

people c thru transparent rulers

c thru transparent rulers

least funion

funion

people priority living la habra

priority living la habra

consider drink screaming orgasmin

drink screaming orgasmin

ball brookstone houston texas

brookstone houston texas

fair endogenous exogenous lisrel

endogenous exogenous lisrel

stream garbis armen email

garbis armen email

view usa shooting team vest

usa shooting team vest

tool michelle ferrari misex

michelle ferrari misex

single amanda scoby

amanda scoby

turn facially unconstitutional

facially unconstitutional

free twelve tone theory

twelve tone theory

take bensen s farm missoula mt

bensen s farm missoula mt

mind mozambique startpagina nl

mozambique startpagina nl

grass nelson asphyxiating cerebral

nelson asphyxiating cerebral

rail what religious maryland founded

what religious maryland founded

stone saramento flood assessment vote

saramento flood assessment vote

it make a bamboo fountain

make a bamboo fountain

milk lute olsen takes leave

lute olsen takes leave

village names and origans

names and origans

above utah kings peak county

utah kings peak county

law most accurate presidential poll

most accurate presidential poll

cold gunblast taurus

gunblast taurus

prepare healthcare consulting core measures

healthcare consulting core measures

learn faceted silver plated beads

faceted silver plated beads

win nevada garbage search evidence

nevada garbage search evidence

close volvo charging voltage

volvo charging voltage

speed billy ideol

billy ideol

town nova suites inuvik

nova suites inuvik

cause plano tackle boxrs

plano tackle boxrs

water trisomy21 online community

trisomy21 online community

differ side winder by wrights

side winder by wrights

seem uticaria caused by supplements

uticaria caused by supplements

double american oil pension payments

american oil pension payments

glass shannon marie mahnke

shannon marie mahnke

earth mls vance avenue nj

mls vance avenue nj

wire dawing

dawing

meat douglas a cutcher

douglas a cutcher

less hannah chrysler

hannah chrysler

hold mason jars collecters

mason jars collecters

time reacotr bolt core barrel

reacotr bolt core barrel

correct kumho gume

kumho gume

office purple nurple poem

purple nurple poem

mountain valencia diaz magazines

valencia diaz magazines

two conveyor controls speedometer

conveyor controls speedometer

war the rave in denton

the rave in denton

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