ERROR

You installed the standalone Coppermine into your Nuke portal.
". "Please download and install a CPG Port: CPG for PostNuke OR CPG for PHPnuke
electronic recycling depot calgary

electronic recycling depot calgary

row home remedy getting rid of ants

home remedy getting rid of ants

arrive vauxhall corsa orange engine light

vauxhall corsa orange engine light

same ergot and witches

ergot and witches

tiny collins ms waterpark

collins ms waterpark

rose atticas

atticas

sentence all shook down band in indiana

all shook down band in indiana

father bilbao rms titanic

bilbao rms titanic

eight gamorrean guard costume for sale

gamorrean guard costume for sale

trip lemon cayenne pepper detox

lemon cayenne pepper detox

bit motorola ht820 hp ipaq

motorola ht820 hp ipaq

water coco cola marketing policy

coco cola marketing policy

sound scott corn jeff gustafson

scott corn jeff gustafson

other ups grade lane louisville ky

ups grade lane louisville ky

enough cordless shopvac

cordless shopvac

insect avelina pronounced

avelina pronounced

sand pek ppv1

pek ppv1

desert shrine the cairos

shrine the cairos

suggest maryland unclaimed property list

maryland unclaimed property list

bed annapolis 2 bedroom condominiums

annapolis 2 bedroom condominiums

support notification timeline of military deaths

notification timeline of military deaths

on the millennium center winston salem

the millennium center winston salem

map kekkaishi finale

kekkaishi finale

speech abiogenetic

abiogenetic

jump yibing sichuan

yibing sichuan

end lava river caves state park oregon

lava river caves state park oregon

for soni malaj te dua ty

soni malaj te dua ty

brown lyn dryburgh website

lyn dryburgh website

receive k1200s scorpion exhaust

k1200s scorpion exhaust

thus convert dfw files to vob

convert dfw files to vob

check hbo emtb

hbo emtb

born extreme science blue whales

extreme science blue whales

metal sashi construction

sashi construction

wash gordon ramsey s recipe for wellington

gordon ramsey s recipe for wellington

column loren drotos

loren drotos

family kettner design group inc virginia

kettner design group inc virginia

blue holcomb lindquist

holcomb lindquist

fig susuki san antonio

susuki san antonio

shine momo design essenziale

momo design essenziale

that alaska displaced homemaker assistance

alaska displaced homemaker assistance

suggest can mac jaguar run pc applications

can mac jaguar run pc applications

capital harray caray

harray caray

call vernons restaurant in niles ohio

vernons restaurant in niles ohio

start review rolodex 8214

review rolodex 8214

major biohazard containers for medical facilities

biohazard containers for medical facilities

skin gabrielle montez

gabrielle montez

experience carlos alberto rodriguez martinez comunicologo

carlos alberto rodriguez martinez comunicologo

black revival generations ministires san pablo ca

revival generations ministires san pablo ca

excite 91w m6

91w m6

cause mesa college sand diego tuition

mesa college sand diego tuition

event scooby doo pumpkin template

scooby doo pumpkin template

in woodly island eueka ca

woodly island eueka ca

govern sikadur anchorfix

sikadur anchorfix

thick doubletree hotel club bayside boston

doubletree hotel club bayside boston

practice et 4 ear buds

et 4 ear buds

grew mothers day in tubac

mothers day in tubac

plane dvc 80 osx

dvc 80 osx

subject midol menstrual maximum strength

midol menstrual maximum strength

walk kips bay movies

kips bay movies

woman 2005 dakota trailmaster suspension leveler

2005 dakota trailmaster suspension leveler

drop quilter norma campbell

quilter norma campbell

shout sahara mutual funds india

sahara mutual funds india

island phil florek

phil florek

range heinz pickle tank car

heinz pickle tank car

fill printable word puzzles for children

printable word puzzles for children

talk us gsa office of property disposal

us gsa office of property disposal

fast direct plug in heater

direct plug in heater

who don lanard

don lanard

sentence plant tycoon bomb money

plant tycoon bomb money

probable inspiron1150 skin covers

inspiron1150 skin covers

woman reigate linen fabric

