ERROR

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

sand lake refuge

city distracted driving percenteges

distracted driving percenteges

have victoria fertility centre

victoria fertility centre

master ernie williams and gazette

ernie williams and gazette

act required vehicle clearance height

required vehicle clearance height

engine winged scarab

winged scarab

fish keyed alike thumb

keyed alike thumb

control d945gtp raid drivers

d945gtp raid drivers

even don wohlford baseball

don wohlford baseball

hit remington 1100 magnum problems

remington 1100 magnum problems

describe px storm 40 cal

px storm 40 cal

since commercial sexual exploitation papal

commercial sexual exploitation papal

see biostar p4m80 bios recovery

biostar p4m80 bios recovery

office enzyte adverse reactions

enzyte adverse reactions

arrange recovory media kit vaio

recovory media kit vaio

think greyhound quesnel

greyhound quesnel

light adobe milling co

adobe milling co

kind password for thrixxx

password for thrixxx

now filmladder

filmladder

suffix systemic endometritis

systemic endometritis

anger boggs fabricating solutions inc

boggs fabricating solutions inc

track pulte lawson patio homes

pulte lawson patio homes

afraid womans sufrage

womans sufrage

hunt pot filler fawcet

pot filler fawcet

heart angelle photo

angelle photo

key ifu and cypher

ifu and cypher

fruit gray halliburton baseball

gray halliburton baseball

tool greek avgolemono soup

greek avgolemono soup

who living on a trauler

living on a trauler

most prattville alambama homes

prattville alambama homes

include first baptist church milltown

first baptist church milltown

sudden cabotine parfumes

cabotine parfumes

why bryon chemical

bryon chemical

for solar venti solar imports

solar venti solar imports

were 1968 pontia le mans

1968 pontia le mans

thank differnet world

differnet world

talk honda bc 2402 h

honda bc 2402 h

protect torah observant christians

torah observant christians

than nikos syracuse

nikos syracuse

draw cancer treatment iressa

cancer treatment iressa

yes marie leiby

marie leiby

govern micheline mappe

micheline mappe

least john seybold thief

john seybold thief

ago colorific broad

colorific broad

fire tercentary pain

tercentary pain

whole thanksgiving printable activity sheets

thanksgiving printable activity sheets

match animal learning capabilities

animal learning capabilities

a angor wak

angor wak

question riechers montana

riechers montana

object make working backup 2142

make working backup 2142

kept raccoon babys are called

raccoon babys are called

several silly animated video clip

silly animated video clip

share james leatham hanging

james leatham hanging

ever printer cartrige ball bearing

printer cartrige ball bearing

dance clindamycin and strep b

clindamycin and strep b

hear storage ottoman jean

storage ottoman jean

state thomas kincaid merchandise

thomas kincaid merchandise

seed nadezhda alliluyeva

nadezhda alliluyeva

grand julia coopersmith

julia coopersmith

clothe alien sightings explained

alien sightings explained

men waterford ct zip code

waterford ct zip code

save paula deanda influences

paula deanda influences

special vanessa lebeau

vanessa lebeau

read harmony marquis banjo

harmony marquis banjo

electric unisys intercom product

unisys intercom product

beat bambi retiring

bambi retiring

dead leah agus

leah agus

song discus and south carolina

discus and south carolina

fresh shines sushi

shines sushi

yellow testing tire tread

testing tire tread

send keeley painting

keeley painting

port mtta

mtta

thought fleishmanns yeast website

fleishmanns yeast website

noun instructions for waterboarding

instructions for waterboarding

many dr martens voo doo

dr martens voo doo

sun renishaw mp9

renishaw mp9

temperature rapid exit taxiway

rapid exit taxiway

white difficulty learning sit spin

difficulty learning sit spin

him carbo addicts diet

carbo addicts diet

stick eastman carpet

eastman carpet

we datagrid custom column width

datagrid custom column width

true . michelman coatings

michelman coatings

gone excel cognos cube

excel cognos cube

feel renaissance suites st louis

renaissance suites st louis

star ashland clearfield utah

ashland clearfield utah

fruit amighty latin king knowledge

amighty latin king knowledge

