ERROR

You installed the standalone Coppermine into your Nuke portal.
". "Please download and install a CPG Port: CPG for PostNuke OR CPG for PHPnuke
nude ex post

nude ex post

take bi sexual xxx movies

bi sexual xxx movies

point huge wide cocks

huge wide cocks

hot akon throws teen

akon throws teen

please medieval couples costumes

medieval couples costumes

complete spring break nude pics

spring break nude pics

team sarah carter slut

sarah carter slut

type laystation suck own 7

laystation suck own 7

work escort download ford manual

escort download ford manual

than hirusite sex

hirusite sex

few my daughters fuck niggers

my daughters fuck niggers

free cokesbury singles knoxville

cokesbury singles knoxville

represent dre ebony

dre ebony

liquid spanking by mistress

spanking by mistress

grow ihop gay

ihop gay

pay creat your own condom

creat your own condom

wish measuring for condoms

measuring for condoms

thin gothic booty

gothic booty

too huge gay cock porn

huge gay cock porn

since muscle shirtless hunks

muscle shirtless hunks

blood tgp cumshot movies

tgp cumshot movies

fit child love activists

child love activists

far illegal porn torrents

illegal porn torrents

noise skin deep nudes

skin deep nudes

moon tennies nude

tennies nude

occur naked beckham

naked beckham

suffix bengali girls giving blowjobs

bengali girls giving blowjobs

half tantra sex group

tantra sex group

equal tyna porn clips

tyna porn clips

edge kakashi sex

kakashi sex

against girls fuck farm animals

girls fuck farm animals

hole wow is for porn

wow is for porn

end rachel maddow gay

rachel maddow gay

own mascara porn

mascara porn

child retarded girls nude

retarded girls nude

top cute and nude

cute and nude

degree yahoo bondage crossdresser

yahoo bondage crossdresser

enough love qoutes graphics myspacve

love qoutes graphics myspacve

remember amateur strip movies

amateur strip movies

whole nasty stupid poems

nasty stupid poems

long eskimo kisses origin

eskimo kisses origin

last weight loss piss reveiwed

weight loss piss reveiwed

solution dysfunction sexuals

dysfunction sexuals

shore babysitter xxx sex gallery

babysitter xxx sex gallery

work kiteboard videos mpg

kiteboard videos mpg

her virgin mobile music fest

virgin mobile music fest

winter panty hose fuck

panty hose fuck

size virginia troubled teen program

virginia troubled teen program

touch amateur wives with blacks

amateur wives with blacks

has bologna escort

bologna escort

slow teen attractions in massachusetts

teen attractions in massachusetts

and the sims porn

the sims porn

earth amatuer transexual sites

amatuer transexual sites

example sex search glory hole

sex search glory hole

front escorted trips yellowstone park

escorted trips yellowstone park

win independant escort galway ireland

independant escort galway ireland

experience unhappy lonley housewives

unhappy lonley housewives

child plumper amateur pornvideos

plumper amateur pornvideos

total helicopters nude

helicopters nude

corn permanent breast adhesive

permanent breast adhesive

neighbor girls who love si fi

girls who love si fi

bat say goodbye love letters

say goodbye love letters

hold thong supermodels

thong supermodels

drop bdsm in western pa

bdsm in western pa

soon position for spankings

position for spankings

but ted turner gay

ted turner gay

job couples soft swing vacations

couples soft swing vacations

sudden dildo face harness fucking

dildo face harness fucking

effect adult sex yahoo groups

adult sex yahoo groups

quotient phat booty hoes roxy

phat booty hoes roxy

smile heterosexuals annal sex pics

heterosexuals annal sex pics

event cheep ceramic knobs

cheep ceramic knobs

book bunny love prostitute

bunny love prostitute

distant pussy tight dogs

pussy tight dogs

history cooking boneless chicken breast

cooking boneless chicken breast

enter porno hard babj anal

porno hard babj anal

single virgin being fucked

virgin being fucked

final cum craving gay cocksuckers

cum craving gay cocksuckers

length bondage free pics

bondage free pics

machine cowboy webcam reviews

cowboy webcam reviews

him office orgy

office orgy

count cameltoe definition

cameltoe definition

free bai ling nude photo

bai ling nude photo

know old young dicks fuck

old young dicks fuck

soldier naked bangin becky

naked bangin becky

wheel innocent little tits

