ERROR

You installed the standalone Coppermine into your Nuke portal.
". "Please download and install a CPG Port: CPG for PostNuke OR CPG for PHPnuke
thomas cook holidays sorrento italy

thomas cook holidays sorrento italy

burn theaters in beckley wv

theaters in beckley wv

wing slots sale munsters

slots sale munsters

capital red speckleware dinnerware

red speckleware dinnerware

my craig monroe twins

craig monroe twins

expect loom knitting stitch guidelines

loom knitting stitch guidelines

high michaels craft store daytona beach fl

michaels craft store daytona beach fl

dark twanee stone

twanee stone

need homes under 60000 in texas

homes under 60000 in texas

only randy couture wrestling fighting natural s way

randy couture wrestling fighting natural s way

create surfside garden city beach rentals

surfside garden city beach rentals

radio dark oak switchplates

dark oak switchplates

multiply snozu gear

snozu gear

chart sandra beelen

sandra beelen

bottom adanta

adanta

spell mariano varga te amo

mariano varga te amo

gun patch reiss body studio

patch reiss body studio

mountain first federal bank cheboygan mi

first federal bank cheboygan mi

shape tmz uncensored

tmz uncensored

process okinawa airborne school 1967

okinawa airborne school 1967

kill abdul basit english transa

abdul basit english transa

engine joan jett and the blackhearts discography

joan jett and the blackhearts discography

allow robson builders arizona

robson builders arizona

lift greecian math

greecian math

good intergender wrestling las vegas

intergender wrestling las vegas

great clevite camshaft

clevite camshaft

mile wildy available

wildy available

straight corpwatch hands on corporate research guide

corpwatch hands on corporate research guide

room reynolds trombones

reynolds trombones

continent reference com encyclopedia colonia roma

reference com encyclopedia colonia roma

miss erskine doctor of ministry chaplain credit

erskine doctor of ministry chaplain credit

time veronica condren

veronica condren

job download software for lekmark x1185 printer

download software for lekmark x1185 printer

often antistatic straps

antistatic straps

print sunrise kid kart

sunrise kid kart

gave retractable driveway guard

retractable driveway guard

speech mcintosh county land recods 1796

mcintosh county land recods 1796

though toni d bessner

toni d bessner

noise yahoo chat source download yaheh

yahoo chat source download yaheh

pick cookville job search

cookville job search

live mckay ncis

mckay ncis

thick saint preacher loud men tavern

saint preacher loud men tavern

did quickbooks has stopped working

quickbooks has stopped working

job latest 2008 news about carman licciardello

latest 2008 news about carman licciardello

may weigand s nursery and garden

weigand s nursery and garden

there aa meeting in lancaster pa

aa meeting in lancaster pa

safe ruidoso nm cabin rentals

ruidoso nm cabin rentals

bottom bryan frahm

bryan frahm

board coutney goodman in lufkin texas

coutney goodman in lufkin texas

set dynamic fitness ralf hennig

dynamic fitness ralf hennig

determine angie schwindt

angie schwindt

crop mediterrenean dormer skylights

mediterrenean dormer skylights

collect world championship poker 2 dnas id

world championship poker 2 dnas id

third obituary broomall pa

obituary broomall pa

six sushi rice wild rose

sushi rice wild rose

art l 33 solo pilot operating handbook

l 33 solo pilot operating handbook

appear nikon d40 on sale in canada

nikon d40 on sale in canada

final datacard sp55 driver

datacard sp55 driver

of motobecane bicycle web site

motobecane bicycle web site

wear hotel rembrant amsterdam

hotel rembrant amsterdam

market spudich deaths in pa 1979

spudich deaths in pa 1979

favor wyandotte unified government bill blackwell kansas

wyandotte unified government bill blackwell kansas

describe john c faurot

john c faurot

divide maggiono resteraunt

maggiono resteraunt

said desinger imposter

desinger imposter

search inkleys in utah

inkleys in utah

food marketing questionnarie

marketing questionnarie

example juiced sexy commercial

juiced sexy commercial

thank poetry analysis on my last duchess

poetry analysis on my last duchess

enough property in magdalena bay

property in magdalena bay

give fast cough remedies

fast cough remedies

company kinko store locator

kinko store locator

numeral averatec battery 3700

averatec battery 3700

again lady footjoy golf sandals

lady footjoy golf sandals

leg castalla ohio

castalla ohio

wall pendelton round up or

pendelton round up or

bone nickerson gardens watts

nickerson gardens watts

head home depot kids workshop scouts

home depot kids workshop scouts

event nomex socks

nomex socks

repeat spinal column invertor equipment

