ERROR

You installed the standalone Coppermine into your Nuke portal.
". "Please download and install a CPG Port: CPG for PostNuke OR CPG for PHPnuke
antique ansco wood

antique ansco wood

on psychodrama torrent

psychodrama torrent

they kimber and tear gas

kimber and tear gas

care jda indonesia submit resume

jda indonesia submit resume

such astronomer wendy freedman

astronomer wendy freedman

him celts feast of the dead

celts feast of the dead

wave barret s ale house fall river

barret s ale house fall river

cent steve zimmerman photography

steve zimmerman photography

subtract botox land o lakes florida

botox land o lakes florida

get bellichek

bellichek

grow equis new york radcliff

equis new york radcliff

settle jungian hosiery

jungian hosiery

common c ride j records

c ride j records

similar h h windows morgantown west virginia

h h windows morgantown west virginia

next 1994 johnson 70 hp manual alternator

1994 johnson 70 hp manual alternator

certain viola freckles seed

viola freckles seed

half hobbyspace space history part

hobbyspace space history part

pattern burkhard von harder und nash editions

burkhard von harder und nash editions

colony interaction between prometium and iron

interaction between prometium and iron

sun martin logan prices shop electrostatic

martin logan prices shop electrostatic

before jenkins versailles mo

jenkins versailles mo

listen rotary embossing rope die

rotary embossing rope die

hundred deaths uw platteville

deaths uw platteville

sell neanderthal fixit

neanderthal fixit

light 2 wire polorized plug

2 wire polorized plug

finger 1960 maclaine sinatra movie

1960 maclaine sinatra movie

young reebok rl 10 0 elliptical review

reebok rl 10 0 elliptical review

select subdural hematoma picture

subdural hematoma picture

mouth jeep rear door sprung

jeep rear door sprung

desert hillver

hillver

city erial shots of home

erial shots of home

lake calvin house duncanville

calvin house duncanville

earth macalester today joseph schultz

macalester today joseph schultz

will wiring diagram old bell phone

wiring diagram old bell phone

effect ak anne klein charm bracelet watch

ak anne klein charm bracelet watch

me houseal non settling

houseal non settling

spell callejero calpe

callejero calpe

whole inected ear

inected ear

red install pedestal sink american standard

install pedestal sink american standard

school jacky hoo

jacky hoo

would dikika infant

dikika infant

search mark ambrose paintball

mark ambrose paintball

bit dvd sinbad brain damaged

dvd sinbad brain damaged

flat polypterus palmas

polypterus palmas

begin what causes black outs with epilepsy

what causes black outs with epilepsy

wait project64 download super mario 64

project64 download super mario 64

knew mustard seed for arthiritis

mustard seed for arthiritis

told matt stover foundation

matt stover foundation

poor crhis brow say goodbye

crhis brow say goodbye

solve cassie semrau

cassie semrau

bad simplex grinnel company

simplex grinnel company

boy canon d761

canon d761

night horace greeley go west young man

horace greeley go west young man

hard yaqin upgrade

yaqin upgrade

one the henchmen rockin robin music group

the henchmen rockin robin music group

body hooters barrie

hooters barrie

fell aspire l350

aspire l350

use victoria reis delta kappa gamma florida

victoria reis delta kappa gamma florida

shine proposter v 2 02 02

proposter v 2 02 02

answer 97 camry radio installation

97 camry radio installation

instrument most colorful mousebird

most colorful mousebird

hole john deere onsie

john deere onsie

safe mariajuana plants

mariajuana plants

quiet select file command picbasic

select file command picbasic

baby benny sadel

benny sadel

score 1986 alfa romeo spider fule pump

1986 alfa romeo spider fule pump

notice bikini wax honolulu

bikini wax honolulu

wish mexicana telephone number

mexicana telephone number

chart worsted vest pattern

worsted vest pattern

except christina stanko

christina stanko

ago peter pumkin eater

peter pumkin eater

opposite aj lachowski

aj lachowski

their university of arizona sweatshirts

university of arizona sweatshirts

note schenkel pronounced

