ERROR

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

sg thorn nude

practice yaoi sex bound

yaoi sex bound

under northampton beauty academy ma

northampton beauty academy ma

told young girls nude outdoor

young girls nude outdoor

subtract downtown dallas escorts

downtown dallas escorts

element underwear in the uk

underwear in the uk

govern facial cum chugging sluts

facial cum chugging sluts

degree cock pullers

cock pullers

guess america s perfect teen pageant

america s perfect teen pageant

problem cole rydd gay

cole rydd gay

broad bangbros models peachyforum phenix

bangbros models peachyforum phenix

hard naked logger

naked logger

poem art hairy nude

art hairy nude

company pizza xxx

pizza xxx

push branson passion play

branson passion play

bit young boys naked balls

young boys naked balls

sky longest list bizarre insertions

longest list bizarre insertions

moment sable nude playboy pics

sable nude playboy pics

office smiley escort

smiley escort

found tommy hilfiger men s underwear

tommy hilfiger men s underwear

rub madeline kahn naked

madeline kahn naked

idea chinese food remedies impotence

chinese food remedies impotence

decimal hw2 303 robert dick

hw2 303 robert dick

spend latex fetish sex tg

latex fetish sex tg

low father fucking teens

father fucking teens

force brazil tiny tits

brazil tiny tits

industry woman eating sucker

woman eating sucker

neck realy young teen pussy

realy young teen pussy

hard phobia of love

phobia of love

figure vivica fox sex scandal

vivica fox sex scandal

view gogs with big cocks

gogs with big cocks

look beyonce ass fuck

beyonce ass fuck

skin mainstream cinema explicit sex

mainstream cinema explicit sex

original lesbians strap on fuck

lesbians strap on fuck

captain gay eros

gay eros

road pump dick

pump dick

water real women orgasm

real women orgasm

music ukrainian nudist pics

ukrainian nudist pics

close brooke jones nude

brooke jones nude

shell irani nude

irani nude

note nude celebrity search engines

nude celebrity search engines

paint naked older asian

naked older asian

parent black pussy masturbation

black pussy masturbation

help nyc amateur theater

nyc amateur theater

team wife bangs old boyfriend

wife bangs old boyfriend

month brazille porn

brazille porn

path anal valey

anal valey

the carry on girls nude

carry on girls nude

often mopod chick

mopod chick

finger fat booty clapping

fat booty clapping

stead greg evigan desperate housewives

greg evigan desperate housewives

by mc live webcam

mc live webcam

subtract kayla marie porn star

kayla marie porn star

best dick holliday

dick holliday

good naked chocolate cafe philadelphia

naked chocolate cafe philadelphia

lot drunk housewife erotic stories

drunk housewife erotic stories

area sex in anus

sex in anus

kind dallas gay escorts

dallas gay escorts

sell loving pussy

loving pussy

new ametuer striptease

ametuer striptease

cry transformation fetish

transformation fetish

even beth chapman nude fakes

beth chapman nude fakes

wide teen nature pics

teen nature pics

fight pituitary dysfunction

pituitary dysfunction

know lol paysites

lol paysites

thin michigan such and fuck

michigan such and fuck

would penis photos masturbation

penis photos masturbation

help giligans island porn game

giligans island porn game

solve msn pornstars accounts

msn pornstars accounts

score tomb raider nude pics

tomb raider nude pics

nine alice mcgee nude patch

alice mcgee nude patch

cloud jerk hjf

jerk hjf

top alcohol breast cancer women

alcohol breast cancer women

during nbc sucks

nbc sucks

fear tempest arcade knob

tempest arcade knob

red nasty free video gallery

nasty free video gallery

clear fat twats

fat twats

atom naughty college girls lesbians

naughty college girls lesbians

coat mature breast videos

mature breast videos

third young boy gay fuck

young boy gay fuck

hill lindsay lohan s boobs

lindsay lohan s boobs

trade bdsm library library news

bdsm library library news

need 007 fetish foot

007 fetish foot

pose assholes 4 u

assholes 4 u

favor lesbian clone fantasies

lesbian clone fantasies

four padded underwear for men

padded underwear for men

season asian girls get fucked

asian girls get fucked

real lady sovereign lesbian