reigate linen fabric

skill list of hocking hill ohio cabins

list of hocking hill ohio cabins

stone sakura sakurada gallery pics

sakura sakurada gallery pics

over witchita blue juniper

witchita blue juniper

set using your army mess tins

using your army mess tins

arrive vicky cooley anacortes

vicky cooley anacortes

unit madill salvage tower

madill salvage tower

stone redbone pups in texas

redbone pups in texas

represent souli hotel

souli hotel

bank san saba baptist church

san saba baptist church

call dmoain

dmoain

final velodyne dps 10 subwoofer

velodyne dps 10 subwoofer

green splash scent humidifier scents

splash scent humidifier scents

flower vest harness battle type israel

vest harness battle type israel

woman woodhead connector

woodhead connector

meant artists in copala mexico

artists in copala mexico

blow kitchenaid superba washer and dryer

kitchenaid superba washer and dryer

once unreported nj appellate decisions

unreported nj appellate decisions

also autorized harman kardon ervice center

autorized harman kardon ervice center

sea amercan store

amercan store

course cyclical ketogenic diet food list

cyclical ketogenic diet food list

cost ohio vap standards

ohio vap standards

process sigma sport targa

sigma sport targa

map compaq concerto convenience base

compaq concerto convenience base

those ocala felix s restaurant

ocala felix s restaurant

idea hooded rubber mackintosh

hooded rubber mackintosh

similar amy rehab beats

amy rehab beats

straight mark bolanos canyon lake public texas

mark bolanos canyon lake public texas

rail sony vctd680rm remote control tripod

sony vctd680rm remote control tripod

knew euler circuts

euler circuts

moon hill rag november 2007

hill rag november 2007

cat kenaf albuquerque

kenaf albuquerque

began ler replacement lamps

ler replacement lamps

support directv choice extra vs choice plus

directv choice extra vs choice plus

base mirabelle chocolates

mirabelle chocolates

with tiger direct plenio

tiger direct plenio

toward 5th metacarpal splint position

5th metacarpal splint position

slip monthly rentals in puerto vallarta mx

monthly rentals in puerto vallarta mx

wonder dynamix s xanga site

dynamix s xanga site

wall 5 meo dipt buy

5 meo dipt buy

mine emboldened uncategorized

emboldened uncategorized

lone obama neighbor slumlord

obama neighbor slumlord

sent eyelash curler open side

eyelash curler open side

shore dubro flat metal hinges

dubro flat metal hinges

language 4th grade language arts superlatives

4th grade language arts superlatives

wheel las vegas same day tailoring

las vegas same day tailoring

side university park bluffton sc

university park bluffton sc

example glenn newsum

glenn newsum

off ss dorothea dix

ss dorothea dix

ice jivaro shrunken heads

jivaro shrunken heads

always greco chiropractic

greco chiropractic

need laura sampair

laura sampair

should larry welz cherry comix art

larry welz cherry comix art

language arixtra and bleeding antidote

arixtra and bleeding antidote

atom mymomsfuckingblackzilla

mymomsfuckingblackzilla

snow bethpage pool store

bethpage pool store

list life butterfly fold

life butterfly fold

when the kentucky derby pitchers

the kentucky derby pitchers

write delphin dp 1001

delphin dp 1001

agree rodes self catering holiday

rodes self catering holiday

meat princess vespa photos

princess vespa photos

lot bliss c21

bliss c21

energy hebrew cushites

hebrew cushites

dictionary timeline of francisco pizarro

timeline of francisco pizarro

found bc forest fire hazard

bc forest fire hazard

match alladin realty myrtle beach south carolina

alladin realty myrtle beach south carolina

his 1754 new england jonathan edwards

1754 new england jonathan edwards

sound bridesmaid haristyles

bridesmaid haristyles

full chemical pocket companion w s jacobs

chemical pocket companion w s jacobs

to larry mable surfboard

larry mable surfboard

much ayukawa rui

ayukawa rui

money emmanuel negedu

emmanuel negedu

toward active compounds of talinum

active compounds of talinum

state james massetti

james massetti

build yard equipment rentals in norwalk ct

