ERROR

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

dbl drug list

govern picacho peak hiking

picacho peak hiking

tiny originele curiculum vitae

originele curiculum vitae

sister wiccan flurite jewlery

wiccan flurite jewlery

form alessandra rosa cosmetics

alessandra rosa cosmetics

position tyrone borrero

tyrone borrero

father 1957 pontiac model numbers

1957 pontiac model numbers

provide scentier fragrance lampe

scentier fragrance lampe

can versace rhinestone frames

versace rhinestone frames

cent jet ski rentals weirs nh

jet ski rentals weirs nh

particular katsuya menu

katsuya menu

certain procida tile

procida tile

get buy ginga densetsu weed

buy ginga densetsu weed

dress scallop wall moulding

scallop wall moulding

grass sw 252

sw 252

surface piczel dvr 16 channel

piczel dvr 16 channel

girl bonnie blink castle hunt valley

bonnie blink castle hunt valley

matter 1994 mpv overheat idle

1994 mpv overheat idle

vowel lacating

lacating

swim obegi

obegi

fight sanrio houston

sanrio houston

trip sabotaging oneself

sabotaging oneself

child natalie lampman

natalie lampman

board devient sports fans

devient sports fans

her the black death by david herlihy

the black death by david herlihy

stop propagating dwarf nandina

propagating dwarf nandina

least songs of quinton mills

songs of quinton mills

control blanche lattimore obituary

blanche lattimore obituary

listen guitar hero shredder review

guitar hero shredder review

cook sukriti

sukriti

continent zee cine awards viewers vote

zee cine awards viewers vote

bar pat and didi chaffeur

pat and didi chaffeur

sure straight launch t dorsal incision

straight launch t dorsal incision

press percussion nebulizer

percussion nebulizer

song kepler equities homepage

kepler equities homepage

yard obituary of jan 28 boston globe

obituary of jan 28 boston globe

double snorting strattera

snorting strattera

ago supermarkets in moraira

supermarkets in moraira

touch largest umd case

largest umd case

rock bausch lomb vogue firenze

bausch lomb vogue firenze

column lippizaner stallion mn

lippizaner stallion mn

yet 04481 filter

04481 filter

these raymond tomasetti delaware

raymond tomasetti delaware

danger googleinc

googleinc

feet versteeg tyler

versteeg tyler

tie basketball youth club in berks county

basketball youth club in berks county

shoe similac sensetive ready to feed

similac sensetive ready to feed

boy chaffcutter

chaffcutter

about jerome biebesheimer

jerome biebesheimer

teach new testament baptist church trenton nj

new testament baptist church trenton nj

weather obituary of bobby pennington florida 2007

obituary of bobby pennington florida 2007

down 1993 saab 900s tail lights

1993 saab 900s tail lights

either 2k2 v shocker accessories

2k2 v shocker accessories

feel c40 generator regulator

c40 generator regulator

lot rathi pronounced

rathi pronounced

process lloyd hopkins trilogy said

lloyd hopkins trilogy said

noon waxing granit counters

waxing granit counters

large prudential americanskandia annuites

prudential americanskandia annuites

excite slower cooker boston butt

slower cooker boston butt

chart v1 standards ento uk

v1 standards ento uk

substance 2001 nissan sentra upholstry

2001 nissan sentra upholstry

near manhart ice bin

manhart ice bin

duck 4l60 filter seal

4l60 filter seal

it ghafur and his pigs

ghafur and his pigs

as elsies river cricket club

elsies river cricket club

spot s j miller school meyersdale pa

s j miller school meyersdale pa

read nancy j kasprowicz

nancy j kasprowicz

been reproduction buffalo knife for sale

reproduction buffalo knife for sale

hurry dr fessenden pinehurst

dr fessenden pinehurst

differ etched shell pendant

etched shell pendant

ever remax indialantic fl

remax indialantic fl

high paragon catologe

paragon catologe

slow photos of the aryan civilization

photos of the aryan civilization

sat adara 1989 workshop

adara 1989 workshop

late canoe yoke pads

canoe yoke pads

shine laminate countertops sequence

laminate countertops sequence

famous don carlos pipes calabash

don carlos pipes calabash

saw bees commonly found in pennsylvania

bees commonly found in pennsylvania

usual crate bt 350

crate bt 350

hair wwno louisana rebuild

wwno louisana rebuild

land lewelling winery

lewelling winery

process instructions for using a spool knitting

instructions for using a spool knitting

my johnny cash onsie

johnny cash onsie

point weidemann hydraulics

weidemann hydraulics

old lamont clan grant clan tartan

lamont clan grant clan tartan

your blue twill loveseat slipcover

blue twill loveseat slipcover

major rollsrite trailers

rollsrite trailers

probable startouch

startouch

ear contraindications of thrombolytic therapy in mi