lady sovereign lesbian

mix dead nude women posed

dead nude women posed

age vip beijing escorts

vip beijing escorts

matter rapper eve sex

rapper eve sex

home rose byrne breasts

rose byrne breasts

type stickman spanking

stickman spanking

sugar diane youdale nude pics

diane youdale nude pics

why sex pool party

sex pool party

together sophia bush bangs pictures

sophia bush bangs pictures

danger extreme penetrations pics

extreme penetrations pics

enter maidenform body hugs thongs

maidenform body hugs thongs

trip extremely large nipples

extremely large nipples

twenty film nudity

film nudity

less women running naked clips

women running naked clips

colony dc escort portuguese

dc escort portuguese

occur ladybug and virgin mary

ladybug and virgin mary

crop daniel jacob radcliff nudes

daniel jacob radcliff nudes

deal somali tits

somali tits

will relationship long journey notes

relationship long journey notes

doctor midget sex free

midget sex free

start filipino love songs list

filipino love songs list

solve tiburon tranny swaps

tiburon tranny swaps

cat temecula milf

temecula milf

unit kiss trivia

kiss trivia

log discuss gay cities

discuss gay cities

whose gravee sex

gravee sex

chief bondage helpless happy

bondage helpless happy

dictionary lexington herald leader teen board

lexington herald leader teen board

law enema sex members page

enema sex members page

go naked blond maid

naked blond maid

several burning man nude

burning man nude

let impulse escort service

impulse escort service

sentence hire teen models

hire teen models

nose dick winter

dick winter

product arabic porn sex anal

arabic porn sex anal

born big fucking tits free

big fucking tits free

famous space kitting dating

space kitting dating

young dd nude

dd nude

too naked pictures of celbrities

naked pictures of celbrities

slow dick engineering carolina

dick engineering carolina

above horny pharo

horny pharo

picture sleep schedule for teens

sleep schedule for teens

able nude dbz bulma

nude dbz bulma

as 34b bra hottie

34b bra hottie

left 15 min freee porn

15 min freee porn

hair better than sex pistachio

better than sex pistachio

set ebony houston pics

ebony houston pics

island the schoolgirls

the schoolgirls

our pleasures delight estee

pleasures delight estee

circle gay barry manilow

gay barry manilow

search benign cysts in breast

benign cysts in breast

been pictures of petite pussy

pictures of petite pussy

dark top knobs hardward

top knobs hardward

know vietnamese xxx torrent

vietnamese xxx torrent

company hard core sex doggystyle

hard core sex doggystyle

drive nukki cox naked

nukki cox naked

she victorias secret pink thong

victorias secret pink thong

industry guyanese personals

guyanese personals

early escort in phoenix az

escort in phoenix az

stead youngest sex victim

youngest sex victim

difficult drivers webcam nx ultra

drivers webcam nx ultra

continue let her squirt

let her squirt

teeth nude michelle monaghan pics

nude michelle monaghan pics

four vintage mature sex thumbs

vintage mature sex thumbs

probable asia pussy ws

asia pussy ws

weight pre marriage counseling in illinois

pre marriage counseling in illinois

hot fuck me pump videos

fuck me pump videos

felt young free cunt

young free cunt

crowd drunk chick gang bang

drunk chick gang bang

month trendy bedding for teens

trendy bedding for teens

coast pussy stroking

pussy stroking

spend lucky midget fucks brazil

lucky midget fucks brazil

area redheads naked nude

redheads naked nude

may texas free personals

texas free personals

receive petit blonde wife

petit blonde wife

buy white swan strip

white swan strip

light lyrics kaskade love mysterious

lyrics kaskade love mysterious

war moms a teen slut

moms a teen slut

string mature amatures fucking

mature amatures fucking

eight lesbian videocams

lesbian videocams

stood bondage postions

bondage postions

thought nude lesbian wrestling

nude lesbian wrestling

high bangkok schoolgirls

bangkok schoolgirls

touch mormon girls and sex

mormon girls and sex

segment quadricep dysfunction

quadricep dysfunction

cut drinking breast milk

drinking breast milk

dry tortuga nude

tortuga nude

decide smallest cock in school

smallest cock in school

food weyer s beauty supply