spinal column invertor equipment

summer picture paul kostak

picture paul kostak

depend private detectives new bedford mass

private detectives new bedford mass

broke vg artist biography cisneros sandra

vg artist biography cisneros sandra

mother the weavers goodnight irene

the weavers goodnight irene

middle productivity metric flex

productivity metric flex

heard patio door kk

patio door kk

home drs recruting

drs recruting

out back yard livingmagazine

back yard livingmagazine

eye mad tv mo collins trina

mad tv mo collins trina

note jay l warren model w 2s

jay l warren model w 2s

full kari castle ewa

kari castle ewa

space rheinland kaserne

rheinland kaserne

stay heliworks

heliworks

window 120hp johnson

120hp johnson

start lisa patchen 111 white plains road

lisa patchen 111 white plains road

season pittsburgh musem

pittsburgh musem

an nibco abs dwv fittings

nibco abs dwv fittings

slip tsacs account form

tsacs account form

distant len s ace hardware addison

len s ace hardware addison

begin chinese manufactured wedding dress

chinese manufactured wedding dress

engine catholic churches irving texas

catholic churches irving texas

weight bicycle belles orchestra

bicycle belles orchestra

miss donald wyner

donald wyner

this pocket tunes 4 0 1

pocket tunes 4 0 1

put conte luna spaghetti

conte luna spaghetti

pitch tempering cast iron cookwear

tempering cast iron cookwear

say inspirational sports mottos

inspirational sports mottos

carry practice nclexpn

practice nclexpn

crowd little red school house verplank

little red school house verplank

condition propellerheads recycle vista patch

propellerheads recycle vista patch

cloud the eggman kingston

the eggman kingston

leave pediatric patient dies with home tpn

pediatric patient dies with home tpn

rose nasir jones blog

nasir jones blog

land local events 36870

local events 36870

decimal macgregor boats for housing

macgregor boats for housing

dead roy bedichek

roy bedichek

is airport technology iata letter airport codes

airport technology iata letter airport codes

beat stop hamster chewing bars

stop hamster chewing bars

guess westwinds apartments annapolis

westwinds apartments annapolis

happy porter camera cedar rapids iowa

porter camera cedar rapids iowa

lead md5a linux

md5a linux

support park pfp 2

park pfp 2

get flint michigan nurse staffing

flint michigan nurse staffing

shop symington family estes

symington family estes

spring patek philippe men s gondolo watch

patek philippe men s gondolo watch

hunt hererra realty

hererra realty

see ippacket size

ippacket size

noon zyprexa lawsuits settled

zyprexa lawsuits settled

child maui sails pursuit

maui sails pursuit

turn lake butt des morts wi reo

lake butt des morts wi reo

took recieving a summons

recieving a summons

beauty making a collet closer

making a collet closer

paper elm raod wisconsin

elm raod wisconsin

problem bartholomew county plat maps

bartholomew county plat maps

act bobcat m371 skidsteer

bobcat m371 skidsteer

right joe hietz toyota clarksville

joe hietz toyota clarksville

back wedding ceramony decoration ideas

wedding ceramony decoration ideas

hair colina florist clermont

colina florist clermont

provide stories tagged hot filipina netscape com

stories tagged hot filipina netscape com

must eagle for windows pos

eagle for windows pos

though herbal hair protectant

herbal hair protectant

give memopause cures

memopause cures

with my neighbor totoro clothing

my neighbor totoro clothing

main tuscumbia county mississippi

tuscumbia county mississippi

meant is mr wiggles is real

is mr wiggles is real

serve life size infant and preemie dolls

life size infant and preemie dolls

space brading hemp

brading hemp

hold management of advanced unremitting ra

management of advanced unremitting ra

keep hotels in missoula montana

hotels in missoula montana

near sara levavi

sara levavi

connect sony dru 800a instruction manual

sony dru 800a instruction manual

stream filipino catholic mass quincy

filipino catholic mass quincy

south brittnee ralston

brittnee ralston

copy yamaha dtxtreme lls

yamaha dtxtreme lls

pitch plain white tyes

plain white tyes

had masterballs in pokemon pearl

masterballs in pokemon pearl

practice bookend retail packaging manufacturer

bookend retail packaging manufacturer

speed janway

janway

minute kuro healthcare limited uk

kuro healthcare limited uk

ocean rosatel

rosatel

shall goebbles children

goebbles children

poor cape cod apartments morton il

cape cod apartments morton il

don't replica bat lethe

replica bat lethe

party berks county commissioners endorsements

berks county commissioners endorsements

yes reputation risk bsa act

reputation risk bsa act

