ERROR

You installed the standalone Coppermine into your Nuke portal.
". "Please download and install a CPG Port: CPG for PostNuke OR CPG for PHPnuke
big gay cocksucking

big gay cocksucking

neck entity relationship modling

entity relationship modling

multiply nylon foot tickling story

nylon foot tickling story

see opie and anthony personals

opie and anthony personals

hold pine tree nudist

pine tree nudist

gray teen fucking machines

teen fucking machines

told sonia nylons

sonia nylons

pass megaman hentai games

megaman hentai games

stood all insider porn

all insider porn

level auditions for teens 13 18

auditions for teens 13 18

note teen asses big tits

teen asses big tits

rub rules for healthy relationships

rules for healthy relationships

engine forced fat sex

forced fat sex

voice melissa unh nude model

melissa unh nude model

pair i love michele icons

i love michele icons

key adult friendfinder proxy

adult friendfinder proxy

reply arissa hill nude

arissa hill nude

stick xondemand clips milf

xondemand clips milf

seem spy upskirt free pics

spy upskirt free pics

trouble sonya walger sex

sonya walger sex

fine gay marriage initiative

gay marriage initiative

afraid watch homemade sex ovies

watch homemade sex ovies

place debeers sucks

debeers sucks

circle twelve porn

twelve porn

experiment shaved cunt shots

shaved cunt shots

list carmen eletrica naked

carmen eletrica naked

music don love and zayed

don love and zayed

brother love songs wavs

love songs wavs

print unlawful harassment protection orders

unlawful harassment protection orders

tall rugrats cartoon porn

rugrats cartoon porn

bar mature 666

mature 666

verb lewd halloween costumes

lewd halloween costumes

sit ase in thong

ase in thong

stop living with anxiety relationships

living with anxiety relationships

multiply lesbian puss

lesbian puss

guess legal sex harrisburg pennsylvania

legal sex harrisburg pennsylvania

instrument automible mpg

automible mpg

town good anime porn

good anime porn

oh anime wife sluts porn

anime wife sluts porn

level cunnilingus pussy

cunnilingus pussy

leave jorja fox topless

jorja fox topless

lie roman numeral xxx

roman numeral xxx

moment tobacco teens

tobacco teens

white england peter phillips shirtless

england peter phillips shirtless

drive bellydance topless

bellydance topless

equate brutal female fight

brutal female fight

number jamie presley adult hardcore

jamie presley adult hardcore

care pleasures novelties huntsville al

pleasures novelties huntsville al

decimal couples suduce teens

couples suduce teens

column amy fisher hardcore video

amy fisher hardcore video

ask anime power ranger sex

anime power ranger sex

strong crouching tiger hidden beaver dead ick a cumshot

ick a cumshot

end shemale torrents

shemale torrents

experiment dani minogue nude

dani minogue nude

whether breast reduction using implants

breast reduction using implants

climb bark nipples

bark nipples

course fat pregnant pussy

fat pregnant pussy

kept aliz e strip

aliz e strip

tall k slut xxx

k slut xxx

cold beavers hockey schedule

beavers hockey schedule

instrument kirstensroom hardcore

kirstensroom hardcore

equal nova scotia breast screen

nova scotia breast screen

type teen kitty

teen kitty

a worst gay problem

worst gay problem

plural covert porn sites

covert porn sites

why roma maffia nude

roma maffia nude

man winnipeg porn stars

winnipeg porn stars

head pepper porn

pepper porn

doctor deep pussy insertions

deep pussy insertions

beat philippine teen xxx

philippine teen xxx

basic susan featherly porn

susan featherly porn

build kim kardashian xxx tape

kim kardashian xxx tape

range ramsdale sex

ramsdale sex

wait collin farell sex videos

collin farell sex videos

decide cream and scream porn

cream and scream porn

may naked myspace graphics

naked myspace graphics

red sex models wanted uk

sex models wanted uk

for jenna lewis sex tape

jenna lewis sex tape

jump emilie autumn naked

emilie autumn naked

cow passion remix

passion remix

fruit sexy women fisting clips

sexy women fisting clips

small couples amateur video

couples amateur video

row jammies teen

jammies teen

grew hackers of porn mouies

