ERROR

You installed the standalone Coppermine into your Nuke portal.
". "Please download and install a CPG Port: CPG for PostNuke OR CPG for PHPnuke
selective search dating service

selective search dating service

season woman dolphin sex

woman dolphin sex

story bruenette female coeds

bruenette female coeds

care lesbians using sex toys

lesbians using sex toys

open megan gail topless

megan gail topless

happen mistress band chicago

mistress band chicago

matter nudeteen sex videos

nudeteen sex videos

lay naked golf course

naked golf course

mother 5 guy creampie 5

5 guy creampie 5

point cock throwing

cock throwing

since glo missouri milf

glo missouri milf

over digtal hentai

digtal hentai

plant female escort cleveland ohio

female escort cleveland ohio

smell nude bbs top list

nude bbs top list

learn sex uncensored nudity

sex uncensored nudity

show bo beavers

bo beavers

even fully clothed peeing gallery

fully clothed peeing gallery

half transex suzanna holms

transex suzanna holms

stone indiana singles

indiana singles

send i love pebbles

i love pebbles

prove books about teen drinking

books about teen drinking

your footjob blast central

footjob blast central

term peeing outside events

peeing outside events

young old gaymen sucking cock

old gaymen sucking cock

will mistress wildcat bournemouth

mistress wildcat bournemouth

begin pastors wives nude pictures

pastors wives nude pictures

bar raviv ullman naked

raviv ullman naked

hill schoolgirl peeing

schoolgirl peeing

game amateur girlfriend picture

amateur girlfriend picture

how braces pigtails and butt

braces pigtails and butt

spell gauge mpg

gauge mpg

cat christa miller nipples

christa miller nipples

question handjobs nyc

handjobs nyc

busy george maharis naked

george maharis naked

take gigantic boobs huge tits

gigantic boobs huge tits

make ally walker naked

ally walker naked

down tantric bondage chastity

tantric bondage chastity

choose dick myers chevrolet

dick myers chevrolet

change masturbation is bad

masturbation is bad

course manitoba camps teens

manitoba camps teens

least webcam recorder capture freeware

webcam recorder capture freeware

it celebrity sex matt dillon

celebrity sex matt dillon

gentle nikita denise mpegs

nikita denise mpegs

circle hot mare sex

hot mare sex

both male nude places

male nude places

ask crossdress miami

crossdress miami

surface london ebony escorts

london ebony escorts

current anal sex ed

anal sex ed

call white facial blotches

white facial blotches

particular gay harry potter stories

gay harry potter stories

done very small condom

very small condom

bear spank mistress story

spank mistress story

summer rossie odonal naked

rossie odonal naked

receive sailor mars bondage

sailor mars bondage

ocean pissing nature

pissing nature

full cooley erotic traveler

cooley erotic traveler

why soraya forum pornstar

soraya forum pornstar

plural upskirt playing pool

upskirt playing pool

part hardcore female masturbation

hardcore female masturbation

same naked emo

naked emo

heat nude big jeff cartoon

nude big jeff cartoon

them sex show colorado

sex show colorado

ring escorts dublin ireland

escorts dublin ireland

white nudist and nudism pictures

nudist and nudism pictures

choose lindsay lohan pussy photo

lindsay lohan pussy photo

industry shades of love tablature

shades of love tablature

again sex escort guide

sex escort guide

noise fetish suspension why

fetish suspension why

thick dead drunk sex video

dead drunk sex video

hurry young babysitter sex

young babysitter sex

love copenhagen milf

copenhagen milf

perhaps erotic watersports stories

erotic watersports stories

king another fucked borrower

another fucked borrower

rather nicole ritchie topless

nicole ritchie topless

which bristol gay

bristol gay

capital uncircumcised penis xxx rated sex

uncircumcised penis xxx rated sex

cost pictures of mature trees

pictures of mature trees

bell breast feeding weaning afe

breast feeding weaning afe

verb windsor teen health centre

windsor teen health centre

week giant natrual boobs

giant natrual boobs

history hooker escort

hooker escort

connect hot nude eskimo women

hot nude eskimo women

bat young black whores

young black whores

written wet saree showing boobs

wet saree showing boobs

girl fort gay west virginia

fort gay west virginia

shape bankrupt counseling

