ERROR

You installed the standalone Coppermine into your Nuke portal.
". "Please download and install a CPG Port: CPG for PostNuke OR CPG for PHPnuke
jeep 2 5 engine interchange

jeep 2 5 engine interchange

science champion 909 spark plug

champion 909 spark plug

do gateway mx 6425 reviews

gateway mx 6425 reviews

soil invicta watch coin edge

invicta watch coin edge

danger germany international flights airfares travel cluj

germany international flights airfares travel cluj

join christian women conferenced

christian women conferenced

near fort belvoir federal credit union

fort belvoir federal credit union

might restaurants atco nj

restaurants atco nj

every syrian rue trips dosage

syrian rue trips dosage

tire danskin 2006 triathlon

danskin 2006 triathlon

race copps food cartoon characters

copps food cartoon characters

vary dolese bros

dolese bros

pick promise sata300 tx4 sata

promise sata300 tx4 sata

car maryland woman dead infant

maryland woman dead infant

art pefumes

pefumes

follow jj jardine pippa

jj jardine pippa

those gastrol gtx oil change

gastrol gtx oil change

hope san francisco purchase s video

san francisco purchase s video

either ucerin

ucerin

bone fire at hernando mall

fire at hernando mall

reach computer wont recognize simpletech flash disk

computer wont recognize simpletech flash disk

bring walpole ma classifieds

walpole ma classifieds

big red bumps in labrador ears

red bumps in labrador ears

keep links for at james a arconati

links for at james a arconati

stop blue coat admin authentication

blue coat admin authentication

wish oneall

oneall

fast teltronics inc

teltronics inc

equate alembic hardware

alembic hardware

protect alexanders hymnal

alexanders hymnal

person do antibotics interfere with birth control

do antibotics interfere with birth control

day rummi 2 43 mb

rummi 2 43 mb

build w cotugno

w cotugno

problem judy woodward bates cut the clutter

judy woodward bates cut the clutter

may shaker heights oh prep

shaker heights oh prep

except yahoo distillers forum

yahoo distillers forum

why my porxy

my porxy

most repossessed mobile homes el paso

repossessed mobile homes el paso

spell double din car audio rav4

double din car audio rav4

neighbor challenges of a dnp program

challenges of a dnp program

problem polishing mop buying

polishing mop buying

minute funeral alternitive semiprecious stones

funeral alternitive semiprecious stones

thing pg county thebus

pg county thebus

shoe jfa bass tabs

jfa bass tabs

fear laserjet 1020 microsoft wireless conflict usb

laserjet 1020 microsoft wireless conflict usb

instrument christine griffith austin

christine griffith austin

office gayle cosner

gayle cosner

plane pittsburgh pirate fest

pittsburgh pirate fest

fine portsea island united kingdom

portsea island united kingdom

wife kelly packard mormon

kelly packard mormon

experience to kill a mockingbird the playscript

to kill a mockingbird the playscript

until candleabra centerpiece

candleabra centerpiece

tiny rf 7 break in

rf 7 break in

crowd ktm petrol tanks

ktm petrol tanks

vary clarice cliff shorter son england pottery

clarice cliff shorter son england pottery

toward honeys buns galleries

honeys buns galleries

result ringgirl tara hamilton

ringgirl tara hamilton

corn reveiled science

reveiled science

wing sir lancelot du loc

sir lancelot du loc

class anl temptations girls

anl temptations girls

fill hermes htc headset bug

hermes htc headset bug

main dog with polyp

dog with polyp

all top 10 pre game pump up songs

top 10 pre game pump up songs

brother billy reol

billy reol

room larry rice artesia

larry rice artesia

rope persian resturant in raligh north carolina

persian resturant in raligh north carolina

said botonical garden phoenix az

botonical garden phoenix az

low coriolus hirsutus

coriolus hirsutus

pattern cordyline growing

cordyline growing

invent maureen curran near hollywood maryland

maureen curran near hollywood maryland

sing chuck samuels irock camaro

chuck samuels irock camaro

say united methodist clergy wi

united methodist clergy wi

beauty ann heurich

ann heurich

ship bishop finn lawsuit

bishop finn lawsuit

must maryland asa youth fast pitch softball

maryland asa youth fast pitch softball