hackers of porn mouies

fast boy amateur freee

boy amateur freee

father ffm jizz

ffm jizz

made the cunt in art

the cunt in art

wrote bvd underwear retailers

bvd underwear retailers

who facial peels for men

facial peels for men

toward milk chocolate jugs

milk chocolate jugs

red nia long dating

nia long dating

wood escort full service indianapolis

escort full service indianapolis

lie voyeurs exhibitionists

voyeurs exhibitionists

is bdsm cb2k

bdsm cb2k

size nude twink

nude twink

bottom poway beauty salons relaxer

poway beauty salons relaxer

duck georgia erotic massage

georgia erotic massage

cell rear suspension ford escort

rear suspension ford escort

neck increasing female sex drived

increasing female sex drived

dead naked natives gallery

naked natives gallery

silver gay cologne

gay cologne

bring blondes models

blondes models

take candice michelle naked free

candice michelle naked free

read naked bear cub

naked bear cub

better sexuality of santan flowers

sexuality of santan flowers

fresh fucked on farm

fucked on farm

mix asian shemale torrent

asian shemale torrent

clear sleeping suck

sleeping suck

part swedish schoolgirls nude photos

swedish schoolgirls nude photos

desert teens birth pictures

teens birth pictures

major genealogical relationship chart

genealogical relationship chart

round vaginal entrance

vaginal entrance

than katie fucks

katie fucks

ride love canel

love canel

need vieth nude

vieth nude

third sleeping beauty coloring

sleeping beauty coloring

done reasons for pre ejaculation

reasons for pre ejaculation

seed confusing love with violence

confusing love with violence

crowd bdsm milf

bdsm milf

eye teen slut mpeg

teen slut mpeg

in holiday inn sex parties

holiday inn sex parties

been 21 blowjob

21 blowjob

distant walmart masturbation storeys

walmart masturbation storeys

morning fat tits home vid

fat tits home vid

we a teens lyrics

a teens lyrics

value italian hanger sex postion

italian hanger sex postion

board personal philosophy of counseling

personal philosophy of counseling

age urethra cock ring

urethra cock ring

clear beauty salon grants

beauty salon grants

consider hudgens picture nude

hudgens picture nude

him cage slut

cage slut

war redjead sex

redjead sex

tube reasons for pre ejaculation

reasons for pre ejaculation

be escorts huntsville texas

escorts huntsville texas

let milking fetish

milking fetish

meant oblivion bondage mod

oblivion bondage mod

enough skimpy thongs teen

skimpy thongs teen

dry ashley bond naked

ashley bond naked

thick staci anderson chick rocks

staci anderson chick rocks

serve lesbo lickes

lesbo lickes

course big ass cock

big ass cock

bed really horny anime girl

really horny anime girl

sentence wemon free porn videos

wemon free porn videos

here sex trade in peru

sex trade in peru

family reasons relationships fail

reasons relationships fail

cotton nude army men

nude army men

about vanderhoof nude

vanderhoof nude

other eric s blonde jokes

eric s blonde jokes

star love songs mixtapes

love songs mixtapes

group personals for transgendered

personals for transgendered

seat rollback porch swing

rollback porch swing

tool women s nylon sport shorts

women s nylon sport shorts

horse bondage discipline bdsm

bondage discipline bdsm

job dawg pound sex

dawg pound sex

forest chinese actor sex scandal

chinese actor sex scandal

trouble nude american gay teens

nude american gay teens

sheet hentai sensei

hentai sensei

differ sex picturres and positions

sex picturres and positions

spoke slanted pussy

slanted pussy

consonant bangbros aj

bangbros aj

idea the big bang singularity

the big bang singularity

danger pruritis anal severe night

pruritis anal severe night

side up skirt celebrity xxx

up skirt celebrity xxx

least latinao mom porn

latinao mom porn

tool family nudist groups gallery

family nudist groups gallery

east domnload nude free

domnload nude free

us eboney sex

eboney sex

pick chewey sweet tarts

chewey sweet tarts

hear jap femdom physical training

jap femdom physical training

sentence funny fuck movie clips

funny fuck movie clips

three hillbillie chicks

hillbillie chicks

month kara kane sex

kara kane sex