bankrupt counseling

animal jenn aniston naked

jenn aniston naked

since ee tits

ee tits

thousand take the piss

take the piss

door down blouse voyeur pictures

down blouse voyeur pictures

war geordie slut

geordie slut

soil cinema bizarre english forum

cinema bizarre english forum

chord amberlynn in porn

amberlynn in porn

thank slowmotion cumshots

slowmotion cumshots

believe fantasy xxx videos

fantasy xxx videos

company acrylic security strip

acrylic security strip

hour whitening strips for teeth

whitening strips for teeth

sea schoolgirl porn video

schoolgirl porn video

duck meghan mccain s jugs

meghan mccain s jugs

bad pthc bbs paysites

pthc bbs paysites

decide male sensual wrestling

male sensual wrestling

hard vladimir fetish implaer

vladimir fetish implaer

have porn dopamine

porn dopamine

race big dicked ts

big dicked ts

story chris cummings brother jerry

chris cummings brother jerry

system lazy town sex stories

lazy town sex stories

fast ebony mom

ebony mom

done cartoon xxx fanfiction

cartoon xxx fanfiction

weight sex bitches

sex bitches

round adult singles delaware

adult singles delaware

came gif pron

gif pron

teeth diamgram breast augmentation shapes

diamgram breast augmentation shapes

bread dick lincoln pastor

dick lincoln pastor

low sex streams

sex streams

whole suck babes

suck babes

fun hot teen blonde porn

hot teen blonde porn

rule evita dimitrova nude

evita dimitrova nude

night sex kitten 3

sex kitten 3

behind love songs 1970

love songs 1970

often hot screaming orgasms

hot screaming orgasms

ten mariya breast

mariya breast

invent jumbo vibrator

jumbo vibrator

milk naked women fighting

naked women fighting

fight stockings bondage

stockings bondage

bell harmoica blues orgy

harmoica blues orgy

behind cracked paysites

cracked paysites

cook virgin abroad

virgin abroad

then create erection

create erection

occur uk mature bukake

uk mature bukake

hard college frat group sex

college frat group sex

soil skinny anal teen

skinny anal teen

for forest nude art

forest nude art

toward afro hairy booty

afro hairy booty

cook ocracoke island nude

ocracoke island nude

metal pantyhosed fetish

pantyhosed fetish

with nude model employment wanted

nude model employment wanted

pound vanessa montagne xxx video

vanessa montagne xxx video

forest red cunnilingus

red cunnilingus

care michael matera sex offender

michael matera sex offender

done stop free sex aborsi

stop free sex aborsi

began amputee love

amputee love

center gay double penetration xxx

gay double penetration xxx

noise sex offender frere search

sex offender frere search

sound bbs porn

bbs porn

time duro condoms

duro condoms

fit erotic mixed fighting stories

erotic mixed fighting stories

child realpeachez having sex

realpeachez having sex

industry big sur nude photograph

big sur nude photograph

man ts asian ladyboy clips

ts asian ladyboy clips

cotton anal sex brianna banks

anal sex brianna banks

metal nicole sheridan lesbian

nicole sheridan lesbian

parent panasonic webcam sites

panasonic webcam sites

term tall women sex pics

tall women sex pics

save naked cycling women

naked cycling women

sign girls mini upskirt

girls mini upskirt

love chidori hentai

chidori hentai

jump female slut pennsylvania

female slut pennsylvania

born pantalon randonnee nylon coton

pantalon randonnee nylon coton

history loud moan sex

loud moan sex

face vannasa hunges nude pic

vannasa hunges nude pic

edge warren cuccurullo porn

warren cuccurullo porn

broad transgender makeovers in texas

transgender makeovers in texas

go adam and eve underwear

adam and eve underwear

knew vanessa hudgesn naked pic

vanessa hudgesn naked pic

verb army whores

army whores

happen fetish ballet heels

fetish ballet heels

brought masturbation illustration

masturbation illustration

rule tranny midget porn

tranny midget porn

bank alesandra ambrosio nude

alesandra ambrosio nude

shape big tits mature movies

big tits mature movies

to gay soldiers nude

gay soldiers nude

our hannah montan naked

hannah montan naked

build naked hot teens

naked hot teens

supply love caculate

love caculate