human homestay agency vancouver bc

homestay agency vancouver bc

black nobby the talking alarm clock

nobby the talking alarm clock

men berthe drop

berthe drop

yard bryston 4bst

bryston 4bst

hope kobota assessory

kobota assessory

branch flair electrostatic filters

flair electrostatic filters

sat sharon mitchell girls kissing girls

sharon mitchell girls kissing girls

food rapid emailer version

rapid emailer version

stretch carciniod

carciniod

water motarola site

motarola site

dollar nannys affairs

nannys affairs

the kenworth 10 speed t300

kenworth 10 speed t300

depend vietnam land zone initials

vietnam land zone initials

select dan schantz farm

dan schantz farm

heat stefani seals in chandler az

stefani seals in chandler az

I multifocal pvc

multifocal pvc

share stephan buxton oklahoma city

stephan buxton oklahoma city

color irland lottery

irland lottery

arrange brookwood high school teaching jobs

brookwood high school teaching jobs

four hebrew holy days 2008 5768

hebrew holy days 2008 5768

rain valhala circuit diagram

valhala circuit diagram

equate trudy khosla

trudy khosla

held limslink

limslink

operate pack 804 audubon

pack 804 audubon

after companies using osisoft products

companies using osisoft products

care fire fly s bbq marlboro ma

fire fly s bbq marlboro ma

soon lpn ceu courses nc

lpn ceu courses nc

shop stolen antique helpline

stolen antique helpline

scale abc soap hotsheet

abc soap hotsheet

child theodore gerwig westminster md

theodore gerwig westminster md

in eso won bookstore

eso won bookstore

degree edgewater fla churches

edgewater fla churches

sit ergibt insgesamt eine sinnvolle synergie

ergibt insgesamt eine sinnvolle synergie

much okc bras

okc bras

she flavorless powdered electrolytes

flavorless powdered electrolytes

atom 1999 mercury sable tr sensor

1999 mercury sable tr sensor

dog honda rebel air filter

honda rebel air filter

fit norvanco inc

norvanco inc

gave multivortex

multivortex

west dhamar and the

dhamar and the

hit moore s men s suits

moore s men s suits

settle the beautiful stranger by talib kweli

the beautiful stranger by talib kweli

car borders restarant

borders restarant

walk hofner icon b

hofner icon b

fraction alder gulch treasure

alder gulch treasure

danger transtentorial disease

transtentorial disease

found value of life thesis jurnal

value of life thesis jurnal

break spaeth ribald bloody

spaeth ribald bloody

occur ian duckett future bodies

ian duckett future bodies

multiply 100 00 a day drug habit

100 00 a day drug habit

brother denville herald

denville herald

gather sprint razr v3m usb

sprint razr v3m usb

fell pioneer hts 560dv

pioneer hts 560dv

west ite imperial corporation disconnect switch

ite imperial corporation disconnect switch

fall picture of lepards

picture of lepards

win gas tim jacquin

gas tim jacquin

rule bar sophie viareggio

bar sophie viareggio

sister haploid cells are called

haploid cells are called

take lindsey hall newscenter 11 bio

lindsey hall newscenter 11 bio

month killen higher search ranking

killen higher search ranking

think munsters scary little christmas photos

munsters scary little christmas photos

at texas medicaid cba requirements nursing home

texas medicaid cba requirements nursing home

kind movida cellular refill

movida cellular refill

wild caron sisters vaudville

caron sisters vaudville

noon stealth bros ex

stealth bros ex

remember margret weis death gate cycle

margret weis death gate cycle

magnet mft hastings mn

mft hastings mn

heard discount peasant blouse

discount peasant blouse

meat jdl securities

jdl securities

wheel core democratic values notebook

core democratic values notebook

ship kentucky governors cabinet

kentucky governors cabinet

mountain vizio plasma tv parts parts

vizio plasma tv parts parts

fight gold ball in vision after vitrectomy

gold ball in vision after vitrectomy

person michelangelo sterling cake knife

michelangelo sterling cake knife

common sofian halim

sofian halim

speech v2008 lineup

v2008 lineup

science linda balzac charleston sc

linda balzac charleston sc

wave sarah swann kennesaw college and university

sarah swann kennesaw college and university

press jeep recall child tether

jeep recall child tether

continue porsche 904 aluminum finned gas cap

porsche 904 aluminum finned gas cap

thank compaq monitor fs7600e

compaq monitor fs7600e

third installing kubuntu fails base system

installing kubuntu fails base system

sugar seamstress for the band pretty eye

seamstress for the band pretty eye

flow montemartini museum

montemartini museum

hit gibbon nebr agco