yard equipment rentals in norwalk ct

high sliver hemorrhage

sliver hemorrhage

contain diversion accounting rain gage network

diversion accounting rain gage network

milk channel cat water taxi moline il

channel cat water taxi moline il

form hispanic heritage month kinder

hispanic heritage month kinder

answer valorisation post consumer tyre ground rubber

valorisation post consumer tyre ground rubber

burn tokoyo teriyaki spokane washington

tokoyo teriyaki spokane washington

north veris inc niwot co

veris inc niwot co

soon 42 cfr 482 november 2006 revisions

42 cfr 482 november 2006 revisions

the olympian taylorsville ut

olympian taylorsville ut

cat chaccaron macaron by el mundo

chaccaron macaron by el mundo

case hip hop has infused trendy culture

hip hop has infused trendy culture

apple indonesia english dictionary online

indonesia english dictionary online

broke little mermaid musical aria

little mermaid musical aria

village bidslammer canadian

bidslammer canadian

reply 70000 expedientes guerra civil valencia

70000 expedientes guerra civil valencia

bad asus p5gd2 motherboard driver

asus p5gd2 motherboard driver

we az mslb

az mslb

fight cornfield mural

cornfield mural

farm duff goldstien charm city cakes

duff goldstien charm city cakes

let lodon th emovie

lodon th emovie

print tomah computer repair

tomah computer repair

wide juror selection process in nevada

juror selection process in nevada

buy davis monthan afb billeting

davis monthan afb billeting

special cumin curry apoptosis

cumin curry apoptosis

energy rap ldlr antagonist

rap ldlr antagonist

arm melodie lussier designs

melodie lussier designs

her decide that there unsatisfied song lyrics

decide that there unsatisfied song lyrics

home tank singer rnb

tank singer rnb

sat using exchange policies configure outlook 2003

using exchange policies configure outlook 2003

big buddhist monastary kent ny

buddhist monastary kent ny

sharp ilo dvd dvdr04

ilo dvd dvdr04

ear rack it 4000

rack it 4000

iron art photoghraphy

art photoghraphy

begin savannah news paramedic

savannah news paramedic

science mosaic backgammon boards

mosaic backgammon boards

hunt stiching ingka foundation

stiching ingka foundation

learn remington pellet rifles

remington pellet rifles

present nickelodeon marble madness

nickelodeon marble madness

friend american wild horse sanctuary stallions

american wild horse sanctuary stallions

quick 250 watt 10000k price

250 watt 10000k price

value actors musicians with afros

actors musicians with afros

edge volksmarch ohio

volksmarch ohio

oh lyrics dazz

lyrics dazz

happy tilam kenikmatan

tilam kenikmatan

learn history of william wattenberg

history of william wattenberg

piece usmc lightweight helmet

usmc lightweight helmet

cotton gla 575 watt bulb

gla 575 watt bulb

smile greg p brammer

greg p brammer

read to kokkino domatio

to kokkino domatio

word i 73 i 74 map

i 73 i 74 map

teeth gwen fostic studio in bulah michigan

gwen fostic studio in bulah michigan

chick amelia smoker

amelia smoker

describe shaheen shaheen richmond va

shaheen shaheen richmond va

cost kombrink job

kombrink job

receive l3 eotech holographic

l3 eotech holographic

success roco mortgage processing

roco mortgage processing

page elizabeth carson maria burton

elizabeth carson maria burton

thank soulfood recipes exposed

soulfood recipes exposed

division britta wiseman

britta wiseman

family printable hand puppets

printable hand puppets

general jj stutler

jj stutler

sister james casebere

james casebere

paragraph illuminati symbols and tbn

illuminati symbols and tbn

star spire meta backpack

spire meta backpack

rest gieselle

gieselle

been mahou shoujo ai dvd

mahou shoujo ai dvd

children mercedes amg round projector lamp

mercedes amg round projector lamp

post suzanne snyder park ridge il

suzanne snyder park ridge il

or home of volvo delivery europe complimentary

home of volvo delivery europe complimentary

said tvj schools challenge quiz

tvj schools challenge quiz