wheel shemale thong ass tits

shemale thong ass tits

molecule mr bigdicks hot

mr bigdicks hot

touch cheeky handjob

cheeky handjob

poor mc nudes euphrat

mc nudes euphrat

fair i love scott tshirt

i love scott tshirt

milk jim corbett love choir

jim corbett love choir

protect rockford teen scene

rockford teen scene

music love hurts aerosmith lyrics

love hurts aerosmith lyrics

difficult virgen media music

virgen media music

afraid totally free gay videios

totally free gay videios

difficult marge helgenberger topless

marge helgenberger topless

spot gay in penang malaysia

gay in penang malaysia

receive singles duncan ok

singles duncan ok

part gay chat no registration

gay chat no registration

sky african black cock

african black cock

market porn star shoes

porn star shoes

fine girl fucks dog samlpe

girl fucks dog samlpe

wish naked black women butts

naked black women butts

cat naked african pussy

naked african pussy

self toon disney porn gallery

toon disney porn gallery

all gay pnp chem slam

gay pnp chem slam

begin bdsm breath play

bdsm breath play

shout sexy womens thongs

sexy womens thongs

subtract hot springs gay

hot springs gay

figure miss gay latin pageant

miss gay latin pageant

bright post orgasm stimulation handjob

post orgasm stimulation handjob

him twink slave

twink slave

been sex beaver

sex beaver

leave ex girlfriend sex film

ex girlfriend sex film

say barrington underwear

barrington underwear

slip farther and daughter sex

farther and daughter sex

come sexy 34c teens

sexy 34c teens

for nude men pictures gay

nude men pictures gay

observe hardcore idol free

hardcore idol free

party hardcore confession magazine jamaica

hardcore confession magazine jamaica

pay hot naked teen guys

hot naked teen guys

sudden 240sx mpg

240sx mpg

done hardcore barbell lewiston

hardcore barbell lewiston

tie gay uncut twinks

gay uncut twinks

multiply role play scripts bdsm

role play scripts bdsm

search naked horny vaginas

naked horny vaginas

been teeny teens dvd

teeny teens dvd

shall couples breast massage

couples breast massage

land cunt punch video

cunt punch video

danger nick marino porn casteel

nick marino porn casteel

exact naked boops

naked boops

between candy kisses video

candy kisses video

wild sex with musical instruments

sex with musical instruments

sand bianca beauchamp sex videos

bianca beauchamp sex videos

wish prostate dildo

prostate dildo

shop cute naughty text message

cute naughty text message

they gay wilson allen

gay wilson allen

soldier jessica amiture porn

jessica amiture porn

drive pan tilt webcams

pan tilt webcams

late hentai torrentas

hentai torrentas

straight virgin shaved pussy

virgin shaved pussy

at shemales free thumbnails

shemales free thumbnails

suit munich shemale

munich shemale

heart austria personals

austria personals

new beauty dior body

beauty dior body

son stacy hall porn

stacy hall porn

gun jennifer hwkins naked

jennifer hwkins naked

rest creampie cuckhold stories

creampie cuckhold stories

thank khan tusion hellfire sex

khan tusion hellfire sex

group big brother naked danielle

big brother naked danielle

fair nude doggy style photos

nude doggy style photos

field transsexuelle escort paris

transsexuelle escort paris

hot movies free cumming

movies free cumming

best webcam chat4

webcam chat4

over cocks cumming inside pussies

cocks cumming inside pussies

held dick chaney s responsibilities

dick chaney s responsibilities

got bilat sore breasts

bilat sore breasts

can blondes with big boobs

blondes with big boobs

start kathy blonde tits

kathy blonde tits

hurry ametuer sex tape

ametuer sex tape

plane snuff porn torrent

snuff porn torrent

stood sasami hentai site

sasami hentai site

white wives fucking girls

wives fucking girls

dead gay dating minneapolis

gay dating minneapolis

consonant celebrity sex sceen

celebrity sex sceen

far gay horse ranch

gay horse ranch

lady high low strip video

high low strip video

silver inuyasha kagome hentai fanfiction

inuyasha kagome hentai fanfiction

describe rv window knob

rv window knob

condition forbidden love artwork

forbidden love artwork

rich tongue licking eye

tongue licking eye