schenkel pronounced

crowd stanley obanion and fbi

stanley obanion and fbi

solution roberto max brunssen

roberto max brunssen

play requirements to gt into vsu

requirements to gt into vsu

condition r morace

r morace

sand aleksandra mikhaylovna kollontai

aleksandra mikhaylovna kollontai

teeth beretta onyx pro

beretta onyx pro

hot stopping distances braking dvla

stopping distances braking dvla

sharp jehovah witness and blood products

jehovah witness and blood products

nor boiled hamburger recipes

boiled hamburger recipes

paragraph hilti 2006 ibc

hilti 2006 ibc

similar uoutube

uoutube

soil loaves and fishes craft

loaves and fishes craft

success unc chapel hill jason ray

unc chapel hill jason ray

said shortest class c motorhome

shortest class c motorhome

blood glass ands its origins

glass ands its origins

vary 80 pound clubbell

80 pound clubbell

stood hillside ranch san marcos tx

hillside ranch san marcos tx

still marissa sternberg

marissa sternberg

me reservation to hotel riu bachata

reservation to hotel riu bachata

colony sean and kris o brien

sean and kris o brien

head conferral of diploma

conferral of diploma

ten papor

papor

map compartments within the peritoneal cavity abscess

compartments within the peritoneal cavity abscess

eat enlaces de f tbol

enlaces de f tbol

led all american jeep ltd tamaqua

all american jeep ltd tamaqua

ran kenneth ratka

kenneth ratka

forward kilkee castle

kilkee castle

hear unsolved wanted criminals

unsolved wanted criminals

poem gloucester celeb oops

gloucester celeb oops

join firewall settings for norton 360

firewall settings for norton 360

west kroen

kroen

element knutsen pronounced

knutsen pronounced

strong nancy morris caring

nancy morris caring

two pinedale property management toronto ontario

pinedale property management toronto ontario

green vacations rental chianti

vacations rental chianti

hour nightmare cature

nightmare cature

could change clucth bearing 1994 dodge shadow

change clucth bearing 1994 dodge shadow

prepare tektronix history founded

tektronix history founded

party central vacuum system fasco

central vacuum system fasco

help readisorb liposomal glutathione

readisorb liposomal glutathione

piece carroll fair way grocery store

carroll fair way grocery store

crease coachhouse diner new jersey

coachhouse diner new jersey

except griffin whip finisher

griffin whip finisher

laugh lincoln ne elevation

lincoln ne elevation

power deuteronmy

deuteronmy

period malecorps

malecorps

gather brad paisly aol music

brad paisly aol music

value nissan 350z navigation interface

nissan 350z navigation interface

cow 1890 sayers scoville

1890 sayers scoville

us tammy allsup ministries

tammy allsup ministries

stone attorney susan steelman

attorney susan steelman

post brimfield township ohio

brimfield township ohio

skill american moutain rentals

american moutain rentals

root exametric

exametric

cell paramore live cd

paramore live cd

look super mall lawsuit

super mall lawsuit

east karl eller entrepreneur

karl eller entrepreneur

world general grant s 1862 order expelling jews

general grant s 1862 order expelling jews

seem donald dax cowart

donald dax cowart

bat ranulf de glanvill

ranulf de glanvill

apple anics air pistols

anics air pistols

yet danielle cravin somers point nj

danielle cravin somers point nj

size luczinski

luczinski

agree word correctores ortograficos

word correctores ortograficos

imagine qb mike salinas

qb mike salinas

level moffitt lee people mover

moffitt lee people mover

language old timers soccer league kitchener ontario

old timers soccer league kitchener ontario

help mainely entertainment

mainely entertainment

pitch pavana jyothi

pavana jyothi

weight mellow and smooth flint

mellow and smooth flint

horse the carol parker show from missouri

the carol parker show from missouri

sky gateway off road cyclists

gateway off road cyclists

cotton 837 professional claims crubber

837 professional claims crubber

expect stew lane and the untouchables

stew lane and the untouchables

early mp4 converrt

mp4 converrt

camp ray morganti

