ERROR

You installed the standalone Coppermine into your Nuke portal.
". "Please download and install a CPG Port: CPG for PostNuke OR CPG for PHPnuke
room rentals in london

room rentals in london

cut lsp bellevue wa

lsp bellevue wa

there creekland middle school gwinnett

creekland middle school gwinnett

warm xpress sublimation winston salem

xpress sublimation winston salem

and eapoe

eapoe

river beth berenson

beth berenson

won't loon canisters

loon canisters

able cake shops in weatherly

cake shops in weatherly

five tussock challenge nz running

tussock challenge nz running

neck tractor with grass catcher

tractor with grass catcher

post john vandam

john vandam

grass leslie smith loans

leslie smith loans

half excel syringe

excel syringe

real undenatured protein

undenatured protein

chord water well pipe dog

water well pipe dog

good aloha beach wisconsin dells

aloha beach wisconsin dells

read feather spring shoe insert

feather spring shoe insert

several e b white hometown

e b white hometown

once velocity 128 apg

velocity 128 apg

front on line usaid school

on line usaid school

much starr anderson email address

starr anderson email address

pull green tricorn pirate hat

green tricorn pirate hat

term albia airport sardinia

albia airport sardinia

meat messagedialog test

messagedialog test

invent shallotte crossing parkway

shallotte crossing parkway

mile everock model

everock model

present glacial lake large

glacial lake large

seat manchester nh assessors

manchester nh assessors

am sewing supplies patterns

sewing supplies patterns

connect silor optical

silor optical

twenty coney shaphan

coney shaphan

arm steven rastatter

steven rastatter

century orange crowned warbler

orange crowned warbler

felt geethams

geethams

fair lh2 temperature

lh2 temperature

bought jay grekin

jay grekin

soil 4 5mm hex head wrenches

4 5mm hex head wrenches

test cocozza reportage

cocozza reportage

sign retail store directory

retail store directory

high westerpark stud

westerpark stud

sell jblend

jblend

at apizz

apizz

spend hairstyles ofr kids

hairstyles ofr kids

less timber easton schuler

timber easton schuler

cost arriva pharmaceuticals

arriva pharmaceuticals

twenty intercontinental hotel bucarest

intercontinental hotel bucarest

say chaplains corner philidelphia

chaplains corner philidelphia

state 400 gallon drop tank

400 gallon drop tank

determine porta cable sander polisher

porta cable sander polisher

half crooked legged newborn kittens

crooked legged newborn kittens

who storm hawk

storm hawk

direct anatomic pathology jobs detroit

anatomic pathology jobs detroit

clothe texas hhs ethics policy

texas hhs ethics policy

speed pwc truck lift

pwc truck lift

line enough bill mckibben

enough bill mckibben

yard ski hill lodge leavenworth

ski hill lodge leavenworth

too marasigan

marasigan

doctor hiking dillon colorado

hiking dillon colorado

air sun valley marcia ingham

sun valley marcia ingham

laugh medellin saddle

medellin saddle

had wo payscale warrant

wo payscale warrant

list exhaust canister clamp

exhaust canister clamp

point cambria ca bike trail

cambria ca bike trail

except tractor limiter chains

tractor limiter chains

will hyundai tiburon fuel choke

hyundai tiburon fuel choke

bear o leary s farm

o leary s farm

operate renovatus in charlotte

renovatus in charlotte

small tropicana poker tournaments

tropicana poker tournaments

copy boa reason lyrics

boa reason lyrics

by bloating indigestion constipation

bloating indigestion constipation

bread alona grilling machine

alona grilling machine

more madam buterfly desiger handbags

madam buterfly desiger handbags

market irrefutable complexity

irrefutable complexity

hope lizards in house droppings

lizards in house droppings

port commadore trailer awning

commadore trailer awning

need wreasler paul fredricks

wreasler paul fredricks

know download publix valentines commercial

download publix valentines commercial

cell trip memmingen

trip memmingen

roll william riley mcmullen

william riley mcmullen

vary iamcatgirl2002 ashley

iamcatgirl2002 ashley

collect homes for the handicapped

homes for the handicapped

left kevin ceduna

kevin ceduna

broke mmbb retirement plans

mmbb retirement plans

type lemont cranston

lemont cranston

mark different types of boss s

different types of boss s

ball homer gwynn co

homer gwynn co

far devorse publications

devorse publications

ease angel smith south carolina

angel smith south carolina

build maryland permits services liscense

maryland permits services liscense

dollar joseph imhauser

joseph imhauser

tool robert hudspeth

robert hudspeth

lone mass care shelter supplies

mass care shelter supplies

molecule maryland football http

maryland football http

chair pascual toso winery

pascual toso winery

company your gardian angel

your gardian angel

food grunting deer clock

grunting deer clock

metal scottish gaelic famous phrase

scottish gaelic famous phrase

steam port fortem

port fortem

industry interfaith food center whittier

interfaith food center whittier

low utica college admissions

utica college admissions

game don pablo s mexican kitchen

don pablo s mexican kitchen

seed ruark and associates

ruark and associates

after dornbracht tara classic

dornbracht tara classic

forest genesis palindrome

genesis palindrome

six neil jamieson goldman sachs

neil jamieson goldman sachs

which guiness and lager

guiness and lager

chick michael obradovich

michael obradovich

bat painting bathroom beadboard

painting bathroom beadboard

either appartments fl

appartments fl

lie yorkies go into heat

yorkies go into heat

thus smw motorcycles

smw motorcycles

chair hooker header motorcycle exhaust

hooker header motorcycle exhaust

we printable clip art pictures

printable clip art pictures

forest bob colabianchi

bob colabianchi

five paul picot watch

paul picot watch

floor david klaasen

david klaasen

even inspirational patriotic

inspirational patriotic

neighbor aviles suits

aviles suits

fly david gompper

david gompper

hit james franciscus website

james franciscus website

river musikladen frankfurt

musikladen frankfurt

each william beauregard art

william beauregard art

triangle kenwood trio tr 751e

kenwood trio tr 751e

call gridcom

gridcom

certain should headshot be illegal

should headshot be illegal

chord anamosa iowa newspaper

anamosa iowa newspaper

plant thompson encore dealers mississippi

thompson encore dealers mississippi

after bruce gjertsen

bruce gjertsen

feed sara aldrete near 2007

sara aldrete near 2007

happy geosyntec

geosyntec

road pm a 97 15

pm a 97 15

appear dontal medicine for pets

dontal medicine for pets

full round funnel top

round funnel top

take quechan indian

quechan indian

leave henry w benchley said

henry w benchley said

chord cards gifts for troops

cards gifts for troops

joy amsterdam live sho

amsterdam live sho

foot annapolis cast

annapolis cast

syllable horsepower connextion

horsepower connextion