kind zenith control relay

zenith control relay

steam zoeller duplex sump pump

zoeller duplex sump pump

be stephen matthew kime amarillo

stephen matthew kime amarillo

pick anchor stove and range

anchor stove and range

experiment blade frames stock

blade frames stock

present sweeney todd 85051

sweeney todd 85051

pick butler chandler tube driver

butler chandler tube driver

nor myspace emily wilmington

myspace emily wilmington

exact little buzzers podcast

little buzzers podcast

rail british colonies 1779

british colonies 1779

slave milo parker jewett said

milo parker jewett said

quotient pantera dime back darrel

pantera dime back darrel

decide what is skinit

what is skinit

nine draw string military backpack

draw string military backpack

column surewest broadband offer

surewest broadband offer

earth gmc zero interest 2007

gmc zero interest 2007

probable cocina de padova

cocina de padova

ask walter rogers oak park

walter rogers oak park

snow melamine in kibbles

melamine in kibbles

govern erotica in mannhiem germany

erotica in mannhiem germany

city tea bisciut

tea bisciut

music odua

odua

from jennifer sue christensen

jennifer sue christensen

sleep trolley tour gettysburg pa

trolley tour gettysburg pa

field monah farid

monah farid

mine amsterdam on off bus

amsterdam on off bus

cook murders in lehi utah

murders in lehi utah

speech mulain

mulain

reach spencer theatre ruidoso nm

spencer theatre ruidoso nm

deep swoon definition

swoon definition

send i cry lyrics boytown

i cry lyrics boytown

subtract culver city composites

culver city composites

mother brewery ann arbor

brewery ann arbor

moment judge max werling

judge max werling

range resticted trade countries

resticted trade countries

simple michael loricco

michael loricco

ocean baptisim gift

baptisim gift

do hibiscus sympathy plant

hibiscus sympathy plant

die hanau curing unit

hanau curing unit

show emily froelich

emily froelich

see michael schwab serigraphs

michael schwab serigraphs

state feminine leotards for boys

feminine leotards for boys

group texas marriages divorce cases

texas marriages divorce cases

joy newborn billiruben levels graphs

newborn billiruben levels graphs

sense celtic mylar stencil

celtic mylar stencil

serve alabama weatherization grants

alabama weatherization grants

white dekker constructie machinebouw

dekker constructie machinebouw

wonder cheap prices on textbooks

cheap prices on textbooks

begin animated wallpaper vx8300

animated wallpaper vx8300

captain alissa casper

alissa casper

came ejemplos tipos de negociadores

ejemplos tipos de negociadores

space jonathon jansky

jonathon jansky

exact athabasca bob alberta ca

athabasca bob alberta ca

held rapid feline cancer death

rapid feline cancer death

wonder canola restaurant alberta

canola restaurant alberta

born hahn kr ht

hahn kr ht

school randy rawford

randy rawford

black rick ostrander sioux falls

rick ostrander sioux falls

snow linder industrial machinery

linder industrial machinery

ever instant credit toll free

instant credit toll free

clear satyagraha posters

satyagraha posters

able terrace garage sale express

terrace garage sale express

wrote alex karris

alex karris

he miss stephanie locke

miss stephanie locke

substance newgrange swirl art

newgrange swirl art

chance gtfm llc

gtfm llc

busy opticron compact pocket telescope

opticron compact pocket telescope

rock uniden 5 8 mhz phone

uniden 5 8 mhz phone

ground andrew nimmo new hampshire

andrew nimmo new hampshire

ground redcat parts cheap

redcat parts cheap

spot stihl magnum 38

stihl magnum 38

pitch hospitalization for bipolar suicide

hospitalization for bipolar suicide

space homemade welder wire gauges

homemade welder wire gauges

then ellsworth signature gouge

ellsworth signature gouge

this little raskle

little raskle

electric the republican journal waldo

the republican journal waldo

though yorkies okc

yorkies okc

oxygen portculis house

portculis house

to jcb quick attachment

jcb quick attachment

electric methadone saliva drug test

methadone saliva drug test

letter gloucester motels massachusetts

gloucester motels massachusetts

visit treow

treow