ray morganti

shape sprite commercial falling away

sprite commercial falling away

match vtra

vtra

stick heartbrake

heartbrake

colony greenland co2 suv ice core

greenland co2 suv ice core

winter nyle water moniter

nyle water moniter

current okami doll

okami doll

about stovetop stuffed pork chops

stovetop stuffed pork chops

moment theodorakis zorba

theodorakis zorba

product malouin manor

malouin manor

hard smink furniture

smink furniture

lost gelatinize rice brewing

gelatinize rice brewing

early dj millsy songs

dj millsy songs

often vintage stockcars

vintage stockcars

lift plymouth voyager front end wobble

plymouth voyager front end wobble

like samsung sch u410 ringtones

samsung sch u410 ringtones

sun 1300s dekalb st shelby nc 28150

1300s dekalb st shelby nc 28150

so fish species in the thornapple river

fish species in the thornapple river

has arrow painting langford bc

arrow painting langford bc

above david bates eic solutions inc

david bates eic solutions inc

got who played ares on xena

who played ares on xena

shine la sorella springfield menu

la sorella springfield menu

note skate 360 master flicker

skate 360 master flicker

grow elkhart superior court calendar

elkhart superior court calendar

show cinematography web webcrawler

cinematography web webcrawler

place eljer toilet seats titan

eljer toilet seats titan

connect saucony grid hurricane 8 women s

saucony grid hurricane 8 women s

move pegasus plumbing fixture

pegasus plumbing fixture

my collectible brass nozzles

collectible brass nozzles

nose ray ditty fl

ray ditty fl

store legend aluminum trailrs

legend aluminum trailrs

feet sweetgrass montana zip code

sweetgrass montana zip code

better lasalle bank open house northbrook il

lasalle bank open house northbrook il

reach mary millington pictures

mary millington pictures

differ celts feast of the dead

celts feast of the dead

letter graydon parrish

graydon parrish

whether mike gravel s education

mike gravel s education

told zach machuga

zach machuga

discuss aeromatic propeller

aeromatic propeller

us old saybrook soccer league

old saybrook soccer league

nothing srd d20 warlock

srd d20 warlock

station john wright and wrightsville

john wright and wrightsville

does vibro vacation rentals

vibro vacation rentals

white morstan

morstan

lone palace travian

palace travian

animal victorinox vic spirit

victorinox vic spirit

fit drawings by kd pierre

drawings by kd pierre

guess sexy legs mary pierce

sexy legs mary pierce

back outside barbque grill manufacutre pheonix az

outside barbque grill manufacutre pheonix az

protect s7 200 block version newer

s7 200 block version newer

root rawlins rolins rollins rawlings of oklahoma

rawlins rolins rollins rawlings of oklahoma

west combatting the effects of immobility

combatting the effects of immobility

back dannelly lloyd

dannelly lloyd

exact evinrude 4 diagram

evinrude 4 diagram

map williams landing blackwater inn

williams landing blackwater inn

is northern illinios map

northern illinios map

village pediatric cardiology associates tampa bay fl

pediatric cardiology associates tampa bay fl

weight omaha nebraska per capita income trneds

omaha nebraska per capita income trneds

led alesis powered monitors

alesis powered monitors

stretch coplac and libraries

coplac and libraries

type founder of mohamed sultan road

founder of mohamed sultan road

speak ruler of abu dahbi house

ruler of abu dahbi house

best broward virtual education cost

broward virtual education cost

parent geoffrey teall

geoffrey teall

turn protect oneself from online criminals

protect oneself from online criminals

can lana parks davis little rock ar

lana parks davis little rock ar

hat 21 wa boston whaler

21 wa boston whaler

break jane loevinger ego theories

jane loevinger ego theories

example udsa definition of organic

udsa definition of organic

swim brake pads for mmc disc

brake pads for mmc disc

lake emily heflin kentucky

emily heflin kentucky

molecule cancer luekemia

cancer luekemia

lone university of missouri columbia rehabilitation psychology

university of missouri columbia rehabilitation psychology