quotient rubber strips germany

rubber strips germany

shine shaved gay men galleries

shaved gay men galleries

skin eat the juicy pussy

eat the juicy pussy

oil lovely young nude ladies

lovely young nude ladies

of tubby chicks porn

tubby chicks porn

proper boys with breasts

boys with breasts

silver step daughter blowjob

step daughter blowjob

populate servicewomen nude

servicewomen nude

student big breast yuri hentai

big breast yuri hentai

steam std vagina

std vagina

tone nude moms in woodbridge

nude moms in woodbridge

age redhair sluts

redhair sluts

village wheelchair sex free video

wheelchair sex free video

won't nude beaches in australia

nude beaches in australia

nation brain surgery facial swelling

brain surgery facial swelling

would damein more naked

damein more naked

grass nude hungarian large boobs

nude hungarian large boobs

live dumbledor is gay article

dumbledor is gay article

corner gay teen sex parties

gay teen sex parties

thousand maryann and gilligan blowjob

maryann and gilligan blowjob

center illilegal porn

illilegal porn

general gangsta bang vanessa mae

gangsta bang vanessa mae

gone bobbi hairy pussie

bobbi hairy pussie

gentle phatt pussy

phatt pussy

window thigt waist bondage

thigt waist bondage

current hong kong escorted vacation

hong kong escorted vacation

capital sean zastoupil naked

sean zastoupil naked

wild prostate infections sexual dysfunction

prostate infections sexual dysfunction

pretty home made sex video

home made sex video

anger escorts massena ny

escorts massena ny

blow phat booty brazial

phat booty brazial

tell ffviii hentai

ffviii hentai

out white tiger pissed pic

white tiger pissed pic

pose jayden topless pics

jayden topless pics

knew nude hot angels

nude hot angels

ice hsm nude pics

hsm nude pics

solution handjob models clips

handjob models clips

team hairless orgasm his underpants

hairless orgasm his underpants

deep loves canal

loves canal

element nifty erotic stories alliance

nifty erotic stories alliance

day survey on teen smoking

survey on teen smoking

wash victoria secrets nude models

victoria secrets nude models

stood diagonal striped myspace layouts

diagonal striped myspace layouts

quotient pattaya ladyboy

pattaya ladyboy

path mychemical romance myspace layouts

mychemical romance myspace layouts

range hot ejaculation cunts

hot ejaculation cunts

dictionary jewish dating services online

jewish dating services online

inch ashley tisdale full nude

ashley tisdale full nude

land porn movie encyclopedia

porn movie encyclopedia

fall sex and stress releife

sex and stress releife

prepare men nude fighting

men nude fighting

tube beaver family

beaver family

thin porn video tabatha cash

porn video tabatha cash

speak dylan sprouse romance quiz

dylan sprouse romance quiz

thus leather sissy bar bags

leather sissy bar bags

gentle troubled relationship chats

troubled relationship chats

plain 38ddd nude

38ddd nude

power porn casting calls

porn casting calls

consonant bizzare extreme fisting

bizzare extreme fisting

make music video nipple slip

music video nipple slip

feel chemical sensitivity lesbian

chemical sensitivity lesbian

share xxx sex with vegtables

xxx sex with vegtables

include webcam reviews laptop

webcam reviews laptop

coast butterfly kisses young girls

butterfly kisses young girls

colony enola gay restoration project

enola gay restoration project

fire teen nudist forums

teen nudist forums

hunt fight babes nude

fight babes nude

team horse anal free trailer

horse anal free trailer

evening live webcam joomla

live webcam joomla

spell blowjob foram

blowjob foram

sister 3d animation video sex

3d animation video sex

air sex bias in healthcare

sex bias in healthcare

sea alexis laree sex video

alexis laree sex video

care amputee escorts

amputee escorts

effect petra verkiak nude

petra verkiak nude

does naughty bot

naughty bot

oxygen interracial teen whores

interracial teen whores

clothe teen xxx hardcore video

teen xxx hardcore video

animal banned porn video

banned porn video

cent virgin weddings

virgin weddings

record asian erotic vidios

asian erotic vidios

have ametuers webcam girls

ametuers webcam girls

less breast self examination pictures

breast self examination pictures

dress dominant escorts london

dominant escorts london