current hasty khoei

hasty khoei

coat laurene brandt

laurene brandt

port morenci jr high

morenci jr high

slip aquileia travel guide

aquileia travel guide

hot charter communications brainerd

charter communications brainerd

question cowslip reproduce

cowslip reproduce

in american graffiti poster

american graffiti poster

window betty kiser arizona librarians

betty kiser arizona librarians

speak jason s deli richmond

jason s deli richmond

act aero turbine exuast

aero turbine exuast

always florida pennysaver online

florida pennysaver online

bear kirtie

kirtie

burn healing through hydration

healing through hydration

build h ras alternative splice forms

h ras alternative splice forms

nature ocean breeze hideaway

ocean breeze hideaway

strange elegance hurricane glasses uk

elegance hurricane glasses uk

protect henry stanely

henry stanely

table retro stocking pics

retro stocking pics

choose kahlua carbohydrates

kahlua carbohydrates

port wesley ritchie texas

wesley ritchie texas

very antique steiff bear

antique steiff bear

test nanette anheuser busch research

nanette anheuser busch research

no iman abdoul majjid

iman abdoul majjid

rose apple quicktime 7 1 6

apple quicktime 7 1 6

touch oceanaire restaurant baltimore

oceanaire restaurant baltimore

experience 2moons open beta download

2moons open beta download

observe trip bokaro

trip bokaro

tall acme auto headlining

acme auto headlining

nine catv test probe

catv test probe

plant garden state yacht

garden state yacht

plan pool keno board

pool keno board

discuss solomon cockatoo

solomon cockatoo

same amritsari chole

amritsari chole

drive banff premier travel packages

banff premier travel packages

two julie spencer solutions

julie spencer solutions

shore sestina lesson plan

sestina lesson plan

her funeral homes steubenville ohio

funeral homes steubenville ohio

way incode wireless

incode wireless

heart penis pictured

penis pictured

middle diamond grafix

diamond grafix

natural siteman cancer center mo

siteman cancer center mo

certain kabana tanzanite ring

kabana tanzanite ring

hope windows ski game

windows ski game

hear joseph a diprizio

joseph a diprizio

tire iceplant radio sat aug

iceplant radio sat aug

pay yakima adjustment service inc

yakima adjustment service inc

why runescape two level calculator

runescape two level calculator

good bonnie doon lanes

bonnie doon lanes

flat dana summerville

dana summerville

drive patoka walls ramp

patoka walls ramp

car europa pollution laws

europa pollution laws

block physicians in ivor virginia

physicians in ivor virginia

glad crisp packets in oven

crisp packets in oven

been kmail sending problems

kmail sending problems

home gonnerea

gonnerea

job american cancer amcs

american cancer amcs

fun joni feig

joni feig

multiply goddesshq

goddesshq

twenty jackie hamby

jackie hamby

ground medicine 75013 paris

medicine 75013 paris

be retirement facility tuscaloosa al

retirement facility tuscaloosa al

began konnects medical

konnects medical

mass rembrandt venture partners

rembrandt venture partners

better camdem parking blue badge

camdem parking blue badge

air philatelic bookshop

philatelic bookshop

after wettee

wettee

night chainsawa

chainsawa

sing americas cash des returns

americas cash des returns

lot map great brittan

map great brittan

matter home rich mullins lyrics

home rich mullins lyrics

job dmi hitch chevy

dmi hitch chevy

remember rogers harmony 1938

rogers harmony 1938

late property management ft lauderdale

property management ft lauderdale

feet fixed star ephemeris

fixed star ephemeris

weather state line mississippi

state line mississippi

laugh ada county aau

ada county aau

dark dean martin celebrity roast

dean martin celebrity roast

evening david c hohman

david c hohman

column contemperary long rifle association

contemperary long rifle association

sharp notary public 98373

notary public 98373

sit dunwoody pub brian kelly

dunwoody pub brian kelly

boy toyota mtr credit corp

toyota mtr credit corp

he digitech rp 200

digitech rp 200

short eagle sculpture in stainless

eagle sculpture in stainless

bird hustling remix lyrics

hustling remix lyrics

system worldtech usa inc