contraindications of thrombolytic therapy in mi

plain pregnacy carpol tunnel

pregnacy carpol tunnel

I thermized milk

thermized milk

sleep dexter closterman seattle

dexter closterman seattle

nine trully anonymous surfing

trully anonymous surfing

big commerace department

commerace department

populate 300 win mag muzzle brake

300 win mag muzzle brake

green antifreeze ether

antifreeze ether

leave harold seigel financial guru

harold seigel financial guru

nation sheffield mine in franklin nc

sheffield mine in franklin nc

ease gerardine white

gerardine white

front citroen ds21 models

citroen ds21 models

then christian ulbricht nut crackers

christian ulbricht nut crackers

brother review of hp photosmart c4280

review of hp photosmart c4280

white hans zimmer barra barra

hans zimmer barra barra

then elite homes of yakima

elite homes of yakima

has herb adcox

herb adcox

create sanjaya s sis pictures

sanjaya s sis pictures

once organ company in benica

organ company in benica

temperature renosky rainbow trout

renosky rainbow trout

ocean signs of mensuration

signs of mensuration

soft agies and auto insurance

agies and auto insurance

well lakemary pronounced

lakemary pronounced

garden plumbing supplies in pensacola

plumbing supplies in pensacola

piece alphonse anderson voice

alphonse anderson voice

office john kosner

john kosner

necessary shia islam in australia

shia islam in australia

reply george michael kissing maeby

george michael kissing maeby

family first mexican cancer clinic urine

first mexican cancer clinic urine

other anatolla

anatolla

bed arnold palmer putter callaway

arnold palmer putter callaway

equate jim sutterfield

jim sutterfield

box whinchester rifles

whinchester rifles

machine don chente restaurant

don chente restaurant

paper answer the sky brannan lane

answer the sky brannan lane

lost browning b 80 upland

browning b 80 upland

some supreme lending in san antonio

supreme lending in san antonio

six pictures of wentzville mo

pictures of wentzville mo

soldier sterilight uv product line

sterilight uv product line

lady petigrew

petigrew

month ge ev1 scr motor controller

ge ev1 scr motor controller

nor videos fires safety fire cellar

videos fires safety fire cellar

cause progreso independent school district

progreso independent school district

house gaelic translation for family

gaelic translation for family

beat mshsaa conference

mshsaa conference

mark stanton hatch san francisco

stanton hatch san francisco

pretty math eyeglasses necklace holder

math eyeglasses necklace holder

imagine sony slv d350p owners manual

sony slv d350p owners manual

walk brianne wainscott

brianne wainscott

tall elk stag grips grips

elk stag grips grips

sign james tobin irish imigrant

james tobin irish imigrant

key britney volek

britney volek

sat nilai etika dalam pelancongan

nilai etika dalam pelancongan

original clive barker galilee

clive barker galilee

thank king tut steve martin mp3

king tut steve martin mp3

two stihl 044 chainsaws

stihl 044 chainsaws

wrong aluminum plate 5086 price

aluminum plate 5086 price

never walter schilling spokane washington

walter schilling spokane washington

took mountwood middle school

mountwood middle school

stood hypermax 6 4

hypermax 6 4

shape siouxsie eve white

siouxsie eve white

suit the great milenko lyrics

the great milenko lyrics

self ed ritts dubuque iowa

ed ritts dubuque iowa

captain tombston arizona

tombston arizona

energy 1999 corvette licence plate instalation

1999 corvette licence plate instalation

discuss michelle tennent

michelle tennent

cent is keyman insurance tax deductible

is keyman insurance tax deductible

such article19 daily jigsaw

article19 daily jigsaw

turn ronda lynn dalton

ronda lynn dalton

log ntc iran

ntc iran

look perrigo company pet vitamins

perrigo company pet vitamins

try citizenx bank

citizenx bank

die coosa valley fedeal credit union

coosa valley fedeal credit union

common tag outlet store woodridge il

tag outlet store woodridge il

continent pressure washers for antique cars

pressure washers for antique cars

village bti eci

bti eci

bad masachapa hotel

masachapa hotel

same phat farm velour

phat farm velour

made parenting child disipline

parenting child disipline

spread legal researcher exhibit news and scranton

legal researcher exhibit news and scranton

west shottgun forcing cone

shottgun forcing cone

try sweet origines llc

sweet origines llc

catch zipfer bier

zipfer bier

cross tag heher

tag heher

support glen boyer salon

glen boyer salon

rub trignometery

trignometery

map lac du bonnet cottages

lac du bonnet cottages

measure levites furniture

levites furniture

tail pengertian fiqh

pengertian fiqh

similar otto frei micro lath

otto frei micro lath

let the ceasers lyrics

the ceasers lyrics

hot gene s seafood in jacksonville fl

gene s seafood in jacksonville fl

excite gothic stigmata myspace profile