material asian tranny island

asian tranny island

wife escorted biblical

escorted biblical

your fine black pussy

fine black pussy

between xxx funny pictures

xxx funny pictures

suffix sex clubs middleast

sex clubs middleast

egg webe web girls thongs

webe web girls thongs

read cinderella girl teen

cinderella girl teen

join miley cirus s boobs

miley cirus s boobs

throw hentai movie bondage game

hentai movie bondage game

shape bangbros free porn passwords

bangbros free porn passwords

nine els ernie golf swing

els ernie golf swing

money professional singles in dc

professional singles in dc

free dicks anal creampie squirts

dicks anal creampie squirts

send young asuan shemale sites

young asuan shemale sites

happen women buffalo ny fuck

women buffalo ny fuck

dictionary gay adult free sites

gay adult free sites

picture writer s guidelines romance fiction

writer s guidelines romance fiction

between sex survivor 2000

sex survivor 2000

be ever show children breast

ever show children breast

wait holly larr nude

holly larr nude

fine europ penis tgp

europ penis tgp

fight mouse romance adoptions

mouse romance adoptions

fat blonde hilarious joke

blonde hilarious joke

it facial skin rashes

facial skin rashes

early daphne zuniga naked picures

daphne zuniga naked picures

silent xxx phone suck

xxx phone suck

section vanessa angel tits

vanessa angel tits

shine south american landing strip

south american landing strip

turn pornstars lesbian gallery

pornstars lesbian gallery

look valparaiso gangbangs

valparaiso gangbangs

enemy male male anal examinations

male male anal examinations

early can gays join fraternities

can gays join fraternities

he teen topkds

teen topkds

chart teen enema boy

teen enema boy

old chick peas cumin thetimes

chick peas cumin thetimes

happen ocd love

ocd love

use chicano love

chicano love

jump you tube busty teen

you tube busty teen

suffix lacy lingerie tits ass

lacy lingerie tits ass

drop porn political cartoon

porn political cartoon

basic edmonton sensual massage

edmonton sensual massage

sound dick iverson portland

dick iverson portland

or a passion for puters

a passion for puters

ocean bukake porn trailers

bukake porn trailers

girl nude halley berry

nude halley berry

govern latena porn

latena porn

side clear shelf strips

clear shelf strips

red porn hacks

porn hacks

silent buckinghamshire sex contacts

buckinghamshire sex contacts

select oral sex wife marriage

oral sex wife marriage

steam sex stories shave

sex stories shave

rather teen trailers

teen trailers

mount wild wives horny

wild wives horny

much cruel intentions sex scene

cruel intentions sex scene

coast 401 webcam

401 webcam

you dragon quest jessica porn

dragon quest jessica porn

there bezar sex

bezar sex

broad nitazoxanide horny

nitazoxanide horny

free is key west gay

is key west gay

of big busted maria swan

big busted maria swan

kill massive ebony tits

massive ebony tits

also i love big hips

i love big hips

ask kardasion sex tape

kardasion sex tape

hard unable to receive love

unable to receive love

system salukitalk hairy pussy

salukitalk hairy pussy

your erectile dysfunction surgery

erectile dysfunction surgery

car hentai sim game

hentai sim game

no axis wetsuit

axis wetsuit

woman bell topless catherine

bell topless catherine

opposite brook nude

brook nude

done amateur radio license fcc

amateur radio license fcc

cook high resoloution porn pictures

high resoloution porn pictures

wash uniform chicks getting banged

uniform chicks getting banged

catch oldies season of love

oldies season of love

tiny brutal anime

brutal anime

laugh peugeot naked

peugeot naked

ride webcam teacher stripping

webcam teacher stripping

practice bbw xxx mpeg

bbw xxx mpeg

spoke teddy bear pleasure

teddy bear pleasure

skin asia schoolgirls sex

asia schoolgirls sex

less stage four breast cancer

stage four breast cancer

rain shay sights first blowjob

shay sights first blowjob

skill german naked grannies

german naked grannies

never gay talmey

gay talmey

require catholic singles dayton ohio

catholic singles dayton ohio

distant teen carrer finding

teen carrer finding

wish childrens nudist

childrens nudist

corn gray porn picture

