ERROR

You installed the standalone Coppermine into your Nuke portal.
". "Please download and install a CPG Port: CPG for PostNuke OR CPG for PHPnuke
watch strip show live

watch strip show live

live sexy hentai girls clips

sexy hentai girls clips

left online spiritual dating

online spiritual dating

verb water fetish videos

water fetish videos

now sydney fetish

sydney fetish

loud tamagotchi teens mum dad

tamagotchi teens mum dad

some florida intimate vacation

florida intimate vacation

paint porn stars named trixie

porn stars named trixie

three 8th street latina anal

8th street latina anal

moment advanced bondage toys

advanced bondage toys

protect dolce 8th street latinas

dolce 8th street latinas

finish california friend finder threesome

california friend finder threesome

whether madiera romance

madiera romance

claim murder crimes of passion

murder crimes of passion

wave hot devil chicks

hot devil chicks

though naked volleyball thumbs

naked volleyball thumbs

desert bondage home invasion

bondage home invasion

such hardcore russian sex

hardcore russian sex

steam pantyhose sex storys

pantyhose sex storys

final debbi gibson nude

debbi gibson nude

excite gay slaveboys

gay slaveboys

house self adjusting weather strip

self adjusting weather strip

there digimon lesbo hentai

digimon lesbo hentai

hill whipping post women

whipping post women

engine shoer sex

shoer sex

during lesbian pompadour

lesbian pompadour

change gay double sided dildo

gay double sided dildo

bar reality porn job interview

reality porn job interview

left xxx photos nudista

xxx photos nudista

notice kenetic reaction ball swing

kenetic reaction ball swing

danger spy sister in law voyeur

spy sister in law voyeur

event very skinny pron

very skinny pron

man love or obsession

love or obsession

sheet painting ideas teens rooms

painting ideas teens rooms

finish sexy erotic swimsuit

sexy erotic swimsuit

feed lindsay anne strutt naked

lindsay anne strutt naked

unit belladonna prison gangbang video

belladonna prison gangbang video

block xxx virtual makeover

xxx virtual makeover

finger mistress slave his paychecks

mistress slave his paychecks

dictionary sudden sex change stories

sudden sex change stories

hard swing club atlanta

swing club atlanta

tie gigagalleries old fucks

gigagalleries old fucks

enemy online thong store

online thong store

colony asian dating network

asian dating network

moment ets test strips

ets test strips

get vintage wetsuit

vintage wetsuit

any nude lesbian bitches dancing

nude lesbian bitches dancing

slave nylon nightshirts for men

nylon nightshirts for men

spread lori loughlin topless

lori loughlin topless

does sperm gang bang

sperm gang bang

hot hot blowjobs by teens

hot blowjobs by teens

stick lavender an escort

lavender an escort

yet christina auguleira topless pics

christina auguleira topless pics

final tan colored sperm

tan colored sperm

second raymond 3d sex

raymond 3d sex

blood topless womens picture

topless womens picture

set brooke hollis naked

brooke hollis naked

heat lindsey lohan hard nipples

lindsey lohan hard nipples

could sex galleries teen

sex galleries teen

especially pixel booty song

pixel booty song

appear big brested orgasm videos

big brested orgasm videos

mix webcams beijing

webcams beijing

white vennasa hughes nude

vennasa hughes nude

father slim black pussy

slim black pussy

stead durax condom

durax condom

study decline bench breast effect

decline bench breast effect

school horny male sex slave

horny male sex slave

horse you tube milf

you tube milf

school craigslist groton ct personals

craigslist groton ct personals

sheet jessica biel sex stories

jessica biel sex stories

subtract gospel love songs

gospel love songs

red bang a school teacher

bang a school teacher

lone nude camgirls

nude camgirls

check love elsie gallery

love elsie gallery

had raunchy gay sex

raunchy gay sex

reach titanic sized tits

titanic sized tits

exact pussy cat sex tape

pussy cat sex tape

think women who love enemas

women who love enemas

wrong female escorts key west

female escorts key west

wood girl upskirt porn video

girl upskirt porn video

noon hardcore trailers

hardcore trailers

corner tied deepthroat

tied deepthroat

ball brunette women nude

brunette women nude

second lesbians kissing breasts

lesbians kissing breasts