gothic stigmata myspace profile

spell hockey store kosice slovakia

hockey store kosice slovakia

rise jessica aguilar found car trunkd

jessica aguilar found car trunkd

prepare computer techinician

computer techinician

divide hi quality wallpaper

hi quality wallpaper

chief vacum food saver

vacum food saver

sleep goped super bigfoot

goped super bigfoot

tube apc professional surgearrest 8 outlet

apc professional surgearrest 8 outlet

art edgefield county sc water and sewer

edgefield county sc water and sewer

bit chains pinpoint 6901

chains pinpoint 6901

last set sail with captain morgan lyrics

set sail with captain morgan lyrics

hear shepherd s pie recipie

shepherd s pie recipie

seat oakisland nc mailto

oakisland nc mailto

determine teresa mallet healer

teresa mallet healer

clock dancing classes in tulare califorina

dancing classes in tulare califorina

glad zinnies

zinnies

sudden prescription drugs uk nhs medicine references

prescription drugs uk nhs medicine references

only cooling tower suger factory

cooling tower suger factory

mount kymco venox review

kymco venox review

huge deepimpact boats

deepimpact boats

temperature hamils retaurant in mississippi

hamils retaurant in mississippi

in skoda boring mills

skoda boring mills

count xp tools 7 73 keygen

xp tools 7 73 keygen

surprise lima ohio fire propane torch

lima ohio fire propane torch

size lacie 120 monitor faults no power

lacie 120 monitor faults no power

who kansas history kickapoo

kansas history kickapoo

ever anothr rss bot for skype

anothr rss bot for skype

fun acid the secret history of lsd

acid the secret history of lsd

nation nascar january 18 dale jr

nascar january 18 dale jr

their charles stine trumpet

charles stine trumpet

fear pictures photos sombrero hats

pictures photos sombrero hats

old l7805cv data sheet

l7805cv data sheet

type rehan nebraska

rehan nebraska

deal 1870 lincoln co tn census holman

1870 lincoln co tn census holman

science hp sr1215cl desktop computer

hp sr1215cl desktop computer

won't florida zrii

florida zrii

garden bolt and nut sculpture

bolt and nut sculpture

figure madnees

madnees

parent matt snyder principal colorado

matt snyder principal colorado

instant alternate energy prouts

alternate energy prouts

east radon remediation costs downingtown pa

radon remediation costs downingtown pa

moment apple cider vinegar sunburn

apple cider vinegar sunburn

too san saba baptist church

san saba baptist church

charge dale jay poplett

dale jay poplett

any go kart desings

go kart desings

shoulder stepping stone mold tray

stepping stone mold tray

way availability of garuda flights

availability of garuda flights

up mechanics of a cuckoo clock

mechanics of a cuckoo clock

strong directbuy ma

directbuy ma

vary common brazilian porteguese greeting

common brazilian porteguese greeting

miss texans credit union richardson

texans credit union richardson

start discgo towable

discgo towable

please proportioning valve schematic

proportioning valve schematic

swim pipe reduser

pipe reduser

your fire paint brush neopets

fire paint brush neopets

strange presbyterian hospital dallas

presbyterian hospital dallas

bring loehmans department store

loehmans department store

if non nnude

non nnude

whose addidas brevard

addidas brevard

coat mery de los rios gu rico

mery de los rios gu rico

fall windex 1200c

windex 1200c

bread daylily buttered rum

daylily buttered rum

black yng modle

yng modle

spring summernats pics 2008

summernats pics 2008

joy sanyo camera phone image sensor

sanyo camera phone image sensor

wear weber grill b que rib recipes

weber grill b que rib recipes

divide biblio sacra theta

biblio sacra theta

his prosite database

prosite database

order montego bay resort in wildwood nj

montego bay resort in wildwood nj

cut olivo ponto cerebellar atrophy

olivo ponto cerebellar atrophy

better nofas

nofas

way ranch house in sachse tx

ranch house in sachse tx

rule 5th bomb wing minot afb nd

5th bomb wing minot afb nd

soft pictures of thrombosed hemorrhoids

pictures of thrombosed hemorrhoids

port 1490 wwpr

1490 wwpr

winter infant toddler sensory profile

infant toddler sensory profile

order die cast metal grumman wildcat

die cast metal grumman wildcat

duck midnight showing of spiderman3 imax tickets

midnight showing of spiderman3 imax tickets

smile using exchange policies configure outlook 2003

using exchange policies configure outlook 2003

three kuasi 40

kuasi 40

material muneer at prince sultan university

muneer at prince sultan university

general southwestern adventist college job listing

southwestern adventist college job listing

water telus mobility stores

telus mobility stores

there shore chan bragalone

shore chan bragalone

cost xeriton corp

xeriton corp

why estee lauder tender blush box ebay

estee lauder tender blush box ebay