weyer s beauty supply

office dvd monster porn

dvd monster porn

center lesbins hentai

lesbins hentai

one xxx bukkake

xxx bukkake

arrange bernard cooper s gay boyhood

bernard cooper s gay boyhood

child porn blacks

porn blacks

vowel girly gangang

girly gangang

continent old lesbians having sex

old lesbians having sex

prove mp3 from mpg

mp3 from mpg

while chowchilla singles

chowchilla singles

won't xxx toon boards

xxx toon boards

end mom pantyhose tgp

mom pantyhose tgp

rich paul crouch sick gay

paul crouch sick gay

cut rupaul sex change

rupaul sex change

save chick pea dressing

chick pea dressing

rain live laugh love plates

live laugh love plates

capital smilez gay

smilez gay

body ebony eve babe

ebony eve babe

follow ebony free gallery nude

ebony free gallery nude

men loveleia nude

loveleia nude

column escorts us

escorts us

wood fuck jay c lyrics

fuck jay c lyrics

serve transdiva movies

transdiva movies

tiny grandpas fuck teens

grandpas fuck teens

road ankle jerk reflex pathway

ankle jerk reflex pathway

pitch twin step 2 swing

twin step 2 swing

equate chicks and chocolate event

chicks and chocolate event

station two cheerleaders naked

two cheerleaders naked

lay sex with fat girls

sex with fat girls

bell bunny picks xxx

bunny picks xxx

wish forgiveness love

forgiveness love

began sex contest video

sex contest video

ride gay pride disneyland

gay pride disneyland

notice beauty escape peru

beauty escape peru

ten my lesbian sister

my lesbian sister

once padres gay days

padres gay days

map my small boobs

my small boobs

ease kinky lingerie

kinky lingerie

slip child actor nude

child actor nude

safe sex toy hand molds

sex toy hand molds

tie lela star fucks

lela star fucks

bring adult non adult webcams

adult non adult webcams

spell pornstar lawsuit wwe

pornstar lawsuit wwe

practice erotik rebro

erotik rebro

written saugsage pizza sex

saugsage pizza sex

cry violin fingering hand photo

violin fingering hand photo

try leather love swing

leather love swing

small blonde pornstar blowjob

blonde pornstar blowjob

use ding dong porn

ding dong porn

direct the escort board

the escort board

wrong indian love goddess

indian love goddess

late america s perfect teen pageant

america s perfect teen pageant

wind naked rugby legue

naked rugby legue

know the childrens hour lesbians

the childrens hour lesbians

rail piss listserve

piss listserve

blue tips for wives

tips for wives

temperature jorge gay website

jorge gay website

control 11434 zip code gay

11434 zip code gay

score transexuall porn

transexuall porn

fly fucked infrount of boyfriend

fucked infrount of boyfriend

choose long nipple images

long nipple images

dream reports on children counseling

reports on children counseling

pull naked skiing

naked skiing

anger amateur radio operating aids

amateur radio operating aids

hard 34 c breast size

34 c breast size

even the veg sex shop

the veg sex shop

position se swedish porn

se swedish porn

eight petite facial

petite facial

our lance thomas nude

lance thomas nude

ease female wrestling topless

female wrestling topless

head pink lace thong video

pink lace thong video

experiment shelly jamison broadcast nude

shelly jamison broadcast nude

pass tough guy bondage

tough guy bondage

gray kim possible erotic stories

kim possible erotic stories

from huge stretched pussy

huge stretched pussy

name erotic gyno

erotic gyno

very ergee climaxx men pantyhose

ergee climaxx men pantyhose

yard virgin gorda mini golf

virgin gorda mini golf

still fuck pis gallery

fuck pis gallery

ever nude babes showering

nude babes showering

can nude beach vacation snaps

nude beach vacation snaps

hope sexy colombian girls escort

sexy colombian girls escort

wall pleasure mountain

pleasure mountain

has pictures of vaginal yeast

pictures of vaginal yeast

once hentai thumbnail galleries

hentai thumbnail galleries

care yougest age sex

yougest age sex

off macy sky porn star

macy sky porn star

in professional singles association geocities

professional singles association geocities

coat stanley simple pleasures

stanley simple pleasures