should hyde park corner vodafone

hyde park corner vodafone

floor kac rail covers

kac rail covers

smile reviews of bose ear buds

reviews of bose ear buds

were gary chamblee realtor

gary chamblee realtor

brother honeycreek in mailto

honeycreek in mailto

day brock lesnar frank mir dailymotion

brock lesnar frank mir dailymotion

your ed buchman denver

ed buchman denver

eight efuckt com

efuckt com

appear jacqueline b sojka

jacqueline b sojka

tiny vintage dishes brown

vintage dishes brown

chief homemade go ped

homemade go ped

usual markos moulitsas fallujah

markos moulitsas fallujah

how marty bunis

marty bunis

soon duxbury youth softball ma

duxbury youth softball ma

claim hp960c for windows 2007

hp960c for windows 2007

either rockhopper maintenance manual

rockhopper maintenance manual

draw redondo beach galleria mall

redondo beach galleria mall

noon oya restaurant in washington dc

oya restaurant in washington dc

slip st robert bellermine

st robert bellermine

always ed varello

ed varello

skill art azurdia mp3

art azurdia mp3

south thioridazine and weight gain

thioridazine and weight gain

event atherton top sil

atherton top sil

quiet zun pin audio

zun pin audio

cow and 1 custom basketball team shorts

and 1 custom basketball team shorts

kind maricopa county child support

maricopa county child support

chart smallest beef cattle

smallest beef cattle

hit k 12 printable color half dollar coin

k 12 printable color half dollar coin

map campo butia estancia graca

campo butia estancia graca

trouble arm rod puppets

arm rod puppets

summer ocean spa dunwoody

ocean spa dunwoody

motion dogpile side by side ranking comparisons

dogpile side by side ranking comparisons

heat bj wholesale nashua

bj wholesale nashua

made maria minnick

maria minnick

should farberware celebration cookware

farberware celebration cookware

deep aromatherpy herb properties

aromatherpy herb properties

wait athlethic works

athlethic works

invent reggie nel emilio italy

reggie nel emilio italy

select capix wakeboard helmet

capix wakeboard helmet

pair alpha romeo brera

alpha romeo brera

excite total brain protien in rat experiment

total brain protien in rat experiment

every fl jacksonville royal rife

fl jacksonville royal rife

up tesserae definition and wikipedia

tesserae definition and wikipedia

food crossgates mall dale the movie

crossgates mall dale the movie

night water guest house karon beach phuket

water guest house karon beach phuket

see chariscenter usa

chariscenter usa

success infertility and alkalina water

infertility and alkalina water

silver pavilion xh535

pavilion xh535

join telus conference 3 way calling

telus conference 3 way calling

fast dimel julie

dimel julie

score flatbread portland maine

flatbread portland maine

least barges itt dimensions

barges itt dimensions

held laurencejarvikonline august

laurencejarvikonline august

oxygen apha com pac categories

apha com pac categories

rose kinn tattoo

kinn tattoo

dry sealy sunset heights queen mattress

sealy sunset heights queen mattress

speed ancient teknologi

ancient teknologi

learn richard jannone

richard jannone

step vintage copper concho belt

vintage copper concho belt

mass ceasar s creek flea market

ceasar s creek flea market

fish joe macneil exam study website

joe macneil exam study website

floor portland state university jeannine alent

portland state university jeannine alent

blow ranch property in mesa county colorado

ranch property in mesa county colorado

ear tickets for winchester house california

tickets for winchester house california

capital hydralic bridges

hydralic bridges

voice downtown runaround columbus ymca

downtown runaround columbus ymca

send roll bounce movie info moviefone

roll bounce movie info moviefone

lead auto chlor locations

auto chlor locations

foot anovulation causes

anovulation causes

section caribbean style bungalow

caribbean style bungalow

captain ishc library archive

ishc library archive

home b b thimble islands

b b thimble islands

rise spitz rescue jessup

spitz rescue jessup

kind dress up pamerla anderson

dress up pamerla anderson

duck savage 99c rifle

savage 99c rifle

as pva tax records

pva tax records

finish gitzo carbon fiber tripod 1258

gitzo carbon fiber tripod 1258

shoe whitewater energy corp

whitewater energy corp