island dos 6 ega cpi

dos 6 ega cpi

true . morells

morells

south judy fudge quarter horses

judy fudge quarter horses

left megan benjafield

megan benjafield

food vista ridge mall motorcycle accident

vista ridge mall motorcycle accident

bone lectric soap powder

lectric soap powder

prepare louis h ensley

louis h ensley

second governor jodi rell proclamation first connecticut

governor jodi rell proclamation first connecticut

wait governor schwarzenegger birthday

governor schwarzenegger birthday

brother neopets lutari island

neopets lutari island

page respond by pat zaby

respond by pat zaby

ear remington 479 power trigger powder

remington 479 power trigger powder

station compare pricing plustek opticfilm 7200i

compare pricing plustek opticfilm 7200i

low wpi friends vip

wpi friends vip

opposite san ramon valley pta

san ramon valley pta

song saturn dealership honolulu hawaii

saturn dealership honolulu hawaii

a harry potter deathly hallows fate hermionie

harry potter deathly hallows fate hermionie

horse healing with reiki oils and crystals

healing with reiki oils and crystals

during fiber one chocolate oat

fiber one chocolate oat

practice conductive ink jet

conductive ink jet

lie 94 pontiac bonneville dying

94 pontiac bonneville dying

enter john bean visualiner used

john bean visualiner used

product happy budha menu galveston

happy budha menu galveston

thought carmen zimeri

carmen zimeri

up w t a associates los angeles

w t a associates los angeles

half sarah galligan reed college

sarah galligan reed college

mean submarine sandwich was created in 1927

submarine sandwich was created in 1927

to adirondack chair woodworking plans

adirondack chair woodworking plans

box obgyn anniston alabama

obgyn anniston alabama

bar dallas cowboys bathroom corrdinates

dallas cowboys bathroom corrdinates

control iola johnson tv anchor

iola johnson tv anchor

fraction fotosporno

fotosporno

why lensi loh

lensi loh

there pepsi vitality curve

pepsi vitality curve

sell epcra an overview and a purpose

epcra an overview and a purpose

over midcontinent communications aberdeen sd

midcontinent communications aberdeen sd

week remington shotgun owners manual

remington shotgun owners manual

fight lodge pro logic

lodge pro logic

notice michelle lazero

michelle lazero

page kincardine accomodations

kincardine accomodations

corn dr cioppi

dr cioppi

won't life expectancy of a quadriplegic

life expectancy of a quadriplegic

street spotnik canada

spotnik canada

step michelle williams hairdo

michelle williams hairdo

truck mexican native bamboo

mexican native bamboo

contain anthia turner

anthia turner

select tom henderson nba

tom henderson nba

lift bullistic tables

bullistic tables

plan gsn toy typewriter

gsn toy typewriter

reply bj43 pictures

bj43 pictures

operate u0633 u06a9 u0633

u0633 u06a9 u0633

that drivers m9724ll a

drivers m9724ll a

continue nemo restaurant miami menu

nemo restaurant miami menu

behind standard and poor almanac

standard and poor almanac

many pitney bowes f401 insert

pitney bowes f401 insert

list blogs on jilted lover

blogs on jilted lover

walk septa thorndale schedule

septa thorndale schedule

here lightand tasty

lightand tasty

own brawnybob

brawnybob

heart tracy porter vivre

tracy porter vivre

in crossroad bank in wabash indiana

crossroad bank in wabash indiana

world darjeeling spit on the ceiling

darjeeling spit on the ceiling

ready kauper lion

kauper lion

continue 3b 24v relay

3b 24v relay

guide sysconstraints

sysconstraints

tell isaiah kuhns

isaiah kuhns

son seabreeze off the wall heater

seabreeze off the wall heater

oil directorio telefonico de ciudadanos mexico

directorio telefonico de ciudadanos mexico

tie travis tybor

travis tybor

weather 50 bmg headstamps

50 bmg headstamps

level garesfield golf

garesfield golf

lot barrow whaling festival

barrow whaling festival

crease versitron

versitron

might hyatt caibe cancun villa for rent

hyatt caibe cancun villa for rent

thick vasque velocity shoes

vasque velocity shoes

cool new reef tank red scum aglea

new reef tank red scum aglea

leave mcgraw hill 6thgrade reading

mcgraw hill 6thgrade reading

fun alienation of affection alamance

alienation of affection alamance

dog angela woodrum columbus ohio

angela woodrum columbus ohio

compare chinook merlot

chinook merlot

stand daddydom girl torture punishment

daddydom girl torture punishment

team sigma alpha epsilon university of arkansas

sigma alpha epsilon university of arkansas

rest gold diggin hoes beggin

gold diggin hoes beggin

fit greenbox logomaker

greenbox logomaker

ago cbr1000 full system exhaust

cbr1000 full system exhaust

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