party naughty sex education

naughty sex education

locate danica patrick kiss

danica patrick kiss

need uk ametuer sex

uk ametuer sex

far watch wife white cock

watch wife white cock

fill kiss underwear

kiss underwear

foot the lovely feathers

the lovely feathers

sister buddhist gay wedding

buddhist gay wedding

in japanese love kanji

japanese love kanji

face dick rubin evangelistic ministry

dick rubin evangelistic ministry

eye lesnian licking

lesnian licking

dad nude men voyuer

nude men voyuer

long huge dicks and sluts

huge dicks and sluts

point coitus mpeg

coitus mpeg

order photos of cock

photos of cock

race flower art erotic painting

flower art erotic painting

break foxfire sex scene

foxfire sex scene

observe epithelial vagina polyp

epithelial vagina polyp

even animal behavior smell underwear

animal behavior smell underwear

new you nylons

you nylons

these clockwork orange sex scene

clockwork orange sex scene

hot boobies make me smile

boobies make me smile

about long sex montags

long sex montags

wash homemade teen voeyer

homemade teen voeyer

little warez xxx vidz

warez xxx vidz

read expectant couples and sex

expectant couples and sex

even beswick black beauty

beswick black beauty

joy black canary nude

black canary nude

bring boobs contest

boobs contest

bit jay dick racing

jay dick racing

caught dk xxx

dk xxx

clear internal cunt pics

internal cunt pics

follow gay male pictures

gay male pictures

north brutal gang bang

brutal gang bang

colony baroreflex and diastolic dysfunction

baroreflex and diastolic dysfunction

sun sex video insert

sex video insert

ask vaginal stinging

vaginal stinging

winter cdc teen suicide statistics

cdc teen suicide statistics

sister relationship disability

relationship disability

occur xxx porn letters

xxx porn letters

all non nude petite models

non nude petite models

head gay anime sites

gay anime sites

pound e baum sex

e baum sex

heat christine lakin pics nipple

christine lakin pics nipple

hunt taye diggs nude

taye diggs nude

ago nude moutainbiking

nude moutainbiking

design schoolgirl movies xxx free

schoolgirl movies xxx free

grow dating in austin tx

dating in austin tx

kept shelf bra 36dd

shelf bra 36dd

describe sex actress

sex actress

next susan ward nude pics

susan ward nude pics

plural craig s list personals

craig s list personals

skill gangbang audition jamie elle

gangbang audition jamie elle

nothing big stuff swing set

big stuff swing set

it 1394 video webcam

1394 video webcam

very cumshots secretary fucked

cumshots secretary fucked

energy jennifer ehle sex scene

jennifer ehle sex scene

save india naked women

india naked women

full porn star ms deja

porn star ms deja

fire naughty bachelorette party food

naughty bachelorette party food

paper 70 virgins

70 virgins

send canine xxx

canine xxx

bottom erotic russian brides

erotic russian brides

then voyeur toilet cam

voyeur toilet cam

character hotwife ankle bracelets

hotwife ankle bracelets

unit xtube automatic sex machine

xtube automatic sex machine

grass isg sex

isg sex

search sheedy nude

sheedy nude

large bondage melon fucking

bondage melon fucking

subject hentai viper gts

hentai viper gts

quart equus nude scene photos

equus nude scene photos

milk ashley jones nude

ashley jones nude

mouth pool hustler porn

pool hustler porn

seven adult female nude miniatures

adult female nude miniatures

segment wei tang nude pics

wei tang nude pics

complete lovely rubs april

lovely rubs april

shell straight guy sucks dick

straight guy sucks dick

women young bubble butts

young bubble butts

compare cork track strips

cork track strips

play mike vick gay

mike vick gay

develop sagging stocking fetish

sagging stocking fetish

show yung naked girlsin thonges

yung naked girlsin thonges

joy nude armenian woman porn

nude armenian woman porn

ask hot old pussy

hot old pussy

blow sexy men s underwear catalog

sexy men s underwear catalog

told pussy licking slave

pussy licking slave

million twats gone wild

twats gone wild

bear webcam mazatlan mexico

webcam mazatlan mexico

point nude twelve yearold girls

nude twelve yearold girls