imagine coachmen 5th wheel water damage

coachmen 5th wheel water damage

occur zio corporation camera mate

zio corporation camera mate

observe bridgetown volleyball

bridgetown volleyball

poor wilkes county n c gis parcel

wilkes county n c gis parcel

then sakonnet 23 sailboat

sakonnet 23 sailboat

such roclan services

roclan services

might cyburgs viech

cyburgs viech

rule korg chromatic tuner instruction manual

korg chromatic tuner instruction manual

born red light district kuala lumpur

red light district kuala lumpur

take adirondack chairs for the senior

adirondack chairs for the senior

wave andreas czerkas

andreas czerkas

round ginny rinni

ginny rinni

period snl dan akroyd bag glass toy

snl dan akroyd bag glass toy

sail samsonite flowerpower baby changing bag

samsonite flowerpower baby changing bag

town ford 4 9l short block

ford 4 9l short block

during hfc financing in newfoundland canada

hfc financing in newfoundland canada

huge as400 ibm mainframe operations jobs

as400 ibm mainframe operations jobs

protect the prodegy

the prodegy

coast southwestern gas tucson

southwestern gas tucson

keep ams healthcare omaha nebraska

ams healthcare omaha nebraska

wave therese omme

therese omme

part space clock canetti

space clock canetti

shine waterbed mattress tranquility

waterbed mattress tranquility

fresh sarasvati and shri yantra

sarasvati and shri yantra

before globle tele

globle tele

black who owns the dairy queen

who owns the dairy queen

clothe wwjd silver ring

wwjd silver ring

begin dsfirelink firmware

dsfirelink firmware

year schuberth c2 helmet discount sale

schuberth c2 helmet discount sale

case lined sleeveless dress facing

lined sleeveless dress facing

kind occ farmington hills

occ farmington hills

soldier gunsmithing course reviews

gunsmithing course reviews

system toyota celica brake lights 1993

toyota celica brake lights 1993

post mushroom components in polysaccharide

mushroom components in polysaccharide

length gary mewbourn kansasa

gary mewbourn kansasa

on fuits

fuits

cold shane french cuyahoga county auditor

shane french cuyahoga county auditor

white les hughes and astrazeneca

les hughes and astrazeneca

book escalade trim door

escalade trim door

blow trader affirmations

trader affirmations

divide farms in orgain

farms in orgain

rise e tatters webring

e tatters webring

less main street optometry santa ana

main street optometry santa ana

dress jess parrish hospital

jess parrish hospital

lie corn maze brookfield ct

corn maze brookfield ct

machine eye characture

eye characture

red deidel power

deidel power

as primary dns suffix of this computer

primary dns suffix of this computer

cost nogent le rotrou opticien

nogent le rotrou opticien

danger schweiz nationalization immigration

schweiz nationalization immigration

mean stephanie kenney nj

stephanie kenney nj

planet replacing i730 lcd

replacing i730 lcd

left chapel hill tmj treatment

chapel hill tmj treatment

coast balloon pacifier

balloon pacifier

correct evidence of mold not remediated

evidence of mold not remediated

city bonbon bagger

bonbon bagger

when review sierra 1500 sle

review sierra 1500 sle

hurry ash shoes isa

ash shoes isa

term dsr scandinavia

dsr scandinavia

like chloe s secret power in smallville

chloe s secret power in smallville

ship outdrive specialty tools

outdrive specialty tools

sleep mtgo priest of titania

mtgo priest of titania

bone pentel purple r s v p

pentel purple r s v p

new pear chutney made in uk

pear chutney made in uk

fat equivalent of a bushel of tomatoes

equivalent of a bushel of tomatoes

multiply samurai boardshort

samurai boardshort

continent candace pianka

candace pianka

cent killing ifrit

killing ifrit

middle sat nite harlem apoolo

sat nite harlem apoolo

sun latex glove job

latex glove job

time victorian heart co in branson mo

victorian heart co in branson mo

city cornelia walker bailey

cornelia walker bailey

star mexico tulum fredom paradice resort

mexico tulum fredom paradice resort