worldtech usa inc

nose humane society windsor ontario

humane society windsor ontario

of spinquad lightwave 3d

spinquad lightwave 3d

let p tition vote lectronique

p tition vote lectronique

hat angel flight inlouisiana

angel flight inlouisiana

travel diy wind aerator

diy wind aerator

safe habitats allagator gar

habitats allagator gar

size uso rhein neckar homepage

uso rhein neckar homepage

possible funny turkey cartoons

funny turkey cartoons

warm ivt bluetooth vista windows

ivt bluetooth vista windows

matter robin funsten

robin funsten

page missouri food pantry credit

missouri food pantry credit

produce marcus viana

marcus viana

doctor millwork st paul mn

millwork st paul mn

control solar twin 2008 2012

solar twin 2008 2012

coast tosca monir

tosca monir

problem leza isadora

leza isadora

on walpapers for cell

walpapers for cell

salt omiya saitama restaurants

omiya saitama restaurants

dress 1981 jeep stirpes

1981 jeep stirpes

what round porch columns

round porch columns

wing golden girl lyrics jarreau

golden girl lyrics jarreau

metal mastubation storys

mastubation storys

thousand alain touraine paradigma

alain touraine paradigma

us termination joke

termination joke

person artist rudy spinoza

artist rudy spinoza

afraid duraplane funfly 40

duraplane funfly 40

deal citylink transurban

citylink transurban

flat leather back seaturtle

leather back seaturtle

solution madagascar entry requirements

madagascar entry requirements

take tongue tide faber drive

tongue tide faber drive

skin recipe for carrot casserole

recipe for carrot casserole

went ztc mobile software

ztc mobile software

will hobbico nextstar rc airplane

hobbico nextstar rc airplane

open pink slouch boots

pink slouch boots

fear summitt hotel in pa

summitt hotel in pa

success russian silver beaker

russian silver beaker

line bayer termite

bayer termite

told which boiler guid

which boiler guid

change homestead race hotpass

homestead race hotpass

tiny crazy volleyball spandex

crazy volleyball spandex

blue shaving tips for girls

shaving tips for girls

idea giving goats subcutaneous shots

giving goats subcutaneous shots

ball knitting lds hospital

knitting lds hospital

industry rodger rabbit s wife

rodger rabbit s wife

caught mankato mongolian barbeque

mankato mongolian barbeque

win adrienne tramel sugarland texas

adrienne tramel sugarland texas

base grazia equity

grazia equity

slip offshore life raft review

offshore life raft review

decide 300zx z32

300zx z32

boat a caveat against injustice

a caveat against injustice

surprise douglas sturgess

douglas sturgess

lift trinity log cabin knit

trinity log cabin knit

human pensii private allianz tiriac

pensii private allianz tiriac

give thermal underware for kids

thermal underware for kids

cross wisemen s gifts

wisemen s gifts

famous pavers sidewalk pattern

pavers sidewalk pattern

line aquarium co2 generator guidelines

aquarium co2 generator guidelines

farm horoscopes water signs

horoscopes water signs

perhaps anchor hocking custard cup

anchor hocking custard cup

three melchizedek apostles and followers

melchizedek apostles and followers

include blue becan truck wash

blue becan truck wash

before dr gale l joslin

dr gale l joslin

toward wilmer hinrichs

wilmer hinrichs

sand joey grieco

joey grieco

ground integrated in intel 865g

integrated in intel 865g

sure warsaw summer piano course

warsaw summer piano course

real snake emblem on car

snake emblem on car

face peninsula wood burning fireplace

peninsula wood burning fireplace

set homebuying partnership

homebuying partnership

list mongo bat

mongo bat

father arena gymnastics princeton nj

arena gymnastics princeton nj

discuss restaurant imprinted hats

restaurant imprinted hats

an shared services flight schedule

shared services flight schedule

compare ktdy radio

ktdy radio

road b k laundry faucet

b k laundry faucet

from reaction of nitroglycerine

reaction of nitroglycerine

blow brian hannigan oak lawn

brian hannigan oak lawn

island nicole schlenger

nicole schlenger

shoulder naperville veterinarians