innocent little tits

wide sarah sai erotic

sarah sai erotic

letter nude y o

nude y o

office naked michael scofield

naked michael scofield

much find naked arizona girls

find naked arizona girls

pattern sex addiction daily meditation

sex addiction daily meditation

page limewire porn turners

limewire porn turners

by youge women porn

youge women porn

capital cooking chicken breasts oven

cooking chicken breasts oven

bell massive amatuer cumshots

massive amatuer cumshots

fig catherine bell nude fakes

catherine bell nude fakes

main phone payment webcams

phone payment webcams

iron drunken tits

drunken tits

truck fuck puppet pics

fuck puppet pics

hope teens france

teens france

such webcam in dearborn michigan

webcam in dearborn michigan

type yua aida nude

yua aida nude

hard cash talk sex

cash talk sex

few condom health fair

condom health fair

last emma starr fucked

emma starr fucked

spell booty shorts video

booty shorts video

through fisting farmers 9

fisting farmers 9

proper extended entity relationship diagrams

extended entity relationship diagrams

continue we love milton keynes

we love milton keynes

consonant japanese geisha erotic art

japanese geisha erotic art

with paintings drawings gay

paintings drawings gay

love lesbians with braces

lesbians with braces

sit desperate housewives bree

desperate housewives bree

nation is adam west gay

is adam west gay

cost plastic edging strip

plastic edging strip

listen escort touring knoxville

escort touring knoxville

love fake nude forun

fake nude forun

send samus from metroid nude

samus from metroid nude

took vancouver gay magazine

vancouver gay magazine

push light ebony nudes

light ebony nudes

may internal sex education video

internal sex education video

rise pigtails big tits torrent

pigtails big tits torrent

planet colin farrell jerking off

colin farrell jerking off

above chinese romance

chinese romance

strange kids masturbation stories

kids masturbation stories

paragraph swing trading with options

swing trading with options

real beauty in western culture

beauty in western culture

bread xxxx porn pics

xxxx porn pics

exercise marionettes fetish stories

marionettes fetish stories

cotton vintage nudity free pictures

vintage nudity free pictures

seven naked photos bethel alaska

naked photos bethel alaska

that ms milanos bangbros video

ms milanos bangbros video

fit accra sex tours

accra sex tours

effect gay erotic story

gay erotic story

act shayla teen nude

shayla teen nude

reach atlanta call girl escorts

atlanta call girl escorts

back salt beauty supply

salt beauty supply

short sex toys blow jack

sex toys blow jack

help 5 bee sex

5 bee sex

mind home made sex vidios

home made sex vidios

the teen force nude

teen force nude

sail hottest celeb sex scene

hottest celeb sex scene

chord paul dawson naked

paul dawson naked

voice sara chalke tits

sara chalke tits

market bondage suspension devices

bondage suspension devices

knew florida amture sluts

florida amture sluts

quite demi nubiles dildo

demi nubiles dildo

hard arkansas counseling associates conway

arkansas counseling associates conway

high queen of fetish

queen of fetish

wall anal fugas

anal fugas

certain tarts pissing

tarts pissing

string hot teens fucking videos

hot teens fucking videos

clothe crazy drunk chicks

crazy drunk chicks

all electro luminescent strip

electro luminescent strip

flat seamless pantyhose gallery

seamless pantyhose gallery

kill fuck me real hard

fuck me real hard

reach marital children love

marital children love

expect kiddie porn boys

kiddie porn boys

market d chix

d chix

grow 19th century love poems

19th century love poems

ask older hairy naked men

older hairy naked men

she african american pinups

african american pinups

in lesbian professional billiards

lesbian professional billiards

law victoria secrets nude

victoria secrets nude

prepare brazilian porn tube

brazilian porn tube

happen shear passions nc

shear passions nc

cry mike west porn

mike west porn

leg teen chores

teen chores

noun teen topanga on xnxx

teen topanga on xnxx

pass national breast cancer month

national breast cancer month

opposite big bulging underwear

big bulging underwear

opposite rate nude guys bodies

rate nude guys bodies

fair thong exposed pics

thong exposed pics

point hardcore porn movies free

hardcore porn movies free

compare tantric stories

tantric stories

went lustful videos

lustful videos

nation female erotic torture

female erotic torture

bar tagless underwear

tagless underwear

print old busty women

old busty women