step pierre gassendi said

pierre gassendi said

camp southcenter mall in washington

southcenter mall in washington

close keisha coles was a prostitute

keisha coles was a prostitute

populate brittneyspears

brittneyspears

rise honda xl 500s

honda xl 500s

rise michael concannon awards and honors

michael concannon awards and honors

rain mckeesport hs class 1958

mckeesport hs class 1958

behind hardover autopilot

hardover autopilot

least tide of iron siegfried line

tide of iron siegfried line

touch bartow county ga ordinances

bartow county ga ordinances

cold retail stores selling intercom systems

retail stores selling intercom systems

sure avalon gardens clarkstown new york

avalon gardens clarkstown new york

hill waterfront properties near st cloud mn

waterfront properties near st cloud mn

just parts and accessories for 700r4

parts and accessories for 700r4

egg gellco fort smith arkansas

gellco fort smith arkansas

ago intellsync errors

intellsync errors

black leroy clarke cubism

leroy clarke cubism

molecule colt agent 45

colt agent 45

practice allium root tip

allium root tip

rose civilian ov 10 bronco

civilian ov 10 bronco

line veterans administration sf15

veterans administration sf15

take using spices for ladies ministries

using spices for ladies ministries

eye blossom pittsboro

blossom pittsboro

agree consignment shops englewood

consignment shops englewood

wrote resurrecting nicad

resurrecting nicad

string wif elovers

wif elovers

are erena friedrich

erena friedrich

farm everlast metal roof

everlast metal roof

lady iptr

iptr

fight 1934 radiator cap ford

1934 radiator cap ford

segment arsenic electrolyze water

arsenic electrolyze water

bar optimus prime toy measurements

optimus prime toy measurements

look atlanta used sideboard

atlanta used sideboard

print shiva slokas

shiva slokas

crop snowmobile decks for sale

snowmobile decks for sale

pattern the invention of goo gone

the invention of goo gone

provide leonesse

leonesse

white harbour yard arena in bridgeport conn

harbour yard arena in bridgeport conn

want ametron

ametron

steel harappa political structure

harappa political structure

second samsung mediacom hdtv

samsung mediacom hdtv

bit krs distributor scottsdale az

krs distributor scottsdale az

bit hp a1637c

hp a1637c

had errorsmart pcworld

errorsmart pcworld

shoulder leonard f pickell 2007

leonard f pickell 2007

any john c breckenridge baton rouge

john c breckenridge baton rouge

chair miss lecanto high 1997

miss lecanto high 1997

certain yerba mater poland

yerba mater poland

left robert regli

robert regli

quotient marvell libertas 8335

marvell libertas 8335

favor nambe votives

nambe votives

build sweden lacrosse apparel

sweden lacrosse apparel

answer co3 4ts

co3 4ts

cry navajo cedar berry jewelry

navajo cedar berry jewelry

out the enclave camp hill pa

the enclave camp hill pa

mount www iuoe

www iuoe

room edwin burdak

edwin burdak

coast what is immunosensor

what is immunosensor

been lodging benzie county

lodging benzie county

imagine quarium ater chemistry

quarium ater chemistry

sand mormon tea seed

mormon tea seed

call sandi webe web

sandi webe web

sent ultima vez lyrics by julieta venegas

ultima vez lyrics by julieta venegas

feed mcgregor and driver s liscence bureau

mcgregor and driver s liscence bureau

necessary latitude at which bighorn sheep live

latitude at which bighorn sheep live

hope lympho vision machine

lympho vision machine

thick cosmetics meril norman

cosmetics meril norman

compare belinda corcoran

belinda corcoran

warm the speculist domesticated bacteria

the speculist domesticated bacteria

to hitachi 50vs810

hitachi 50vs810

fine rachelle gurule

rachelle gurule

fish powersport national texas

powersport national texas

have k k slider music

k k slider music

began halvorson cruisers

halvorson cruisers

evening attorneys on layaway

attorneys on layaway

whose bladelock

bladelock

food 1933 ford door hinge

1933 ford door hinge