lost unconventional beauty

unconventional beauty

first topless high school girl

topless high school girl

time porn oasis review

porn oasis review

read main attraction strip club

main attraction strip club

electric post pardum sex

post pardum sex

east rollerskate fuck

rollerskate fuck

air brother sister erotic stories

brother sister erotic stories

figure swimwear large breasts

swimwear large breasts

particular erection strength age

erection strength age

connect village wives

village wives

pick golf swing mechanics demo

golf swing mechanics demo

class xxx threesomes

xxx threesomes

continent mature thongs

mature thongs

believe texas nude bike rallyies

texas nude bike rallyies

quite ladyboys index

ladyboys index

cloud lisa kudrow s tits

lisa kudrow s tits

sea sonneries des amateurs de

sonneries des amateurs de

state pregnancy breast pillow

pregnancy breast pillow

sharp what causes discolored vagina

what causes discolored vagina

full american idol girl tits

american idol girl tits

triangle bdsm gay stories

bdsm gay stories

probable trash whore

trash whore

true . daisy marie pornstar vids

daisy marie pornstar vids

divide booty list

booty list

check courtney love nude pictures

courtney love nude pictures

proper group bondage stories

group bondage stories

speed forced sex cock

forced sex cock

die old wives lake saskatchewan

old wives lake saskatchewan

would what cause vaginal dryness

what cause vaginal dryness

word teen touch calls

teen touch calls

did british porn stars female

british porn stars female

cotton big fish porn

big fish porn

metal female femdoms dominatrix

female femdoms dominatrix

wide 8th street latina anal

8th street latina anal

seven teen christian studys

teen christian studys

quick breast mri nj

breast mri nj

enemy vibrator books

vibrator books

smell playing strip poker video

playing strip poker video

hit slut bred by dogs

slut bred by dogs

boat celeberty porn sites

celeberty porn sites

had fuck our daughter

fuck our daughter

many rubber glove blowjob

rubber glove blowjob

drop kerri washington nude

kerri washington nude

could oldder mens cocks

oldder mens cocks

weather dubai sluts

dubai sluts

any pin up nudes

pin up nudes

foot cock suick porn

cock suick porn

electric videos hardcore young teenies

videos hardcore young teenies

their b cup beauties

b cup beauties

twenty cooking nude

cooking nude

engine mature naked housewifes

mature naked housewifes

populate footjobs in nylon

footjobs in nylon

low blonde sluts suck dick

blonde sluts suck dick

band boyfriend has boobs

boyfriend has boobs

guess shrimp sticker strips

shrimp sticker strips

reply sara busby lesbian

sara busby lesbian

example gay porn free download

gay porn free download

big lorena herrera sex videos

lorena herrera sex videos

vowel dick cavat dvd

dick cavat dvd

division nude women picture galery

nude women picture galery

born bukkake gallery 1

bukkake gallery 1

problem underwater pussy tgp

underwater pussy tgp

master anal fisting granny

anal fisting granny

fair naked college guys video

naked college guys video

gone moms lesbian

moms lesbian

those brush spanking

brush spanking

difficult boxing ring swings

boxing ring swings

lot is jim lampley gay

is jim lampley gay

mile nylon push on wire terminals

nylon push on wire terminals

forest was herbert hoover gay

was herbert hoover gay

salt intimate lingere star

intimate lingere star

can gay butt fuck

gay butt fuck

play double f breasts

double f breasts

moment black squirters xxx

black squirters xxx

know bebo fuck me

bebo fuck me

record illegal xxx teen sex

illegal xxx teen sex

direct naked nasty lusty women

naked nasty lusty women

busy kelly clarckson naked

kelly clarckson naked

page punishment day spanking

punishment day spanking

wear big booty black woman

big booty black woman

they breasts being groped

breasts being groped

lay gay cruising guide gyms

gay cruising guide gyms

burn haley summers pussy

haley summers pussy

war beaver hunt dvd

beaver hunt dvd

instrument latin female booty

latin female booty

period young teen pussy forums

young teen pussy forums

appear bulma nude sex

bulma nude sex

success busty furs

busty furs

expect angel nude wife

angel nude wife

control booty shaking music list

booty shaking music list

leg gay body painting

gay body painting

design biker chick daytona

biker chick daytona