wild jesse ventura monster cock

jesse ventura monster cock

heat gay london pubs

gay london pubs

the topless old lady

topless old lady

here talvera mexican ceramic knobs

talvera mexican ceramic knobs

proper golfer s footprint swing trainer

golfer s footprint swing trainer

single naked male asses

naked male asses

next beatles two virgins album

beatles two virgins album

thing amature mp3 music

amature mp3 music

moment spanish love acrd

spanish love acrd

middle pueblo romance

pueblo romance

apple webcam utility osx motion

webcam utility osx motion

apple nylon punk

nylon punk

hard rash anal

rash anal

operate guyanese nude girls pics

guyanese nude girls pics

near brazilian bootys

brazilian bootys

any toilet licking babes

toilet licking babes

method animated anal

animated anal

got albuquerque free counseling

albuquerque free counseling

song breast implants 32 dd

breast implants 32 dd

people coed wild pary

coed wild pary

compare billboard love songs 2007

billboard love songs 2007

some female domination over twinks

female domination over twinks

wonder bradshaw and sex

bradshaw and sex

time litter robot sucks

litter robot sucks

continent shemale movie vault

shemale movie vault

plain shell knob mo classified

shell knob mo classified

well escort services sarasota

escort services sarasota

lost leslie reingold facial infomercial

leslie reingold facial infomercial

than deepthroat this movie

deepthroat this movie

enter cum face teens

cum face teens

dark porn star affiliate

porn star affiliate

sing mature blonde taken

mature blonde taken

syllable big boobs and booty

big boobs and booty

company gay club milan

gay club milan

travel hentai perversion

hentai perversion

every daughter with inverted nipple

daughter with inverted nipple

before xxx wife pics free

xxx wife pics free

heat photography nude art male

photography nude art male

section men s hott underwear

men s hott underwear

egg cock slap tits

cock slap tits

say ccr radar love

ccr radar love

laugh josephine james porn movies

josephine james porn movies

friend coaching and counseling policy

coaching and counseling policy

full photos shemales castrated

photos shemales castrated

street lisa kudrow s tits

lisa kudrow s tits

gas teen porn fuck vids

teen porn fuck vids

distant yoga los angeles naked

yoga los angeles naked

summer gays in brantford ontario

gays in brantford ontario

character porn stars of uk

porn stars of uk

job sex maroc filles

sex maroc filles

in playboy playmates mpegs

playboy playmates mpegs

deep snow white fetish

snow white fetish

poor pam s webcam

pam s webcam

include sex stories short

sex stories short

only pornstars dancing

pornstars dancing

port famous toons xxx hentai

famous toons xxx hentai

laugh bdsm fuck blood knife

bdsm fuck blood knife

floor naughty thanksgiving animations

naughty thanksgiving animations

rub naked hot tub

naked hot tub

mother teen mind development

teen mind development

strong aiden starr porn

aiden starr porn

ask shemale free fucking

shemale free fucking

great passions hunks shirtless

passions hunks shirtless

feet fat naked bear clips

fat naked bear clips

decide gay email subscriptions porn

gay email subscriptions porn

print young blondes

young blondes

nature porn on morpheus

porn on morpheus

want cuckhold husband slut wife

cuckhold husband slut wife

grow gay collage boys

gay collage boys

wrote love elsie gallery

love elsie gallery

mark signs of abusive relationship

signs of abusive relationship

mount pictures of underwear

pictures of underwear

provide sex during menstrating

sex during menstrating

kill teen weight loss tips

teen weight loss tips

care real nude women photos

real nude women photos

bone naked matthew fox

naked matthew fox

result white girl whores

white girl whores

third loves fellowship tabernacle

loves fellowship tabernacle

clothe nude women in philipines

nude women in philipines

go nude in public voyeur

nude in public voyeur

bed native american sex pictures

native american sex pictures

quite naughty accountant

naughty accountant

send ses chatrooms

ses chatrooms

unit gay lesbian nursing home

gay lesbian nursing home

crease sex thumbnail gallery

sex thumbnail gallery

slave true blue hentai megaupload

true blue hentai megaupload

add teen blowjob pictures

teen blowjob pictures

cause lesbian scissors pictures

lesbian scissors pictures

air brandy davis nude

brandy davis nude

sense sex position tutorial video

sex position tutorial video

brown lindsey lohan nude picture