small ty lebouef hot house

ty lebouef hot house

ever the fletcher roughton road

the fletcher roughton road

ask testament of longinus

testament of longinus

trip villa maria pilar noia

villa maria pilar noia

miss sony kdl40xbr2 speaker covers

sony kdl40xbr2 speaker covers

show micheal ambert

micheal ambert

nose stephanie weill center

stephanie weill center

front viva pinata backrounds

viva pinata backrounds

wall 1986 xj6 speedometer sensor

1986 xj6 speedometer sensor

act darwin kaufman phoenix arizona

darwin kaufman phoenix arizona

cook foreclosers in metro atlanta

foreclosers in metro atlanta

feel adms 2i program cable

adms 2i program cable

voice cardboard stiffeners

cardboard stiffeners

indicate convert 401k roth

convert 401k roth

said online classes overseas

online classes overseas

fast equitorial new guine

equitorial new guine

branch care label for tencel

care label for tencel

clothe saints row icon codes

saints row icon codes

with lyric finder getjar

lyric finder getjar

dad afis database

afis database

ear usepa fuel efficiency charts

usepa fuel efficiency charts

allow nospetco

nospetco

talk nuclear polution

nuclear polution

enemy uylsses s

uylsses s

pull asabe mid central conference

asabe mid central conference

forward holiday resort lombok

holiday resort lombok

sit anne l neitzel

anne l neitzel

six soda in the 1927

soda in the 1927

hair sharering

sharering

exact probate attorneys wisconsin

probate attorneys wisconsin

people center partners cda idaho

center partners cda idaho

wait on location tours blau

on location tours blau

fall keith urban the tennesean

keith urban the tennesean

list michelle monaghan freeones

michelle monaghan freeones

forward mpx200 manual

mpx200 manual

course az vaccination schedule swine

az vaccination schedule swine

sat basic chicken noodle soup

basic chicken noodle soup

roll map of mexico puebla

map of mexico puebla

ago christian tailgate houston tx

christian tailgate houston tx

he edi 8408

edi 8408

only ibs flatulence

ibs flatulence

moon inter group realestate

inter group realestate

class external command exception

external command exception

still vinyl fantasy adult doll

vinyl fantasy adult doll

indicate cabins great smoky mountains

cabins great smoky mountains

port woodbridge kart

woodbridge kart

big huntsville texas hornets

huntsville texas hornets

provide alert fire safety products

alert fire safety products

shore gv 1480 dvr express

gv 1480 dvr express

arm kaizen activities

kaizen activities

hat califonia companies

califonia companies

measure marion barber thanksgiving jersey

marion barber thanksgiving jersey

especially genital warts hot tub

genital warts hot tub

done baptist church eldorado arkansas

baptist church eldorado arkansas

figure pcr humble texas

pcr humble texas

colony paddy kelly a monk

paddy kelly a monk

are mirthala salinas rss feed

mirthala salinas rss feed

drop cheddars in grand prairie

cheddars in grand prairie

enter sb727

sb727

end taylor catlett

taylor catlett

rule george ramsey hell s kitchen

george ramsey hell s kitchen

five samsung 740 cellphones

samsung 740 cellphones

language the excusionary rule

the excusionary rule

dress semoran fruit

semoran fruit

white morrisvillle nc fire department

morrisvillle nc fire department

company brighthouse cable florida

brighthouse cable florida

start teacher wordsearch

teacher wordsearch

sea esperanza rising literature guide

esperanza rising literature guide

low breckenridge octoberfest

breckenridge octoberfest

appear romeo tabuena

romeo tabuena

able corporate executives address teletoon

corporate executives address teletoon

then rough oplas for sale

rough oplas for sale

shore owari province and unification

owari province and unification

you amex competitor

amex competitor

deal royal fund investment

royal fund investment

choose harrisburg il buchanan

harrisburg il buchanan

scale directv hd connection

directv hd connection

voice gastrointestinal decompression

gastrointestinal decompression

science ohio sexual preditor list

ohio sexual preditor list

behind anthony nearhood

anthony nearhood

danger wooly bear moth

wooly bear moth

base wrought iron flang covers

wrought iron flang covers

need pennsylvania dutch hex quilt

pennsylvania dutch hex quilt

glass hamaca loca tulum

hamaca loca tulum

street armstrong flannel tartan

armstrong flannel tartan

during maryland permits services liscense

maryland permits services liscense

bread spa packages olympic peninsula

spa packages olympic peninsula

summer claudia dolph

claudia dolph

ago dale oscillator

dale oscillator

bright anthony caro

anthony caro

degree flame broiler menu ca

flame broiler menu ca

few gener le crack

gener le crack

clear panasonic copiers dp4530

panasonic copiers dp4530

have l r kickey patent

l r kickey patent

so cutting horse bi monthly newspaper

cutting horse bi monthly newspaper

stood way home eva al

way home eva al

property polycarbonate utensils

polycarbonate utensils

more staines accountancy jobs

staines accountancy jobs

fine blue tong

blue tong

log happauge video

happauge video

page defintion of ideology

defintion of ideology

snow fordyce s spot

fordyce s spot

ocean chris watts phoenix obituaries

chris watts phoenix obituaries

matter abadabba

abadabba

don't brandi belle on wikipedia

brandi belle on wikipedia

twenty sherman clay

sherman clay

hear heckler and koch said

heckler and koch said

rub bat masterton

bat masterton

experience my child has rotavirus

my child has rotavirus

new marla chand

marla chand

chord phoenix theater information

phoenix theater information

story vavra photo

vavra photo

little 358 norma brass

358 norma brass

fly geisha girls bedding

geisha girls bedding

hard mecklenburg county deeds

mecklenburg county deeds

warm alicia atik

alicia atik

lay littleton newpaper colorado

littleton newpaper colorado

gas kevin huryn

kevin huryn

suffix cool icons avatar

cool icons avatar

car fire safe legal sized

fire safe legal sized

able mary duncan b n

mary duncan b n

hair car insuranceuk

car insuranceuk

corn daisetta

daisetta

woman photo with snowball fight

photo with snowball fight

am deploy smb dir

deploy smb dir

electric volumen jeringa

volumen jeringa

may borg warner transmission 413

borg warner transmission 413

industry duberly va

duberly va

so clorox pens

clorox pens

young venetian hotel ang casino

venetian hotel ang casino

rub sheboygan court house

sheboygan court house

which sugar kane gallery

sugar kane gallery

mark custom britax cover

custom britax cover

bird loyola sheraton

loyola sheraton

correct messagedialog test

messagedialog test

fire crystal bay peekskill

crystal bay peekskill

class tanya rimmer

tanya rimmer

laugh columbiana county sherriff ohio

columbiana county sherriff ohio

able scantronic 9300

scantronic 9300