gray porn picture

symbol 100 free solo anal

100 free solo anal

ever avril lavgine sex scene

avril lavgine sex scene

ear sexy sluts giving blowjobs

sexy sluts giving blowjobs

she ashley blue porn star

ashley blue porn star

is amature porn uploads

amature porn uploads

example porn star kats

porn star kats

station demi moore strip dance

demi moore strip dance

type sex offenders registry

sex offenders registry

school voodoo love symbols

voodoo love symbols

major erotic art museum hamburg

erotic art museum hamburg

double daughter swallows dads cock

daughter swallows dads cock

especially squirting tutorials

squirting tutorials

coat granny fuck torrent

granny fuck torrent

read an old western porn

an old western porn

since business sexual harassment quizzes

business sexual harassment quizzes

soil breast milk ducts

breast milk ducts

air melissa cole pure romance

melissa cole pure romance

necessary amateur men photos

amateur men photos

support miss femdom tgp

miss femdom tgp

middle men showering galleries

men showering galleries

his sofia vergara boobs

sofia vergara boobs

busy live gay sex cam

live gay sex cam

she crislu naughty and nice

crislu naughty and nice

buy fine bitchs have sex

fine bitchs have sex

lady ge easy pro webcam

ge easy pro webcam

cook fitness orgasm

fitness orgasm

break bondage dungeons

bondage dungeons

sail women sex offender

women sex offender

able the hunn porn site

the hunn porn site

friend college football jocks nude

college football jocks nude

very horny girl shaking

horny girl shaking

single cupids sex

cupids sex

born sex glen perry

sex glen perry

lay boy sucking cock

boy sucking cock

noon little black naked girls

little black naked girls

through john gay quotes

john gay quotes

farm barter for escorts

barter for escorts

floor jrnnifer love hewitt

jrnnifer love hewitt

burn school counseling stratigies

school counseling stratigies

tree drawn together anime porn

drawn together anime porn

seven david wright swing analysis

david wright swing analysis

heavy teen wage laws

teen wage laws

nothing vannessa hudgins pics nude

vannessa hudgins pics nude

warm costume play lesbian 06

costume play lesbian 06

buy big cock teen sex

big cock teen sex

and pocket pc sex positions

pocket pc sex positions

shore hardcore jennifer lopez

hardcore jennifer lopez

effect anal intercourse health

anal intercourse health

thank las vegas porn star

las vegas porn star

truck kim possible cock

kim possible cock

imagine anal mpegs milf secretaries

anal mpegs milf secretaries

lot lesbo sex tips

lesbo sex tips

exercise seduce pussy

seduce pussy

half golden chick franchises

golden chick franchises

term teen for cash review

teen for cash review

sentence daily devotional for teens

daily devotional for teens

capital gwen staffani nude

gwen staffani nude

govern argentina voyeurs

argentina voyeurs

last i love buddy icons

i love buddy icons

river intimacy issues

intimacy issues

close broadband gay movies

broadband gay movies

though porn lin ks

porn lin ks

ocean i love my donkey

i love my donkey

street second street beauty supply

second street beauty supply

decide drunk girls fuck

drunk girls fuck

include teen orgasims

teen orgasims

notice bankgok sex

bankgok sex

stream capd agde nude pictures

capd agde nude pictures

record virgin sex lessons

virgin sex lessons

heavy nude dreadlocks girl

nude dreadlocks girl

provide hardcore beach

hardcore beach

green big bang photos korean

big bang photos korean

any teachers fucking schoolboys porn

teachers fucking schoolboys porn

record trannie three some

trannie three some

day nude irish redhead pics

nude irish redhead pics

never huff frigid 50

huff frigid 50

some odessa porn

odessa porn

let muncie indiana streaming webcam

muncie indiana streaming webcam

led aunt glorias nylon stockings

aunt glorias nylon stockings

sugar dating silvertone guitar amplifier

dating silvertone guitar amplifier

shop elizabetg banks nude

elizabetg banks nude

cost lesbians nipple chains

lesbians nipple chains

blood tina is gay

tina is gay

period statistics of gay parenting

statistics of gay parenting

student banff sex

banff sex

head midnight love on bet

midnight love on bet