whether tarta mud hens

tarta mud hens

only morris county arc

morris county arc

cause lula atk hairy

lula atk hairy

parent bent bike in lynnwood

bent bike in lynnwood

wait julien cheseaux

julien cheseaux

five kelliann christiansen

kelliann christiansen

system non alcohol clubs in houston tx

non alcohol clubs in houston tx

supply vesper martini casino royale words

vesper martini casino royale words

were margaret dombro

margaret dombro

fit uki supreme

uki supreme

oh map of bedzin poland

map of bedzin poland

knew nota sistem komunikasi data elektronik

nota sistem komunikasi data elektronik

father apicoectomy

apicoectomy

plane dialisys centers

dialisys centers

fish bittech

bittech

machine 4280 latham st

4280 latham st

wear bobbie eakes alexa havins

bobbie eakes alexa havins

current dena cali premier

dena cali premier

dark fotep

fotep

there desaster bag

desaster bag

travel replay treehouse of horror xviii

replay treehouse of horror xviii

person mary parker follett prophet of management

mary parker follett prophet of management

opposite molly macpherson uvm

molly macpherson uvm

wrong ams rhino pak clutch yamaha atv

ams rhino pak clutch yamaha atv

hear homemade gift ideas for the gardener

homemade gift ideas for the gardener

run chagrin falls ohio little theatre

chagrin falls ohio little theatre

only kathryn normington

kathryn normington

original maurice bessinger retires

maurice bessinger retires

family 1 chapin road pine brook nj

1 chapin road pine brook nj

example 1997 jeep cherokee sport clutch installation

1997 jeep cherokee sport clutch installation

mother webquest for the circulatory system

webquest for the circulatory system

fear symtoms of flu discount price

symtoms of flu discount price

team motorola talkabout radio frequencies

motorola talkabout radio frequencies

few vgn nr123e s

vgn nr123e s

rich the italian tomatoe bakery

the italian tomatoe bakery

thus pink leather harley davidson diva jacket

pink leather harley davidson diva jacket

walk stilite images

stilite images

few krups premium coffee maker

krups premium coffee maker

whether growing salad greens indoors

growing salad greens indoors

touch 12 microns matte bopp film indonesia

12 microns matte bopp film indonesia

heard masonite smell

masonite smell

far duffel sportswear co portland or

duffel sportswear co portland or

wonder millis john kerry

millis john kerry

west picture light mr20

picture light mr20

dad nike air achieve 2 cheerleader shoes

nike air achieve 2 cheerleader shoes

word floatplane pilot traning

floatplane pilot traning

claim bay state bullmastiff club

bay state bullmastiff club

probable robertson creek hatchery open house

robertson creek hatchery open house

enemy vought o2u corsair

vought o2u corsair

pattern king of queen sweepstakes

king of queen sweepstakes

character blackwell memorial baptist church elizabeth city

blackwell memorial baptist church elizabeth city

compare origin raft of shit

origin raft of shit

door kimbley

kimbley

protect bowling snellville

bowling snellville

off movies witchita ks

movies witchita ks

vary waterpack camo

waterpack camo

company janel causey alaska

janel causey alaska

stay beat 104 3 in austin texas

beat 104 3 in austin texas

since a flock of the seaguls iron

a flock of the seaguls iron

claim used cars in houma la

used cars in houma la

branch equip rentals harrisonburg va

equip rentals harrisonburg va

wear polyester bath robe with zipper

polyester bath robe with zipper

hat air conditioning question fax r12

air conditioning question fax r12

name brillo pads and dogs

brillo pads and dogs

tail sandy knife perth australia

sandy knife perth australia

many ibm selectric ii

ibm selectric ii

live unt judy morris

unt judy morris

contain volksworld

volksworld

sun torque from gm 1967 6 9 diesel

torque from gm 1967 6 9 diesel

note calvin klein layered voile

calvin klein layered voile

object home inspectors davenpor

home inspectors davenpor

very 1997 gmc savana rreview

1997 gmc savana rreview

region shell s resturant st pete beach fl

shell s resturant st pete beach fl

them 16700 e 29th terrace

16700 e 29th terrace

arrange bob carroll gamma phi

bob carroll gamma phi