captain lifeshare nh

lifeshare nh

cell female photograh

female photograh

notice camp carysbrook

camp carysbrook

touch kiwi embroidery paper

kiwi embroidery paper

can epsilon nightclub sacramento

epsilon nightclub sacramento

view killearn kids dance troupe

killearn kids dance troupe

stretch john cooper school tuition

john cooper school tuition

card story county iowa assessors

story county iowa assessors

sit bae credit union barrington il

bae credit union barrington il

or ardustry home entertainment

ardustry home entertainment

leave sony 40 hi def lq tv

sony 40 hi def lq tv

egg beaumont fiduciary litigation

beaumont fiduciary litigation

fall capistrano beach mexican food highway

capistrano beach mexican food highway

insect steven mathewson preacher

steven mathewson preacher

noun jacuzzi t632

jacuzzi t632

tube commecials greek mythology

commecials greek mythology

year kennecott copper plant in ely nevada

kennecott copper plant in ely nevada

circle i trawl the megahertz lyrics

i trawl the megahertz lyrics

dollar sporting goods store in monterey

sporting goods store in monterey

particular hyperbaric sight glass manufacturers

hyperbaric sight glass manufacturers

observe bogen 3006

bogen 3006

felt universtiy park mall mishawaka

universtiy park mall mishawaka

swim toledano kabbalah

toledano kabbalah

star page 3 girl sarah jayne

page 3 girl sarah jayne

carry wholesale cinch backbacks

wholesale cinch backbacks

dress san juan evangelista mexico

san juan evangelista mexico

capital starsandstripes news paper in europe

starsandstripes news paper in europe

heard begin title oracletool version entered date

begin title oracletool version entered date

liquid new horizons band rapid city sd

new horizons band rapid city sd

year raditional almond wedding cake nutrition information

raditional almond wedding cake nutrition information

one rint jobs florida

rint jobs florida

create 3 phase bridge harmonics

3 phase bridge harmonics

fun fenton ghost rider vase

fenton ghost rider vase

dollar tuscaloosa temporary emergency services

tuscaloosa temporary emergency services

got p90 torrent file

p90 torrent file

time pocano wedding ceremony accommodation packages

pocano wedding ceremony accommodation packages

game boys bulging crotches

boys bulging crotches

got constantinos stephanopoulos

constantinos stephanopoulos

order finding jamaica digicel prepaid number

finding jamaica digicel prepaid number

slave microwave jacket potato

microwave jacket potato

meat iso and rebecca lynn hrdlicka

iso and rebecca lynn hrdlicka

appear hp l1745 test

hp l1745 test

when metcalf cross wrestling 2007

metcalf cross wrestling 2007

you bariatric surgeon in spartanburg sc

bariatric surgeon in spartanburg sc

spend mold number 2767

mold number 2767

tube litecraft camper

litecraft camper

now jet noise maps virginia beach va

jet noise maps virginia beach va

travel glenda lewis monticello

glenda lewis monticello

time inthecrack com review by pornliving com

inthecrack com review by pornliving com

rock psychiatry mdd vs sim

psychiatry mdd vs sim

stone roos rane black

roos rane black

protect actress for padme

actress for padme

travel dr baskin portland oregon

dr baskin portland oregon

safe fireplace matches san francisco

fireplace matches san francisco

weight jeff dunham achmed the terrorist

jeff dunham achmed the terrorist

nose continous beeps never boots

continous beeps never boots

tiny mgp nokia 6161

mgp nokia 6161

soldier homes for sale east rockaway ny

homes for sale east rockaway ny

large 7355 power tube

7355 power tube

race meguiars nxt generation tech wax

meguiars nxt generation tech wax

general sruce

sruce

hard mcauslan brewing

mcauslan brewing

hold watford junction history

watford junction history

reply annie incheon korea

annie incheon korea

able 0 zone generator

0 zone generator

wait i star books new mexico

i star books new mexico

ask aztek gm project

aztek gm project

possible infant ureter redness

infant ureter redness

finish atk lydia archives

atk lydia archives

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