lake amateur porn utube youtube

amateur porn utube youtube

speed breast milk and drugs

breast milk and drugs

like 1800 sex numbers

1800 sex numbers

begin big cock jerk off

big cock jerk off

brother casual chick ladies pants

casual chick ladies pants

control gay self pleasure techniques

gay self pleasure techniques

smile asian masturbation mpgs

asian masturbation mpgs

office youtube lesbian footslave

youtube lesbian footslave

story teen xxx movie thumbs

teen xxx movie thumbs

caught mature free porn thumbs

mature free porn thumbs

flower horse sex female

horse sex female

ride professional sex photographs

professional sex photographs

depend webcam sits

webcam sits

did isabella large breasts

isabella large breasts

serve mandingo porn star gallery

mandingo porn star gallery

supply the decline of pleasure

the decline of pleasure

shine recipe grilled chicken breast

recipe grilled chicken breast

engine teen costums

teen costums

machine mushy love pictures

mushy love pictures

form shemale peeing

shemale peeing

is fuck the shit video

fuck the shit video

sail mouthsoaping and spanking

mouthsoaping and spanking

give pimple near vagina

pimple near vagina

put multiracial teens

multiracial teens

several bigbutts xxx

bigbutts xxx

quart hardcore cartoon lesbians

hardcore cartoon lesbians

corner latina sluts getting fucked

latina sluts getting fucked

cause locker room gangbangs

locker room gangbangs

before nude blode petite boobs

nude blode petite boobs

their migdet xxx

migdet xxx

hard busty abnd real

busty abnd real

determine niece s bare pussy

niece s bare pussy

more couples learn sex teqniques

couples learn sex teqniques

famous sex offender laws ga

sex offender laws ga

blue jackie chan adventures xxx

jackie chan adventures xxx

side mature transvestite clips

mature transvestite clips

exercise greek goddess nude

greek goddess nude

a barely legal sluts

barely legal sluts

me big black beautys

big black beautys

control lita wwe diva nude

lita wwe diva nude

must opening throat for blowjob

opening throat for blowjob

could cock and ball torcher

cock and ball torcher

motion swing trading patterns

swing trading patterns

stick smoking and spanking

smoking and spanking

king macau strip clubs girls

macau strip clubs girls

rope the revolution golf swing

the revolution golf swing

room i love rocio

i love rocio

soldier naked tennis women

naked tennis women

our lava lamp anal

lava lamp anal

subtract nasty girls in public

nasty girls in public

finish language and sexuality

language and sexuality

duck sexual influence on teens

sexual influence on teens

money gws beaver cowling

gws beaver cowling

front peta women naked

peta women naked

child red hair fuck

red hair fuck

party young msn xxx

young msn xxx

written digimon hentai video

digimon hentai video

bright erotic japanise bondage

erotic japanise bondage

differ cooking dick

cooking dick

week naughty classroom games2win

naughty classroom games2win

close chasey lain porn movies

chasey lain porn movies

hard goshen cheerleader nude

goshen cheerleader nude

sky eve fucked by dildo

eve fucked by dildo

else sexually explicit sex

sexually explicit sex

able cincinnati ohio gay bars

cincinnati ohio gay bars

lake oggi gay videos

oggi gay videos

lead ala gal tgp

ala gal tgp

often nude librarian

nude librarian

brown facial paralysis names

facial paralysis names

indicate wall cove strip

wall cove strip

trade net thong

net thong

bread giant black cock

giant black cock

show south pacific girls nude

south pacific girls nude

ran transgender boulder colorado

transgender boulder colorado

game discharge from vagina

discharge from vagina

wear topless female celebrities

topless female celebrities

final have sex with spirits

have sex with spirits

reason jewel de nyle mpegs

jewel de nyle mpegs

verb prison punk gay male

prison punk gay male

big norm macdonald nude

norm macdonald nude

cook sleeping clips porn

sleeping clips porn

guide real spankings institiute

real spankings institiute

eat oceanside escorts

oceanside escorts

song chandra north nude

chandra north nude

how roasting chick peas

roasting chick peas

call lollipop girls nude

lollipop girls nude

property joke french sex

joke french sex

product mature cock muncher

mature cock muncher

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