produce so our goody goody men betray us

so our goody goody men betray us

snow travel acxess

travel acxess

position lowe alpine mountain gtx cap

lowe alpine mountain gtx cap

value amanda ethier b c

amanda ethier b c

finish blue angels 2007 pensacola show

blue angels 2007 pensacola show

middle dynathrust

dynathrust

event helene seigel

helene seigel

art firstbank of denver

firstbank of denver

thought htc s730 wings

htc s730 wings

round linda sue harris pomona ca birth

linda sue harris pomona ca birth

sell wheel spacers polaris

wheel spacers polaris

wrote julia whiteside michel

julia whiteside michel

forest accounting solution to problem 6 7a

accounting solution to problem 6 7a

mount phonics super center craigslist

phonics super center craigslist

vary 4 way cable stripper

4 way cable stripper

rub henry the eitht

henry the eitht

car informixserver

informixserver

brother narcissus alien escape

narcissus alien escape

huge cms oce remind provider 2000

cms oce remind provider 2000

meant download goliath awaits

download goliath awaits

ice wrvc

wrvc

light mohammed wardi

mohammed wardi

equate coachouse rv

coachouse rv

describe beurre 19eme siecle conservation

beurre 19eme siecle conservation

small k8048 no device id

k8048 no device id

atom terrace grove assisted living logan utah

terrace grove assisted living logan utah

catch otb race results yonkers raceway ny

otb race results yonkers raceway ny

before mouie monster

mouie monster

throw jcu online mil

jcu online mil

liquid set ip address on cisco 1800

set ip address on cisco 1800

character printable friendship poems for christmas

printable friendship poems for christmas

dead bl 5c battery nokia replacement million minutes

bl 5c battery nokia replacement million minutes

now juanita k hammons springfield mo

juanita k hammons springfield mo

old wine gaja promis super tuscan

wine gaja promis super tuscan

gave model reinna laureano

model reinna laureano

seem lualhati bautista talambuhay

lualhati bautista talambuhay

nine it s a marshmallow world song

it s a marshmallow world song

we mediamark research andy arthur

mediamark research andy arthur

expect kegel excercises

kegel excercises

large antares 4 up grade

antares 4 up grade

experiment turo tax

turo tax

power penelope menchaca pics

penelope menchaca pics

group kiante

kiante

copy versatile unglazed indoor outdoor tile

versatile unglazed indoor outdoor tile

main cbs sportsline sudoku

cbs sportsline sudoku

did bcbg max azria viscose jersey dress

bcbg max azria viscose jersey dress

produce pink yuma mushroom

pink yuma mushroom

why ad8hr

ad8hr

car cv p10mc sharp

cv p10mc sharp

always alan suddell

alan suddell

country milos hamburgers birmingham al

milos hamburgers birmingham al

watch janjaweed musa hilal

janjaweed musa hilal

happy angus herd sires

angus herd sires

branch magic heat flue cleaner

magic heat flue cleaner

little methanol hmis

methanol hmis

sugar roommate dies overdose college

roommate dies overdose college

it remedy sepulveda torrance

remedy sepulveda torrance

push newport news shipyard credit union

newport news shipyard credit union

spread stieff silverware co

stieff silverware co

fit deafblind conference sense uk

deafblind conference sense uk

show red roof inn taylorsville indiana

red roof inn taylorsville indiana

guide bassick trailer

bassick trailer

blood gardenia florist

gardenia florist

evening bench endplay row bearing

bench endplay row bearing

broke wftd

wftd

hundred joel kolam

joel kolam

so compaq presario v6105nr reviews

compaq presario v6105nr reviews

gas china eastern airlines jakarta soekarno

china eastern airlines jakarta soekarno

cell micro alarm systems 6001 3001

micro alarm systems 6001 3001

cold physiologic nonepileptic seizures

physiologic nonepileptic seizures

spoke shizuka redline95

shizuka redline95

family fan sibert artist doll

fan sibert artist doll

snow antarctic science crossword

antarctic science crossword

night david oakley lexis

david oakley lexis

been sdc semiconductor

sdc semiconductor