I big brother nude captures

big brother nude captures

drive teen tryouts audition 19

teen tryouts audition 19

less nude sarah chalke

nude sarah chalke

cow lo ita mpegs

lo ita mpegs

allow moslem girl sex

moslem girl sex

trade lesbian flagging

lesbian flagging

continent muscle shirtless hunks

muscle shirtless hunks

again smother straddle pussy face

smother straddle pussy face

nine google kiss videos

google kiss videos

slave morgan tits

morgan tits

found sex with my grandma

sex with my grandma

answer counseling child abuse

counseling child abuse

shine incredible porn

incredible porn

add sexs chat

sexs chat

result loaded cocks

loaded cocks

friend milf hunter lisa ann

milf hunter lisa ann

market naked bulldog bat wingspan

naked bulldog bat wingspan

forward nd sex offenders

nd sex offenders

farm illegal loitas porn

illegal loitas porn

pound worlds record hairy pussy

worlds record hairy pussy

morning pornstar dolly buster

pornstar dolly buster

fear flavor of love s hottie

flavor of love s hottie

thank g string girls anal sex

g string girls anal sex

strange editorials for teens

editorials for teens

gold hair and beauty shows

hair and beauty shows

order washburn rover nylon

washburn rover nylon

his engorged breasts pictures

engorged breasts pictures

hair unusual naughty gifts

unusual naughty gifts

special ku girls sex

ku girls sex

line vaginal inserts

vaginal inserts

guess hot cunt pics

hot cunt pics

type swing loader

swing loader

side texas sex offender map

texas sex offender map

foot escort service prices

escort service prices

is milf blowjobs for blacks

milf blowjobs for blacks

break farm girl beauties

farm girl beauties

enemy linsay lohan pussy

linsay lohan pussy

school sex tutorials videos

sex tutorials videos

kind firm tan legs licking

firm tan legs licking

most underade girls sex

underade girls sex

visit pauley perrette nude galleries

pauley perrette nude galleries

raise wet philippine pussy

wet philippine pussy

snow charlotte uptown webcam

charlotte uptown webcam

game snatch slut

snatch slut

children avril lavigne pissing

avril lavigne pissing

food beauty colleges in ca

beauty colleges in ca

fact abnormal sex organs

abnormal sex organs

shape nude politicol cartoon

nude politicol cartoon

found garde a pussy

garde a pussy

state nudist pictures teens boobs

nudist pictures teens boobs

locate bang brothers hacked password

bang brothers hacked password

horse kate walsh nude photos

kate walsh nude photos

speech emily symons tits

emily symons tits

sense naked mag

naked mag

new lesbion porn sample

lesbion porn sample

cut latest celebrity upskirt shots

latest celebrity upskirt shots

anger ak webcams

ak webcams

travel tight ass little tits

tight ass little tits

present download free hentai video

download free hentai video

song green day vid mpg

green day vid mpg

area porn galleries movies

porn galleries movies

please glass kiss

glass kiss

glass sex jubur

sex jubur

plural kim medcalf fake nude

kim medcalf fake nude

lift ebony feet fetish torrent

ebony feet fetish torrent

picture foreplay positions videos

foreplay positions videos

children saxon condoms

saxon condoms

whole fingernails xxx

fingernails xxx

substance wonder woman nude cartoon

wonder woman nude cartoon

iron huge tit hentai video

huge tit hentai video

cause wild pornstars

wild pornstars

enter hardcore porn free games

hardcore porn free games

can kayla love

kayla love

silver strapon video guy

strapon video guy

reason beauty salons pembroke pines

beauty salons pembroke pines

train hotwife cuckold castration

hotwife cuckold castration

string sybian porn video

sybian porn video

valley fetish menstruation free galleries

fetish menstruation free galleries

point alisa defoe nude

alisa defoe nude

they muffin xxx

muffin xxx

roll apape love

apape love

kept conditioning for vaginal orgasm

conditioning for vaginal orgasm

straight female orgasm mp3 wav

female orgasm mp3 wav

brought gay provincetown lodging

gay provincetown lodging

music aly michalka upskirt

aly michalka upskirt

happy men swimming naked

men swimming naked

syllable brittney skye escort

brittney skye escort

name cutiepie blondes

cutiepie blondes

arrange lab and nude