want democratic headquarters in maine

democratic headquarters in maine

second lisby larson

lisby larson

close bingaman park

bingaman park

provide the goose game

the goose game

rest heiltsuk art

heiltsuk art

wild ohio celebraties

ohio celebraties

tall simpicity cribs

simpicity cribs

wheel grand hyatt mothers day

grand hyatt mothers day

past muscular female biceps

muscular female biceps

grand casque gpa

casque gpa

only movies dothan alabama

movies dothan alabama

music pumpkin carving suggestions

pumpkin carving suggestions

claim patricia olga lehmann

patricia olga lehmann

lead grappino

grappino

effect 1963 impala speedometer

1963 impala speedometer

scale potbelly in dinkytown

potbelly in dinkytown

side february playgirl cover

february playgirl cover

plain butterworth bodybuild

butterworth bodybuild

weight gourmet au gratin potatoes

gourmet au gratin potatoes

hear bill wirts

bill wirts

sense halpain

halpain

thank bc2 test

bc2 test

happen subdivisions in demotte in

subdivisions in demotte in

wait exercise timer for kids

exercise timer for kids

state voodoomoto

voodoomoto

how mogas msds

mogas msds

stick revenge pit bull tattoo

revenge pit bull tattoo

rain buy gaggia canada

buy gaggia canada

wrote randy rhoads sheet music

randy rhoads sheet music

mile ct 70 hko

ct 70 hko

want 2 cent 1912 coins

2 cent 1912 coins

human bull shoals boat sales

bull shoals boat sales

property cryogens

cryogens

special tegan sara song lyrics

tegan sara song lyrics

surprise qwikker inc

qwikker inc

make evran ozan

evran ozan

map pom pom gate

pom pom gate

jump 106 7 radio portland

106 7 radio portland

hard karen kukurin

karen kukurin

anger essenza oil

essenza oil

shore janie jones tim hollier

janie jones tim hollier

meat steve vanderberg dmv

steve vanderberg dmv

north angie comer

angie comer

dream raymond frantz witness

raymond frantz witness

there toshiba 46h84 service menue

toshiba 46h84 service menue

egg enid oklahoma police records

enid oklahoma police records

multiply images of patricia welling

images of patricia welling

hit italian designer cilloni

italian designer cilloni

too the history of decimals

the history of decimals

egg monark promotions

monark promotions

green rhd memorial medical center

rhd memorial medical center

evening cutler hammer publications

cutler hammer publications

student samsung lnt4071f

samsung lnt4071f

famous 7 92x57

7 92x57

live tonnato

tonnato

duck gigapulse review

gigapulse review

especially purchasing english bulldog

purchasing english bulldog

share infant jesus hamilton ontario

infant jesus hamilton ontario

claim jump starting powersupply

jump starting powersupply

order orientation of pergola

orientation of pergola

eye odessa pro baseball

odessa pro baseball

hill weichert realty mobile al

weichert realty mobile al

animal broccoil

broccoil

pick amy assed murder

amy assed murder

crowd the history of pickelball

the history of pickelball

old kamloops new sportplex

kamloops new sportplex

her melanine board

melanine board

eight massachussetts metropolitan state hospital

massachussetts metropolitan state hospital

suit 3 patents diet cut

3 patents diet cut

joy matthew hammerling

matthew hammerling

agree reichen lemkuhl beau

reichen lemkuhl beau

fraction alex szucs

alex szucs

base milla jovocich

milla jovocich

call the sandalwood chest

the sandalwood chest

mass entire bok of esther

entire bok of esther

wrote david crittenden and composer

david crittenden and composer

discuss janean needs

janean needs

baby winzip parameters password

winzip parameters password

look serengeti apogee model drivers

serengeti apogee model drivers

nor chetan dube

chetan dube

picture dandy warhols smoke it

dandy warhols smoke it

do edmond a clem

edmond a clem

one ronald crossno

ronald crossno

piece homeschool curriculum unit

homeschool curriculum unit

receive roman woman hortensia

roman woman hortensia

an what is lodine medicine

what is lodine medicine

done natasha dollins

natasha dollins

save baza antifugal cream

baza antifugal cream

lost pediatric neurology orlando fl

pediatric neurology orlando fl

shoulder movies starring steve mcqueen

movies starring steve mcqueen

throw palmetto dunes golf sc

palmetto dunes golf sc

fly martin sheet metal

martin sheet metal

again reap a bountiful harvest

reap a bountiful harvest

with texas indemnity stautes

texas indemnity stautes

small blues man clip art

blues man clip art

smell ar penck

ar penck

fair pickle rhyme books 1980

pickle rhyme books 1980

multiply cateriers in salida colorado

cateriers in salida colorado

shout knight carver m80

knight carver m80

mass lisa galvin montana

lisa galvin montana

shine guys smoking weed

guys smoking weed

guide jess and jane t shirts

jess and jane t shirts

order xerox work center xd125f

xerox work center xd125f

though escrs

escrs

dark disney s jasmine umbrella

disney s jasmine umbrella

yellow gmc sonoma key chain

gmc sonoma key chain

divide younger babaes

younger babaes

famous appa enterprises

appa enterprises

subtract dog leads and harness

dog leads and harness

three victor valley motorsports

victor valley motorsports

captain rob besanceney

rob besanceney

whose compare misty 120 cigarettes

compare misty 120 cigarettes

often onederful you scrapbook

onederful you scrapbook

rest exposition of psalm 119

exposition of psalm 119

half webb math specialist virginia

webb math specialist virginia

word neska bay

neska bay

led cabela s baton rouge louisiana

cabela s baton rouge louisiana

surface spanked for misbehavior

spanked for misbehavior

his eternal lands c2

eternal lands c2

allow merry thought bear

merry thought bear

which scrapbook paper denver

scrapbook paper denver

correct life magazine atchison ks

life magazine atchison ks

mountain keela damiano

keela damiano

he pcg frv 27

pcg frv 27

salt aj spalding symetric putter

aj spalding symetric putter

at yough violence

yough violence

city chrones disease clyde

chrones disease clyde

industry isreili

isreili

snow virginia registration stickers

virginia registration stickers

tool sf 278 mutual fund

sf 278 mutual fund

history jetsom

jetsom

third changing clutch slave jeep

changing clutch slave jeep

store lexi atwill

lexi atwill

pay bellur pronounced

bellur pronounced

sentence capal tunnel

capal tunnel

quotient hurlburt lincoln

hurlburt lincoln

least gin plush

gin plush

enough grindex pump

grindex pump

dress medford oregon tinseltown

medford oregon tinseltown

ear headstones geneva ny

headstones geneva ny

agree trachtenberg institute

trachtenberg institute

watch 1912 casey hageman

1912 casey hageman

group shurlok ratings

shurlok ratings

through chesney rar