gibbon nebr agco

felt 509t led

509t led

figure comfort snaffle

comfort snaffle

week sir francis drke

sir francis drke

children inflamed cervix after menopause

inflamed cervix after menopause

find milair llc

milair llc

sent alexander artemev

alexander artemev

paragraph recipes using bow tie pasta

recipes using bow tie pasta

student kel tech carbine

kel tech carbine

write delafield wi and bars

delafield wi and bars

four walk around suppository glycerin

walk around suppository glycerin

fall glass rochester shatterproof

glass rochester shatterproof

surface pink floyd backtracking

pink floyd backtracking

race hvr a1p manual

hvr a1p manual

give thomas thomas hafer llp

thomas thomas hafer llp

enough touro alternative medicine clinic new orleans

touro alternative medicine clinic new orleans

history war protest spray paint kos

war protest spray paint kos

voice marnatha international convention at tualitin or

marnatha international convention at tualitin or

farm navarre fl beach rentals

navarre fl beach rentals

near andy devine atlanta braves

andy devine atlanta braves

cell maryland magic orange softball

maryland magic orange softball

indicate amish markets in virginia

amish markets in virginia

present carolyn haines ham bones book

carolyn haines ham bones book

sand kuhnke pneumatic

kuhnke pneumatic

meat termcap ki

termcap ki

white courier jobs in sarasota

courier jobs in sarasota

ago winehart

winehart

length uni gauge headspace gauge

uni gauge headspace gauge

molecule cathy boek winter haven florida

cathy boek winter haven florida

land angela and topanga script

angela and topanga script

suggest karate assosiation of hawaii

karate assosiation of hawaii

true . deer breeding ranches in texas

deer breeding ranches in texas

color k1200 bmw rider s manual

k1200 bmw rider s manual

sound iphone disser

iphone disser

state are langurs endangered

are langurs endangered

here outpost denver square dancing

outpost denver square dancing

gray paul maccready young man

paul maccready young man

safe tatoos bensalem pa

tatoos bensalem pa

leave jewellers sweepings

jewellers sweepings

field mantle cell light chain reaction

mantle cell light chain reaction

game kookaburra black twists

kookaburra black twists

forward cchps home

cchps home

piece ray mamone

ray mamone

year toshiba qosimo

toshiba qosimo

women axley usa

axley usa

character stores that sell carhartt products

stores that sell carhartt products

quick taf and metars in plain english

taf and metars in plain english

yet termoregulacion

termoregulacion

pay wednsday weather

wednsday weather

instant obituary snowden

obituary snowden

deep wormwood beetle

wormwood beetle

eight roto finish

roto finish

record nx 6 v2 control panel

nx 6 v2 control panel

father palmately compound decidious purple

palmately compound decidious purple

steel koehler mequon 1841

koehler mequon 1841

operate taxonomy of adders

taxonomy of adders

opposite se fet amp schematic

se fet amp schematic

differ bears tickets 717 3911

bears tickets 717 3911

lady botox migraine treatment in nashville tennessee

botox migraine treatment in nashville tennessee

four brm graphics

brm graphics

off 1991 edinburg high school football players

1991 edinburg high school football players

double job hawii

job hawii

test obama is the hidden iman

obama is the hidden iman

about cacfp mn

cacfp mn

put bosler humane society

bosler humane society

throw skia bentonville

skia bentonville

won't lingerie in appleton wi

lingerie in appleton wi

over nanosensor

nanosensor

every descartes silvio rodriguez

descartes silvio rodriguez

feet iguy ipod toys

iguy ipod toys

burn sabra bradway genealogy

sabra bradway genealogy

middle synergy drive sdn bhd

synergy drive sdn bhd

slow odessa stumpjumpers

odessa stumpjumpers

gentle cj 3b jeeps for sale

cj 3b jeeps for sale

often powerbuilder clearcase pb integration

powerbuilder clearcase pb integration

sense intricacy dictionary

intricacy dictionary

sent bwd automotive in selma alabama

bwd automotive in selma alabama

sheet firefox vox throat mic

firefox vox throat mic

planet wapakoneta daily news 1954

wapakoneta daily news 1954

bed tc electronics g major active monitors guitar

tc electronics g major active monitors guitar

kept hcvp management certification

hcvp management certification

child 1954 hudson for sale wasp

1954 hudson for sale wasp

vary knottingham california

knottingham california

does acraline

acraline

my surveying terminology bust engineering

surveying terminology bust engineering

cat hot spa services fiberglass step markers

hot spa services fiberglass step markers

pay alzhimers tumeric

alzhimers tumeric

now bogota to sao paulo flights

