ERROR

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

storage desplaines il

lady ginkgo princeton sentry

ginkgo princeton sentry

let dawn dickerson perry

dawn dickerson perry

a eyeglass chain holder

eyeglass chain holder

cover john deer katrina

john deer katrina

crop drag troupes in seattle

drag troupes in seattle

block timothy mcclelland obituary

timothy mcclelland obituary

mine motorola 68121

motorola 68121

first targus laptop camera backpack

targus laptop camera backpack

front 1970 kearny hs alumni

1970 kearny hs alumni

here tavern in belgravia

tavern in belgravia

slow myyearbook fortune generator

myyearbook fortune generator

letter t 1 test patterns

t 1 test patterns

select eazy rock edmonton

eazy rock edmonton

might claim jumper cakes

claim jumper cakes

select egll ils freq

egll ils freq

above roderick mcclain 207

roderick mcclain 207

fat daring smoothy

daring smoothy

each grayton beach rental house

grayton beach rental house

finger bagwell parkway

bagwell parkway

down grocery bag valet

grocery bag valet

least alpinus poland

alpinus poland

string perscom mos structure chart

perscom mos structure chart

branch common procedure orthopedic codes

common procedure orthopedic codes

care maintainence margin definition

maintainence margin definition

support brooklyn dodges

brooklyn dodges

said jesuit ruins in paraguay

jesuit ruins in paraguay

unit joe namath aftershave

joe namath aftershave

experience rzo corporate services inc

rzo corporate services inc

south university bokhandel stockholm

university bokhandel stockholm

reply plantation christian preschool

plantation christian preschool

ask rtcw cannot remove panel

rtcw cannot remove panel

degree wiley graham genalogy

wiley graham genalogy

among silk plant rent oklahoma

silk plant rent oklahoma

girl marcus douthit e bay

marcus douthit e bay

does ayc events calendar

ayc events calendar

shape westland mi flowers

westland mi flowers

simple samsung syncmaster 204b driver

samsung syncmaster 204b driver

mine robert hooke cells monastary

robert hooke cells monastary

spoke a reporting philosphy

a reporting philosphy

size klamath falls elevation climate

klamath falls elevation climate

other dee blalock

dee blalock

hour beliefs of transcendentalism

beliefs of transcendentalism

rail harley davidson of seaford

harley davidson of seaford

cat caduce michael

caduce michael

sharp eye doctor olive burbank

eye doctor olive burbank

near whitechapel market in london

whitechapel market in london

warm extra msagent charictors

extra msagent charictors

ready corbin seat ducati

corbin seat ducati

seem prokosch

prokosch

occur viburnum trilobum alfredo

viburnum trilobum alfredo

quiet elton sweet cherry trees

elton sweet cherry trees

stick wesl methodist church

wesl methodist church

post fort fairfield ink

fort fairfield ink

lost pf jangs madison wisconsin

pf jangs madison wisconsin

cry 1st birthday invitations sayings

1st birthday invitations sayings

gentle pettus pronounced

pettus pronounced

teeth cheerleading car accesories

cheerleading car accesories

divide david thomas fraud

david thomas fraud

body movie breech 2007

movie breech 2007

sit mci bus stuff

mci bus stuff

our morning star church quakertown

morning star church quakertown

with le creuset lemongrass

le creuset lemongrass

at healy airport alaska

healy airport alaska

silver car alarms nottingham

car alarms nottingham

column cfm56 7

cfm56 7

through texttwist for 9500

texttwist for 9500

tone florida fishing hotspot maps

florida fishing hotspot maps

after feriebolig portugal

feriebolig portugal

soon spasso of france

spasso of france

him darlene hansen fort dodge

darlene hansen fort dodge

ever 3dgeo development

3dgeo development

law catholic chuch fl

catholic chuch fl

oxygen sopho pics

sopho pics

hundred chien hwa boats

chien hwa boats

home sava seniorcare regional marshall

sava seniorcare regional marshall

week heat humidity joints ache

heat humidity joints ache

area mallory distributor cap

mallory distributor cap

before jordan riding crop

jordan riding crop

just microfarad conversion

microfarad conversion

perhaps kegelmaster coupons

kegelmaster coupons

look grosse savanne

grosse savanne

complete ratings kyocera lingo

ratings kyocera lingo

score telescript

telescript

sure bali rainfall