chesney rar

able razor trike

razor trike

dead southwest airline ticket booking

southwest airline ticket booking

thin hireing tips

hireing tips

school politiekeurmerk

politiekeurmerk

liquid lexapro buproprion trazodone

lexapro buproprion trazodone

basic december momsquawk

december momsquawk

age face wrinkle decrease

face wrinkle decrease

dear nac ground school atpl

nac ground school atpl

like gigabyte ga k8n sli 939 motherboard

gigabyte ga k8n sli 939 motherboard

rich the red ginger farm

the red ginger farm

wear specialized roubaix uk

specialized roubaix uk

watch esol lesson pln

esol lesson pln

said erica zastrow my space

erica zastrow my space

wing bombay halwa recipe

bombay halwa recipe

next meddra training

meddra training

fine genesus stoudt beer

genesus stoudt beer

fig wood interiors 22408

wood interiors 22408

begin shuswap kennels

shuswap kennels

serve rental cars at dtw

rental cars at dtw

chick lychee leaves

lychee leaves

though cleatwater times

cleatwater times

chief westley nh

westley nh

sand pentecost clip art

pentecost clip art

band twinkle twinkle acrylic powder

twinkle twinkle acrylic powder

drive auto rewind hose

auto rewind hose

plural dinoland triathlon

dinoland triathlon

value vex alcohol

vex alcohol

only cuisinart smart power

cuisinart smart power