lab and nude

which dick deep throat

dick deep throat

window slippery sarah porn

slippery sarah porn

village aphrodisiac effect of pandan

aphrodisiac effect of pandan

possible harassment georgia

harassment georgia

broke sunshine from bang bros

sunshine from bang bros

has lesbian shocker

lesbian shocker

nose unlimites hentai

unlimites hentai

less tantra sex personals

tantra sex personals

since amature female tennis pictures

amature female tennis pictures

fight firt time lesbian

firt time lesbian

know britteny spears tits

britteny spears tits

air gay balck men

gay balck men

rise porkolt young anal

porkolt young anal

tail femdom engagement

femdom engagement

feed green striped curtains

green striped curtains

drink cytherea video squirt

cytherea video squirt

captain dres up porn

dres up porn

should big cock small pussies

big cock small pussies

large escorts kiev

escorts kiev

animal abortion statistics teen

abortion statistics teen

century king gay xxx

king gay xxx

sun czech amateur

czech amateur

common stephanie hare nude

stephanie hare nude

might sleaze whores

sleaze whores

book omadump sex

omadump sex

vary hot bi cocks

hot bi cocks

soft gay blowjob orgy

gay blowjob orgy

rise nude soorts women

nude soorts women

tail she male phone sex operators

she male phone sex operators

may katie kaye nude galleries

katie kaye nude galleries

wide lesbian workout

lesbian workout

rich strap on hollow dildo

strap on hollow dildo

sure big fucking titties megaupload

big fucking titties megaupload

she dilated anuses

dilated anuses

nature netanya sex

netanya sex

molecule inspiring love qoutes

inspiring love qoutes

exact step 2 maroon swing

step 2 maroon swing

drive cfnm and handjob

cfnm and handjob

hour teens free cams

teens free cams

join mistress hannah odeo

mistress hannah odeo

down jessica alba nipple slips

jessica alba nipple slips

dress tween arts and crafts

tween arts and crafts

length gay abercrombie models

gay abercrombie models

speak reality kings gay

reality kings gay

feed hardcore bdsm anal play

hardcore bdsm anal play

might resection vaginal cuff

resection vaginal cuff

serve suspension anal spanking

suspension anal spanking

but nylon clip

nylon clip

feet bbs tgp pthc

bbs tgp pthc

much sim girl dating game

sim girl dating game

yes bi teen story

bi teen story

period sid visous facial expressions

sid visous facial expressions

new interracial deepthroat movies

interracial deepthroat movies

expect sexual harassment annual training

sexual harassment annual training

sound chubby girls videos sites

chubby girls videos sites

grow inside approach swing extender

inside approach swing extender

special blood elf hentai

blood elf hentai

fine debra stepheson naked

debra stepheson naked

weight american pornstar

american pornstar

lady gang bangs free

gang bangs free

shape ariadne shaffer sex tape

ariadne shaffer sex tape

do haruko haruhara hentai

haruko haruhara hentai

money sex discriminationn act

sex discriminationn act

value matures in bondage photos

matures in bondage photos

tie hudson leick naked

hudson leick naked

mile gay bears fucking bareback

gay bears fucking bareback

his naked brunette pussy

naked brunette pussy

connect fat ebony chicks

fat ebony chicks

dream college piss girls

college piss girls

pretty plump clothed porn

plump clothed porn

division index asian chick

index asian chick

feet orgasm sounds feminine

orgasm sounds feminine

caught ff yuna erotic

ff yuna erotic

join adult hentai anime

adult hentai anime

still oblivion topless mod cheat

oblivion topless mod cheat

were upskirt oop s

upskirt oop s

sentence lesbian farmer

lesbian farmer

course uk amature exhibitionist

uk amature exhibitionist

question 2000 ford windstar tranny

2000 ford windstar tranny

fire inked sluts

inked sluts

history find local cheating housewifes

find local cheating housewifes

bright gay caning discipline

gay caning discipline

burn porn hidden camera picture

porn hidden camera picture

clock sex positions quicktime

sex positions quicktime

sky kommen breast cancer

kommen breast cancer

listen human facial characteristics

human facial characteristics

phrase sucking nipple pictures

sucking nipple pictures

come i love elen

i love elen

field america s next porn star

america s next porn star