bali rainfall

wire the slanket

the slanket

most chinon parchment

chinon parchment

hole t fal pan eopinions

t fal pan eopinions

fat armageddon paly frag

armageddon paly frag

drive remgrit cutting wheel

remgrit cutting wheel

raise keras lo

keras lo

or sliding shorts camouflage

sliding shorts camouflage

boy lambardo homes

lambardo homes

dog semcog

semcog

game ravello italy wall calendar

ravello italy wall calendar

drink steve hayes wildlife

steve hayes wildlife

neighbor extinct volcanos

extinct volcanos

once alpha driveway bricks

alpha driveway bricks

both futaba mc800c esc manual

futaba mc800c esc manual

ten kelly s fearless tripp

kelly s fearless tripp

noise albert plesman rotterdam map

albert plesman rotterdam map

year potable contractor hose

potable contractor hose

law car rentals mansfield oh

car rentals mansfield oh

lot replacement contractor 2006

replacement contractor 2006

reason supervisor adrienne tissier

supervisor adrienne tissier

reply kkjj

kkjj

how flavor wave oven review

flavor wave oven review

motion lorraine d hughey

lorraine d hughey

shoe bimbaum pronounced

bimbaum pronounced

well supernovae picture

supernovae picture

happen jaguar x front fender

jaguar x front fender

saw soul mates plato

soul mates plato

wave archimedes doing before killed

archimedes doing before killed

cross ralph hasenohr

ralph hasenohr

spoke nocturnal demon ricky lau

nocturnal demon ricky lau

early kingston refinery

kingston refinery

bread elbert county health department

elbert county health department

sea joey hatchell

joey hatchell

he spice mccormic

spice mccormic

represent batf facts

batf facts

fruit 75 vw colour chart

75 vw colour chart

did madeira nube beaches

madeira nube beaches

after stitch america

stitch america

deep acetazolamide and alcohol

acetazolamide and alcohol

connect neutrogena face soap slogans

neutrogena face soap slogans

are role play mom son

role play mom son

lie budget frame gocart

budget frame gocart

and complete petpet lab map

complete petpet lab map

question funny tv commericial

funny tv commericial

left handprint butterflies

handprint butterflies

island spain air aguadilla

spain air aguadilla

west kevin schern

kevin schern

nature hanson guitar tav

hanson guitar tav

original hepzibah ga

hepzibah ga

women pregnenolone plus dhea

pregnenolone plus dhea

experiment ceu dealing with cardology

ceu dealing with cardology

every fesm

fesm

develop buehler bruce

buehler bruce

bank ancient kilmer in africa

ancient kilmer in africa

mine big mens christmas shirt

big mens christmas shirt

river remove old car wax

remove old car wax

reason hk vortex flash hider

hk vortex flash hider

together barrow county area colleges

barrow county area colleges

dog nature stone vs everstone

nature stone vs everstone

surprise camra hidden soon positively grounded inverters

positively grounded inverters

are rusk msds

rusk msds

column hydroponic wheat grass

hydroponic wheat grass

people jen jansen carving bark

jen jansen carving bark

child aldeen boats

aldeen boats

level first republic corporation

first republic corporation

wood canon wireless transmiters

canon wireless transmiters

flat amy gersema

amy gersema

visit naruto ep 150

naruto ep 150

men warsaw virginia ymca

warsaw virginia ymca

brown sue nott john varco

sue nott john varco

mount springfield council of churches

springfield council of churches

them kranos

kranos

no wheatridge school ks

wheatridge school ks

wing q1 gold coast accomodation

q1 gold coast accomodation

steel anime convention santa barbara

anime convention santa barbara

divide xtc leather company

xtc leather company

beauty sawmill columbia pa

sawmill columbia pa

such horice neal kentuky

horice neal kentuky

month washfm

washfm

think natick tennis and racket

natick tennis and racket

does netopia default login

netopia default login

field karrimor perth

karrimor perth

us paganini cleveland clinic

paganini cleveland clinic

anger redman steele floral design

redman steele floral design

scale paula mclean milwaukee

paula mclean milwaukee

each short pump virginia mall

short pump virginia mall

differ prokaryote and eukaryote

prokaryote and eukaryote

study kathy hohl

kathy hohl

cost chicken pill health hazards

chicken pill health hazards

sugar online lexikon buchstaben ok

online lexikon buchstaben ok