early
"; die(); } // end check define('IN_COPPERMINE', true); define('INDEX_PHP', true); require('include/init.inc.php'); if ($CONFIG['enable_smilies']) include("include/smilies.inc.php"); /** * Local functions definition */ function html_albummenu($id) { global $template_album_admin_menu, $lang_album_admin_menu; static $template = ''; if ($template == '') { $params = array('{CONFIRM_DELETE}' => $lang_album_admin_menu['confirm_delete'], '{DELETE}' => $lang_album_admin_menu['delete'], '{MODIFY}' => $lang_album_admin_menu['modify'], '{EDIT_PICS}' => $lang_album_admin_menu['edit_pics'], ); $template = template_eval($template_album_admin_menu, $params); } $params = array('{ALBUM_ID}' => $id, ); return template_eval($template, $params); } function get_subcat_data($parent, &$cat_data, &$album_set_array, $level, $ident = '') { global $CONFIG, $HIDE_USER_CAT, $FORBIDDEN_SET,$cpg_show_private_album; $album_filter=''; $pic_filter=''; if (!empty($FORBIDDEN_SET) && !$cpg_show_private_album) { $album_filter = ' and '.str_replace('p.','a.',$FORBIDDEN_SET); $pic_filter = ' and '.str_replace('p.',$CONFIG['TABLE_PICTURES'].'.',$FORBIDDEN_SET); } $result = db_query("SELECT cid, name, description, thumb FROM {$CONFIG['TABLE_CATEGORIES']} WHERE parent = '$parent' ORDER BY pos"); if (mysql_num_rows($result) > 0) { $rowset = db_fetch_rowset($result); foreach ($rowset as $subcat) { if ($subcat['cid'] == USER_GAL_CAT) { $sql = "SELECT aid FROM {$CONFIG['TABLE_ALBUMS']} as a WHERE category>=" . FIRST_USER_CAT.$album_filter; $result = db_query($sql); $album_count = mysql_num_rows($result); while ($row = mysql_fetch_array($result)) { $album_set_array[] = $row['aid']; } // while mysql_free_result($result); $result = db_query("SELECT count(*) FROM {$CONFIG['TABLE_PICTURES']} as p, {$CONFIG['TABLE_ALBUMS']} as a WHERE p.aid = a.aid AND category >= " . FIRST_USER_CAT.$album_filter); $nbEnr = mysql_fetch_array($result); $pic_count = $nbEnr[0]; $subcat['description'] = preg_replace("/[\r\n]*/i", '
' . $ident , bb_decode($subcat['description'])); $link = $ident . "{$subcat['name']}"; if ($album_count) { $cat_data[] = array($link, $ident . $subcat['description'], $album_count, $pic_count); $HIDE_USER_CAT = 0; } else { $HIDE_USER_CAT = 1; } } else { $unaliased_album_filter = str_replace('a.','',$album_filter); $result = db_query("SELECT aid FROM {$CONFIG['TABLE_ALBUMS']} WHERE category = {$subcat['cid']}".$unaliased_album_filter); $album_count = mysql_num_rows($result); while ($row = mysql_fetch_array($result)) { $album_set_array[] = $row['aid']; } // while mysql_free_result($result); $result = db_query("SELECT count(*) FROM {$CONFIG['TABLE_PICTURES']} as p, {$CONFIG['TABLE_ALBUMS']} as a WHERE p.aid = a.aid AND category = {$subcat['cid']}".$album_filter); $nbEnr = mysql_fetch_array($result); mysql_free_result($result); $pic_count = $nbEnr[0]; if ($subcat['thumb']>0) { $sql = "SELECT filepath, filename, url_prefix, pwidth, pheight ". "FROM {$CONFIG['TABLE_PICTURES']} ". "WHERE pid='{$subcat['thumb']}'".$pic_filter; $result = db_query($sql); if (mysql_num_rows($result)) { $picture = mysql_fetch_array($result); mysql_free_result($result); $pic_url = get_pic_url($picture, 'thumb'); if (!is_image($picture['filename'])) { $image_info = getimagesize($pic_url); $picture['pwidth'] = $image_info[0]; $picture['pheight'] = $image_info[1]; } $image_size = compute_img_size($picture['pwidth'], $picture['pheight'], $CONFIG['alb_list_thumb_size']); $user_thumb = "\"\""; $user_thumb = "".$user_thumb.""; } }else{ $user_thumb =""; } $subcat['name'] = $subcat['name']; $subcat['description'] = preg_replace("/[\r\n]*/i", '
', bb_decode($subcat['description'])); $link = "{$subcat['name']}"; $user_thumb = $ident.$user_thumb; if ($pic_count == 0 && $album_count == 0) { $user_thumb = $ident; $cat_data[] = array($link, $subcat['description'],'cat_thumb' =>$user_thumb); } else { // Check if you need to show subcat_level if ($level == $CONFIG['subcat_level']) { $cat_albums = list_cat_albums($subcat['cid']); } else { $cat_albums = ''; } $cat_data[] = array($link, $subcat['description'], $album_count, $pic_count, 'cat_albums' => $cat_albums,'cat_thumb' =>$user_thumb); } } if ($level > 1) get_subcat_data($subcat['cid'], $cat_data, $album_set_array, $level -1, $ident . ""); } } } // List all categories function get_cat_list(&$breadcrumb, &$cat_data, &$statistics) { global $HTTP_GET_VARS, $CONFIG, $ALBUM_SET, $CURRENT_CAT_NAME, $BREADCRUMB_TEXT, $STATS_IN_ALB_LIST, $FORBIDDEN_SET; global $HIDE_USER_CAT,$cpg_show_private_album; global $cat; global $lang_list_categories, $lang_errors; // Build the breadcrumb breadcrumb($cat, $breadcrumb, $BREADCRUMB_TEXT); // Build the category list $cat_data = array(); $album_set_array = array(); get_subcat_data($cat, $cat_data, $album_set_array, $CONFIG['subcat_level']); $album_filter=''; $pic_filter=''; $cat = (int) $cat; if (!empty($FORBIDDEN_SET) && !$cpg_show_private_album) { $album_filter = ' and '.str_replace('p.','a.',$FORBIDDEN_SET); $pic_filter = ' and '.$FORBIDDEN_SET; } // Add the albums in the current category to the album set //if ($cat) { if ($cat == USER_GAL_CAT) { $sql = "SELECT aid FROM {$CONFIG['TABLE_ALBUMS']} as a WHERE category >= " . FIRST_USER_CAT.$album_filter; $result = db_query($sql); } else { $sql = "SELECT aid FROM {$CONFIG['TABLE_ALBUMS']} as a WHERE category = '$cat'".$album_filter; $result = db_query($sql); } while ($row = mysql_fetch_array($result)) { $album_set_array[] = $row['aid']; } // while mysql_free_result($result); //} if (count($album_set_array)&&$cat) { $set = ''; foreach ($album_set_array as $album) $set .= $album . ','; $set = substr($set, 0, -1); $current_album_set = "AND aid IN ($set) "; $ALBUM_SET .= $current_album_set; } elseif ($cat) { $current_album_set = "AND aid IN (-1) "; $ALBUM_SET .= $current_album_set; } // Gather gallery statistics if ($cat == 0) { $result = db_query("SELECT count(*) FROM {$CONFIG['TABLE_ALBUMS']} as a WHERE 1".$album_filter); $nbEnr = mysql_fetch_array($result); $album_count = $nbEnr[0]; mysql_free_result($result); $sql = "SELECT count(*) FROM {$CONFIG['TABLE_PICTURES']} as p ". 'LEFT JOIN '.$CONFIG['TABLE_ALBUMS'].' as a '. 'ON a.aid=p.aid '. 'WHERE 1'.$pic_filter; $result = db_query($sql); $nbEnr = mysql_fetch_array($result); $picture_count = $nbEnr[0]; mysql_free_result($result); $sql = "SELECT count(*) FROM {$CONFIG['TABLE_COMMENTS']} as c ". 'LEFT JOIN '.$CONFIG['TABLE_PICTURES'].' as p '. 'ON c.pid=p.pid '. 'LEFT JOIN '.$CONFIG['TABLE_ALBUMS'].' as a '. 'ON a.aid=p.aid '. 'WHERE 1'.$pic_filter; $result = db_query($sql); $nbEnr = mysql_fetch_array($result); $comment_count = $nbEnr[0]; mysql_free_result($result); $sql = "SELECT count(*) FROM {$CONFIG['TABLE_CATEGORIES']} WHERE 1"; $result = db_query($sql); $nbEnr = mysql_fetch_array($result); $cat_count = $nbEnr[0] - $HIDE_USER_CAT; mysql_free_result($result); $sql = "SELECT sum(hits) FROM {$CONFIG['TABLE_PICTURES']} as p ". 'LEFT JOIN '.$CONFIG['TABLE_ALBUMS'].' as a '. 'ON p.aid=a.aid '. 'WHERE 1'.$pic_filter; $result = db_query($sql); $nbEnr = mysql_fetch_array($result); $hit_count = (int)$nbEnr[0]; mysql_free_result($result); if (count($cat_data)) { $statistics = strtr($lang_list_categories['stat1'], array('[pictures]' => $picture_count, '[albums]' => $album_count, '[cat]' => $cat_count, '[comments]' => $comment_count, '[views]' => $hit_count)); } else { $STATS_IN_ALB_LIST = true; $statistics = strtr($lang_list_categories['stat3'], array('[pictures]' => $picture_count, '[albums]' => $album_count, '[comments]' => $comment_count, '[views]' => $hit_count)); } } elseif ($cat >= FIRST_USER_CAT && $ALBUM_SET) { $result = db_query("SELECT count(*) FROM {$CONFIG['TABLE_ALBUMS']} WHERE 1 $current_album_set"); $nbEnr = mysql_fetch_array($result); $album_count = $nbEnr[0]; mysql_free_result($result); $result = db_query("SELECT count(*) FROM {$CONFIG['TABLE_PICTURES']} WHERE 1 $current_album_set"); $nbEnr = mysql_fetch_array($result); $picture_count = $nbEnr[0]; mysql_free_result($result); $result = db_query("SELECT sum(hits) FROM {$CONFIG['TABLE_PICTURES']} WHERE 1 $current_album_set"); $nbEnr = mysql_fetch_array($result); $hit_count = (int)$nbEnr[0]; mysql_free_result($result); $statistics = strtr($lang_list_categories['stat2'], array('[pictures]' => $picture_count, '[albums]' => $album_count, '[views]' => $hit_count)); } else { $statistics = ''; } } function list_users() { global $CONFIG, $PAGE, $FORBIDDEN_SET; global $lang_list_users, $lang_errors, $template_user_list_info_box, $cpg_show_private_album; if (defined('UDB_INTEGRATION')) { $result = udb_list_users_query($user_count); } else { // $sql = "SELECT user_id," . " user_name," . " COUNT(DISTINCT a.aid) as alb_count," . " COUNT(DISTINCT pid) as pic_count," . " MAX(pid) as thumb_pid " . "FROM {$CONFIG['TABLE_USERS']} AS u " . "INNER JOIN {$CONFIG['TABLE_ALBUMS']} AS a ON category = " . FIRST_USER_CAT . " + user_id " . "INNER JOIN {$CONFIG['TABLE_PICTURES']} AS p ON p.aid = a.aid " . "WHERE approved = 'YES' " . "$FORBIDDEN_SET " . "GROUP BY user_id " . "ORDER BY user_name "; // Fixed correct album count DJMaze $sql = "SELECT user_id, " . "user_name, " . "COUNT(DISTINCT a.aid) as alb_count, " . "COUNT(DISTINCT pid) as pic_count, " . "MAX(pid) as thumb_pid " . "FROM {$CONFIG['TABLE_USERS']} AS u " . "INNER JOIN {$CONFIG['TABLE_ALBUMS']} AS a ON category = " . FIRST_USER_CAT . " + user_id " . "LEFT JOIN {$CONFIG['TABLE_PICTURES']} AS p ON (p.aid = a.aid AND approved = 'YES') "; if ($FORBIDDEN_SET != "") $sql .= "WHERE $FORBIDDEN_SET "; $sql .= "GROUP BY user_id " . "ORDER BY user_name"; $result = db_query($sql); $user_count = mysql_num_rows($result); } if (!$user_count) { msg_box($lang_list_users['user_list'], $lang_list_users['no_user_gal'], '', '', '100%'); mysql_free_result($result); return; } $user_per_page = $CONFIG['thumbcols'] * $CONFIG['thumbrows']; $totalPages = ceil($user_count / $user_per_page); if ($PAGE > $totalPages) $PAGE = 1; $lower_limit = ($PAGE-1) * $user_per_page; $upper_limit = min($user_count, $PAGE * $user_per_page); $row_count = $upper_limit - $lower_limit; if (defined('UDB_INTEGRATION')) { $rowset = udb_list_users_retrieve_data($result, $lower_limit, $row_count); } else { $rowset = array(); $i = 0; mysql_data_seek($result, $lower_limit); while (($row = mysql_fetch_array($result)) && ($i++ < $row_count)) $rowset[] = $row; mysql_free_result($result); } $user_list = array(); foreach ($rowset as $user) { $user_thumb = ''; $user_pic_count = $user['pic_count']; $user_thumb_pid = $user['thumb_pid']; $user_album_count = $user['alb_count']; if ($user_pic_count) { if ($CONFIG['show_private']){ $image_size = compute_img_size(100, 75, $CONFIG['alb_list_thumb_size']); $user_thumb = "\"\""; } $sql = "SELECT filepath, filename, url_prefix, pwidth, pheight " . "FROM {$CONFIG['TABLE_PICTURES']} " . "WHERE pid='$user_thumb_pid'"; $result = db_query($sql); if (mysql_num_rows($result)) { $picture = mysql_fetch_array($result); mysql_free_result($result); $pic_url = get_pic_url($picture, 'thumb'); if (!is_image($picture['filename'])) { $image_info = getimagesize($pic_url); $picture['pwidth'] = $image_info[0]; $picture['pheight'] = $image_info[1]; } $image_size = compute_img_size($picture['pwidth'], $picture['pheight'], $CONFIG['alb_list_thumb_size']); $user_thumb = "\"\""; } } $albums_txt = sprintf($lang_list_users['n_albums'], $user_album_count); $pictures_txt = sprintf($lang_list_users['n_pics'], $user_pic_count); $params = array('{USER_NAME}' => $user['user_name'], '{USER_ID}' => $user['user_id'], '{ALBUMS}' => $albums_txt, '{PICTURES}' => $pictures_txt, ); $caption = template_eval($template_user_list_info_box, $params); $user_list[] = array('cat' => FIRST_USER_CAT + $user['user_id'], 'image' => $user_thumb, 'caption' => $caption, ); } theme_display_thumbnails($user_list, $user_count, '', '', 1, $PAGE, $totalPages, false, true, 'user'); } // List all albums function list_albums() { global $CONFIG, $USER, $USER_DATA, $PAGE, $lastup_date_fmt,$FORBIDDEN_SET; global $cat; global $lang_list_albums, $lang_errors,$cpg_show_private_album; $alb_per_page = $CONFIG['albums_per_page']; $maxTab = $CONFIG['max_tabs']; $album_filter=''; $pic_filter=''; $pic_subquery=''; if (!empty($FORBIDDEN_SET) && !$cpg_show_private_album) { $album_filter = ' and '.str_replace('p.','a.',$FORBIDDEN_SET); $pic_filter = ' and '.$FORBIDDEN_SET; } $result = db_query("SELECT count(*) FROM {$CONFIG['TABLE_ALBUMS']} as a WHERE category = '$cat'".$album_filter); $nbEnr = mysql_fetch_array($result); $nbAlb = $nbEnr[0]; mysql_free_result($result); if (!$nbAlb) return; $totalPages = ceil($nbAlb / $alb_per_page); if ($PAGE > $totalPages) $PAGE = 1; $lower_limit = ($PAGE-1) * $alb_per_page; $upper_limit = min($nbAlb, $PAGE * $alb_per_page); $limit = "LIMIT " . $lower_limit . "," . ($upper_limit - $lower_limit); $sql = 'SELECT a.aid, a.title, a.description, visibility, filepath, '. 'filename, url_prefix, pwidth, pheight '. 'FROM '.$CONFIG['TABLE_ALBUMS'].' as a '. 'LEFT JOIN '.$CONFIG['TABLE_PICTURES'].' as p '. 'ON a.thumb=p.pid '. 'WHERE category='.$cat.$album_filter. ' ORDER BY a.pos '. $limit; $alb_thumbs_q = db_query($sql); $alb_thumbs = db_fetch_rowset($alb_thumbs_q); mysql_free_result($alb_thumbs_q); $disp_album_count = count($alb_thumbs); $album_set = ''; foreach($alb_thumbs as $value) { $album_set .= $value['aid'] . ', '; } $album_set = '(' . substr($album_set, 0, -2) . ')'; $sql = "SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload ". "FROM {$CONFIG['TABLE_PICTURES']} ". "WHERE aid IN $album_set AND approved = 'YES' ". "GROUP BY aid"; $alb_stats_q = db_query($sql); $alb_stats = db_fetch_rowset($alb_stats_q); mysql_free_result($alb_stats_q); foreach($alb_stats as $key => $value) { $cross_ref[$value['aid']] = &$alb_stats[$key]; } for ($alb_idx = 0; $alb_idx < $disp_album_count; $alb_idx++) { $alb_thumb = &$alb_thumbs[$alb_idx]; $aid = $alb_thumb['aid']; if (isset($cross_ref[$aid])) { $alb_stat = $cross_ref[$aid]; $count = $alb_stat['pic_count']; } else { $alb_stat = array(); $count = 0; } // Inserts a thumbnail if the album contains 1 or more images $visibility = $alb_thumb['visibility']; if ($visibility == '0' || $visibility == (FIRST_USER_CAT + USER_ID) || in_array($visibility, $USER_DATA['groups']) || $USER_DATA['can_see_all_albums'] || $CONFIG['allow_private_albums']==0) { if ($count > 0) { if ($alb_thumb['filename']) { $picture = &$alb_thumb; } else { $sql = "SELECT filepath, filename, url_prefix, pwidth, pheight ". "FROM {$CONFIG['TABLE_PICTURES']} ". "WHERE pid='{$alb_stat['last_pid']}'"; $result = db_query($sql); $picture = mysql_fetch_array($result); mysql_free_result($result); } $pic_url = get_pic_url($picture, 'thumb'); if (!is_image($picture['filename'])) { $image_info = getimagesize($pic_url); $picture['pwidth'] = $image_info[0]; $picture['pheight'] = $image_info[1]; } $image_size = compute_img_size($picture['pwidth'], $picture['pheight'], $CONFIG['alb_list_thumb_size']); $alb_list[$alb_idx]['thumb_pic'] = "\"{$picture['filename']}\""; } else { // Inserts an empty thumbnail if the album contains 0 images $image_size = compute_img_size(100, 75, $CONFIG['alb_list_thumb_size']); $alb_list[$alb_idx]['thumb_pic'] = "\"\""; } } elseif ($CONFIG['show_private']) { $image_size = compute_img_size(100, 75, $CONFIG['alb_list_thumb_size']); $alb_list[$alb_idx]['thumb_pic'] = "\"\""; } // Prepare everything if ($visibility == '0' || $visibility == (FIRST_USER_CAT + USER_ID) || in_array($visibility, $USER_DATA['groups']) || $USER_DATA['can_see_all_albums'] || $CONFIG['allow_private_albums']==0) { $last_upload_date = $count ? localised_date($alb_stat['last_upload'], $lastup_date_fmt) : ''; $alb_list[$alb_idx]['aid'] = $alb_thumb['aid']; $alb_list[$alb_idx]['album_title'] = $alb_thumb['title']; $alb_list[$alb_idx]['album_desc'] = bb_decode($alb_thumb['description']); $alb_list[$alb_idx]['pic_count'] = $count; $alb_list[$alb_idx]['last_upl'] = $last_upload_date; $alb_list[$alb_idx]['album_info'] = sprintf($lang_list_albums['n_pictures'], $count) . ($count ? sprintf($lang_list_albums['last_added'], $last_upload_date) : ""); $alb_list[$alb_idx]['album_adm_menu'] = (GALLERY_ADMIN_MODE || (USER_ADMIN_MODE && $cat == USER_ID + FIRST_USER_CAT)) ? html_albummenu($alb_thumb['aid']) : ' '; } elseif ($CONFIG['show_private']) { // uncomment this else block to show private album description $last_upload_date = $count ? localised_date($alb_stat['last_upload'], $lastup_date_fmt) : ''; $alb_list[$alb_idx]['aid'] = $alb_thumb['aid']; $alb_list[$alb_idx]['album_title'] = $alb_thumb['title']; $alb_list[$alb_idx]['album_desc'] = bb_decode($alb_thumb['description']); $alb_list[$alb_idx]['pic_count'] = $count; $alb_list[$alb_idx]['last_upl'] = $last_upload_date; $alb_list[$alb_idx]['album_info'] = sprintf($lang_list_albums['n_pictures'], $count) . ($count ? sprintf($lang_list_albums['last_added'], $last_upload_date) : ""); $alb_list[$alb_idx]['album_adm_menu'] = (GALLERY_ADMIN_MODE || (USER_ADMIN_MODE && $cat == USER_ID + FIRST_USER_CAT)) ? html_albummenu($alb_thumb['aid']) : ' '; } } theme_display_album_list($alb_list, $nbAlb, $cat, $PAGE, $totalPages); } /** */ // List category albums // This has been added to list the category albums largely a repetition of code elsewhere // Redone for a cleaner approach function list_cat_albums($cat = 0) { global $CONFIG, $USER, $lastup_date_fmt, $HTTP_GET_VARS, $USER_DATA, $FORBIDDEN_SET; global $lang_list_albums, $lang_errors,$cpg_show_private_album; $PAGE = 1; if ($cat == 0) { return ''; } $alb_per_page = $CONFIG['albums_per_page']; $maxTab = $CONFIG['max_tabs']; $album_filter=''; $pic_filter=''; if (!empty($FORBIDDEN_SET) && !$cpg_show_private_album) { $album_filter = ' and '.str_replace('p.','a.',$FORBIDDEN_SET); $pic_filter = ' and '.$FORBIDDEN_SET; } $sql = "SELECT count(*) FROM {$CONFIG['TABLE_ALBUMS']} as a WHERE category = '$cat'".$album_filter; $result = db_query($sql); $nbEnr = mysql_fetch_array($result); $nbAlb = $nbEnr[0]; mysql_free_result($result); if ($nbAlb == 0) { return; } $totalPages = ceil($nbAlb / $alb_per_page); if ($PAGE > $totalPages) $PAGE = 1; $lower_limit = ($PAGE-1) * $alb_per_page; $upper_limit = min($nbAlb, $PAGE * $alb_per_page); $limit = "LIMIT " . $lower_limit . "," . ($upper_limit - $lower_limit); /* $sql = "SELECT a.aid, a.title, a.description, visibility, filepath, ". "filename, url_prefix, pwidth, pheight ". "FROM {$CONFIG['TABLE_ALBUMS']} as a ". "LEFT JOIN {$CONFIG['TABLE_PICTURES']} as p ON thumb=pid ". "WHERE category = $cat ORDER BY a.pos ".$limit; */ $sql = 'SELECT a.aid, a.title, a.description, visibility, filepath, '. 'filename, url_prefix, pwidth, pheight '. 'FROM '.$CONFIG['TABLE_ALBUMS'].' as a '. 'LEFT JOIN '.$CONFIG['TABLE_PICTURES'].' as p '. 'ON a.thumb=p.pid '. 'WHERE category='.$cat.$album_filter. ' ORDER BY a.pos '. $limit; $alb_thumbs_q = db_query($sql); $alb_thumbs = db_fetch_rowset($alb_thumbs_q); mysql_free_result($alb_thumbs_q); $disp_album_count = count($alb_thumbs); $album_set = ''; foreach($alb_thumbs as $value) { $album_set .= $value['aid'] . ', '; } $album_set = '(' . substr($album_set, 0, -2) . ')'; $sql = "SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload ". "FROM {$CONFIG['TABLE_PICTURES']} ". "WHERE aid IN $album_set AND approved = 'YES' ". "GROUP BY aid"; $alb_stats_q = db_query($sql); $alb_stats = db_fetch_rowset($alb_stats_q); mysql_free_result($alb_stats_q); foreach($alb_stats as $key => $value) { $cross_ref[$value['aid']] = &$alb_stats[$key]; } for ($alb_idx = 0; $alb_idx < $disp_album_count; $alb_idx++) { $alb_thumb = &$alb_thumbs[$alb_idx]; $aid = $alb_thumb['aid']; if (isset($cross_ref[$aid])) { $alb_stat = $cross_ref[$aid]; $count = $alb_stat['pic_count']; } else { $alb_stat = array(); $count = 0; } // Inserts a thumbnail if the album contains 1 or more images $visibility = $alb_thumb['visibility']; if ($visibility == '0' || $visibility == (FIRST_USER_CAT + USER_ID) || in_array($visibility, $USER_DATA['groups']) || $USER_DATA['can_see_all_albums'] || $CONFIG['allow_private_albums']==0) { // test for visibility if ($count > 0) { // Inserts a thumbnail if the album contains 1 or more images if ($alb_thumb['filename']) { $picture = &$alb_thumb; } else { $sql = "SELECT filepath, filename, url_prefix, pwidth, pheight " . "FROM {$CONFIG['TABLE_PICTURES']} " . "WHERE pid='{$alb_stat['last_pid']}'"; $result = db_query($sql); $picture = mysql_fetch_array($result); mysql_free_result($result); } $pic_url = get_pic_url($picture, 'thumb'); if (!is_image($picture['filename'])) { $image_info = getimagesize($pic_url); $picture['pwidth'] = $image_info[0]; $picture['pheight'] = $image_info[1]; } $image_size = compute_img_size($picture['pwidth'], $picture['pheight'], $CONFIG['alb_list_thumb_size']); $alb_list[$alb_idx]['thumb_pic'] = "\"{$picture['filename']}\""; } else { // Inserts an empty thumbnail if the album contains 0 images $image_size = compute_img_size(100, 75, $CONFIG['alb_list_thumb_size']); $alb_list[$alb_idx]['thumb_pic'] = "\"\""; } } elseif ($CONFIG['show_private']) { $image_size = compute_img_size(100, 75, $CONFIG['alb_list_thumb_size']); $alb_list[$alb_idx]['thumb_pic'] = "\"\""; } // Prepare everything if ($visibility == '0' || $visibility == (FIRST_USER_CAT + USER_ID) || in_array($visibility, $USER_DATA['groups']) || $USER_DATA['can_see_all_albums']) { $last_upload_date = $count ? localised_date($alb_stat['last_upload'], $lastup_date_fmt) : ''; $alb_list[$alb_idx]['aid'] = $alb_thumb['aid']; $alb_list[$alb_idx]['album_title'] = $alb_thumb['title']; $alb_list[$alb_idx]['album_desc'] = bb_decode($alb_thumb['description']); $alb_list[$alb_idx]['pic_count'] = $count; $alb_list[$alb_idx]['last_upl'] = $last_upload_date; $alb_list[$alb_idx]['album_info'] = sprintf($lang_list_albums['n_pictures'], $count) . ($count ? sprintf($lang_list_albums['last_added'], $last_upload_date) : ""); $alb_list[$alb_idx]['album_adm_menu'] = (GALLERY_ADMIN_MODE || (USER_ADMIN_MODE && $cat == USER_ID + FIRST_USER_CAT)) ? html_albummenu($alb_thumb['aid']) : ''; } elseif ($CONFIG['show_private']) { // uncomment this else block to show private album description $last_upload_date = $count ? localised_date($alb_stat['last_upload'], $lastup_date_fmt) : ''; $alb_list[$alb_idx]['aid'] = $alb_thumb['aid']; $alb_list[$alb_idx]['album_title'] = $alb_thumb['title']; $alb_list[$alb_idx]['album_desc'] = bb_decode($alb_thumb['description']); $alb_list[$alb_idx]['pic_count'] = $count; $alb_list[$alb_idx]['last_upl'] = $last_upload_date; $alb_list[$alb_idx]['album_info'] = sprintf($lang_list_albums['n_pictures'], $count) . ($count ? sprintf($lang_list_albums['last_added'], $last_upload_date) : ""); $alb_list[$alb_idx]['album_adm_menu'] = (GALLERY_ADMIN_MODE || (USER_ADMIN_MODE && $cat == USER_ID + FIRST_USER_CAT)) ? html_albummenu($alb_thumb['aid']) : ''; } } ob_start(); theme_display_album_list_cat($alb_list, $nbAlb, $cat, $PAGE, $totalPages); $cat_albums = ob_get_contents(); ob_end_clean(); return $cat_albums; } /** */ /** * Main code */ if (isset($HTTP_GET_VARS['page'])) { $PAGE = max((int)$HTTP_GET_VARS['page'], 1); $USER['lap'] = $PAGE; } elseif (isset($USER['lap'])) { $PAGE = max((int)$USER['lap'], 1); } else { $PAGE = 1; } if (isset($HTTP_GET_VARS['cat'])) { $cat = (int)$HTTP_GET_VARS['cat']; } // Gather data for categories $breadcrumb = ''; $cat_data = array(); $statistics = ''; $STATS_IN_ALB_LIST = false; $cpg_show_private_album = ($CONFIG['allow_private_albums'])?($CONFIG['show_private']):(true); get_cat_list($breadcrumb, $cat_data, $statistics); pageheader($BREADCRUMB_TEXT ? $BREADCRUMB_TEXT : $lang_index_php['welcome']); $elements = preg_split("|/|", $CONFIG['main_page_layout'], -1, PREG_SPLIT_NO_EMPTY); foreach ($elements as $element) { if (preg_match("/(\w+),*(\d+)*/", $element, $matches)) switch ($matches[1]) { case 'breadcrumb': // Added breadcrumb as a separate listable block from config if (($breadcrumb != '' || count($cat_data) > 0) && $cat !=0 ) theme_display_breadcrumb($breadcrumb, $cat_data); break; case 'catlist': if ($breadcrumb != '' || count($cat_data) > 0) theme_display_cat_list($breadcrumb, $cat_data, $statistics); if (isset($cat) && $cat == USER_GAL_CAT) list_users(); flush(); break; case 'alblist': list_albums(); flush(); break; case 'random': display_thumbnails('random', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false); flush(); break; case 'lastup': display_thumbnails('lastup', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false); flush(); break; case 'lastalb': display_thumbnails('lastalb', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false); break; case 'topn': display_thumbnails('topn', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false); flush(); break; case 'toprated': display_thumbnails('toprated', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false); flush(); break; case 'lastcom': display_thumbnails('lastcom', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false); flush(); break; case 'lasthits': display_thumbnails('lasthits', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false); flush(); break; case 'anycontent': if ($cat == 0) { include('anycontent.php'); } flush(); break; } } pagefooter(); ob_end_flush(); // Speed-up the random image query by 'keying' the image table if (time() - $CONFIG['randpos_interval'] > 86400) { $result = db_query("SELECT count(*) FROM {$CONFIG['TABLE_PICTURES']} WHERE 1"); $nbEnr = mysql_fetch_array($result); mysql_free_result($result); $pic_count = $nbEnr[0]; $granularity = floor($pic_count / RANDPOS_MAX_PIC); $result = db_query("UPDATE {$CONFIG['TABLE_PICTURES']} SET randpos = ROUND(RAND()*$granularity) WHERE 1"); $result = db_query("UPDATE {$CONFIG['TABLE_CONFIG']} SET value = '" . time() . "' WHERE name = 'randpos_interval'"); } ?>