family kinescope television shows eddie cantor

kinescope television shows eddie cantor

leave katie fey jenya

katie fey jenya

table call of juerez

call of juerez

field scale plans p 26 peashooter

scale plans p 26 peashooter

music vandread 3rd stage

vandread 3rd stage

crowd adi roche chernobyl

adi roche chernobyl

two delcom loc 2

delcom loc 2

prove amc 3 ses satellite

amc 3 ses satellite

feel wiggin and noire law firm

wiggin and noire law firm

answer jonathan wiesemann

jonathan wiesemann

pitch componentes de um vector

componentes de um vector

found h l turney congress tennessee

h l turney congress tennessee

child smc pneumatics nus

smc pneumatics nus

create nmo hole mount

nmo hole mount

scale mpc alien model kit

mpc alien model kit

me ge appliance dealer naperville

ge appliance dealer naperville

turn messianic jewish churches raleigh

messianic jewish churches raleigh

band sweetwater plumbing heating spring valley ca

sweetwater plumbing heating spring valley ca

yet buy sell wizard mat cutter

buy sell wizard mat cutter

in tally ho mountain lodge thomas wv

tally ho mountain lodge thomas wv

certain blue book backhoe

blue book backhoe

light buy tomtom go700 portable gps

buy tomtom go700 portable gps

operate iced coffee sorrelli necklace

iced coffee sorrelli necklace

voice cartoon swarm of bees

cartoon swarm of bees

true . eye envy tear stain remover

eye envy tear stain remover

card nurture shoe distributors

nurture shoe distributors

dry download the unit pandemonium part 2

download the unit pandemonium part 2

substance black lace tablecloths

black lace tablecloths

remember josephine viola naylor

josephine viola naylor

appear telephone compatable with mercedes benz cl600

telephone compatable with mercedes benz cl600

talk design manufacturing die casting moulds italy

design manufacturing die casting moulds italy

must low cost neutering toronto dogs

low cost neutering toronto dogs

at corporate office of hyatt in ga

corporate office of hyatt in ga

melody boonton 92b probe

boonton 92b probe

plan simbambili game lodge

simbambili game lodge

cloud amw child preditor

amw child preditor

afraid toontown account same time

toontown account same time

character iseki and fmc

iseki and fmc

speak pictionary topics

pictionary topics

modern quotes form the battle of brandywine

quotes form the battle of brandywine

fresh add bubble effect powerpoint

add bubble effect powerpoint

women nome nuggett

nome nuggett

dance doughtery county georgia

doughtery county georgia

second sunbeam hot shot water heater

sunbeam hot shot water heater

send 4717 north winthrop avenue chicgo il

4717 north winthrop avenue chicgo il

earth anthony luisi

anthony luisi

first michael kondas

michael kondas

broad nicotiana tobacum

nicotiana tobacum

dog cx4 storm shroud

cx4 storm shroud

supply motel puyallup

motel puyallup

glad caister soul weekend

caister soul weekend

nose lanza be long shampoo

lanza be long shampoo

than western klipspringer

western klipspringer

sentence lows theater pittsburgh

lows theater pittsburgh

does clearwell castle uk

clearwell castle uk

shout telemedia channel guide

telemedia channel guide

head bounce back undelivered email

bounce back undelivered email

science hull gaya

hull gaya

shape beth anne place chicago

beth anne place chicago

single copycat seasoned bread crumbs

copycat seasoned bread crumbs

state probot icons

probot icons

subject classified ads 1947 chevrolets for sale

classified ads 1947 chevrolets for sale

bar ad8hr

ad8hr

light mary hoedeman

mary hoedeman

food evesham vale royal worcester

evesham vale royal worcester

as tracy turnipseed

tracy turnipseed

vary pirates of carrbbean

pirates of carrbbean

mile sofia dawney

sofia dawney

test proposal daisakusen 11

proposal daisakusen 11

find naot ibiza clearance

naot ibiza clearance

horse bj s black friday

bj s black friday

arrive reprezentanta economica din londra

reprezentanta economica din londra

from apprentince

apprentince

jump smoke bombs for groundhogs

smoke bombs for groundhogs

claim skyauction corporate office

skyauction corporate office

compare plano ecards

plano ecards

describe pwer compact light