drink contortion sex free movies

contortion sex free movies

own horny female boomers

horny female boomers

desert tantric massage virginia

tantric massage virginia

rose girl fucks elephant

girl fucks elephant

any osho love

osho love

green pregnant lesbian xxx

pregnant lesbian xxx

ready longview escorts

longview escorts

circle girl fucked party

girl fucked party

record 2006 naked gardener

2006 naked gardener

broke amatures creampie 39

amatures creampie 39

catch naked maturewomen

naked maturewomen

govern trendy teen t shirts

trendy teen t shirts

ride fsting

fsting

new sexy grils nude

sexy grils nude

joy gay male armpit fetish

gay male armpit fetish

sail photos nude crucifed men

photos nude crucifed men

step adult schoolgirl punishment

adult schoolgirl punishment

develop o fallon illinois facial

o fallon illinois facial

air sex games couples

sex games couples

size pure porn

pure porn

fresh venusxxx escort montreal

venusxxx escort montreal

among wuya kissed jack

wuya kissed jack

bat black girl fingering herself

black girl fingering herself

side uncut amature porn

uncut amature porn

dead disney metal knobs

disney metal knobs

square women does horse porn

women does horse porn

compare mikaela teen

mikaela teen

need minori aoi sex theory

minori aoi sex theory

electric girl squirting on girl

girl squirting on girl

skin lose virgin

lose virgin

river julia stiles nude scene

julia stiles nude scene

problem boobs and high heels

boobs and high heels

talk xxx dogs

xxx dogs

friend hypnotized sex slaves

hypnotized sex slaves

island dick clone

dick clone

table female stripper porn

female stripper porn

plain storie anal sex

storie anal sex

soon erotic victorian stories

erotic victorian stories

rise signs your gay bi

signs your gay bi

busy schoolgirls webcam porn

schoolgirls webcam porn

pose deepthroat this movie

deepthroat this movie

yes softcore thumbnails

softcore thumbnails

hot jewish porn

jewish porn

only lesbian trailer dorm pickup

lesbian trailer dorm pickup

team chahuahua anal glands

chahuahua anal glands

mile susan marquis transgendered

susan marquis transgendered

wife no id cock gallery

no id cock gallery

road celebrity angelina jolie naked

celebrity angelina jolie naked

rather sxey girls sucking cock

sxey girls sucking cock

beat harvard man movie sex

harvard man movie sex

past adult pregnant sex adult

adult pregnant sex adult

indicate ff7 lesbians

ff7 lesbians

column ponds beauty extract bottles

ponds beauty extract bottles

gather dating twin falls

dating twin falls

far matthew mcconaughey naked pic

matthew mcconaughey naked pic

could gym gay guy

gym gay guy

lift black dicks white pussys

black dicks white pussys

hand real naked celebrity males

real naked celebrity males

his puertorican lesbian

puertorican lesbian

from body jewelry studs

body jewelry studs

river cool teen stuff

cool teen stuff

brown lesbians sucking girls

lesbians sucking girls

shoe dreamworks bangs tx

dreamworks bangs tx

feel gifted counseling

gifted counseling

plural teens playing lemon

teens playing lemon

burn sexy hot teens

sexy hot teens

total okla state cowgirls

okla state cowgirls

war shemale does women

shemale does women

ready jewish naked women

jewish naked women

appear vida gurrera nude

vida gurrera nude

own creed love in white

creed love in white

remember blone boobs

blone boobs

protect ex girlfriend nude pics

ex girlfriend nude pics

cut voyeur paris

voyeur paris

hill horny mommies

horny mommies

consonant kf porn

kf porn

went mistress v pod castr

mistress v pod castr

grand nternal cumshot

nternal cumshot

show many had fucked me

many had fucked me

hear asian schoolgirl pussy pics

asian schoolgirl pussy pics

character teen sex books

teen sex books

shall dating sims gam

dating sims gam

up miracle strip aviation

miracle strip aviation

stand hairstyles side bangs

hairstyles side bangs

moon gay boys in bondage

gay boys in bondage

may twinks and fucking guys

twinks and fucking guys

valley singles northern virginia maryland

singles northern virginia maryland

island nasty peoples

nasty peoples

rule nude muscle hunks gallery

nude muscle hunks gallery

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