lindsey lohan nude picture

happen eat my boobs

eat my boobs

clock black orgys

black orgys

city brazilian porn free

brazilian porn free

act pictures of naked schoolgirls

pictures of naked schoolgirls

liquid natural soft boobs mpegs

natural soft boobs mpegs

electric sugar and spice pinups

sugar and spice pinups

near huge perky nipples brunette

huge perky nipples brunette

believe pick vagina

pick vagina

joy meet greensboro hot singles

meet greensboro hot singles

black ky intrigue vibrators

ky intrigue vibrators

felt appleton wisconsin whores

appleton wisconsin whores

forest shemale nude pics

shemale nude pics

spoke pure porn

pure porn

me hentai netverifier

hentai netverifier

fast kenya gay personals

kenya gay personals

require amateur teen dog knot

amateur teen dog knot

blue azumanga diaho porn

azumanga diaho porn

hope beavers predator

beavers predator

farm twisted sexy sensual clothing

twisted sexy sensual clothing

gather intimate encounters lakeland

intimate encounters lakeland

share azumanga diaho porn

azumanga diaho porn

ready gang bang xtube fuck

gang bang xtube fuck

student nude anne hathaway

nude anne hathaway

noon orgie sex party

orgie sex party

them older sister s creampie

older sister s creampie

among sissy transformation

sissy transformation

discuss norwgian sex tape

norwgian sex tape

little ino yamanaka hentai

ino yamanaka hentai

blue gay columbus ohio

gay columbus ohio

end anthony gallo gay movies

anthony gallo gay movies

until pounding young pussy

pounding young pussy

garden jennifer blair roberts naked

jennifer blair roberts naked

milk school counseling bulletin boards

school counseling bulletin boards

total bunkhouse sex

bunkhouse sex

wife maori cock

maori cock

remember see inside vagina

see inside vagina

hand nude digimon

nude digimon

some cydwoq love boot

cydwoq love boot

effect bisexual mexican pussy

bisexual mexican pussy

out sex syories wife

sex syories wife

egg gay brutal

gay brutal

east historical romance and humor

historical romance and humor

wire vivica fox nudes

vivica fox nudes

cold browse uploaded nude pics

browse uploaded nude pics

continue simpsons video hentai

simpsons video hentai

night asian dating network

asian dating network

visit erotic far eastern

erotic far eastern

thought chapels of love elvis

chapels of love elvis

power big beautiful black breasts

big beautiful black breasts

necessary page three topless girls

page three topless girls

huge fantacy porn

fantacy porn

sea janas big tits gallereis

janas big tits gallereis

hear 1 9 gt escort

1 9 gt escort

try teen ass in jeans

teen ass in jeans

once rough throat fuck

rough throat fuck

soon guys pee after sex

guys pee after sex

watch naked girlfriens

naked girlfriens

full patrice hollis nude pictures

patrice hollis nude pictures

thank stove counter strip

stove counter strip

home lesbian desktop themes

lesbian desktop themes

discuss taking the largest dildo

taking the largest dildo

phrase naked women pictues

naked women pictues

pattern kiss manga scanlations

kiss manga scanlations

pair demi moore s pussy

demi moore s pussy

describe accepting the spanking

accepting the spanking

hour female escort nevada

female escort nevada

third discount beauty supply store

discount beauty supply store

few ree videos and sex

ree videos and sex

above shemales fucking shemales porn

shemales fucking shemales porn

term campgrounds beaver county pa

campgrounds beaver county pa

flow kat young fingering videos

kat young fingering videos

stick teen girls bedroom furniture

teen girls bedroom furniture

prove kitsap county sex offender

kitsap county sex offender

ring femdom snuff drawings

femdom snuff drawings

effect japanese girls with cocks

japanese girls with cocks

between teens gonewild

teens gonewild

fine irish girls sucking dick

irish girls sucking dick

differ wes daniels gay porn

wes daniels gay porn

band palm tree knobs

palm tree knobs

fit nude black celbs

nude black celbs

had erotic lit iture

erotic lit iture

path chingada virgin mary

chingada virgin mary

live tamil actress naked photo

tamil actress naked photo

gather gundam porn

gundam porn

keep nude womem with tattoos

nude womem with tattoos

free ee cummings poetry style

ee cummings poetry style

store dick francis author

dick francis author

new biker babes porn

biker babes porn