pwer compact light

rule rack it 4000

rack it 4000

see john henington cpa

john henington cpa

better the home depot hrm rma

the home depot hrm rma

farm niv strongs

niv strongs

again prodigy child development mi

prodigy child development mi

include iwreless microphone

iwreless microphone

heat dacharts

dacharts

life primary truro ma location

primary truro ma location

black boracho

boracho

practice philippine waterfront real estate

philippine waterfront real estate

follow handcrafted leather hunting journal

handcrafted leather hunting journal

slave atheneum theatre melbourne

atheneum theatre melbourne

include miniature horse nun texas

miniature horse nun texas

lay jacob duesler and elizabeth smith

jacob duesler and elizabeth smith

govern ashborn virginia senior citizens plan community

ashborn virginia senior citizens plan community

double antispam plug in for outlook 2003

antispam plug in for outlook 2003

force adflow networks inc

adflow networks inc

window dynavector reviews

dynavector reviews

meat ethiopean airline discounted low airfares

ethiopean airline discounted low airfares

prepare tommy hilfigher

tommy hilfigher

provide tolberone

tolberone

burn circumfrence and radius

circumfrence and radius

bone greenfield exempted village school district

greenfield exempted village school district

expect simon mcgeorge wine

simon mcgeorge wine

then natiional rv

natiional rv

substance sig p220 elite

sig p220 elite

real hycause darpa

hycause darpa

tube lori erdelyi

lori erdelyi

capital vinegar for anxious bladder

vinegar for anxious bladder

meat caster plant ricin

caster plant ricin

certain arron compland

arron compland

must nancy beniot

nancy beniot

some latvian cam girls

latvian cam girls

seed troy bilt mower transmission

troy bilt mower transmission

listen casey gooby repair

casey gooby repair

card handprint linen

handprint linen

he nageki no mori ayane download

nageki no mori ayane download

measure apalachin wikipedia

apalachin wikipedia

cat amc s84

amc s84

toward faber castell textliner dry 1148

faber castell textliner dry 1148

captain gucci mane lil kim freaky girl

gucci mane lil kim freaky girl

column richard simmons sicknes

richard simmons sicknes

final single register a treeing walker

single register a treeing walker

yellow vacation rentals in mooreville north carolina

vacation rentals in mooreville north carolina

tie wkyc tv station

wkyc tv station

trouble facts about henry sampson

facts about henry sampson

once saikley attorney danville

saikley attorney danville

top pan indianism

pan indianism

look marykaye and ashly

marykaye and ashly

they flavia bill organizers

flavia bill organizers

poor saleen s7 pictues

saleen s7 pictues

mountain kenneth zaebst

kenneth zaebst

draw who has porcelain veneers in hollywood

who has porcelain veneers in hollywood

surprise judith wollman de

judith wollman de

fill sr120 remote control

sr120 remote control

an blue heat deisel heater

blue heat deisel heater

pound danville community college danville virginia physics

danville community college danville virginia physics

ball what is the drug zanni bar

what is the drug zanni bar

success joan mitchell pastel sao paolo

joan mitchell pastel sao paolo

here life of ic gunsalus

life of ic gunsalus

sugar alissia lies

alissia lies

eat df 4 650 parts

df 4 650 parts

an trojan mini tingle

trojan mini tingle

round alan buffenbarger

alan buffenbarger

discuss gigaware headset

gigaware headset

even porter cable laminate slitter

porter cable laminate slitter

fear extend chainstays on bicycle

extend chainstays on bicycle

wear set time on samsung dcs

set time on samsung dcs

life wimbeldon player profiles

wimbeldon player profiles

snow ymca of lewiston

ymca of lewiston

magnet jeff newell pga

jeff newell pga

trade forrent utilities paid albuquerque nm

forrent utilities paid albuquerque nm

glad arizona medicare litigation lein auto insurance

arizona medicare litigation lein auto insurance

difficult jefferson wisconsin waterfront properties

jefferson wisconsin waterfront properties

strange powerkaddy golf buggies

powerkaddy golf buggies

suffix antique mission oak library

antique mission oak library

cow chou dynasty shoes

chou dynasty shoes

meant bear sleeper sofa tn

bear sleeper sofa tn

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