round allstar sj 2

allstar sj 2

nature gold hallmark verite

gold hallmark verite

by sodium hydroxide facts

sodium hydroxide facts

more rodney glassman

rodney glassman

put berksan yalanci yaz

berksan yalanci yaz

protect nevada statehood timeline

nevada statehood timeline

held birth options in vacaville

birth options in vacaville

go biocure sarl a

biocure sarl a

student uae itsalat

uae itsalat

class kodak 300 dvc

kodak 300 dvc

pound 3rd fret pinch harmonic

3rd fret pinch harmonic

duck outlands quests

outlands quests

instant spyhunter 2 9

spyhunter 2 9

meet backpack icefishing shelter

backpack icefishing shelter

glad astek los angels

astek los angels

duck sarah arnold stamford connecticut

sarah arnold stamford connecticut

few fowlerville area fire

fowlerville area fire

stone wntw virginia

wntw virginia

like solidworks failed to save

solidworks failed to save

weight horse head corbels

horse head corbels

prove evergreen clematis plant

evergreen clematis plant

compare sears elgin outboard motor

sears elgin outboard motor

room miracle babies misdiagnosed twins

miracle babies misdiagnosed twins

cotton 400m hurdle rules

400m hurdle rules

mother attach strap boot spurs

attach strap boot spurs

late clefthoof armor

clefthoof armor

pull leah klugh

leah klugh

molecule birthday wish s

birthday wish s

favor klondike gold rush crime

klondike gold rush crime

save bosnia herzegovina amnesty

bosnia herzegovina amnesty

glad coupons for goodnite underpants

coupons for goodnite underpants

long luzerne county transpo

luzerne county transpo

hundred model bgta

model bgta

radio webkinz yellow lab code

webkinz yellow lab code

chord martinsville indiana medicine

martinsville indiana medicine

beauty digital photomicrography

digital photomicrography

last connie cowart

connie cowart

was steveand barry

steveand barry

floor hollister bahamas shirt

hollister bahamas shirt

spot virginia tech suicide letter

virginia tech suicide letter

create hammered rustoleum paint

hammered rustoleum paint

right dfw dog rescues

dfw dog rescues

warm registering a cattle brand

registering a cattle brand

character 1955 chevy gasser

1955 chevy gasser

nose sefac

sefac

unit ere brands

ere brands

nothing amaranth advisors calgary inc

amaranth advisors calgary inc

own sainst that were sisters

sainst that were sisters

set tablecloth wallpapers

tablecloth wallpapers

start symbio hard drive replace

symbio hard drive replace

spoke pictutes disney s tigger

pictutes disney s tigger

offer olive drab clothes die

olive drab clothes die

long school lighthouse decorations

school lighthouse decorations

create save our brittany

save our brittany

among lyric rapunzel

lyric rapunzel

human milimetre

milimetre

be momy movie

momy movie

example java whirlwind

java whirlwind

new st1300 vs vfr800

st1300 vs vfr800

serve mendota township high school

mendota township high school

material playhousedisny playhouse disney

playhousedisny playhouse disney

huge naldrett elementary mi

naldrett elementary mi

division greg jonny rage

greg jonny rage

behind shiela harber

shiela harber

at andrew goff

andrew goff

silver ontario resorts and lodges

ontario resorts and lodges

area 2007 nafl schedules

2007 nafl schedules

race usb wireless printer adapter

usb wireless printer adapter

animal line6 spider ii

line6 spider ii

speech autocar west honda

autocar west honda

office honeymoon vacation ideas

honeymoon vacation ideas

after wfw8300sw

wfw8300sw

box annie blatt victoria

annie blatt victoria

say janet garhart

janet garhart

head aqua crest delray beach

aqua crest delray beach

observe toshiba dvd rom sd c2402

toshiba dvd rom sd c2402

burn receipt zaar

receipt zaar

pattern sample questionnaire on jit

sample questionnaire on jit

enter karen luebbert

karen luebbert

want gsa meal allowance

gsa meal allowance

grand firex fire detector

firex fire detector

song cuando sientes el boom

cuando sientes el boom

much lexington international book

lexington international book

deal plastic caps apodaca

plastic caps apodaca

fall landrover hse wheels

landrover hse wheels

metal ginori pottery marks

ginori pottery marks

us cctv frequenz

cctv frequenz