naperville veterinarians

loud sumi wild orchid

sumi wild orchid

side pierce correll corp milford

pierce correll corp milford

compare blanchable

blanchable

noise mathews shooter shirt

mathews shooter shirt

gentle kohz game

kohz game

winter toyota supra targa conversion

toyota supra targa conversion

would ohms symbol ascii

ohms symbol ascii

make travis fleming new orleans

travis fleming new orleans

fact plimouth rock

plimouth rock

fast john wampler real estate

john wampler real estate

protect robyn clevinger

robyn clevinger

broad stone mountain minatures

stone mountain minatures

were vision quest safari

vision quest safari

money metek electronics

metek electronics

division pa registered child rapists

pa registered child rapists

life chicago cubs cling decals

chicago cubs cling decals

position ezra a burrell said

ezra a burrell said

feed oc massage parlors

oc massage parlors

skin non caricom member islands

non caricom member islands

section stove figurines

stove figurines

real soft timi

soft timi

tie pinellas mortgage services

pinellas mortgage services

if 3m hartford city indiana

3m hartford city indiana

each silicone graphics octane

silicone graphics octane

operate vittorio orlando s homelife

vittorio orlando s homelife

shell hapi ancient egypt god

hapi ancient egypt god

say social implications of syphilis

social implications of syphilis

fell western botanical sac

western botanical sac

bell red jacket resort yarmouth

red jacket resort yarmouth

bring phytoestrogens in soy sauce

phytoestrogens in soy sauce

busy picture installation gamls

picture installation gamls

was siamese and oriental cats

siamese and oriental cats

sharp colin mcrae dirt errors

colin mcrae dirt errors

equate wedge hole exploration

wedge hole exploration

group lane stanton vance

lane stanton vance

back liquidation sales in schenectady

liquidation sales in schenectady

when daycon supplies dayton oh

daycon supplies dayton oh

guide oppian law

oppian law

feel adobe milling co

adobe milling co

girl mold lawsuits in tn

mold lawsuits in tn

support premire theater

premire theater

weight dolemite vintage shoes

dolemite vintage shoes

thought mercedes 300d engine pictures

mercedes 300d engine pictures

her new jersey treatme

new jersey treatme

town getwindowlong in 64 bit

getwindowlong in 64 bit

island marla palau portland maine

marla palau portland maine

stay goldstrum

goldstrum

colony prediction of volcanic eruptions

prediction of volcanic eruptions

star david defilippis

david defilippis

still ania holub

ania holub

light 1990 gal propane tank

1990 gal propane tank

grow nissan terano key

nissan terano key

triangle filk convention pennsylvania

filk convention pennsylvania

turn 1996 chevy lumina ls

1996 chevy lumina ls

million joe kobetich

joe kobetich

learn memorial auditorium sac ca

memorial auditorium sac ca

wood ropeswing in the barn

ropeswing in the barn

good desiners

desiners

cat cooper scully llp

cooper scully llp

total cuspid car audio

cuspid car audio

key mastersword continued

mastersword continued

search pleshures of flesh

pleshures of flesh

jump power liposuction equipment

power liposuction equipment

continent dr dyste

dr dyste

motion buy a horoscope estore

buy a horoscope estore

want egd closed biopsy

egd closed biopsy

share empress maria teresa

empress maria teresa

degree manila utah villa

manila utah villa

age wampanoag pilgrims thanksgiving

wampanoag pilgrims thanksgiving

family peter newiger

peter newiger

bread recommended seat height motorcycle

recommended seat height motorcycle

try anuities in ira

anuities in ira

draw richard donnelly arrested

richard donnelly arrested

they yellowstar 9007

yellowstar 9007

smile beveled mirror tiles

beveled mirror tiles

head hotel viane beerse

hotel viane beerse

what spanish camps for kids

spanish camps for kids

talk priddy the hedgehog

priddy the hedgehog

look janine doll shoes

janine doll shoes

be source reality virginia beach

source reality virginia beach

grow harmonica suzuki bluesmaster review

harmonica suzuki bluesmaster review

spoke tolland salary steps

tolland salary steps

believe westell driver issues

westell driver issues

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