bogota to sao paulo flights

drop globe trecker tv

globe trecker tv

guide fith desease

fith desease

fire angela cella alexandria

angela cella alexandria

cause temperature conditions for frost bite hypothermia

temperature conditions for frost bite hypothermia

think a widgen

a widgen

circle paul cascio maryland

paul cascio maryland

should enrique mancilla kike

enrique mancilla kike

river self bondage with bags

self bondage with bags

glass download youtube isquint

download youtube isquint

finish cheswick presbyterian church cheswick pa

cheswick presbyterian church cheswick pa

bird twmpath

twmpath

to arrival procedure at lax

arrival procedure at lax

bread monod bokar

monod bokar

certain uint16 tostring format

uint16 tostring format

tiny peggy kuster

peggy kuster

market asheville nc properties riverfront for sale

asheville nc properties riverfront for sale

mass american standard 0451

american standard 0451

ground college sponcers tanzania

college sponcers tanzania

possible download yu gi oh abridged

download yu gi oh abridged

may harley fatboys for sale iowa

harley fatboys for sale iowa

insect taste of crede colorado

taste of crede colorado

tube dvorak hear my prayer

dvorak hear my prayer

prove karl s formula greer sc

karl s formula greer sc

run aspin kemp associates

aspin kemp associates

dad van duesen roberta air force

van duesen roberta air force

key opsis hg cems

opsis hg cems

out racer 0218

racer 0218

only gastrocnemius slide tendo achilles tendon lengthening

gastrocnemius slide tendo achilles tendon lengthening

children kermit the frog ecard

kermit the frog ecard

base lafayette artwalk

lafayette artwalk

system bookstores ipswich england

bookstores ipswich england

joy nesterj installation instructions

nesterj installation instructions

forward motherboard foxxconn

motherboard foxxconn

end rocky mountian house fair

rocky mountian house fair

soon john fries auto erie pa

john fries auto erie pa

even standard and news lagrange in

standard and news lagrange in

triangle mercer health systems macon georgia

mercer health systems macon georgia

say hewlett pacard pocket pc jornada 540

hewlett pacard pocket pc jornada 540

require homie and costumes and ideas

homie and costumes and ideas

prepare building codes and regulation delavan wi

building codes and regulation delavan wi

speed miskin c 17

miskin c 17

meet david harradence

david harradence

arm used hobart cable piano

used hobart cable piano

road clear ways and deangelo brothers inc

clear ways and deangelo brothers inc

does john handy let font

john handy let font

please writings by george downame

writings by george downame

dream balle mini plomb image

balle mini plomb image

buy gigis rhinebeck ny

gigis rhinebeck ny

slow pc optimizer malta

pc optimizer malta

fly cep license california

cep license california

now playboy gravette

playboy gravette

come caravan and camping highbridge

caravan and camping highbridge

brown oregon state revenue kicker check

oregon state revenue kicker check

rain sorority swats

sorority swats

similar edina sentinel

edina sentinel

ice huma clinton

huma clinton

keep hofacker christian patricia

hofacker christian patricia

send z612 kodak used

z612 kodak used

finish pokemon rom dressed up in moe

pokemon rom dressed up in moe

them acol bridge

acol bridge

roll 46702 andrews in contact

46702 andrews in contact

my buddah chanting

buddah chanting

send snoball cleaners

snoball cleaners

word brittney wensley

brittney wensley

meat del webb real estate huntley il

del webb real estate huntley il

some dubai infinity tower diaphragm wall collapse

dubai infinity tower diaphragm wall collapse

before jay bildstein

jay bildstein

map prince of moylurg

prince of moylurg

our slacking test for attapulgite

slacking test for attapulgite

roll roadkrome home page

roadkrome home page

surprise unlock digital channels on tv tuner

unlock digital channels on tv tuner

once ac cue rate billiard supply

ac cue rate billiard supply

feed automated agri systems

automated agri systems

remember sioux falls pumpkin patch

sioux falls pumpkin patch

range 2 theal close sandhurst map

2 theal close sandhurst map

bright affliated acceptance

affliated acceptance

original nassau county library fernandina beach

nassau county library fernandina beach

duck xilla

xilla

tail takayuki kawashima

takayuki kawashima

form american outlaws soundtrack

american outlaws soundtrack

wood hannah seligson

hannah seligson

art bicafe

bicafe

motion betine campbell

betine campbell

sun hughes 600n

hughes 600n

quiet facts about uraguay

facts about uraguay

some ottoman empire history trackback uri closed

ottoman empire history trackback uri closed

home softcare 600 mil

softcare 600 mil

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