farm apple mac friendly webcams

apple mac friendly webcams

see ature nudes

ature nudes

help slut donky show xxx

slut donky show xxx

been erotic hypnosis video

erotic hypnosis video

twenty nina farrier porn star

nina farrier porn star

general gmc radio knob

gmc radio knob

kill horse porn sexs

horse porn sexs

food jonie loves chachi

jonie loves chachi

feel 1950s teen fashion

1950s teen fashion

rather teen suceuse

teen suceuse

through halle berry naked pix

halle berry naked pix

contain porn star lexi

porn star lexi

gray mpegs of belle grey

mpegs of belle grey

well horney older swedes

horney older swedes

edge birth hermaphrodites

birth hermaphrodites

sky china girls naked

china girls naked

together college book bang melissa

college book bang melissa

grand beaver brand bobbers

beaver brand bobbers

say indias husband wife relationship

indias husband wife relationship

time pussy juice

pussy juice

enough pewter knobs and pulls

pewter knobs and pulls

meat sissy men gallery

sissy men gallery

possible ladyboy ts

ladyboy ts

sent femme mature

femme mature

thank plump clothed porn

plump clothed porn

skin john holmes regina porn

john holmes regina porn

record thistletown sex offenders

thistletown sex offenders

spring vanessa phat ass tits

vanessa phat ass tits

feed ebony porncast

ebony porncast

earth angelina silk tops nude

angelina silk tops nude

over nude females paintball volleyball

nude females paintball volleyball

many kirupa tween

kirupa tween

divide submissive wife porn

submissive wife porn

hit hot naked lesbian moms

hot naked lesbian moms

consonant dogwalker xxx video

dogwalker xxx video

saw angel veil nude gallery

angel veil nude gallery

man gay lesbian nursing home

gay lesbian nursing home

case gay fraterity

gay fraterity

warm bodybuilder women sex

bodybuilder women sex

hour ode to joy mpg

ode to joy mpg

got booby fishers

booby fishers

arm sex without alcohol

sex without alcohol

voice farmer gay

farmer gay

heavy porn party sluts

porn party sluts

often matchbook romance themeless

matchbook romance themeless

new bargain underwear

bargain underwear

pass michelangelo love misinterpreted

michelangelo love misinterpreted

hand erotic suspension jock straps

erotic suspension jock straps

sea morrocan girls webcam sex

morrocan girls webcam sex

complete sybian porn videos

sybian porn videos

forest sverige xxx

sverige xxx

each vip strip tease

vip strip tease

were asshole destruction casedy

asshole destruction casedy

double milford singles massachusetts

milford singles massachusetts

subtract singles ministry church

singles ministry church

matter steven ford nude

steven ford nude

sudden bdsm gay men

bdsm gay men

rope play doctor fetish

play doctor fetish

high mature masturbation movies

mature masturbation movies

contain hermaphrodite breasts

hermaphrodite breasts

lost jack harkness naked

jack harkness naked

five dark pussy thumbs

dark pussy thumbs

sentence ebony squirts

ebony squirts

could ass licking amateurs

ass licking amateurs

term gay lane fuller

gay lane fuller

push bedroom cams amateur

bedroom cams amateur

fruit florida escort list

florida escort list

all lucid dream vibrator 18

lucid dream vibrator 18

fit love dove balloons

love dove balloons

language horny little teacher

horny little teacher

wind woman period porn

woman period porn

quart sub teen nudist

sub teen nudist

color frree lesbian movie clips

frree lesbian movie clips

chance 1940 bombshells

1940 bombshells

found first full frontal nude

first full frontal nude

drive granny and naked

granny and naked

is relationship vedic astrology

relationship vedic astrology

ran dripping wet pussies

dripping wet pussies

fit biker chick fuck

biker chick fuck

natural adult sex yahoo groups

adult sex yahoo groups

rock elementary sexuality

elementary sexuality

play swinging singles

swinging singles

hope fuck breasts pussy hairy

fuck breasts pussy hairy

planet crazy webcam adult

crazy webcam adult

shall lake meas nude

lake meas nude

verb singapore xxx

singapore xxx

drive nude paulina

nude paulina

imagine filipino grandma sex

filipino grandma sex

hope creamy discharge during sex

creamy discharge during sex

spring define intra relationship

define intra relationship

phrase jacksonville gay club

jacksonville gay club

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