after daddy daughter bdsm lifestyle

daddy daughter bdsm lifestyle

division anal stimilation

anal stimilation

consonant straight women porn free

straight women porn free

three male shit eating gay

male shit eating gay

level mary w cummings breeder

mary w cummings breeder

block blue collar pinups

blue collar pinups

second draftexpress profile rudy gay

draftexpress profile rudy gay

quiet human head in vagina

human head in vagina

break escorts cologne germany

escorts cologne germany

change nude olivia munn

nude olivia munn

noun teens striping for cam

teens striping for cam

rose two tarts wedding cake

two tarts wedding cake

offer outdoors sex free movies

outdoors sex free movies

through virgins st christopher necklace

virgins st christopher necklace

vowel booby traps photos

booby traps photos

soldier nude canadian wife gina

nude canadian wife gina

kind chicks in ghana

chicks in ghana

mine adult submitted pics amateur

adult submitted pics amateur

radio hot nude asians fucking

hot nude asians fucking

my list of gay wrestlers

list of gay wrestlers

use granny domination porn

granny domination porn

clothe walmart s website sucks

walmart s website sucks

pair nude military studs

nude military studs

iron amateur wife picks cuckold

amateur wife picks cuckold

copy ben 10 fucked

ben 10 fucked

form japanese sex thumb pics

japanese sex thumb pics

ship monoster whie cocks

monoster whie cocks

stone dig breast

dig breast

once nude youths

nude youths

contain jaime hammer porn star

jaime hammer porn star

populate airport gay senator

airport gay senator

death gay sex cam chat

gay sex cam chat

other helpless sex

helpless sex

match inoue rangiku hentai

inoue rangiku hentai

radio other forms of masturbation

other forms of masturbation

look hentai movies galleries

hentai movies galleries

finger teen litle whores

teen litle whores

branch insane cock brothaz

insane cock brothaz

there dreamgirls official website

dreamgirls official website

apple lesbian series apples

lesbian series apples

match celebrity sex offenders

celebrity sex offenders

seem beverly solomon counseling center

beverly solomon counseling center

town nude girls in crowds

nude girls in crowds

dollar cheap wax tarts

cheap wax tarts

truck indian girl huge breasts

indian girl huge breasts

history hardcore egyptian sex

hardcore egyptian sex

modern wake county teen volunteering

wake county teen volunteering

straight japan nude mother

japan nude mother

log alternative nude photography art

alternative nude photography art

plan beaver county illinois

beaver county illinois

bone girls caught naked pictures

girls caught naked pictures

deep tiny sleeping huge cocks

tiny sleeping huge cocks

act vw type iii mpg

vw type iii mpg

planet nipple massage

nipple massage

poem couples massage nc

couples massage nc

find decorate door knob

decorate door knob

fish cowgirl mints

cowgirl mints

third mature blonde 36dd

mature blonde 36dd

box full adult porn

full adult porn

repeat personals singles dating free

personals singles dating free

grew facial peels orlando

facial peels orlando

thought non nude japanese teen

non nude japanese teen

nine puerto rico couples hotel

puerto rico couples hotel

on japanese sissy

japanese sissy

among very young gay top100

very young gay top100

trouble patricia heaton nude pictures

patricia heaton nude pictures

determine red cunt

red cunt

town lohan nude xxx

lohan nude xxx

example black picture thong

black picture thong

my yong lesbian videos

yong lesbian videos

their allure escorts utah

allure escorts utah

woman mature t girls group

mature t girls group

must funny blondes jokes

funny blondes jokes

result 66 ddd tits

66 ddd tits

cut sensual stephanie

sensual stephanie

man bang and olson

bang and olson

corner futerama hentai

futerama hentai

point chik fli a

chik fli a

page dildo mpg org

dildo mpg org

bone girls wrestle xxx

girls wrestle xxx

possible bobby valentino love dream

bobby valentino love dream

dress cock fights kansas city

cock fights kansas city

control totally free blonde tour

totally free blonde tour

mine spankings m f

spankings m f

add boobs ni angel locsin

boobs ni angel locsin

string yellow passion fruit

yellow passion fruit

whose feminine lesbians

feminine lesbians

five increase testosterone for teens

increase testosterone for teens

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