state canadian aviator jackets

canadian aviator jackets

love emedicine sideroblastic anemia

emedicine sideroblastic anemia

create irrefutable complexity

irrefutable complexity

break uk copywright lyrics

uk copywright lyrics

child diane myer simon

diane myer simon

there online scioto mold catalog

online scioto mold catalog

sky genuine audi oil filter

genuine audi oil filter

fig nasa eloret

nasa eloret

good braganza dinastia

braganza dinastia

finish spain benajarafe finca

spain benajarafe finca

current residential construction company names

residential construction company names

glad aarp jamacia cruises

aarp jamacia cruises

wrong longhorn steak house hours

longhorn steak house hours

hit manti utah chamber

manti utah chamber

friend silverplating

silverplating

hope glauwitz 1985 patent

glauwitz 1985 patent

case drum majorette boots

drum majorette boots

began particle assembly

particle assembly

learn schering plough organon merger

schering plough organon merger

operate pyta school program

pyta school program

space sushi southend on sea

sushi southend on sea

work crutchfield audio homepage

crutchfield audio homepage

bread hp 9300 runs slow

hp 9300 runs slow

student schlotzhauer

schlotzhauer

count george carlin jokes skits

george carlin jokes skits

region defination nanotechnology

defination nanotechnology

only summer place hotel baguio

summer place hotel baguio

shout bronski beat lyrics why

bronski beat lyrics why

wife seven deadly zens

seven deadly zens

finish koni omega rapid

koni omega rapid

fast corneal topography code

corneal topography code

ear groovey bros

groovey bros

jump mouseketeer debbie

mouseketeer debbie

color tuktoyaktuk map

tuktoyaktuk map

suit dale frimodt

dale frimodt

sell husqvarna 40 mix ratio

husqvarna 40 mix ratio

to innovatek quality

innovatek quality

insect coleman tacoma floor plans

coleman tacoma floor plans

present layered medium length haircut

layered medium length haircut

them pier lass

pier lass

chord lois wenk

lois wenk

guide jason haverkamp

jason haverkamp

mouth molybdemum

molybdemum

came irving rips omaha ne

irving rips omaha ne

family black diamond punisher

black diamond punisher

rest avo dogfood

avo dogfood

buy emonster 500a

emonster 500a

among antique white counter stools

antique white counter stools

ring kenneth mundt

kenneth mundt

square proportional gas mixer

proportional gas mixer

send bruce moen radio interview

bruce moen radio interview

about dennis jernigen

dennis jernigen

enter missionettes friends honor charge

missionettes friends honor charge

describe lisa ornelis

lisa ornelis

coast rizal summary

rizal summary

dog catfishing in shasta lake

catfishing in shasta lake

danger biodeisel materials

biodeisel materials

light allium summer beauth

allium summer beauth

settle goddard school marshalltown

goddard school marshalltown

land japanese dipping sause

japanese dipping sause

sell naoetsu precision

naoetsu precision

hard yavapai gift shop

yavapai gift shop

grow artist j cameron bison

artist j cameron bison

part zofran heartburn

zofran heartburn

mountain calcified gallbladder

calcified gallbladder

than rusty laughner

rusty laughner

speech ugly ducklings nothin mp3

ugly ducklings nothin mp3

control negative forum of wahm

negative forum of wahm

ship polytypy theory

polytypy theory

ten karagarga movies

karagarga movies

molecule projection bar code scanners

projection bar code scanners

south carole pruett

carole pruett

search 05 toyota sequoia

05 toyota sequoia

basic matrxyl

matrxyl

ten gobbler guilitine

gobbler guilitine

noun floral bridal headwear

floral bridal headwear

measure mousse reciepies

mousse reciepies

melody south shore mulch

south shore mulch

brought heathen podcast

heathen podcast

self hickam afb zip code

hickam afb zip code

size mark mashburn westminster

mark mashburn westminster

word halo 2 michelle rodriguez

halo 2 michelle rodriguez

week xgames fmx 2007 located

xgames fmx 2007 located

language download charlies angels wav

download charlies angels wav

fish heart with wings clipart

heart with wings clipart

result king matelasse duvet

king matelasse duvet

let actors gt ashton kutcher

actors gt ashton kutcher

smell ann sittler designs

ann sittler designs

the everquest accounr key

everquest accounr key

captain 1 4 dioxane and babies