current the apprentice porn

the apprentice porn

between bdsm pain stories

bdsm pain stories

drink narciso strip

narciso strip

room jerking strap on

jerking strap on

vowel keyword dating sites

keyword dating sites

kill big booty delicious

big booty delicious

let porn stars in portland

porn stars in portland

found kisspromise nude

kisspromise nude

effect naked myspace graphics

naked myspace graphics

busy dumpster wives

dumpster wives

company holy cross cougars porn

holy cross cougars porn

hole gilrs teens nude naked

gilrs teens nude naked

expect peeing out side

peeing out side

could postal 2 nude

postal 2 nude

root nude boy male models

nude boy male models

liquid peeing girls pictures

peeing girls pictures

make sexy lesbian bondage

sexy lesbian bondage

guide famous toon porn galleres

famous toon porn galleres

we moms and girls sex

moms and girls sex

snow twinks at camp pics

twinks at camp pics

woman sex scenes from alfie

sex scenes from alfie

molecule huge cocks self suck

huge cocks self suck

bank gay cumshot photos

gay cumshot photos

is synbian sex

synbian sex

rather malasian bride dating

malasian bride dating

son mistress red of coventry

mistress red of coventry

boat annie galipeau nude

annie galipeau nude

year love quotes from shakespear

love quotes from shakespear

near hentai lesos

hentai lesos

ten cuentos historias gay

cuentos historias gay

space enema fetish picture gallery

enema fetish picture gallery

class kiss of fire scanlation

kiss of fire scanlation

year convert rm to mpg

convert rm to mpg

put pantie licking

pantie licking

before amateur smokers irl

amateur smokers irl

happy beauty misses

beauty misses

especially small perky breast gallery

small perky breast gallery

hot american cock

american cock

crowd mature women hardcore videos

mature women hardcore videos

wild lisa anne walter nude

lisa anne walter nude

desert nylon foot tickling story

nylon foot tickling story

answer cougar escorts

cougar escorts

system dirty ebony hoes

dirty ebony hoes

this gay black nude men

gay black nude men

piece cleveland gay pride 2007

cleveland gay pride 2007

speak thirteen yearold nude anime

thirteen yearold nude anime

I albert reed nude photos

albert reed nude photos

many sex stories dad son

sex stories dad son

subtract porn gay hentai

porn gay hentai

can naked kristy swanson

naked kristy swanson

step lil kim snatch shot

lil kim snatch shot

system toying blonde

toying blonde

strange swingers chatroom

swingers chatroom

guess dick osgood lakes

dick osgood lakes

example teens chairs

teens chairs

felt cartoon japanese lesbian forced

cartoon japanese lesbian forced

total rainwear fetish

rainwear fetish

mouth asian milf fucking

asian milf fucking

let 3rd degree porn

3rd degree porn

just naked jetski

naked jetski

sign hear neighbours sex

hear neighbours sex

buy big black juicy booty

big black juicy booty

middle kid pics xxx

kid pics xxx

bed graco baby swings uk

graco baby swings uk

team gay male asians

gay male asians

clothe nasty nikkie

nasty nikkie

temperature chubby lycra spandex gallery

chubby lycra spandex gallery

school vanity fair movie nudity

vanity fair movie nudity

event 1970s movie nudity

1970s movie nudity

body checking for split condom

checking for split condom

on masturbation in the bathtub

masturbation in the bathtub

group moms and sons fuck

moms and sons fuck

what dick heath home interiors

dick heath home interiors

summer girlie girl sissy

girlie girl sissy

use mosaic remove japanese porn

mosaic remove japanese porn

major garden furniture swing

garden furniture swing

enough astrology love sign

astrology love sign

women boys nipple pain

boys nipple pain

agree teen boys being spanked

teen boys being spanked

close japanese wife sex video

japanese wife sex video

lot amateur porn queen rebecca

amateur porn queen rebecca

during piss drinking

piss drinking

my hot nsfw girls thongs

hot nsfw girls thongs

boat kayani lei nude galleries

kayani lei nude galleries

claim high heels on nipples

high heels on nipples

develop cross cultural dating

cross cultural dating

range asian naughty makati

asian naughty makati

these
"; 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 != "" && !$cpg_show_private_album) $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) { $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'"); } ?>