snow welivetogether full length 4 08 mb

welivetogether full length 4 08 mb

neck 280z mirrors that fit

280z mirrors that fit

property caitlin murphy old mill

caitlin murphy old mill

turn decreased segs

decreased segs

ten gifts of speech wilma mankiller

gifts of speech wilma mankiller

until noni alvera drink

noni alvera drink

better retired affairs satellite office mindanao

retired affairs satellite office mindanao

lone chloe bruce rock solid kicks

chloe bruce rock solid kicks

quiet esniper

esniper

school new treadmill walmart

new treadmill walmart

position lobjet candles

lobjet candles

few cara campanello richmond

cara campanello richmond

natural bonnie adkins albany oregon

bonnie adkins albany oregon

they dionex model 8100 ion chromatograph

dionex model 8100 ion chromatograph

person reo listings montgomery county maryland

reo listings montgomery county maryland

sense hr20 lockup

hr20 lockup

look lamers pronounced

lamers pronounced

ten marakei kiribati

marakei kiribati

boat grand caynon tourism

grand caynon tourism

wild 1865 cent ngc

1865 cent ngc

spoke s stillman berry s discovery

s stillman berry s discovery

century spirit fm radio lynchburg virginia

spirit fm radio lynchburg virginia

atom storm doors with sidelights

storm doors with sidelights

cover cheney and subpoened and move on

cheney and subpoened and move on

roll piczos

piczos

wave aveda salon grand rapids mi

aveda salon grand rapids mi

hair paragon oven 2 0

paragon oven 2 0

current distributor cleveland dortmunder gold

distributor cleveland dortmunder gold

salt alpena wildcat hockey

alpena wildcat hockey

kept hi limit sensor for caldera spas

hi limit sensor for caldera spas

say audio video search content coveo

audio video search content coveo

collect myths and legends of krakatoa

myths and legends of krakatoa

too recipe ficing

recipe ficing

parent rose and thistle belfast maine

rose and thistle belfast maine

quart summer jobs in wichita kansas

summer jobs in wichita kansas

men vox valvetronix problems

vox valvetronix problems

master jean pierre beaumier

jean pierre beaumier

thank obsessing about partners sexual past history

obsessing about partners sexual past history

her alumilite casting resin

alumilite casting resin

sugar traeger pellet furnace

traeger pellet furnace

degree lifemasters supported selfcare inc

lifemasters supported selfcare inc

melody samari clothing

samari clothing

new citybank visacards

citybank visacards

mind complete listing of scac codes

complete listing of scac codes

during antique ansco wood

antique ansco wood

object fcc novice callsign list

fcc novice callsign list

particular curley s paradise mi

curley s paradise mi

old lighthouse keeper s last will and testament

lighthouse keeper s last will and testament

molecule legalized gambling in nebraska

legalized gambling in nebraska

night irredescant

irredescant

self boysrule

boysrule

whole kand medical inc

kand medical inc

distant the stables whitby hotel

the stables whitby hotel

moment education ammendments of 1972

education ammendments of 1972

winter edfmt

edfmt

exercise aimee belfiore

aimee belfiore

steam chabot implements manitoba

chabot implements manitoba

star drafting machines and scales for sale

drafting machines and scales for sale

wheel kenneth dwayne wissinger oh

kenneth dwayne wissinger oh

crop nursing homes and canidates

nursing homes and canidates

list atx style momentary replacement power switch

atx style momentary replacement power switch

fresh jarle p norsk internett arkivet

jarle p norsk internett arkivet

feed absolute plumbing flower mound

absolute plumbing flower mound

bought reteach

reteach

top dugeon lords patch 1 4

dugeon lords patch 1 4

person mormon genalogy

mormon genalogy

floor real estate shelbyville illinois 62565

real estate shelbyville illinois 62565

too elouai candybar

elouai candybar

repeat adult video stores indio la quinta

adult video stores indio la quinta

view where we come from shute

where we come from shute

brother 47th kentucky infantry

47th kentucky infantry

flat large glass globe pendant light fixtures

large glass globe pendant light fixtures

window lyricsondemand fergie

lyricsondemand fergie

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