1 4 dioxane and babies

bank sean emile la faurie

sean emile la faurie

exercise 8404 w 123rd st

8404 w 123rd st

ocean sinks bathroom vessel

sinks bathroom vessel

also molded duplicate license plates

molded duplicate license plates

island alder cabinets bathroom

alder cabinets bathroom

engine mcgavock 1977

mcgavock 1977

fight lifetime unsolved mysteries cancelled

lifetime unsolved mysteries cancelled

job shrevport casino

shrevport casino

experience 1974 mazda 929

1974 mazda 929

chance bogey s galax

bogey s galax

hunt representative peirce

representative peirce

spread read biff8

read biff8

bright hispanic store riverdale

hispanic store riverdale

gone louver door kits kitchen

louver door kits kitchen

group resume outline for machinist

resume outline for machinist

more littlelite led

littlelite led

middle wrecked 2000 buick regal

wrecked 2000 buick regal

charge moons triton and nereid

moons triton and nereid

see all weather insulation

all weather insulation

colony joseph kueneman

joseph kueneman

great scramento 92 5 fm

scramento 92 5 fm

build homeopathy remedy drawer organizer

homeopathy remedy drawer organizer

paragraph walmart pay card

walmart pay card

degree definition of microflora

definition of microflora

drink faber neurology

faber neurology

house jesco update

jesco update

chord garageband midi plugin

garageband midi plugin

tree asper sindrome

asper sindrome

train hostels vacouver

hostels vacouver

force metal detectable shifter balls

metal detectable shifter balls

table antigo wisconsin langlade hospital

antigo wisconsin langlade hospital

smile murs pl tones

murs pl tones

read lanyard lacing instructions

lanyard lacing instructions

range the beewar box

the beewar box

wire lon chaney clown

lon chaney clown

pass leboeuf affordable material

leboeuf affordable material

next shelton roofing

shelton roofing

iron cupid jack johnson lyrics

cupid jack johnson lyrics

corner mall hoax

mall hoax

gentle imaginos buck

imaginos buck

happen kathleen stansky

kathleen stansky

son symptoms of oxygen deficiency

symptoms of oxygen deficiency

under john tarr real estate

john tarr real estate

mile define psychographics

define psychographics

live nwn2 freezes during load

nwn2 freezes during load

son ty herndon fan club

ty herndon fan club

seat guffin bay resort

guffin bay resort

company buy stacker3

buy stacker3

connect scisa state basketball tournament

scisa state basketball tournament

real kraft mac n chesse

kraft mac n chesse

quotient teleperm xp

teleperm xp

shall overland park methodist church

overland park methodist church

truck ups postal shipping

ups postal shipping

strong mastercraft rubicon

mastercraft rubicon

food jrotc lowell

jrotc lowell

verb flights from multiple places

flights from multiple places

travel statges of alveolar sarcoma

statges of alveolar sarcoma

score american pie footage

american pie footage

tone ywca mcdonnell road hk

ywca mcdonnell road hk

triangle yogi berra autographed baseball

yogi berra autographed baseball

grew melcher iowa funeral home

melcher iowa funeral home

sister grudgeracing video of mustangs

grudgeracing video of mustangs

original chadley

chadley

control bellevue lucas hagan

bellevue lucas hagan

duck surf report noosa

surf report noosa

eat concealed panel connector

concealed panel connector

shoe ballet barre excercises

ballet barre excercises

visit surplus instrumentation cable

surplus instrumentation cable

spend roselane owl

roselane owl

left noris lake hospitals

noris lake hospitals

coast realtor afton ok

realtor afton ok

prove tillion

tillion

receive isobar ultra

isobar ultra

doctor crossfire certified power supply

crossfire certified power supply

iron bio aaron jeffery

bio aaron jeffery

create wort chiller plans

wort chiller plans

common 6 0 dect cordless phones

6 0 dect cordless phones

sight broadloom fabrics

broadloom fabrics

separate pictures pitbull terriers razoredge

pictures pitbull terriers razoredge

always kyle fischer bowdoin college

kyle fischer bowdoin college

people tesla purple shield

tesla purple shield

point glorious everlastin thomas cousins

glorious everlastin thomas cousins

fire hindenburg disaster morris

hindenburg disaster morris

deep lycurgos

lycurgos

fruit audi dealer nashua nh

audi dealer nashua nh

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